[go: up one dir, main page]

CN108400996A - A kind of sending method of data, device and data gateway - Google Patents

A kind of sending method of data, device and data gateway Download PDF

Info

Publication number
CN108400996A
CN108400996A CN201710064240.1A CN201710064240A CN108400996A CN 108400996 A CN108400996 A CN 108400996A CN 201710064240 A CN201710064240 A CN 201710064240A CN 108400996 A CN108400996 A CN 108400996A
Authority
CN
China
Prior art keywords
data
matching degree
feature value
sending
user equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710064240.1A
Other languages
Chinese (zh)
Inventor
严华
胡钦扬
黄家典
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710064240.1A priority Critical patent/CN108400996A/en
Publication of CN108400996A publication Critical patent/CN108400996A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of sending method of data, device and data gateways, wherein this method includes:When receiving the data from third-party server, from extracting data characteristic information, wherein the data from third-party server are the data returned according to the request of user equipment;Judge in preset characteristic value data library with the presence or absence of the characteristic value for reaching preset matching degree with the matching degree of characteristic information;There are the characteristic value that matching degree reaches preset matching degree, the corresponding initial data of characteristic value is sent to user equipment;There is no the characteristic value that matching degree reaches preset matching degree, the data from third-party server are sent to user equipment.By with the present invention, solving the problems, such as the as follows of the prior art:It downloads resource from third-party server to need to occupy certain bandwidth, with increasing for intelligent terminal, more and more bandwidth can be occupied, can cause operator's usable spectrum scarcity of resources.

Description

一种数据的发送方法、装置及数据网关A data sending method, device and data gateway

技术领域technical field

本发明涉及通讯领域,特别是涉及一种数据的发送方法、装置及数据网关。The invention relates to the communication field, in particular to a data sending method, device and data gateway.

背景技术Background technique

当用户在使用智能终端进行娱乐时,通常会使用智能终端的一些APP来获取音乐或视频就,此过程中,就需要从第三方服务器来获取对应的资源。运营商的数据网关需要从第三方服务器上下载资源,再通过数据网关发送至用户的智能终端。在该过程中,从第三方服务器上下载资源需要占用一定的带宽,随着智能终端的增多,越来越多的带宽会被占用,会引起运营商可用频谱资源匮乏。When a user uses a smart terminal for entertainment, he usually uses some APPs of the smart terminal to obtain music or video. During this process, it is necessary to obtain corresponding resources from a third-party server. The operator's data gateway needs to download resources from the third-party server, and then send them to the user's smart terminal through the data gateway. In this process, downloading resources from third-party servers requires a certain amount of bandwidth. With the increase of smart terminals, more and more bandwidth will be occupied, which will cause operators to lack available spectrum resources.

发明内容Contents of the invention

本发明提供一种数据的发送方法、装置及数据网关,用以解决现有技术的如下问题:从第三方服务器上下载资源需要占用一定的带宽,随着智能终端的增多,越来越多的带宽会被占用,会引起运营商可用频谱资源匮乏。The present invention provides a data sending method, device and data gateway to solve the following problems in the prior art: downloading resources from a third-party server needs to occupy a certain bandwidth, and with the increase of intelligent terminals, more and more The bandwidth will be occupied, which will cause the operator's available spectrum resources to be scarce.

为解决上述技术问题,一方面,本发明提供一种数据的发送方法,包括:在接收到来自第三方服务器的数据时,从所述数据中提取特征信息,其中,所述来自第三方服务器的数据为根据用户设备的请求返回的数据;判断预设的特征值数据库中是否存在与所述特征信息的匹配度达到预设匹配度的特征值;在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备;在不存在所述匹配度达到所述预设匹配度的特征值的情况下,将来自所述第三方服务器的数据发送至所述用户设备。In order to solve the above technical problems, on the one hand, the present invention provides a method for sending data, including: when receiving data from a third-party server, extracting feature information from the data, wherein the data from the third-party server The data is the data returned according to the request of the user equipment; judging whether there is a feature value whose matching degree with the feature information reaches the preset matching degree in the preset feature value database; In the case of a feature value of the degree of matching, the original data corresponding to the feature value is sent to the user equipment; in the case of no feature value of the matching degree reaching the preset matching degree, the The data of the third-party server is sent to the user equipment.

可选的,所述方法还包括:判断所述数据是否为音频数据和/或视频数据;在所述数据是音频数据和/或视频数据的情况下,从所述数据中提取特征信息;所述数据不是音频数据和/或或视频数据的情况下,将所述数据发送发送至所述用户设备。Optionally, the method further includes: judging whether the data is audio data and/or video data; if the data is audio data and/or video data, extracting feature information from the data; If the data is not audio data and/or video data, sending the data to the user equipment.

可选的,从所述数据中提取特征信息,包括:按照预定样本采集规则从所述数据中采集样本数据,并从所述样本数据中提取所述特征信息。Optionally, extracting feature information from the data includes: collecting sample data from the data according to a predetermined sample collection rule, and extracting the feature information from the sample data.

