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, wireless application association
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 for realizing data communication
Art.When business of networking is carried out using 3G or WIFI, the online bandwidth of subscriber terminal equipment depends primarily on access hotspot device
The bandwidth of the 3G network of current connection or be current connection WIFI network bandwidth.
But in the prior art, accessing hotspot device can only be by single network transmission services data;Due to single network
Limited bandwidth, when the data volume that the terminal device multiple request of data of initiation simultaneously are obtained from server is larger, can cause network
Block, the networking speed of subscriber terminal equipment is relatively low.
The content of the invention
The embodiment provides a kind of data transmission method and device, can solve the problem that in the prior art when user's end
When the data volume that the multiple request of data of end equipment initiation simultaneously are obtained from server is larger, network blockage, user terminal is caused to set
The relatively low problem of standby networking speed.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
On the one hand, a kind of data transmission method is the embodiment of the invention provides, including:
Access hotspot device and obtain the request of data that terminal device is initiated;
The access hotspot device selects current transmission rate highest to communicate from least two available communication networks
Network, as the specified network of the request of data;
The access hotspot device sets up data transmission link in the specified network;
The access hotspot device is sent to server to obtain the request of data by the data transmission link
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, the request of data for obtaining terminal device 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 the request of data;
Link establishment unit, for setting up data transmission link in the specified network;
Data transmission unit, for being sent to server to obtain the request of data by the 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, so as to improve the online bandwidth of subscriber terminal equipment, additionally it is possible to which the data transfer demands that will be received are assigned to biography
On defeated speed communication network high, it is ensured that user is obtained preferable online experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the data transmission method that the embodiment of the present invention 1 is provided;
Fig. 2 is the schematic flow sheet of the data transmission method that the embodiment of the present invention 2 is provided;
Fig. 3 is the distribution schematic diagram of the communication network that the embodiment of the present invention 2 is provided;
Fig. 4-Fig. 7 is the structural representation of the data transmission device that the embodiment of the present invention 3 is provided.
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 is described, it is clear that described embodiment is only a part of embodiment of the 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 creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment 1
A kind of data transmission method is the embodiment of the invention provides, as shown in figure 1, methods described includes:
101st, access hotspot device and obtain the request of data that terminal device 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, it is also possible to possess other network element devices of AP functions, for example:Wireless router, radio network gateway etc.,
Do not limit herein.
102nd, the access hotspot device selects current transmission rate highest from least two available communication networks
Communication network, as the specified network of the request of data.
In order to make it easy to understand, the present embodiment is illustrated by taking AP equipment as an example;Above-mentioned " available communication network " refers to AP
Support the network formats of the network and possess the communication network that authority can be carried out data transmission using the 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 networks and cable network etc.;The present embodiment is fitted
For at least there are two scenes of available communication network.
Specifically, AP can be by the communication network of inquiring about the network state of itself to determine currently available, for example, AP can
Determine whether 3G network is available communication network with by inquiring about 3G radio open message;By the real time scan result of WIFI
WIFI network is determined whether there is for available communication network.
103rd, the access hotspot device sets up data transmission link in the specified network.
104th, it is described access hotspot device by the data transmission link by the request of data send to server with
Obtain data.
In the present embodiment, when the request of data that hotspot device acquisition subscriber terminal equipment is initiated is accessed, can be from multiple
Current transmission rate highest communication network is selected in available communication network as the specified network of the request of data, so this
The bandwidth resources of multiple available communication networks can be made full use of in embodiment in the case where transmission rate is ensured so that use
Terminal device available transmission bandwidth in family is the bandwidth sum of the multiple available communication network.
Data transmission method provided in an embodiment of the present invention, terminal device can be by 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 device be AP can equipment it is 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 data transfer demands that will be received are assigned on transmission rate communication network high, user is obtained preferable online experience.
Embodiment 2
A kind of data transmission method is the embodiment of the invention provides, as shown in Fig. 2 methods described includes:
201st, AP equipment detects and determines currently available communication network, the available communication network at least two.
What deserves to be explained is, it is specific that the AP equipment in the present embodiment can also replace with wireless router, radio network gateway etc.
The network element device of AP functions, does not limit herein.Specifically, above-mentioned " available communication network " refers to the net that AP supports the network
Network standard and possesses the communication network that authority can be carried out data transmission using the network, the communication network is included but is not limited to:
GPRS network, 3G network, 4G networks, WIFI network, WAP networks and cable network etc..Wherein, 3G, 4G network include various
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 when the transmission of business datum is realized
(Transmission Control Protocol/Internet Protocol, transmission control protocol/Internet Interconnection association
View), AP equipment is capable of the communication network of compatible above-mentioned different systems simultaneously, such that it is able to logical by the multiple of 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 by 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 device) is initiated.
What deserves to be explained is, AP equipment can obtain the request of data that TE is initiated by following at least 2 kinds modes:1) AP sets
It is standby to receive service request from TE, the service request is split as at least 2 request of data.
For example:AP equipment receives the web page browsing request of TE initiations, and web page browsing request includes video data, sound
Frequency evidence and text data, then AP equipment can by the 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 TE transmissions, i.e. AP equipment from TE direct access request of data from TE.
TE in the embodiment of the present invention is the terminal for possessing radio communication function, for example:PC (Personal Computer,
Personal computer), notebook computer, smart mobile phone, panel computer etc..
203rd, AP equipment detects the transmission rate of current 3G network and WIFI network, determines transmission rate highest communication network
Network, the specified network of the request of data that the communication network is obtained as AP.
For example:AP equipment can send ping message (or other kinds of service message) by the webserver,
Time interval according to response message is returned determines transmission rate.
What deserves to be explained is, the transmission 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 the bandwidth of data transmission link depends on WIFI hot spot in WIFI network
The bandwidth of offer.In actual applications, TE often initiates multiple parallel service requests or request of data (for example:Browsing
While webpage, TE can initiate the following published article part of file download request), in also terminating 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 transmission rate, AP equipment exists
After obtaining the request of data that TE is initiated, current idle bandwidth maximum, transmission rate highest communication network can be selected as the number
According to the specified network of request.
For example, a width of 2M of band provided with 3G network, as a example by a width of 4M of band that WIFI hot spot is provided:When TE initiates video counts
During according to request, if 3G network and WIFI network are all in idle condition, AP equipment can realize the video by WIFI network
Request of data;If the realization of 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 can be selected when next request of data that TE is initiated is obtained
WIFI network as next request of data specified network.
Specifically, in order to the network structure of description the present embodiment that is clear, completing distributes information, next being obtained with AP equipment
TE is taken to initiate to be illustrated as a example by 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
It is as follows:
1. AP receives the web page browsing request that TE is initiated, and detects the idle bandwidth of current 3G network for 2M, WIFI network
Idle bandwidth be 4M, selection WIFI network realize the web page browsing ask;
2. AP receives the video playback request that TE is initiated, and detects the idle bandwidth of current 3G network for 2M, WIFI network
Idle bandwidth be 3M, selection WIFI network realize the video playback ask;
3. AP receives the file download request that TE is initiated, and detects the idle bandwidth of current 3G network for 2M, WIFI network
Idle bandwidth be 1M, selection 3G network realize this document download request.
It is as shown in Figure 3 according to the network structure that the above method is distributed.
Further, it is preferred that when the web page browsing that AP equipment receives TE initiations is asked, AP equipment can be by the webpage
Browse request is divided into 3 request of data:I.e. video data request, voice data are asked and text data requests, and are followed successively by
3 request of data that fractionation is obtained distribute specified network of the transmission rate highest network as the request of data such that it is able to
Make full use of the bandwidth resources of multiple communication networks so that TE obtains message transmission rate higher.
204th, AP equipment is that each request of data sets up data transmission link in the specified network, and is recorded as each data
Asking the link connection information set up, the link connection information includes the mark of the communication network for request of data distribution
Know.
Wherein, link connection information can characterize the network information that current AP equipment is each request of data distribution, for drawing
Lead each request of data and obtain business datum.
What deserves to be explained is, it is different in TE if different request of data is initiated by different application programs
Application program is linked using different ports and same connection handshake request from outer net, then also record has in link connection information
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 provided using the present embodiment, when business of networking is carried out, 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 improve 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 the data
The data transmission link set up is asked, the load of link is discharged, and delete the link connection information on the request of data.
Wherein, following scene is included but is not limited to " for the data transmission link that a certain request of data is set up needs to disconnect ":
The corresponding data transfer of the request of data has been completed or the 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, user is obtained preferable online experience.
Embodiment 3
A kind of data transmission device is the embodiment of the invention provides, AP equipment can be applied to and realized that the above method is implemented
Example, as shown in figure 4, the data transmission device includes:
Request of data acquiring unit 41, the request of data for obtaining terminal device 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 the request of data;
Link establishment unit 43, for setting up data transmission link in the specified network;
Data transmission unit 44, for being sent to server to obtain the request of data by the data transmission link
Access evidence.
Further, as shown in figure 5, the request of data acquiring unit 41 includes splitting module 411, for being set from terminal
It is standby to receive service request, the service request is split as at least two request of data;
Optionally, as shown in fig. 6, the request of data acquiring unit 41 can also include receiver module 412, for from end
End equipment receives the request of data of terminal device transmission.
Data transmission device according to Fig. 5 or Fig. 6, further, as shown in fig. 7, the data transmission device is also
Including network detection unit 45, the network allocation unit 42 includes speed detection module 421, wherein:
Network detection unit 45 is used to detect and determine currently available communication network;
Wherein, the currently available communication network includes that general packet radio service GPRS network, third generation movement are logical
Letter 3G network, forth generation mobile communication 4G networks, Wireless Fidelity WIFI network, WAP WAP networks and cable network.
Speed detection module 421 is used to detect the transmission rate of the available communication network, determines transmission 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 functions 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 be using the available multiple communications of present data transmission device
Network carries out data transmission, and device provided in an embodiment of the present invention causes that the online bandwidth of terminal device is that present data transmission is filled
The bandwidth sum of available multiple communication networks is put, compared with prior art, the online bandwidth of terminal device can be effectively improved,
User is set to obtain preferable online experience.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, for example multiple units or component
Can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, it is shown or
The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces
Close or communicate to connect, can be electrical, mechanical or other forms.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be borrowed
Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases
Implementation method.Based on such understanding, the portion that technical scheme substantially contributes to prior art in other words
Dividing can be embodied in the form of software product, and the computer software product is stored in the storage medium that can read, and such as be counted
The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used to so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform method described in each embodiment of the invention.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.