Data transmission method and device
Technical field
The present invention relates to the communications field, more particularly, to a kind of data transmission method and device.
Background technology
In current Mobile solution, subscriber terminal equipment can be by accessing hotspot device, such as router, radio network gateway
Deng access Wide Area Network.Wide Area Network mainly includes:WAP (Wireless Application Protocol, assist by wireless application
View) network, 3G (3rd-Generation, G mobile communication) network, WIFI (Wireless Fidelity, wirelessly
Fidelity) network, cable network etc., wherein, 3G and WIFI supports network data high-speed transfer, is the main flow skill realizing data communication
Art.When carrying out business of networking using 3G or WIFI, the online bandwidth of subscriber terminal equipment depends primarily on access hotspot device
The current bandwidth of 3G network connecting or be the current WIFI network connecting bandwidth.
But in prior art, access hotspot device and can only pass through single network transmission services data;Due to single network
Limited bandwidth, when terminal unit initiate simultaneously multiple request of data from the data volume that server obtains larger when, network can be led to
Blocking, the networking speed of subscriber terminal equipment is relatively low.
Content of the invention
The embodiment provides a kind of data transmission method and device, can solve the problem that in prior art when user is whole
End equipment initiates multiple request of data when the data volume that server obtains is larger simultaneously, leads to network blockage, user terminal to set
The relatively low problem of standby networking speed.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
On the one hand, embodiments provide a kind of data transmission method, including:
Access hotspot device and obtain the request of data that terminal unit is initiated;
Described access hotspot device selects current transmission rate highest to communicate from least two available communication networks
Network, as the specified network of described request of data;
Described access hotspot device sets up data transmission link in described specified network;
Described request of data is sent by described data transmission link and obtains to server by described access hotspot device
Data.
On the other hand, the embodiment of the present invention additionally provides a kind of data transmission device, including:
Request of data acquiring unit, for obtaining the request of data of terminal unit initiation;
Network allocation unit, for selecting the communication of current transmission rate highest from least two available communication networks
Network, as the specified network of described request of data;
Link establishment unit, for setting up data transmission link in described specified network;
Data transmission unit, is obtained to server for being sent described request of data by described data transmission link
Data.
Data transmission method provided in an embodiment of the present invention and device, can be entered by available multiple communication networks simultaneously
Row data transfer, thus improve the online bandwidth of subscriber terminal equipment additionally it is possible to the data transfer demands receiving are assigned to biography
It is ensured that making user obtain preferably online experience on the high communication network of defeated speed.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
The schematic flow sheet of the data transmission method that Fig. 1 provides for the embodiment of the present invention 1;
The schematic flow sheet of the data transmission method that Fig. 2 provides for the embodiment of the present invention 2;
The distribution schematic diagram of the communication network that Fig. 3 provides for the embodiment of the present invention 2;
The structural representation of the data transmission device that Fig. 4-Fig. 7 provides for the embodiment of the present invention 3.
Specific 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 carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Embodiment 1
Embodiments provide a kind of data transmission method, as shown in figure 1, methods described includes:
101st, access hotspot device and obtain the request of data that terminal unit is initiated.
What deserves to be explained is, the access hotspot device in the present embodiment can be the AP (Access in mobile communications network
Point, access point) equipment is it is also possible to possess other network element devices of AP function, such as:Wireless router, radio network gateway etc.,
Do not limit herein.
102nd, described access hotspot device selects current transmission rate highest from least two available communication networks
Communication network, as the specified network of described request of data.
In order to make it easy to understand, the present embodiment illustrates taking AP equipment as a example;Above-mentioned " available communication network " refers to AP
Support the network formats of this network and possess the communication network that authority can be carried out data transmission using this network, including but not
It is limited to:GPRS (General Packet Radio Service, general packet radio service) network, 3G network, 4G (4th-
Generation, forth generation mobile communication technology) network, WIFI network, WAP network and cable network etc.;The present embodiment is fitted
For at least there is the scene of two available communication networks.
Specifically, AP can determine currently available communication network by inquiring about the network state of itself, and for example, AP can
To determine whether 3G network is available communication network by inquiring about 3G radio open message;By the real time scan result of WIFI
Determining whether there is WIFI network is available communication network.
103rd, described access hotspot device sets up data transmission link in described specified network.
104th, described access hotspot device by described data transmission link by described request of data send to server with
Obtain data.
In the present embodiment, when accessing the request of data that hotspot device obtains subscriber terminal equipment initiation, can be from multiple
Current transmission rate highest communication network is selected as the specified network of this request of data in available communication network, so this
The bandwidth resources of multiple available communication networks can be made full use of so that using in the case of ensureing transfer rate in embodiment
Terminal unit available transmission bandwidth in family is the bandwidth sum of the plurality of available communication network.
Data transmission method provided in an embodiment of the present invention, terminal unit can pass through the available multiple communication networks of AP equipment
Network carries out data transmission.Using method provided in an embodiment of the present invention, the online bandwidth of terminal unit be AP can equipment many
The bandwidth sum of individual communication network, compared with prior art, can effectively improve the online bandwidth of subscriber terminal equipment moreover it is possible to
Enough the data transfer demands receiving are assigned on the high communication network of transfer rate, make user obtain preferably online experience.
Embodiment 2
Embodiments provide a kind of data transmission method, as shown in Fig. 2 methods described includes:
201st, AP equipment detects and determines currently available communication network, described available communication network at least two.
What deserves to be explained is, it is concrete that the AP equipment in the present embodiment can also replace with wireless router, radio network gateway etc.
The network element device of AP function, does not limit herein.Specifically, above-mentioned " available communication network " refers to that AP supports the net of this network
Network standard and possess the communication network that authority can be carried out data transmission using this network, this communication network includes but is not limited to:
GPRS network, 3G network, 4G network, WIFI network, WAP network and cable network etc..Wherein, 3G, 4G network include multiple
Standard, for example, 3G network includes:CDMA2000 (Code Division Multiple Access, CDMA), WCDMA
(Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-
Synchronous Code Division Multiple Access, TD SDMA), WiMAX (Worldwide
Interoperability for Microwave Access, worldwide interoperability for microwave accesses) 4 kinds of standards.
The communication network of above-mentioned different systems is based on ICP/IP protocol in the transmission realizing business datum
(Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection association
View), AP equipment is capable of the communication network of simultaneously compatible above-mentioned different systems, such that it is able to multiple logical by above-mentioned different systems
Communication network carries out data transmission simultaneously.
In order to make it easy to understand, the present embodiment with the currently available communication network of AP equipment as 3G network and WIFI network allusion quotation
It is specifically described as a example type scene.What deserves to be explained is, in actual applications, the available communication network of AP equipment and not only
It is limited to two.
202nd, AP equipment obtains the request of data that TE (Terminal Equipment, terminal unit) initiates.
What deserves to be explained is, AP equipment can obtain the request of data of TE initiation by following at least 2 kinds modes:1) AP sets
Receive service request for from TE, this service request is split as at least 2 request of data.
For example:AP equipment receives the web page browsing request of TE initiation, and this web page browsing request includes video data, sound
Frequency evidence and text data, then AP equipment can by this web page browsing request be divided into 3 request of data:I.e. video data please
Ask, voice data is asked and text data requests.
2) AP equipment receives the request of data of this TE transmission from TE, and that is, AP equipment is from TE direct access request of data.
TE in the embodiment of the present invention is the terminal possessing radio communication function, for example:PC (Personal Computer,
Personal computer), notebook computer, smart mobile phone, panel computer etc..
203rd, AP equipment detects the transfer rate of current 3G network and WIFI network, determines transfer rate highest communication network
Network, the specified network of the request of data that this communication network is obtained as AP.
For example:AP equipment can pass through to send ping message (or other kinds of service message) to the webserver,
Time interval according to returning response message determines transfer rate.
What deserves to be explained is, the transfer rate of communication network depends on idle bandwidth, data transmission link in 3G network
Bandwidth depends on the bandwidth of the 3G network that operator provides, and in WIFI network, the bandwidth of data transmission link depends on WIFI hot spot
The bandwidth providing.In actual applications, TE often initiates multiple parallel service request or request of data (for example:Browsing
While webpage, TE can initiate the following part of publishing papers of file download request), also can terminate in the multiple business being currently running
Certain business, so the idle bandwidth of 3G network and WIFI network is real-time change.In order to ensure transfer rate, AP equipment exists
After obtaining the request of data that TE initiates, current idle bandwidth maximum, transfer rate highest communication network can be selected as this number
Specified network according to request.
For example, a width of 2M of band being provided with 3G network, as a example a width of 4M of band that WIFI hot spot provides:When TE initiates video counts
According to during request, if 3G network and WIFI network are all in idle condition, AP equipment can realize this video by WIFI network
Request of data;If the realization of this video data request occupies bandwidth (the now idle band of WIFI network of WIFI network 1M
A width of 3M, the idle bandwidth of 3G network is 2M), then AP equipment, when obtaining the next request of data that TE initiates, can select
WIFI network is as the specified network of next request of data.
Specifically, for the network structure distribution information of description the present embodiment that is clear, completing, next obtained with AP equipment
TE is taken to illustrate as a example initiating web page browsing request, video playback request and file download request successively:
In order to make it easy to understand, it is assumed herein that a width of 2M of the band of 3G network, a width of 4M of band of WIFI network;Realize web page browsing
The bandwidth that request, video playback request and file download request take is followed successively by 1M, 2M, 2M;The then distribution condition of communication network
As follows:
1. AP receives the web page browsing request that TE initiates, and the idle bandwidth current 3G network is detected is 2M, WIFI network
Idle bandwidth be 4M, select WIFI network realize this web page browsing request;
2. AP receives the video playback request that TE initiates, and the idle bandwidth current 3G network is detected is 2M, WIFI network
Idle bandwidth be 3M, select WIFI network realize this video playback request;
3. AP receives the file download request that TE initiates, and the idle bandwidth current 3G network is detected is 2M, WIFI network
Idle bandwidth be 1M, select 3G network realize this document download request.
As shown in Figure 3 according to the network structure of said method distribution.
Further it is preferred that when AP equipment receives the web page browsing request of TE initiation, AP equipment can be by this webpage
Browse request is divided into 3 request of data:I.e. video data request, voice data request and text data requests, and be followed successively by
Split 3 request of data obtaining distribute transfer rate highest networks as the specified network of this request of data such that it is able to
Make full use of the bandwidth resources of multiple communication networks so that TE obtains higher message transmission rate.
204th, AP equipment is that each request of data sets up data transmission link in described specified network, and is recorded as each data
The link connection information that request is set up, described link connection information includes the mark of the communication network for the distribution of this request of data
Know.
Wherein, link connection information can characterize the network information that current AP equipment is each request of data distribution, is used for drawing
Lead each request of data and obtain business datum.
What deserves to be explained is, if different request of data is to be initiated by different application programs, different in TE
Application program is linked using different ports and same connection handshake request from outer net, then in link connection information, also record has
The corresponding port numbers of each request of data.
205th, AP equipment by the data transmission link set up for each request of data by request of data send to server with
Obtain data.
That is, the method being provided using the present embodiment, when carrying out business of networking, the online bandwidth of TE is that AP sets to TE
The bandwidth sum of the standby whole communication networks supported, networking speed can be significantly improved, and effectively improves Consumer's Experience.
206th, when AP equipment is that the data transmission link that a certain request of data is set up needs to disconnect, AP is broken as this data
The data transmission link that request is set up, the load of release link, and delete the link connection information with regard to this request of data.
Wherein, " data transmission link set up for a certain request of data needs to disconnect " including but not limited to following scene:
The corresponding data transfer of this request of data has completed or this request of data is terminated by TE.
Data transmission method provided in an embodiment of the present invention, TE can be carried out by the available multiple communication networks of AP equipment
Data transfer.Using method provided in an embodiment of the present invention, the online bandwidth of TE is the available multiple communication networks of AP equipment
Bandwidth sum, compared with prior art, is capable of the online bandwidth of effective TE, makes user obtain preferably online experience.
Embodiment 3
Embodiments provide a kind of data transmission device, AP equipment can be applied to and realize said method enforcement
Example, as shown in figure 4, described data transmission device includes:
Request of data acquiring unit 41, for obtaining the request of data of terminal unit initiation;
Network allocation unit 42, for selecting current transmission rate highest to lead to from least two available communication networks
Communication network, as the specified network of described request of data;
Link establishment unit 43, for setting up data transmission link in described specified network;
Data transmission unit 44, is obtained to server for being sent described request of data by described data transmission link
Fetch data.
Further, as shown in figure 5, described request of data acquiring unit 41 includes splitting module 411, for setting from terminal
Standby reception service request, described service request is split as at least two request of data;
Optionally, as shown in fig. 6, described request of data acquiring unit 41 can also include receiver module 412, for from end
End equipment receives the request of data of this terminal unit transmission.
Data transmission device according to Fig. 5 or Fig. 6, further, as shown in fig. 7, described data transmission device is also
Including network detector unit 45, described network allocation unit 42 includes speed detection module 421, wherein:
Network detector unit 45 is used for detecting and determining currently available communication network;
Wherein, described currently available communication network includes general packet radio service GPRS network, the third generation moves and leads to
Letter 3G network, forth generation mobile communication 4G network, Wireless Fidelity WIFI network, WAP WAP network and cable network.
Speed detection module 421 is used for detecting the transfer rate of described available communication network, determines transfer rate highest
Communication network.
What deserves to be explained is, data transmission device provided in an embodiment of the present invention can also be applied to possess AP function its
His network element device, for example:Wireless router, radio network gateway etc., do not limit herein.
Data transmission device provided in an embodiment of the present invention, can utilize the available multiple communications of present data transmission device
Network carries out data transmission, and it is present data transmission dress that device provided in an embodiment of the present invention makes the online bandwidth of terminal unit
Put the bandwidth sum of available multiple communication network, the online bandwidth of terminal unit compared with prior art, can be effectively improved,
User is made to obtain preferably online experience.
It should be understood that disclosed system in several embodiments provided herein, apparatus and method are permissible
Realize by another way.For example, device embodiment described above is only schematically, for example, described unit
Divide, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or
The coupling each other discussing or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can borrow
Help software to add the mode of necessary common hardware to realize naturally it is also possible to pass through hardware, but the former is more preferably in many cases
Embodiment.Based on such understanding, the portion that technical scheme substantially contributes to prior art in other words
Divide and can be embodied in the form of software product, this computer software product is stored in the storage medium that can read, such as count
The floppy disk of calculation machine, hard disk or CD etc., including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) method described in execution each embodiment of the present invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.