可选的,在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备,包括:在所述特征值为多个的情况下,将所述样本数据与各个特征值对应的原始数据进行匹配;在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至所述用户设备。Optionally, if there is a characteristic value whose matching degree reaches the preset matching degree, sending the original data corresponding to the characteristic value to the user equipment includes: when the characteristic value is multiple In the case of , the sample data is matched with the original data corresponding to each feature value; among the obtained multiple matching degrees, the original data corresponding to the feature value with the highest matching degree is sent to the user equipment.

可选的,所述预设的特征值数据库的构建过程如下:按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;提取各个所述分离后的数据的特征值;对所述特征值和所述特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成所述预设的特征值数据库的构建。Optionally, the construction process of the preset feature value database is as follows: each data stored locally is separated according to a predetermined separation rule to obtain separated data; the feature value of each separated data is extracted ; performing hash processing on the characteristic value and the identification number corresponding to the characteristic value, and saving the processed result, so as to complete the construction of the preset characteristic value database.

另一方面,本发明还提供一种数据的发送装置,包括:提取模块,用于在接收到来自第三方服务器的数据时,从所述数据中提取特征信息,其中,所述来自第三方服务器的数据为根据用户设备的请求返回的数据;匹配模块,用于判断预设的特征值数据库中是否存在与所述特征信息的匹配度达到预设匹配度的特征值;第一发送模块,用于在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备;第二发送模块,用于在不存在所述匹配度达到所述预设匹配度的特征值的情况下,将来自所述第三方服务器的数据发送至所述用户设备。On the other hand, the present invention also provides a data sending device, including: an extracting module, configured to extract feature information from the data when receiving data from a third-party server, wherein the third-party server The data is the data returned according to the request of the user equipment; the matching module is used to judge whether there is a characteristic value whose matching degree with the characteristic information reaches the preset matching degree in the preset characteristic value database; the first sending module uses In the case that there is a characteristic value whose matching degree reaches the preset matching degree, sending the original data corresponding to the characteristic value to the user equipment; the second sending module is configured to If the matching degree reaches the characteristic value of the preset matching degree, the data from the third-party server is sent to the user equipment.

可选的,还包括:判断模块,用于判断所述数据是否为音频数据和/或视频数据;所述提取模块,还用于在所述数据是音频数据和/或视频数据的情况下,从所述数据中提取特征信息;所述第二发送模块,用于所述数据不是音频数据和/或或视频数据的情况下,将所述数据发送发送至所述用户设备。Optionally, it also includes: a judging module, configured to judge whether the data is audio data and/or video data; the extracting module is also configured to, when the data is audio data and/or video data, Extract feature information from the data; the second sending module is configured to send the data to the user equipment if the data is not audio data and/or video data.

可选的,所述提取模块,具体用于按照预定样本采集规则从所述数据中采集样本数据,并从所述样本数据中提取所述特征信息。Optionally, the extraction module is specifically configured to collect sample data from the data according to predetermined sample collection rules, and extract the characteristic information from the sample data.

可选的,所述第一发送模块包括:匹配单元,用于在所述特征值为多个的情况下,将所述样本数据与各个特征值对应的原始数据进行匹配;发送单元,用于在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至所述用户设备。Optionally, the first sending module includes: a matching unit, configured to match the sample data with original data corresponding to each feature value when there are multiple feature values; a sending unit, configured to Among the obtained multiple matching degrees, the original data corresponding to the feature value with the largest matching degree is sent to the user equipment.

可选的,还包括:数据库构建模块,用于按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;提取各个所述分离后的数据的特征值;对所述特征值和所述特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成所述预设的特征值数据库的构建。Optionally, it also includes: a database building module, configured to separate each data stored locally according to a predetermined separation rule, so as to obtain separated data; extract feature values of each separated data; Hash processing is performed on the characteristic value and the identification number corresponding to the characteristic value, and the processed result is saved to complete the construction of the preset characteristic value database.

另一方面,本发明还提供一种数据网关,包括:上述的数据的发送装置。On the other hand, the present invention also provides a data gateway, including: the above data sending device.

本发明对来自第三方服务器的数据进行特征信息提取,并将提取的特征信息与预设的特征值数据库中的特征值进行匹配,以确定是否存在匹配度达到预设匹配度的特征值,如果有,就说明数据网关存储有需要发送给用户设备的数据,则从本地直接提取特征值对应的原始数据发送给用户设备,如果没有,则就将来自第三方服务器的数据发送至用户设备,该过程数据网关进行匹配操作,一旦本地存在用户设备需要的数据,就可以直接发送至用户设备,不需要占用带宽从第三方服务器上下载,解决了现有技术的如下问题:从第三方服务器上下载资源需要占用一定的带宽,随着智能终端的增多,越来越多的带宽会被占用,会引起运营商可用频谱资源匮乏。The present invention extracts the feature information from the data from the third-party server, and matches the extracted feature information with the feature values in the preset feature value database to determine whether there is a feature value whose matching degree reaches the preset matching degree, if Yes, it means that the data gateway stores data that needs to be sent to the user equipment, and then directly extracts the original data corresponding to the characteristic value from the local area and sends it to the user equipment, if not, then sends the data from the third-party server to the user equipment. The process data gateway performs a matching operation. Once the data required by the user equipment exists locally, it can be directly sent to the user equipment without occupying bandwidth and downloading from a third-party server, which solves the following problems in the prior art: downloading from a third-party server Resources need to occupy a certain amount of bandwidth. With the increase of smart terminals, more and more bandwidth will be occupied, which will cause operators to lack available spectrum resources.

