Summary of the invention
The embodiment of the invention provides a kind of data transmission method, device, system and network node, thereby effectively reduces the load of uploading of WLAN (wireless local area network) in the P2P transfer of data, has saved the bandwidth of WLAN (wireless local area network).
The embodiment of the invention provides a kind of data transmission method, comprising:
Receive the WLAN (wireless local area network) external node to the request of data information that the WLAN (wireless local area network) internal node sends, carry the metamessage of the data that the WLAN (wireless local area network) external node asked in the described request of data information;
The metamessage of the data of being asked according to described WLAN (wireless local area network) external node is searched the data whether data that are stored in advance in the WLAN (wireless local area network) storage area outside comprise that described WLAN (wireless local area network) external node is asked;
When the data in being stored in described WLAN (wireless local area network) storage area outside in advance comprise the data that described WLAN (wireless local area network) external node asked, the described data of asking that find out are sent to described WLAN (wireless local area network) external node.
The embodiment of the invention provides a kind of data transmission device, comprises memory module, receiver module, processing module and sending module;
Described memory module is used to store the data that the WLAN (wireless local area network) internal node obtained from the WLAN (wireless local area network) external node;
Described receiver module is used to receive the WLAN (wireless local area network) external node to the request of data information that the WLAN (wireless local area network) internal node sends, and carries the metamessage of the data that the WLAN (wireless local area network) external node asked in the described request of data information;
Described processing module, the metamessage that is used for the data of being asked according to described WLAN (wireless local area network) external node is searched the data that are stored in described memory module and whether is comprised the data that the WLAN (wireless local area network) external node is asked;
Described sending module, the data of being asked that are used for will finding out when the data that are stored in described memory module comprise the data that the WLAN (wireless local area network) external node asked send to described WLAN (wireless local area network) external node.
The embodiment of the invention provides a kind of network node, comprises above-mentioned data transmission device.
The embodiment of the invention provides a kind of data transmission system, comprises WLAN (wireless local area network) external node and WLAN (wireless local area network) internal node, it is characterized in that, also comprises:
Network node, be connected with the WLAN (wireless local area network) internal node with described WLAN (wireless local area network) external node, be used to receive the WLAN (wireless local area network) external node to the request of data information that the WLAN (wireless local area network) internal node sends, carry the metamessage of the data that the WLAN (wireless local area network) external node asked in the described request of data information; The metamessage of the data of being asked according to described WLAN (wireless local area network) external node is searched the data whether data that are stored in advance in the WLAN (wireless local area network) storage area outside comprise that described WLAN (wireless local area network) external node is asked; When the data in being stored in described WLAN (wireless local area network) storage area outside in advance comprise the data that described WLAN (wireless local area network) external node asked, the described data of asking that find out are sent to described WLAN (wireless local area network) external node.
In the technical scheme of the embodiment of the invention, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly find out the data of request and send to the WLAN (wireless local area network) external node from data transmission device, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network).
Embodiment
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
The flow chart of a kind of data transmission method that Fig. 1 provides for the embodiment of the invention one, as shown in Figure 1, this method comprises:
Step 101, receive the WLAN (wireless local area network) external node, carry the metamessage of the data that the WLAN (wireless local area network) internal node asked in this request of data information to the request of data information that the WLAN (wireless local area network) internal node sends;
Metamessage is the information of expression data characteristics.Present embodiment carries out transfer of data for adopting the P2P technology, the transmission data can be divided into multiple segment data, the data that the WLAN (wireless local area network) external node is asked can be the one piece of data of transmission in the data, so can comprise the identification information of the transmission data under the data of being asked and the positional information of data in affiliated transmission data of being asked in the metamessage of the WLAN (wireless local area network) external node data of being asked.
The metamessage of step 102, the data of being asked according to the WLAN (wireless local area network) external node is searched the data whether data that are stored in advance in this WLAN (wireless local area network) storage area outside comprise that this WLAN (wireless local area network) external node is asked;
Be stored in the data that the data in the WLAN (wireless local area network) storage area outside can be obtained from the WLAN (wireless local area network) external node for the WLAN (wireless local area network) internal node of storage in advance in advance, in other words, can store the total data that the WLAN (wireless local area network) internal node is obtained from the WLAN (wireless local area network) external node in the WLAN (wireless local area network) storage area outside.Wherein, this memory block can be buffer area.
When step 103, the data in being stored in the WLAN (wireless local area network) storage area outside in advance comprise the data that the WLAN (wireless local area network) external node asked, the data of being asked that find out are sent to this WLAN (wireless local area network) external node;
Because of storing the data that the WLAN (wireless local area network) internal node once obtained in the WLAN (wireless local area network) storage area outside, so the data that can directly the WLAN (wireless local area network) external node that finds out from the WLAN (wireless local area network) storage area outside be asked send to the WLAN (wireless local area network) external node, need not the WLAN (wireless local area network) internal node and upload data.
In the technical scheme of present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly find out the data of WLAN (wireless local area network) external node request and send to the WLAN (wireless local area network) external node from the WLAN (wireless local area network) storage area outside, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network).
The flow chart of a kind of data transmission method that Fig. 2 provides for the embodiment of the invention two, as shown in Figure 2, this method comprises:
The data that step 201, reception WLAN (wireless local area network) internal node obtain from the WLAN (wireless local area network) external node;
Each step in the present embodiment can be carried out by the data transmission device that is positioned at the WLAN (wireless local area network) outside.In carrying out the P2P transfer of data, when WLAN (wireless local area network) inside did not store the needed data of internal node, the WLAN (wireless local area network) internal node need promptly obtain data from the WLAN (wireless local area network) external node to WLAN (wireless local area network) external node request msg.Data transmission device receives the request of data information that the WLAN (wireless local area network) internal node sends to the WLAN (wireless local area network) external node in the present embodiment, this request of data information is sent to the WLAN (wireless local area network) external node, and receive the data that WLAN (wireless local area network) internal node that the WLAN (wireless local area network) external node returns is asked.
Step 202, storage that the WLAN (wireless local area network) internal node that receives is obtained from the WLAN (wireless local area network) external node are this WLAN (wireless local area network) storage area outside;
In the present embodiment, can according to the identification information in the metamessage of the data of obtaining and positional information with the storage obtained in the WLAN (wireless local area network) storage area outside.Particularly, according to whether storing the related data that possesses this identification information in the identification information judgment WLAN (wireless local area network) storage area outside in the metamessage of the data of obtaining; When storing the related data that possesses this identification information in the WLAN (wireless local area network) storage area outside, memory space has been described in the WLAN (wireless local area network) storage area outside to the transmission data allocations under these data of obtaining, and other data that stored these transmission data in the memory space that distributes promptly have the related data of this identification information, then can be according to the positional information in the metamessage of the data of obtaining with the storage the obtained memory location corresponding in the memory space at related data place with positional information, the memory location of each data in memory space of wherein transmitting in the data is to determine according to the positional information of these data; When storage does not possess the related data of this identification information in the WLAN (wireless local area network) storage area outside, illustrate in the WLAN (wireless local area network) storage area outside not to the transmission data allocations memory space under these data of obtaining, can be the data allocations memory space that obtains then according to identification information, and according to the positional information in the metamessage of the data of obtaining with the storage the obtained memory location corresponding in the memory space that distributes with this positional information, wherein the memory space of Fen Peiing is the memory space of the affiliated transmission data of the data obtained.
Further, data transmission device also sends to the WLAN (wireless local area network) internal node with the data that the WLAN (wireless local area network) internal node that receives obtains from the WLAN (wireless local area network) external node.Thereby make the WLAN (wireless local area network) internal node finish normal data download process.
The above-mentioned data in advance that for data transmission device the WLAN (wireless local area network) internal node is obtained from the WLAN (wireless local area network) external node by step 201 and step 202 is stored in the process the WLAN (wireless local area network) storage area outside.This process does not influence the normal data download process of WLAN (wireless local area network) internal node.Whenever the WLAN (wireless local area network) internal node when the WLAN (wireless local area network) external node obtains data, all can repeat above-mentioned steps 201 and step 202.Therefore, can store all data that this WLAN (wireless local area network) internal node obtains in advance in the WLAN (wireless local area network) storage area outside.
Step 203, receive the WLAN (wireless local area network) external node, carry the metamessage of the data that the WLAN (wireless local area network) internal node asked in this request of data information to the request of data information that this WLAN (wireless local area network) internal node sends;
In fact data transmission device has shielded the request of data information of WLAN (wireless local area network) external node in the present embodiment to the WLAN (wireless local area network) internal node.
The metamessage of step 204, the data of being asked according to the WLAN (wireless local area network) external node is searched the data whether data that are stored in advance in this WLAN (wireless local area network) storage area outside comprise that this WLAN (wireless local area network) external node is asked, if execution in step 205 then, if otherwise execution in step 206;
Step 205, the data that the WLAN (wireless local area network) external node that finds out is asked send to this WLAN (wireless local area network) external node, process ends;
Step 206, the request of data information that the WLAN (wireless local area network) external node is sent send to this WLAN (wireless local area network) internal node;
Usually the data obtained of WLAN (wireless local area network) internal node all have storage in the WLAN (wireless local area network) storage area outside, but are provided with hour when the space of WLAN (wireless local area network) storage area outside, the situation that the data of new storage are replaced legacy data can occur.Therefore, when the data of obtaining when the WLAN (wireless local area network) external node were the legacy data that is replaced, data transmission device can send to request of data information the WLAN (wireless local area network) internal node, uploads data by the WLAN (wireless local area network) internal node to the WLAN (wireless local area network) external node.
In the technical scheme of present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly find out the data of WLAN (wireless local area network) external node request and send to the WLAN (wireless local area network) external node from the WLAN (wireless local area network) storage area outside, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network).
P2P net cast in the P2P data transmission technology is stable, abundant in content and play characteristics such as smoothness and become the first-selection that users watch net cast by network with it, and the P2P net cast requires high to real-time and needs stable bandwidth.What produce in P2P net cast process uploads the bandwidth that the load meeting takies WLAN (wireless local area network) in a large number, user's data download is restricted, thereby had a strong impact on the quality of P2P net cast, and the P2P number of users that a WLAN (wireless local area network) is supported is restricted.At the problems referred to above, the embodiment of the invention three provides a kind of data transmission method, and present embodiment is that example is described in detail data transmission method with the P2P net cast, and each step can be carried out by the data transmission device that is positioned at the WLAN (wireless local area network) outside.In the present embodiment, data are example with the video data, and the transmission data are example with the video frequency program.The flow chart of a kind of data transmission method that Fig. 3 provides for the embodiment of the invention three, as shown in Figure 3, this method comprises:
Step 301, receive the video data that the WLAN (wireless local area network) internal node obtains from the WLAN (wireless local area network) external node, carry the metamessage of this video data in the video data;
In P2P net cast process, each video frequency program can be divided into the multistage video data, every section video data all carries the metamessage of this video data, and the metamessage of every section video data comprises the identification information and the positional information of this video data in described video frequency program of the affiliated video frequency program of this video data.Wherein, identification information represents which section video frequency program this video data belongs to, and positional information can also be called playing sequence information.
Step 302, according to whether storing the associated video data that possess this identification information in the identification information judgment WLAN (wireless local area network) storage area outside in the metamessage of the video data that obtains, if execution in step 303 then, if otherwise execution in step 304;
Particularly, when in judging the WLAN (wireless local area network) storage area outside, storing the associated video data that possess this identification information, illustrate in the WLAN (wireless local area network) storage area outside to the video frequency program under this video data that obtains has distributed memory space, and other video data that has stored this video frequency program in the memory space that distributes promptly has the associated video data of this identification information; When storage does not possess the associated video data of this identification information in the WLAN (wireless local area network) storage area outside, illustrate in the WLAN (wireless local area network) storage area outside not to the video frequency program memory allocated space under this video data that obtains.
Step 303, according to the positional information in the metamessage of the video data that obtains the video data that obtains is stored in the memory space at associated video data place and positional information corresponding stored position, and execution in step 305;
Wherein, the memory location of each video data in memory space is to determine according to the positional information of these data.
Step 304, be the video data memory allocated space that obtains according to identification information, and the video data that obtains is stored into memory location corresponding in the memory space of distribution, and execution in step 305 with this positional information according to the positional information in the metamessage of the video data that obtains;
Wherein, the memory space of distribution is the memory space of the video frequency program under the video data that obtains.
Above-mentioned steps 301 stores the process of WLAN (wireless local area network) storage area outside in advance into for the video data that the WLAN (wireless local area network) internal node is obtained from the WLAN (wireless local area network) external node to step 304.
Step 305, the video data that the WLAN (wireless local area network) internal node that receives is obtained from the WLAN (wireless local area network) external node send to the WLAN (wireless local area network) internal node;
Step 306, receive the WLAN (wireless local area network) external node, carry the metamessage of the video data that the WLAN (wireless local area network) internal node asked in this request of data information to the request of data information that this WLAN (wireless local area network) internal node sends;
In fact data transmission device has shielded the request of data information of WLAN (wireless local area network) external node in the present embodiment to the WLAN (wireless local area network) internal node.
The metamessage of step 307, the video data of being asked according to the WLAN (wireless local area network) external node is searched the video data whether video data that is stored in advance in this WLAN (wireless local area network) storage area outside comprises that this WLAN (wireless local area network) external node is asked, if execution in step 308 then, if otherwise execution in step 309;
Step 308, the video data that the WLAN (wireless local area network) external node that finds out is asked send to this WLAN (wireless local area network) external node;
Step 309, the request of data information that the WLAN (wireless local area network) external node is sent send to this WLAN (wireless local area network) internal node; By the WLAN (wireless local area network) internal node to WLAN (wireless local area network) external node uploaded videos data.
In the technical scheme of present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly find out the video data of WLAN (wireless local area network) external node request and send to the WLAN (wireless local area network) external node from the WLAN (wireless local area network) storage area outside, need not WLAN (wireless local area network) internal node uploaded videos data, effectively reduce the load of uploading of P2P net cast in the WLAN (wireless local area network), save the bandwidth of WLAN (wireless local area network), thereby improved the quality of P2P net cast and the number of users of the P2P net cast that WLAN (wireless local area network) is supported.
The structural representation of a kind of data transmission device that Fig. 4 provides for the embodiment of the invention four as shown in Figure 4, comprises receiver module 11, processing module 12, sending module 13 and memory module 14.Wherein, receiver module 11 is connected with processing module 12, and processing module 12 is connected with memory module 14 with sending module 13 respectively.
The data that memory module 14 storage WLAN (wireless local area network) internal nodes obtained from the WLAN (wireless local area network) external node; Receiver module 11 receives the WLAN (wireless local area network) external nodes to the request of data information that this WLAN (wireless local area network) internal node sends, and carries the metamessage of the data that the WLAN (wireless local area network) internal node asked in this request of data information; The metamessage of the data that processing module 12 is asked according to the WLAN (wireless local area network) external node is searched the data that are stored in the memory module 14 and whether is comprised the data that the WLAN (wireless local area network) external node is asked; The data of being asked that sending module 13 will find out when processing module 12 finds out the data that the data that are stored in the memory module 14 comprise that the WLAN (wireless local area network) external node asked send to the WLAN (wireless local area network) external node.
Further, when WLAN (wireless local area network) internal node during to WLAN (wireless local area network) external node request msg, receiver module 11 also can receive the data that the WLAN (wireless local area network) internal node obtains from the WLAN (wireless local area network) external node.Wherein, receiver module 11 can obtain the WLAN (wireless local area network) internal node that receives from the WLAN (wireless local area network) external node data are exported to sending module 13, will be somebody's turn to do the data of obtaining from the WLAN (wireless local area network) external node by sending module 13 and send to the WLAN (wireless local area network) internal node.
Further, receiver module 11 can also be exported to memory module 14 with the data that the WLAN (wireless local area network) internal node obtains from the WLAN (wireless local area network) external node.Store the data that the wireless local internal nodes obtain from the WLAN (wireless local area network) external node by memory module 14.
Further, the device in the present embodiment also comprises the judge module 15 that is connected with memory module 14 with receiver module 11.Receiver module 11 is exported to judge module 15 with the data that the WLAN (wireless local area network) internal node that receives obtains from the WLAN (wireless local area network) external node.Judge module 15 is according to whether storing the related data that possesses this identification information in the identification information judgment memory module 14 in the metamessage of the data of obtaining; Memory module 14 comprises first sub module stored 141 and second sub module stored 142.First sub module stored 141 is judged when storing the related data that possesses this identification information when judge module 15, according to the positional information in the metamessage of the data of obtaining with the storage the obtained memory location corresponding in the memory space at related data place with described positional information; Second sub module stored 142 is when judge module 15 is judged storage and do not possessed the related data of this identification information, according to identification information is the data allocations memory space that obtains, and according to the positional information in the metamessage of the data of obtaining with the storage the obtained memory location corresponding in the memory space that distributes with positional information.
In the present embodiment, when memory module 14 comprised first sub module stored 141 and second sub module stored 142, then the metamessage of the data that can be asked according to the WLAN (wireless local area network) external node of processing module 12 searched in the data of first sub module stored 141 or 142 storages of second sub module stored whether comprise the data that the WLAN (wireless local area network) external node is asked.
Data transmission device in the present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly from memory module, find out the data of WLAN (wireless local area network) external node request and send to the WLAN (wireless local area network) external node, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network).Especially, when the data transmission device in the present embodiment is applied to the P2P net cast, can improve the quality of P2P net cast and the number of users of the P2P net cast that WLAN (wireless local area network) is supported.
The structural representation of a kind of network node that Fig. 5 provides for the embodiment of the invention five, as shown in Figure 5, network node 1 comprises data transmission device, this data transmission device specifically can repeat no more referring to the description among the embodiment four herein.Network node in the present embodiment is positioned at the WLAN (wireless local area network) outside.Network node in the present embodiment can be wireless access points (Access Point, be called for short: AP), the network node of wireless router, cable network node or other function, in other words, the data transmission device in the present embodiment can be deployed on the network node of wireless access points, wireless router, cable network node or other function.Wherein, be arranged in cable network node, better performances when data transmission device.Data transmission device in the present embodiment is lower to the requirement of the data-handling capacity of its carrier and storage capacity, so data transmission device can be applied in the various networks of different type nodes.
Network node in the present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly from data transmission device, find out the data of request and send to the WLAN (wireless local area network) external node, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network); Especially, when the network node applies in the present embodiment during, can improve the quality of P2P net cast and the number of users of the P2P net cast that WLAN (wireless local area network) is supported in the P2P net cast.
The structural representation of a kind of data transmission system that Fig. 6 provides for the embodiment of the invention six, as shown in Figure 6, this system comprises WLAN (wireless local area network) internal node 2, WLAN (wireless local area network) external node 3 and network node 1, and network node 1 is connected with WLAN (wireless local area network) external node 3 with WLAN (wireless local area network) internal node 2 respectively.Network node 1 is used to receive WLAN (wireless local area network) external node 3 to the request of data information that WLAN (wireless local area network) internal node 2 sends, and carries the metamessage of the data that WLAN (wireless local area network) external node 3 asked in this request of data information; The metamessage of the data of being asked according to WLAN (wireless local area network) external node 3 is searched the data that are stored in advance in the WLAN (wireless local area network) storage area outside and whether is comprised the data that WLAN (wireless local area network) external node 3 is asked; When the data in being stored in the WLAN (wireless local area network) storage area outside in advance comprise the data that WLAN (wireless local area network) external node 3 asked, the data of being asked that find out are sent to WLAN (wireless local area network) external node 3.Description to network node 1, WLAN (wireless local area network) internal node 2 and WLAN (wireless local area network) external node 3 can repeat no more referring to embodiment five herein.Wherein, WLAN (wireless local area network) internal node 2 and WLAN (wireless local area network) external node 3 all can be for a plurality of, only and a plurality of WLAN (wireless local area network) internal node 2 can be the node in the WLAN (wireless local area network) as example with one among Fig. 6, also can be the node in a plurality of different WLAN (wireless local area network).In other words, the network node in the present embodiment 1 can be supported a plurality of WLAN (wireless local area network).
Network node in the data transmission system in the present embodiment, when receiving the request of data of WLAN (wireless local area network) external node transmission, can directly from data transmission device, find out the data of request and send to the WLAN (wireless local area network) external node, need not the WLAN (wireless local area network) internal node and upload data, thereby effectively reduce the load of uploading of P2P transfer of data in the WLAN (wireless local area network), saved the bandwidth of WLAN (wireless local area network); Especially, when the data transmission system in the present embodiment is applied to the P2P net cast, can improve the quality of P2P net cast and the number of users of the P2P net cast that WLAN (wireless local area network) is supported.
In the actual test of P2P net cast, after having used the device of uploading load, system or the network node in the invention, each P2P video user can reduce 50% to the consumption of WLAN (wireless local area network) bandwidth, saved the bandwidth of WLAN (wireless local area network), and the maximum P2P video user quantity that WLAN (wireless local area network) can be supported can be increased to 9 from 5, has improved the number of users that WLAN (wireless local area network) is supported the P2P net cast.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.