Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment that obtains, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of data transmission method, and as shown in Figure 1, described method comprises:
101, the access hotspot device is obtained the request of data that terminal equipment is initiated.
What deserves to be explained is, access hotspot device in the present embodiment can be AP (Access Point, the access point) equipment in mobile communications network, also can possess other network element devices of AP function, such as: wireless router, radio network gateway etc., do not do restriction herein.
102, described access hotspot device is selected the highest communication network of current transmission rate from least two available communication networks, as the specified network of described request of data.
For the ease of understanding, the present embodiment describes as an example of AP equipment example; Above-mentioned " available communication network " refers to that AP supports this network of network standard and possess authority to use this network to carry out the communication network of transfer of data, include but not limited to: GPRS (General Packet Radio Service, general packet radio service) network, 3G network, 4G (4th-Generation, the 4th third-generation mobile communication technology) network, WIFI network, WAP network and cable network etc.; The present embodiment is applicable to exist at least the scene of two available communication networks.
Concrete, AP can pass through the network state of inquiry self to determine current available communication network, and for example, AP can determine whether 3G network is available communication network by inquiry 3G radio open message; It is available communication network that real time scan result by WIFI determines whether to exist the WIFI network.
103, described access hotspot device is set up data transmission link in described specified network.
104, described access hotspot device is sent to server to obtain data by described data transmission link with described request of data.
In the present embodiment, when the access hotspot device is obtained the request of data of subscriber terminal equipment initiation, can select the specified network of the highest communication network of current transmission rate as this request of data from a plurality of available communication networks, so in the present embodiment in the situation that guarantee that transmission rate can take full advantage of the bandwidth resources of a plurality of available communication networks, make subscriber terminal equipment can with transmission bandwidth be the bandwidth sum of described a plurality of available communication network.
The data transmission method that the embodiment of the present invention provides, terminal equipment can by AP equipment can with a plurality of communication networks carry out transfer of data.The method that adopts the embodiment of the present invention to provide, the bandwidth sum of a plurality of communication networks that but the online bandwidth of terminal equipment is AP equipment to be used, compared with prior art, can effectively improve the online bandwidth of subscriber terminal equipment, can also with the transfer of data demand assignment received to the high communication network of transmission rate, make the user obtain the experience of surfing the Net preferably.
Embodiment 2
The embodiment of the present invention provides a kind of data transmission method, and as shown in Figure 2, described method comprises:
201, AP equipment Inspection and definite current available communication network, described available communication network is at least two.
What deserves to be explained is, the AP equipment in the present embodiment also can replace with the network element device of the concrete AP function such as wireless router, radio network gateway, does not do restriction herein.Concrete, above-mentioned " available communication network " refers to that AP supports this network of network standard and possess authority to use this network to carry out the communication network of transfer of data, and this communication network includes but not limited to: GPRS network, 3G network, 4G network, WIFI network, WAP network and cable network etc.Wherein, 3G, 4G network comprise multiple standards, for example, 3G network comprises: CDMA2000 (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), 4 kinds of standards of WiMAX (Worldwide Interoperability for Microwave Access, worldwide interoperability for microwave access).
The communication network of above-mentioned different systems when the transmission that realizes business datum all based on ICP/IP protocol (Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection agreement), AP equipment is the communication network of compatible above-mentioned different systems simultaneously, thereby can carry out simultaneously transfer of data by a plurality of communication networks of above-mentioned different systems.
For the ease of understanding, the typical scene of the present embodiment take the current available communication network of AP equipment as 3G network and WIFI network is specifically described as example.What deserves to be explained is, in actual applications, AP equipment can with communication network be not limited in two.
202, AP equipment obtains the request of data that TE (Terminal Equipment, terminal equipment) initiates.
What deserves to be explained is, AP equipment can obtain the request of data that TE initiates by following at least 2 kinds of modes: 1) AP equipment receives service request from TE, and this service request is split as at least 2 data requests.
For example: AP equipment receives the web page browsing request that TE initiates, this web page browsing request comprises video data, voice data and text data, and AP equipment can be divided into this web page browsing request 3 data requests: i.e. video data request, voice data request and text data requests.
2) AP equipment receives from TE the request of data that this TE sends, and namely AP equipment directly obtains request of data from TE.
TE in the embodiment of the present invention is the terminal that possesses radio communication function, for example: PC (Personal Computer, personal computer), notebook computer, smart mobile phone, panel computer etc.
203, the transmission rate of the current 3G network of AP equipment Inspection and WIFI network, determine the communication network that transmission rate is the highest, the specified network of the request of data that this communication network is obtained as AP.
For example: AP equipment can be by send ping message (the perhaps service message of other types) to the webserver, determines transmission rate according to the time interval of returning to response message.
What deserves to be explained is, the transmission rate of communication network depends on idle bandwidth, and in 3G network, the bandwidth of data transmission link depends on the bandwidth of the 3G network that operator provides, and the bandwidth of WIFI data transmission in network link depends on the bandwidth that the WIFI focus provides.In actual applications, TE (for example: in browsing page tends to initiate a plurality of parallel service request or request of data, TE can initiate the file download request with download file), also can stop certain business in current a plurality of business of moving, so the idle bandwidth of 3G network and WIFI network is real-time change.In order to guarantee transmission rate, AP equipment after obtaining the request of data that TE initiates, can be selected current idle bandwidth is maximum, transmission rate the is the highest communication network specified network as this request of data.
For example, the bandwidth that provides take 3G network is as 2M, and the bandwidth that the WIFI focus provides is that 4M is example: when TE initiated the video data request, if 3G network and WIFI network all are in idle condition, AP equipment can be realized this video data request by the WIFI network; (this moment, the idle bandwidth of WIFI network was 3M if the realization of this video data request has taken the bandwidth of WIFI network 1M, the idle bandwidth of 3G network is 2M), AP equipment when obtaining the next request of data of TE initiation, can be selected the specified network of WIFI network as next request of data so.
Concrete,, for network configuration assignment information clear, description the present embodiment of completing, next take AP equipment, obtain TE and initiate successively web page browsing request, video playback request and file download request and describe as example:
For the ease of understanding, the bandwidth of supposing 3G network herein is 2M, and the bandwidth of WIFI network is 4M; Realize that the bandwidth that web page browsing request, video playback request and file download request take is followed successively by 1M, 2M, 2M; The distribution condition of communication network is as follows:
1. AP receives the web page browsing request that TE initiates, and the idle bandwidth that current 3G network detected is 2M, and the idle bandwidth of WIFI network is 4M, selects the WIFI network to realize this web page browsing request;
2. AP receives the video playback request that TE initiates, and the idle bandwidth that current 3G network detected is 2M, and the idle bandwidth of WIFI network is 3M, selects the WIFI network to realize this video playback request;
3. AP receives the file download request that TE initiates, and the idle bandwidth that current 3G network detected is 2M, and the idle bandwidth of WIFI network is 1M, selects 3G network to realize this document download request.
The network structure that distributes according to said method as shown in Figure 3.
Further, preferably, when AP equipment receives the web page browsing request of TE initiation, AP equipment can be divided into this web page browsing request 3 data requests: i.e. video data request, voice data request and text data requests, and be followed successively by and split 3 data requests obtaining and distribute the specified network of the highest network of transmission rates as this request of data, thereby can take full advantage of the bandwidth resources of a plurality of communication networks, make TE obtain higher message transmission rate.
204, AP equipment is set up data transmission link for each request of data in described specified network, and is recorded as the link connection information that each request of data is set up, and is included as the sign of the communication network of this request of data distribution in described link connection information.
Wherein, link connection information can characterize the network information that current AP equipment distributes for each request of data, is used for each request of data of guiding and obtains business datum.
What deserves to be explained is, if different request of data is to be initiated by different application programs, in TE, different application programs links and adopts different ports and be connected the connection handshake request from outer net, also records port numbers corresponding to each request of data in link connection information.
205, AP equipment is sent to server to obtain data by the data transmission link of setting up for each request of data with request of data.
That is to say, the method that adopts the present embodiment to provide, TE is when carrying out business of networking, and the online bandwidth of TE is the bandwidth sum of whole communication networks of supporting of AP equipment, and networking speed can be significantly improved, and effectively improves the user and experiences.
When the data transmission link that when AP equipment, is 206, a certain request of data foundation need to disconnect, AP was broken as the data transmission link that this request of data is set up, and discharges the load of link, and deletion is about the link connection information of this request of data.
Wherein, " being that the data transmission link that a certain request of data is set up needs to disconnect " includes but not limited to following scene: transfer of data corresponding to this request of data completed or this request of data is stopped by TE.
The data transmission method that the embodiment of the present invention provides, TE can by AP equipment can with a plurality of communication networks carry out transfer of data.The method that adopts the embodiment of the present invention to provide, the online bandwidth of TE are the bandwidth sums of a plurality of communication networks that can use of AP equipment, and compared with prior art, effectively the online bandwidth of TE, make the user obtain the experience of surfing the Net preferably.
Embodiment 3
The embodiment of the present invention provides a kind of data transmission device, can be applied to AP equipment and realize said method embodiment, and as shown in Figure 4, described data transmission device comprises:
Request of data acquiring unit 41, be used for obtaining the request of data that terminal equipment is initiated;
Network allocation unit 42, be used for selecting the highest communication network of current transmission rate from least two available communication networks, as the specified network of described request of data;
Link establishment unit 43, be used for setting up data transmission link at described specified network;
Data transmission unit 44, be used for, by described data transmission link, described request of data is sent to server to obtain data.
Further, as shown in Figure 5, described request of data acquiring unit 41 comprises fractionation module 411, is used for receiving service request from terminal equipment, and described service request is split as at least two data requests;
Optionally, as shown in Figure 6, described request of data acquiring unit 41 can also comprise receiver module 412, is used for receiving from terminal equipment the request of data that this terminal equipment sends.
According to Fig. 5 or the described data transmission device of Fig. 6, further, as shown in Figure 7, described data transmission device also comprises network detecting unit 45, and described network allocation unit 42 comprises rate detection module 421, wherein:
Network detecting unit 45 is for detection of also determining current available communication network;
Wherein, described current available communication network comprises general packet radio service GPRS network, 3G (Third Generation) Moblie 3G network, the 4th third-generation mobile communication 4G network, Wireless Fidelity WIFI network, WAP (wireless application protocol) WAP network and cable network.
Rate detection module 421, for detection of the transmission rate of described available communication network, is determined the communication network that transmission rate is the highest.
What deserves to be explained is, the data transmission device that the embodiment of the present invention provides can also be applied to possess other network element devices of AP function, such as: wireless router, radio network gateway etc., do not do restriction herein.
The data transmission device that the embodiment of the present invention provides, can utilize the current data transmitting device can with a plurality of communication networks carry out transfer of data, it is the bandwidth sum of a plurality of communication networks that can use of current data transmitting device that the device that the embodiment of the present invention provides makes the online bandwidth of terminal equipment, compared with prior art, can effectively improve the online bandwidth of terminal equipment, make the user obtain the experience of surfing the Net preferably.
In several embodiment that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Through the above description of the embodiments, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium that can read, floppy disk as computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.