附图说明Description of drawings

图1是本发明第一实施例中数据的发送方法的流程图;Fig. 1 is the flow chart of the method for sending data in the first embodiment of the present invention;

图2是本发明第二实施例中数据的发送装置的结构示意图;2 is a schematic structural diagram of a data sending device in a second embodiment of the present invention;

图3是本发明第二实施例中数据的发送装置的优选结构示意图;3 is a schematic diagram of a preferred structure of a data sending device in a second embodiment of the present invention;

图4是本发明第四实施例中音视频数据匹配的流程图。Fig. 4 is a flow chart of audio and video data matching in the fourth embodiment of the present invention.

具体实施方式Detailed ways

为了解决现有技术的如下问题:从第三方服务器上下载资源需要占用一定的带宽,随着智能终端的增多,越来越多的带宽会被占用,会引起运营商可用频谱资源匮乏;本发明提供了一种数据的发送方法、装置及数据网关,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the following problems in the prior art: downloading resources from a third-party server needs to occupy a certain bandwidth, and with the increase of intelligent terminals, more and more bandwidth will be occupied, which will cause the shortage of spectrum resources available to operators; the present invention A data sending method, device and data gateway are provided, and the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明第一实施例提供了一种数据的发送方法,该方法的流程如图1所示,包括步骤S102至S108:The first embodiment of the present invention provides a data sending method, the flow of the method is shown in Figure 1, including steps S102 to S108:

S102,在接收到来自第三方服务器的数据时,从数据中提取特征信息,其中,来自第三方服务器的数据为根据用户设备的请求返回的数据;S102, when receiving the data from the third-party server, extract feature information from the data, wherein the data from the third-party server is data returned according to the request of the user equipment;

S104,判断预设的特征值数据库中是否存在与特征信息的匹配度达到预设匹配度的特征值;S104, judging whether there is a feature value whose matching degree with the feature information reaches a preset matching degree in the preset feature value database;

S106,在存在匹配度达到预设匹配度的特征值的情况下,将特征值对应的原始数据发送至用户设备;S106, if there is a feature value whose matching degree reaches a preset matching degree, send the original data corresponding to the feature value to the user equipment;

S108,在不存在匹配度达到预设匹配度的特征值的情况下,将来自第三方服务器的数据发送至用户设备。S108. In the case that there is no feature value whose matching degree reaches a preset matching degree, send the data from the third-party server to the user equipment.

本发明实施例对来自第三方服务器的数据进行特征信息提取,并将提取的特征信息与预设的特征值数据库中的特征值进行匹配,以确定是否存在匹配度达到预设匹配度的特征值,如果有,就说明数据网关存储有需要发送给用户设备的数据,则从本地直接提取特征值对应的原始数据发送给用户设备,如果没有,则就将来自第三方服务器的数据发送至用户设备,该过程数据网关进行匹配操作,一旦本地存在用户设备需要的数据,就可以直接发送至用户设备,不需要占用带宽从第三方服务器上下载,解决了现有技术的如下问题:从第三方服务器上下载资源需要占用一定的带宽,随着智能终端的增多,越来越多的带宽会被占用,会引起运营商可用频谱资源匮乏。The embodiment of the present invention extracts feature information from data from a third-party server, and matches the extracted feature information with feature values in a preset feature value database to determine whether there is a feature value with a matching degree reaching a preset matching degree , if there is, it means that the data gateway stores data that needs to be sent to the user device, and then directly extracts the original data corresponding to the feature value from the local and sends it to the user device, if not, then sends the data from the third-party server to the user device , the process data gateway performs a matching operation. Once the data required by the user equipment exists locally, it can be directly sent to the user equipment without occupying bandwidth and downloaded from the third-party server, which solves the following problems in the prior art: from the third-party server The upload and download resources need to occupy a certain amount of bandwidth. With the increase of smart terminals, more and more bandwidth will be occupied, which will cause the shortage of available spectrum resources for operators.

实现的过程中,还可以对数据的类型进行判断,如果用户是对文字数据或图片数据等进行获取,则下载占用的带宽较小,如果对音频数据或视频数据进行获取,则下载占用的带宽会较大,因此,还可以先判断数据是否为音频数据和/或视频数据;如果数据是音频数据和/或视频数据,则从数据中提取特征信息;如果数据不是音频数据和/或或视频数据,则将数据发送发送至用户设备。该过程能够优化数据网关的处理过程,减小数据网关的处理负荷。During the implementation process, the type of data can also be judged. If the user acquires text data or picture data, the bandwidth occupied by the download is small; if the user acquires audio data or video data, the bandwidth occupied by the download will be larger, therefore, it is also possible to first determine whether the data is audio data and/or video data; if the data is audio data and/or video data, extract feature information from the data; if the data is not audio data and/or video data, the data is sent to the user equipment. This process can optimize the processing process of the data gateway and reduce the processing load of the data gateway.

从数据中提取特征信息时,可以先按照预定样本采集规则从数据中采集样本数据,并从样本数据中提取特征信息。通过此种方式采集特征信息,可以记录特征信息的样本数据,当特征值为多个时,可以便于准确的确定需要发送的数据。When extracting feature information from data, sample data may be collected from the data according to predetermined sample collection rules, and feature information may be extracted from the sample data. By collecting feature information in this way, sample data of feature information can be recorded, and when there are multiple feature values, it is convenient to accurately determine the data to be sent.

在特征值为多个的情况下,将样本数据与各个特征值对应的原始数据进行匹配;在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至用户设备。该过程为二次匹配过程,可以增加系统的准确性。如果不考虑用户的流量多少,还可以将匹配度排在前两位或者三位的原始数据都发送给用户设备,当然,由于此种情况需要耗费用户设备较多的流量,因此,此种情况需要预先获得用户设备的允许。When there are multiple eigenvalues, match the sample data with the original data corresponding to each eigenvalue; among the obtained multiple matching degrees, send the original data corresponding to the eigenvalue with the highest matching degree to the user equipment. This process is a secondary matching process, which can increase the accuracy of the system. If the user's traffic is not considered, the original data with the top two or three matching degrees can also be sent to the user device. Of course, since this situation requires more traffic on the user device, the Requires prior permission from the user's device.

对于预设的特征值数据库,其构建的过程如下:按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;提取各个分离后的数据的特征值;对特征值和特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成预设的特征值数据库的构建。For the preset eigenvalue database, the construction process is as follows: each data stored locally is separated according to the predetermined separation rules to obtain the separated data; the eigenvalues of each separated data are extracted; the eigenvalues and The identity identification number corresponding to the feature value is hashed, and the processed result is saved to complete the construction of the preset feature value database.

将来自第三方服务器的数据发送至用户设备之后,由于已经下载了来自第三方服务器的数据,因此,可以将该数据保存在本地,并根据将该数据添加到预设的特征值数据库中,以便下次别的用户设备要获取相同的数据时,可以从数据网关进行获取。After the data from the third-party server is sent to the user equipment, since the data from the third-party server has been downloaded, the data can be saved locally and added to the preset feature value database according to the data, so that Next time other user equipments want to acquire the same data, they can acquire it from the data gateway.

本发明第二实施例提供一种数据的发送装置,该装置的结构示意如图2所示,包括:The second embodiment of the present invention provides a data sending device, the structure of which is shown in Figure 2, including:

提取模块10,用于在接收到来自第三方服务器的数据时,从数据中提取特征信息,其中,来自第三方服务器的数据为根据用户设备的请求返回的数据;匹配模块20,与提取模块10耦合,用于判断预设的特征值数据库中是否存在与特征信息的匹配度达到预设匹配度的特征值;第一发送模块30,与匹配模块20耦合,用于在存在匹配度达到预设匹配度的特征值的情况下,将特征值对应的原始数据发送至用户设备;第二发送模块40,与匹配模块20耦合,用于在不存在匹配度达到预设匹配度的特征值的情况下,将来自第三方服务器的数据发送至用户设备。The extraction module 10 is used to extract feature information from the data when receiving data from a third-party server, wherein the data from the third-party server is the data returned according to the request of the user equipment; the matching module 20 and the extraction module 10 Coupling, used to judge whether there is a feature value whose matching degree with the feature information reaches the preset matching degree in the preset feature value database; the first sending module 30 is coupled with the matching module 20, and is used for matching when the matching degree reaches the preset matching degree. In the case of the characteristic value of the matching degree, the original data corresponding to the characteristic value is sent to the user equipment; the second sending module 40 is coupled with the matching module 20, and is used for the case where there is no characteristic value whose matching degree reaches the preset matching degree , to send data from a third-party server to the user's device.

图3示出了上述装置的优选结构示意图,其还可以包括:判断模块50,与提取模块10和第二发送模块40耦合,用于判断数据是否为音频数据和/或视频数据;提取模块10,还用于在数据是音频数据和/或视频数据的情况下,从数据中提取特征信息;第二发送模块40,用于数据不是音频数据和/或或视频数据的情况下,将数据发送发送至用户设备。Fig. 3 has shown the preferred structure schematic diagram of above-mentioned device, and it can also comprise: judging module 50, is coupled with extracting module 10 and second sending module 40, is used for judging whether data is audio data and/or video data; Extracting module 10 , is also used to extract feature information from the data when the data is audio data and/or video data; the second sending module 40 is used to send the data when the data is not audio data and/or video data sent to the user's device.

其中,提取模块10,具体用于按照预定样本采集规则从数据中采集样本数据,并从样本数据中提取特征信息。Wherein, the extraction module 10 is specifically configured to collect sample data from the data according to predetermined sample collection rules, and extract feature information from the sample data.

上述第一发送模块30可以包括:匹配单元,用于在特征值为多个的情况下,将样本数据与各个特征值对应的原始数据进行匹配;发送单元,用于在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至用户设备。The above-mentioned first sending module 30 may include: a matching unit for matching the sample data with the original data corresponding to each feature value when there are multiple feature values; a sending unit for matching the obtained multiple matching degrees In , the raw data corresponding to the feature value with the highest matching degree is sent to the user equipment.

由于上述装置存在预设的特征值数据库,所以,上述装置还可以包括:数据库构建模块,用于按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;提取各个分离后的数据的特征值;对特征值和特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成预设的特征值数据库的构建。Since the above-mentioned device has a preset feature value database, the above-mentioned device may also include: a database building module, which is used to separate each data stored locally according to a predetermined separation rule to obtain separated data; The eigenvalues of the final data; perform hash processing on the eigenvalues and the identification numbers corresponding to the eigenvalues, and save the processed results to complete the construction of the preset eigenvalue database.

本发明第三实施例提供了一种数据网关,该数据网关包括上述第二实施例中的数据的发送装置。本领域技术人员根据上述记载可知,如何将上述数据的发送装置设置在数据网关中,此处不再赘述。The third embodiment of the present invention provides a data gateway, and the data gateway includes the data sending device in the second embodiment above. Those skilled in the art can know how to set the above-mentioned data sending device in the data gateway according to the above-mentioned records, and details will not be repeated here.

本发明第四实施例提供了本发明公开一种数据的发送系统,该数据的发送系统设置在运营商的数据网关中,该系统提升了流量业务的稳定性,又减少了由于数据从第三方服务器上下载而占用的带宽,提升了流量业务的效益水平。The fourth embodiment of the present invention provides a data sending system disclosed in the present invention. The data sending system is set in the data gateway of the operator. The bandwidth occupied by downloading on the server improves the benefit level of traffic services.

本实施例以音频为例进行说明,因此,数据的发送系统包括:This embodiment uses audio as an example for illustration, therefore, the data sending system includes:

音频监听装置,用于监听用户音频数据播放,及采集音频样本数据的特征信息。The audio monitoring device is used to monitor the playing of the user's audio data and collect characteristic information of the audio sample data.

音频处理装置,用于处理音频样本数据和位于数据网关的音频特征数据库的预处理、音频特征数据库的更新。The audio processing device is used for processing the audio sample data and the preprocessing of the audio feature database located in the data gateway, and updating the audio feature database.

音频匹配装置,用于样本数据的特征匹配;Audio matching device, used for feature matching of sample data;

音频筛选装置,用于对匹配结果进行进一步筛选;An audio screening device for further screening the matching results;

音频特征数据库,用于存放本地音频数据的特征值;Audio feature database, used to store feature values of local audio data;

网关内容服务器,用于存放本地音视频数据;Gateway content server, used to store local audio and video data;

其中,音频处理装置与音频监听装置和音频匹配装置相连,音频匹配装置另外与音频筛选装置及音频特征数据库相连,音频筛选装置还需与音频监听装置和音频内容服务器相连。Wherein, the audio processing device is connected with the audio monitoring device and the audio matching device, and the audio matching device is also connected with the audio screening device and the audio feature database, and the audio screening device needs to be connected with the audio monitoring device and the audio content server.

利用本系统进行音频流监控、检索匹配和播放的处理流程包括如下步骤:The processing flow of audio stream monitoring, retrieval matching and playing using this system includes the following steps:

步骤A,当音频监听装置检测到有用户点播音视频内容时,根据预设的采样时长,采集音频样本数据转发给音频处理装置,且须留存该采样的样本数据。Step A, when the audio monitoring device detects that a user orders audio and video content, according to the preset sampling duration, the collected audio sample data is forwarded to the audio processing device, and the sampled sample data must be retained.

步骤B,音频处理装置提取样本数据,转交给音频筛选装置。Step B, the audio processing device extracts the sample data and transfers it to the audio screening device.

步骤C,音频匹配装置将样本数据与音频特征数据库中特征值进行匹配,并返回匹配度前N的结果,交给音频筛选装置做进一步筛选。In step C, the audio matching device matches the sample data with the feature values in the audio feature database, and returns the top N results of the matching degree, and sends them to the audio screening device for further screening.

步骤D,音频筛选装置分析音频匹配装置返回结果,如果匹配度直接满足要求则直接交给网关处理。否则,将音频匹配装置返回的信息和音频监听装置留存的样本数据进行进一步匹配,并将最终结果交给网关处理。Step D, the audio screening device analyzes the result returned by the audio matching device, and if the matching degree directly meets the requirements, it is directly handed over to the gateway for processing. Otherwise, the information returned by the audio matching device is further matched with the sample data retained by the audio monitoring device, and the final result is handed over to the gateway for processing.

步骤E,根据音频筛选装置的返回结果,如果有匹配的音视频内容则直接从网关内容服务器发送数据包,否则,从第三方服务器下载数据发包。Step E, according to the returned result of the audio screening device, if there is matching audio and video content, send the data packet directly from the gateway content server, otherwise, download the data packet from the third-party server.

本发明中音频特征数据库建立包括如下过程:将本地音频数据进行分窗;音频处理装置对分窗数据进行特征值提取;根据提取的特征值和ID进行哈希处理,并保存哈希结果。The establishment of the audio feature database in the present invention includes the following processes: windowing the local audio data; extracting feature values from the windowed data by the audio processing device; performing hash processing according to the extracted feature values and IDs, and saving the hash results.

下面结合图4对上述过程进行举例说明。如图4所示,包括步骤S401至S406:The above process will be illustrated below with reference to FIG. 4 . As shown in Figure 4, including steps S401 to S406:

步骤S401:用户登陆第三方服务器并申请业务,服务器响应并传输数据经过数据网关。Step S401: The user logs in to a third-party server and applies for a service, and the server responds and transmits data through the data gateway.

步骤S402:数据网关监控数据是否是音视频内容。如果是,则执行S403,否则,执行S406。Step S402: the data gateway monitors whether the data is audio or video content. If yes, execute S403, otherwise, execute S406.

步骤S403:数据网关获取3至10秒的音视频数据进行匹配。如果匹配不成功,则执行S404,否则执行S405。Step S403: The data gateway obtains 3 to 10 seconds of audio and video data for matching. If the matching is not successful, execute S404, otherwise execute S405.

步骤S404:继续从第三方服务器下载音视频数据。Step S404: Continue to download audio and video data from the third-party server.

步骤S405:直接将数据网关本地的音视频数据发送至用户端。Step S405: Directly send the local audio and video data of the data gateway to the client.

步骤S406:音视频数据发送到用户端,进行播放。Step S406: The audio and video data are sent to the client for playback.

本实施例数据网关获取音视频样本数据并进行匹配的过程,包括:In this embodiment, the data gateway acquires and matches audio and video sample data, including:

步骤1:数据网关的音频监听装置获取3至10秒第三方服务器发过来的音视频的音频样本数据。Step 1: The audio monitoring device of the data gateway obtains the audio sample data of the audio and video sent by the third-party server for 3 to 10 seconds.

步骤2:音频处理装置提取音频样本数据的特征信息并进行哈希处理。Step 2: The audio processing device extracts feature information of the audio sample data and performs hash processing.

步骤3:对哈希处理后的数据与数据网关本地特征值数据库进行初步的匹配。Step 3: Initially match the hashed data with the local characteristic value database of the data gateway.

步骤4:将初步匹配对应的数据网关本地音频源数据与获取的样本数据进行互相关,筛选出最终的匹配结果。Step 4: Cross-correlate the local audio source data of the data gateway corresponding to the preliminary matching with the acquired sample data, and screen out the final matching result.

与现有技术相比较,本发明实施例系统实施成本低,只需要搭建内容服务器及音频匹配系统运行环境即可;用户点播音频内容时,现在技术方案需要网关先从第三方服务器拉取数据并转发给用户,而本发明所述方法中,如果匹配成功则可直接从网关服务器中读取数据发送给用户,极大的节约了网络运营成本;网关本地发送数据可提高网络的稳定性,降低由于第三方服务器不稳定而损失的网络流量;采用数据分片和哈希算法,在兼顾服务器存储空间的同时极大了增加了内容匹配的精准度。Compared with the existing technology, the implementation cost of the system in the embodiment of the present invention is low, and only the content server and the audio matching system operating environment need to be built; when the user orders audio content, the current technical solution requires the gateway to first pull data from the third-party server and forwarded to the user, and in the method of the present invention, if the matching is successful, the data can be read directly from the gateway server and sent to the user, which greatly saves the network operation cost; the local transmission of data by the gateway can improve the stability of the network and reduce The network traffic lost due to the instability of the third-party server; the use of data fragmentation and hash algorithm greatly increases the accuracy of content matching while taking into account the storage space of the server.

尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.

Claims (11)

1.一种数据的发送方法,其特征在于,包括:1. A method for sending data, comprising: 在接收到来自第三方服务器的数据时,从所述数据中提取特征信息,其中,所述来自第三方服务器的数据为根据用户设备的请求返回的数据;When receiving data from a third-party server, extract feature information from the data, wherein the data from the third-party server is data returned according to a request from the user equipment; 判断预设的特征值数据库中是否存在与所述特征信息的匹配度达到预设匹配度的特征值;judging whether there is a feature value whose matching degree with the feature information reaches a preset matching degree in the preset feature value database; 在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备;If there is a feature value whose matching degree reaches the preset matching degree, sending raw data corresponding to the feature value to the user equipment; 在不存在所述匹配度达到所述预设匹配度的特征值的情况下,将来自所述第三方服务器的数据发送至所述用户设备。If there is no characteristic value at which the matching degree reaches the preset matching degree, the data from the third-party server is sent to the user equipment. 2.如权利要求1所述的数据的发送方法,其特征在于,所述方法还包括:2. The method for sending data according to claim 1, wherein the method further comprises: 判断所述数据是否为音频数据和/或视频数据;judging whether the data is audio data and/or video data; 在所述数据是音频数据和/或视频数据的情况下,从所述数据中提取特征信息;Where the data is audio data and/or video data, extracting feature information from the data; 所述数据不是音频数据和/或或视频数据的情况下,将所述数据发送发送至所述用户设备。In case the data is not audio data and/or video data, sending the data to the user equipment. 3.如权利要求1或2所述的数据的发送方法,其特征在于,从所述数据中提取特征信息,包括:3. The method for sending data according to claim 1 or 2, wherein extracting characteristic information from the data includes: 按照预定样本采集规则从所述数据中采集样本数据,并从所述样本数据中提取所述特征信息。Collecting sample data from the data according to a predetermined sample collection rule, and extracting the feature information from the sample data. 4.如权利要求3所述的数据的发送方法,其特征在于,在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备,包括:4. The method for sending data according to claim 3, wherein, in the case that there is a feature value whose matching degree reaches the preset matching degree, the original data corresponding to the feature value is sent to the user equipment, including: 在所述特征值为多个的情况下,将所述样本数据与各个特征值对应的原始数据进行匹配;In the case of multiple eigenvalues, matching the sample data with original data corresponding to each eigenvalue; 在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至所述用户设备。Among the obtained multiple matching degrees, the original data corresponding to the feature value with the largest matching degree is sent to the user equipment. 5.如权利要求1所述的数据的发送方法,其特征在于,所述预设的特征值数据库的构建过程如下:5. The sending method of data as claimed in claim 1, is characterized in that, the construction process of described preset characteristic value database is as follows: 按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;Separate each data stored locally according to predetermined separation rules to obtain separated data; 提取各个所述分离后的数据的特征值;extracting feature values of each of the separated data; 对所述特征值和所述特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成所述预设的特征值数据库的构建。Perform hash processing on the feature value and the identification number corresponding to the feature value, and save the processed result to complete the construction of the preset feature value database. 6.一种数据的发送装置,其特征在于,包括:6. A data sending device, characterized in that, comprising: 提取模块,用于在接收到来自第三方服务器的数据时,从所述数据中提取特征信息,其中,所述来自第三方服务器的数据为根据用户设备的请求返回的数据;An extraction module, configured to extract feature information from the data when receiving data from a third-party server, wherein the data from the third-party server is data returned according to a request from the user equipment; 匹配模块,用于判断预设的特征值数据库中是否存在与所述特征信息的匹配度达到预设匹配度的特征值;A matching module, configured to determine whether there is a feature value whose matching degree with the feature information reaches a preset matching degree in the preset feature value database; 第一发送模块,用于在存在所述匹配度达到所述预设匹配度的特征值的情况下,将所述特征值对应的原始数据发送至所述用户设备;A first sending module, configured to send raw data corresponding to the feature value to the user equipment if there is a feature value whose matching degree reaches the preset matching degree; 第二发送模块,用于在不存在所述匹配度达到所述预设匹配度的特征值的情况下,将来自所述第三方服务器的数据发送至所述用户设备。The second sending module is configured to send the data from the third-party server to the user equipment when there is no characteristic value of the matching degree reaching the preset matching degree. 7.如权利要求6所述的数据的发送装置,其特征在于,还包括:7. The device for sending data according to claim 6, further comprising: 判断模块,用于判断所述数据是否为音频数据和/或视频数据;A judging module, configured to judge whether the data is audio data and/or video data; 所述提取模块,还用于在所述数据是音频数据和/或视频数据的情况下,从所述数据中提取特征信息;The extraction module is further configured to extract feature information from the data when the data is audio data and/or video data; 所述第二发送模块,用于所述数据不是音频数据和/或或视频数据的情况下,将所述数据发送发送至所述用户设备。The second sending module is configured to send the data to the user equipment when the data is not audio data and/or video data. 8.如权利要求6或7所述的数据的发送装置,其特征在于,8. The sending device of the data as claimed in claim 6 or 7, is characterized in that, 所述提取模块,具体用于按照预定样本采集规则从所述数据中采集样本数据,并从所述样本数据中提取所述特征信息。The extraction module is specifically configured to collect sample data from the data according to predetermined sample collection rules, and extract the characteristic information from the sample data. 9.如权利要求8所述的数据的发送装置,其特征在于,所述第一发送模块包括:9. The device for sending data according to claim 8, wherein the first sending module comprises: 匹配单元,用于在所述特征值为多个的情况下,将所述样本数据与各个特征值对应的原始数据进行匹配;a matching unit, configured to match the sample data with the original data corresponding to each feature value when the feature value is multiple; 发送单元,用于在得到的多个匹配度中,将匹配度最大的特征值对应的原始数据发送至所述用户设备。The sending unit is configured to, among the obtained multiple matching degrees, send the original data corresponding to the feature value with the largest matching degree to the user equipment. 10.如权利要求6所述的数据的发送装置,其特征在于,还包括:10. The device for sending data according to claim 6, further comprising: 数据库构建模块,用于按照预定分离规则将本地存储的每个数据均进行分离,以得到分离后的数据;提取各个所述分离后的数据的特征值;对所述特征值和所述特征值对应的身份标识号进行哈希处理,并将处理后的结果进行保存,以完成所述预设的特征值数据库的构建。The database construction module is used to separate each data stored locally according to a predetermined separation rule to obtain separated data; extract each feature value of the separated data; compare the feature value and the feature value The corresponding identification number is hashed, and the processed result is saved to complete the construction of the preset feature value database. 11.一种数据网关,其特征在于,包括:权利要求6至10中任一项所述的数据的发送装置。11. A data gateway, characterized by comprising: the data sending device according to any one of claims 6 to 10.
CN201710064240.1A 2017-02-04 2017-02-04 A kind of sending method of data, device and data gateway Pending CN108400996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710064240.1A CN108400996A (en) 2017-02-04 2017-02-04 A kind of sending method of data, device and data gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710064240.1A CN108400996A (en) 2017-02-04 2017-02-04 A kind of sending method of data, device and data gateway

Publications (1)

Publication Number Publication Date
CN108400996A true CN108400996A (en) 2018-08-14

Family

ID=63093434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710064240.1A Pending CN108400996A (en) 2017-02-04 2017-02-04 A kind of sending method of data, device and data gateway

Country Status (1)

Country Link
CN (1) CN108400996A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491393A (en) * 2013-09-23 2014-01-01 华为技术有限公司 Video service processing method and device
CN103546829A (en) * 2013-10-23 2014-01-29 华为技术有限公司 Method and device for processing video service
CN104317823A (en) * 2014-09-30 2015-01-28 北京合力思腾科技股份有限公司 Method for carrying out data detection by utilizing data fingerprints
US20160248527A1 (en) * 2015-02-13 2016-08-25 Institute For Information Industry Distributed multimedia recongization system, method, and server platform thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491393A (en) * 2013-09-23 2014-01-01 华为技术有限公司 Video service processing method and device
CN103546829A (en) * 2013-10-23 2014-01-29 华为技术有限公司 Method and device for processing video service
CN104317823A (en) * 2014-09-30 2015-01-28 北京合力思腾科技股份有限公司 Method for carrying out data detection by utilizing data fingerprints
US20160248527A1 (en) * 2015-02-13 2016-08-25 Institute For Information Industry Distributed multimedia recongization system, method, and server platform thereof

Similar Documents

Publication Publication Date Title
CN103970793B (en) Information query method, client and server
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN104715752B (en) Audio recognition method, apparatus and system
US9197523B2 (en) Systems and methods for extracting media from network traffic having unknown protocols
US20180159928A1 (en) Network-Based File Cloud Synchronization Method
CN108156038B (en) Request distribution method, device, access gateway and storage medium
EP3541094B1 (en) Smart speakers with cloud equalizer
CN104093038B (en) For test and method for supervising and the device of real time flow medium identification service
CN106713351B (en) Secure communication method and device based on serial server
CN102693297A (en) Data processing method, node and ETL (extract transform and load) system
CN105868590A (en) Method and device for processing handwriting data
CN111222547B (en) A mobile application-oriented traffic feature extraction method and system
CN107872713A (en) Short video processing system, method and device
CN112838933A (en) Information synchronization method, equipment and storage medium in network traffic analysis
CN106534220A (en) Bidirectional transmission method and device of streaming data
CN114925249A (en) Video transmission fingerprint fast generation method facing self-adaptive streaming media
CN108400996A (en) A kind of sending method of data, device and data gateway
CN112115135A (en) Database upgrading method, database processing method, database transmission method and device
CN105872742A (en) Network video downloading method and user terminal device
KR20130007246A (en) System and method for managing signaling traffic
US9323857B2 (en) System and method for providing content-related information based on digital watermark and fingerprint
CN106611059A (en) Method and device for recommending multi-media files
CN104902016A (en) Method, terminal and system for data interaction
WO2014201789A1 (en) Service processing method, apparatus and system
CN105187867A (en) Media stream control method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180814