A kind of data transmission channel method for building up, system and server
Technical field
The present invention relates to the communications field, particularly to a kind of data transmission channel method for building up, system and service
Device.
Background technology
In data transmission procedure, need initiator and answer party to set up corresponding data transmission channel, initiate
Side, by this data transmission channel, sends data to answer party, thus needs a kind of data transmission channel to build
Cube method, so that initiator and answer party set up corresponding data transmission channel.
Prior art provides a kind of data transmission channel method for building up, when data transmits, and initiator and answering
The server that the side of answering is connected sets up corresponding individual data transmission channel, it is achieved data are transmitted.
But when the method using prior art to be provided, answer party and initiator need to be transmitted across in data
The time of journey medium pending data Path Setup, thus reduce the efficiency of data transmission, and logical in data transmission
In the case of the network environment in road is poor, carry out data transmission causing number by individual data transmission channel
According to loss, reduce the reliability of data transmission.
Summary of the invention
In order to improve reliability and the efficiency of data transmission, embodiments provide a kind of data transmission logical
Road method for building up, system and server.Described technical scheme is as follows:
First aspect, it is provided that a kind of data transmission channel method for building up, described method includes:
Server receives the foundation request that initiator sends, and sends the described request of setting up to answer party;
If described server receives the first response message that answer party sends, described first response message is used for
Indicate described answer party to receive described foundation to ask, then send multiple to described initiator and described answer party
The information of UDP UDP server;
Described initiator and described response direction the plurality of UDP server sendaisle set up request;
The plurality of UDP server sets up multiple data transmission channel respectively;
If described server receives the second response message that described answer party sends, then by described second response
Message sends to described initiator;
Described initiator passes according to meeting at least one pre-conditioned data in the plurality of data transmission channel
The information of defeated passage, sends data to described answer party.
In conjunction with first aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described server sends multiple User Datagram Protocol to described initiator and described answer party
The information of view UDP server includes:
Described TCP server obtains the letter meeting pre-conditioned multiple UDP UDP server
Breath;
Described TCP server sends the letter of the plurality of UDP server to described initiator and described answer party
Breath.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, institute
State TCP server to obtain and meet the information of pre-conditioned multiple UDP server and include:
Described TCP server obtains the network parameter of all available UDP server;
Described TCP server, according to described network parameter, obtains institute from described all available UDP server
State and meet pre-conditioned multiple UDP server.
In conjunction with any one possible implementation of the second of first aspect to first aspect, can at the third
Can implementation in, described initiator according to the plurality of data transmission channel meets pre-conditioned extremely
The information of a few data transmission channel, sends data to described answer party and includes:
Described initiator obtains the first round-trip delay RTT and first packet loss of the plurality of data transmission channel
In at least one;
In 2nd RTT of the described answer party the plurality of data transmission channel of acquisition and the second packet loss at least
One;
Described initiator, according to a described RTT and described 2nd RTT, calculates RTT component;
Described initiator, according to described first packet loss and described second packet loss, calculates packet loss component;
Described initiator obtains RTT component described in the plurality of data transmission channel and described packet loss component
In at least one meet pre-conditioned data transmission channel;
Described sender according to described at least one meet the information of pre-conditioned data transmission channel, to institute
State answer party and send data.
In conjunction with first aspect, in the 4th kind of possible implementation, at the plurality of UDP server respectively
Before setting up multiple data transmission channel, described method also includes:
Described UDP server judges whether can set up point-to-point P2P between described initiator and described answer party
Passage;
The information of described P2P passage is sent to described initiator and described by the most described UDP server
Answer party.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, institute
Method of stating also includes:
If described initiator receives the information of the P2P passage that described UDP server sends, then by described
P2P passage, sends data to described answer party.
Second aspect, it is provided that a kind of data transmission channel method for building up, described method includes:
Server receives the foundation request that initiator sends, and sends the described request of setting up to answer party;
When described server receive described answer party send accept response message, then by described acceptance response
Message sends to described initiator, and sends multiple User Datagram Protocol to described initiator and described answer party
The information of view UDP server;
Described initiator and described response direction the plurality of UDP server sendaisle set up request;
The plurality of UDP server sets up multiple data transmission channel respectively;
Described initiator passes according to meeting at least one pre-conditioned data in the plurality of data transmission channel
The information of defeated passage, sends data to described answer party.
In conjunction with second aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described server sends multiple User Datagram Protocol to described initiator and described answer party
The information of view UDP server includes:
Described TCP server obtains the letter meeting pre-conditioned multiple UDP UDP server
Breath;
Described TCP server sends the letter of the plurality of UDP server to described initiator and described answer party
Breath.
In conjunction with the first possible implementation of second aspect, in the mode that the second is possible, described TCP
Server acquisition meets the information of pre-conditioned multiple UDP server and includes:
Described TCP server obtains the network parameter of all available UDP server;
Described TCP server, according to described network parameter, obtains institute from described all available UDP server
State and meet pre-conditioned multiple UDP server.
In conjunction with any one possible implementation of the second of second aspect to second aspect, can at the third
Can implementation in, described initiator according to the plurality of data transmission channel meets pre-conditioned extremely
The information of a few data transmission channel, sends data to described answer party and includes:
Described initiator obtains the first round-trip delay RTT and first packet loss of the plurality of data transmission channel
In at least one;
In 2nd RTT of the described answer party the plurality of data transmission channel of acquisition and the second packet loss at least
One;
Described initiator, according to a described RTT and described 2nd RTT, calculates RTT component;
Described initiator, according to described first packet loss and described second packet loss, calculates packet loss component;
Described initiator obtains RTT component described in the plurality of data transmission channel and described packet loss component
In at least one meet pre-conditioned data transmission channel;
Described sender according to described at least one meet the information of pre-conditioned data transmission channel, to institute
State answer party and send data.
In conjunction with second aspect, in the 4th kind of possible implementation, at the plurality of UDP server respectively
Before setting up multiple data transmission channel, described method also includes:
Described UDP server judges whether can set up point-to-point P2P between described initiator and described answer party
Passage;
The information of described P2P passage is sent to described initiator and described by the most described UDP server
Answer party.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation, institute
Method of stating also includes:
If described initiator receives the information of the P2P passage that described UDP server sends, then by described
P2P passage, sends data to described answer party.
The third aspect, it is provided that a kind of server, described server includes:
Transit module, the foundation sent for receiving initiator is asked, and is sent the described request of setting up to answering
The side of answering;
Sending module, for described transit module receive for indicate described answer party receive described in build
After first response message of vertical request, send multiple User Datagram Protocol to described initiator and described answer party
The information of view UDP server;
When described transit module is additionally operable to receive the second response message that described answer party sends, by described the
Two response messages send to described initiator, so that described initiator meets according in multiple data transmission channels
The information of at least one pre-conditioned data transmission channel, sends data to described answer party;
Wherein, the plurality of data transmission channel is described initiator and the described the plurality of UDP in response direction
After server sendaisle sets up request, the plurality of UDP server is set up respectively.
In conjunction with the third aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described sending module specifically includes:
Obtain submodule, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
Send submodule, for sending the plurality of UDP server to described initiator and described answer party
Information.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second is possible, institute
State acquisition submodule specifically for:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP server.
Fourth aspect, it is provided that a kind of server, described server include memorizer, Network Interface Module with
And the processor being connected with described memorizer and described Network Interface Module, wherein, described memorizer is used for depositing
Storage batch processing code, described processor calls program code that described memorizer stored below performing
Operation:
Control Network Interface Module and receive the foundation request that initiator sends, and the described request of setting up is sent extremely
Answer party;
Receive at described Network Interface Module and described set up the of request for indicating described answer party to receive
After one response message, send multiple UDP UDP service to described initiator and described answer party
The information of device;
Control Network Interface Module when receiving the second response message that described answer party sends, by described the
Two response messages send to described initiator, so that described initiator meets according in multiple data transmission channels
The information of at least one pre-conditioned data transmission channel, sends data to described answer party;
Wherein, the plurality of data transmission channel is described initiator and the described the plurality of UDP in response direction
After server sendaisle sets up request, the plurality of UDP server is set up respectively.
In conjunction with fourth aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described processor call program code that described memorizer stored specifically for perform with
Lower operation:
Obtain the information meeting pre-conditioned multiple UDP UDP server;
The information of the plurality of UDP server is sent to described initiator and described answer party.
In conjunction with the first possible implementation of fourth aspect, in the implementation that the second is possible, institute
State processor and call program code that described memorizer stored specifically for performing following operation:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP server.
5th aspect, it is provided that a kind of server, described server includes:
Transit module, the foundation sent for receiving initiator is asked, and is sent the described request of setting up to answering
The side of answering;
Sending module, is used for when described transit module receives when accepting response message of described answer party transmission,
The described response message that accepts is sent to described initiator, and sends many to described initiator and described answer party
The information of individual UDP UDP server.
In conjunction with the 5th aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described sending module specifically includes:
Obtain submodule, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
Send submodule, for sending the plurality of UDP server to described initiator and described answer party
Information.
In conjunction with the first possible implementation of the 5th aspect, in the implementation that the second is possible, institute
State acquisition submodule specifically for:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP UDP server.
6th aspect, it is provided that a kind of server, described server include memorizer, Network Interface Module with
And the processor being connected with described memorizer and described Network Interface Module, wherein, described memorizer is used for depositing
Storage batch processing code, described processor calls program code that described memorizer stored below performing
Operation:
Control described Network Interface Module and receive the foundation request that initiator sends, and the described request of setting up is sent out
Deliver to answer party;
Control described Network Interface Module receive described answer party send when accepting response message, by institute
State and accept response message transmission extremely described initiator, and send multiple use to described initiator and described answer party
The information of user data datagram protocol UDP server.
In conjunction with the 6th aspect, in the implementation that the first is possible, described server includes passing transport control protocol
View TCP server, described processor call program code that described memorizer stored specifically for perform with
Lower operation:
Obtain the information meeting pre-conditioned multiple UDP UDP server;
The information of the plurality of UDP server is sent to described initiator and described answer party.
In conjunction with the first possible implementation of the 6th aspect, in the implementation that the second is possible, institute
State processor and call program code that described memorizer stored specifically for performing following operation:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP UDP server.
7th aspect, it is provided that a kind of data transmission channel sets up system, described system includes server, sends out
Play side, answer party and multiple UDP UDP server, wherein:
Described server includes:
Transit module, for receiving the foundation request that described initiator sends, and sends the described request of setting up
To described answer party;
First sending module, disappears for receiving the first response of described answer party transmission at described transit module
Breath, when described first response message is used for indicating described answer party to receive described foundation request, to described
Play side and the information of the described answer party multiple UDP server of transmission;
Described initiator and described answer party include the second sending module and the 3rd sending module respectively, described
Two sending modules and described 3rd sending module are for setting up request to the plurality of UDP server sendaisle;
The plurality of UDP server includes multiple Path Setup module, the plurality of Path Setup module respectively
It is respectively used to set up multiple data transmission channel;
Described transit module is additionally operable to when receiving the second response message that described answer party sends, by described
Second response message sends to described initiator;
Described second sending module be additionally operable to according to the plurality of data transmission channel meets pre-conditioned extremely
The information of a few data transmission channel, sends data to described answer party.
In conjunction with the 7th aspect, in the implementation that the first is possible, described server includes TCP server,
Described first sending module includes:
Obtain submodule, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
First sends submodule, for sending the plurality of UDP service to described initiator and described answer party
The information of device.
In conjunction with the first possible implementation of the 7th aspect, in the implementation that the second is possible, institute
State acquisition submodule specifically for:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP server.
In conjunction with any one possible implementation of the second of the 7th aspect to the 7th aspect, can at the third
In the implementation of energy, described initiator also includes that processing module, described processing module are used for:
Obtain at least in the first round-trip delay RTT of the plurality of data transmission channel and the first packet loss
Individual;
Obtain the 2nd RTT and second packet loss of the plurality of data transmission channel acquired in described answer party
In at least one;
According to a described RTT and described 2nd RTT, calculate RTT component;
According to described first packet loss and described second packet loss, calculate packet loss component;
Obtain RTT component described in the plurality of data transmission channel and at least in described packet loss component
Individual meet pre-conditioned data transmission channel.
In conjunction with the 7th aspect, in the 4th kind of possible implementation, described UDP server also includes:
Process submodule, be used for judging whether can setting up between described initiator and described answer party point-to-point
P2P passage;
Second sends submodule, for described process submodule judge described initiator and described answer party it
Between when can set up point-to-point P2P passage, the information of described P2P passage is sent to described initiator and institute
State answer party.
In conjunction with the 4th kind of possible implementation of the 7th aspect, in the 5th kind of possible implementation,
Described initiator also includes that receiver module, described second sending module are additionally operable to connect at described receiver module
When receiving the information of the P2P passage that described UDP server sends, by described P2P passage, answer to described
The side of answering sends data.
Eighth aspect, it is provided that a kind of data transmission channel sets up system, described system includes server, sends out
Play side, answer party and multiple UDP UDP server, wherein:
Described server includes:
Transit module, for receiving the foundation request that described initiator sends, and sends the described request of setting up
To described answer party;
First sending module, disappears for receiving the acceptance response of described answer party transmission at described transit module
During breath, the described response message that accepts is sent to described initiator, and to described initiator and described answer party
Send the information of multiple UDP server;
Described initiator and described answer party include the second sending module and the 3rd sending module respectively, described
Two sending modules and described 3rd sending module are respectively used to set up to the plurality of UDP server sendaisle
Request;
The plurality of UDP server includes multiple Path Setup module respectively, is used for setting up the transmission of multiple data
Passage;
Described second sending module be additionally operable to according to the plurality of data transmission channel meets pre-conditioned extremely
The information of a few data transmission channel, sends data to described answer party.
In conjunction with eighth aspect, in the implementation that the first is possible, described server includes TCP server,
Described first sending module includes:
Obtain submodule, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
Send submodule, for sending the plurality of UDP server to described initiator and described answer party
Information.
In conjunction with the first possible implementation of eighth aspect, in the implementation that the second is possible, institute
State acquisition submodule specifically for:
Obtain the network parameter of all available UDP server;
According to described network parameter, obtain from described all available UDP server described meet pre-conditioned
Multiple UDP server.
In conjunction with any one possible implementation of the second of eighth aspect to eighth aspect, can at the third
In the implementation of energy, described initiator also includes that processing module, described processing module are used for:
Obtain at least in the first round-trip delay RTT of the plurality of data transmission channel and the first packet loss
Individual;
Obtain the 2nd RTT and second packet loss of the plurality of data transmission channel acquired in described answer party
In at least one;
According to a described RTT and described 2nd RTT, calculate RTT component;
According to described first packet loss and described second packet loss, calculate packet loss component;
Obtain RTT component described in the plurality of data transmission channel and at least in described packet loss component
Individual meet pre-conditioned data transmission channel.
In conjunction with eighth aspect, in the 4th kind of possible implementation, described UDP server also includes:
Process submodule, be used for judging whether can setting up between described initiator and described answer party point-to-point
P2P passage;
Second sends submodule, for described process submodule judge described initiator and described answer party it
Between when can set up point-to-point P2P passage, the information of described P2P passage is sent to described initiator and institute
State answer party.
In conjunction with the 4th kind of possible implementation of eighth aspect, in the 5th kind of possible implementation,
Described initiator also includes that receiver module, described second sending module are additionally operable to connect at described receiver module
When receiving the information of the P2P passage that described UDP server sends, by described P2P passage, answer to described
The side of answering sends data.
The present invention implements to provide a kind of data transmission channel method for building up, system and server, including: clothes
Business device receives the foundation request that initiator sends, and sends foundation request to answer party;If server receives
The first response message sent to answer party, the first response message is used for indicating answer party to receive foundation request,
The information of multiple UDP UDP server is then sent to initiator and answer party;Initiator and should
Answer direction multiple UDP server sendaisle and set up request;Multiple UDP server set up multiple data respectively
Transmission channel;If server receives the second response message that answer party sends, then the second response message is sent out
Deliver to initiator;Initiator passes according to meeting at least one pre-conditioned data in multiple data transmission channels
The information of defeated passage, sends data to answer party.By before data is transmitted, multiple UDP server are sent out
Play side and answer party to ask according to the Path Setup sent, pre-build data transmission channel respectively, compared to
Data transmission channel is resettled, it is to avoid build at data transmission procedure medium pending data passage when data are transmitted
The vertical time, thus improve the efficiency of data transmission, improve Consumer's Experience.It addition, by multiple UDP
Multiple data transmission channels transmission data that server is set up respectively, compared to by a channel transfer number
According to so that data transmission channel can be changed when passage portion network transfer speeds and reliability are poor,
Avoid the loss of data, improve the reliability of data transmission, improve Consumer's Experience.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work,
Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 2 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 3 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 4 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 5 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 6 is a kind of data transmission channel method for building up flow chart that the embodiment of the present invention provides;
Fig. 7 is a kind of server architecture schematic diagram that the embodiment of the present invention provides;
Fig. 8 is a kind of server architecture schematic diagram that the embodiment of the present invention provides;
Fig. 9 is a kind of server architecture schematic diagram that the embodiment of the present invention provides;
Figure 10 is a kind of server architecture schematic diagram that the embodiment of the present invention provides;
Figure 11 is that a kind of data transmission channel that the embodiment of the present invention provides sets up system schematic;
Figure 12 is that a kind of data transmission channel that the embodiment of the present invention provides sets up system schematic.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that retouched
The embodiment stated is only a part of embodiment of the present invention rather than whole embodiments.Based in the present invention
Embodiment, those of ordinary skill in the art obtained under not making creative work premise all its
His embodiment, broadly falls into the scope of protection of the invention.
Embodiments providing a kind of data transmission channel method for building up, the method can apply to immediately
The video data of video interactive both sides, speech data, image data and text data etc. during video
Data transmission, in addition, the data transmission channel method for building up described in the embodiment of the present invention can also be answered
Data transmission under other scenes, concrete scene is not limited by the embodiment of the present invention.Need
Bright, this initiator and answer party before data is transmitted, are connected to same TCP server, this TCP
Server can be single TCP server, it is also possible to the server zone being made up of multiple TCP server,
And the information sharing in this TCP server group, between multiple TCP server.
A kind of data transmission channel method for building up that embodiment one provides for the embodiment of the present invention, with reference to Fig. 1 institute
Showing, the method includes:
101, server receives the foundation request that initiator sends, and sends foundation request to answer party.
If 102, server receives the first response message that answer party sends, the first response message is used for indicating
Answer party receives foundation request, then send multiple UDP UDP clothes to initiator and answer party
The information of business device.
Concrete, server includes transmission control protocol TCP server, and server is to initiator and answer party
The information sending multiple UDP UDP server includes:
TCP server obtains the information meeting pre-conditioned multiple UDP UDP server;
TCP server sends the information of multiple UDP server to initiator and answer party.
Wherein, described TCP server obtains and meets pre-conditioned multiple UDP UDP service
The process of the information of device can be:
TCP server obtains the network parameter of all available UDP server;
TCP server is according to network parameter, and from all available UDP server, acquisition meets pre-conditioned many
Individual UDP server.
103, initiator and response direction multiple UDP server sendaisle sets up request.
104, multiple UDP server set up multiple data transmission channel respectively.
Optionally, before step 104, described method can also include:
UDP server judges whether can set up between initiator and answer party point-to-point P2P passage;
The most then UDP server sets up the P2P passage between initiator and answer party, and by P2P passage
Information send to initiator and answer party.
If 105, server receives the second response message that answer party sends, then the second response message is sent
To initiator.
106, initiator is logical according to meeting pre-conditioned at least one data transmission in multiple data transmission channels
The information in road, sends data to answer party.
Concrete, initiator, by any one in following operation, meets from multiple data transmission channels
At least one pre-conditioned data transmission channel:
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
Initiator, according to a RTT, calculates RTT component;
Initiator, according to the first packet loss, calculates packet loss component;
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel.Or
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
At least one in 2nd RTT of the answer party multiple data transmission channels of acquisition and the second packet loss;
Initiator, according to a RTT and the 2nd RTT, calculates RTT component;
Initiator, according to the first packet loss and the second packet loss, calculates packet loss component, wherein, the 2nd RTT
It is that answer party is forwarded to initiator by TCP server with the second packet loss;
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel;
Sender meets the information of pre-conditioned data transmission channel according at least one, sends to answer party
Data.
Optionally, if initiator receives the information of the P2P passage that UDP server sends, then P2P is passed through
Passage, sends data to answer party.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
Multiple UDP server initiators and answer party, according to the Path Setup request sent, pre-build data respectively
Transmission channel, resettle data transmission channel compared to when data are transmitted, it is to avoid at data transmission procedure
The time of medium pending data Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.
It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server, compared to
By a channel transmission data so that can when passage portion network transfer speeds and reliability are poor,
Change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, improve use
Family is experienced.
A kind of data transmission channel method for building up that embodiment two provides for the embodiment of the present invention, with reference to Fig. 2 institute
Showing, the method includes:
201, server receives the foundation request that initiator sends, and sends foundation request to answer party.
202, when server receive answer party send accept response message, then will accept response message transmission
To initiator, and send the information of multiple UDP UDP server to initiator and answer party.
Concrete, server includes transmission control protocol TCP server, and server is to initiator and answer party
The information sending multiple UDP UDP server includes:
TCP server obtains the information meeting pre-conditioned multiple UDP UDP server;
TCP server sends the information of multiple UDP server to initiator and answer party.
Wherein, described TCP server obtains and meets pre-conditioned multiple UDP UDP service
The process of the information of device can be:
TCP server obtains the network parameter of all available UDP server;
TCP server is according to network parameter, and from all available UDP server, acquisition meets pre-conditioned many
Individual UDP server.
203, initiator and response direction multiple UDP server sendaisle sets up request.
204, multiple UDP server set up multiple data transmission channel respectively.
Optionally, before the step 204, described method can also include:
UDP server judges whether can set up between initiator and answer party point-to-point P2P passage;
The most then UDP server sets up the P2P passage between initiator and answer party, and by P2P passage
Information send to initiator and answer party.
205, initiator is logical according to meeting pre-conditioned at least one data transmission in multiple data transmission channels
The information in road, sends data to answer party.
Concrete, initiator, by any one in following operation, meets from multiple data transmission channels
At least one pre-conditioned data transmission channel:
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
Initiator, according to a RTT, calculates RTT component;
Initiator, according to the first packet loss, calculates packet loss component;
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel.Or
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
At least one in 2nd RTT of the answer party multiple data transmission channels of acquisition and the second packet loss;
Initiator, according to a RTT and the 2nd RTT, calculates RTT component;
Initiator, according to the first packet loss and the second packet loss, calculates packet loss component, wherein, the 2nd RTT
It is that answer party is forwarded to initiator by TCP server with the second packet loss;
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel;
Sender meets the information of pre-conditioned data transmission channel according at least one, sends to answer party
Data.
Optionally, if initiator receives the information of the P2P passage that UDP server sends, then P2P is passed through
Passage, sends data to answer party.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
Multiple UDP server initiators and answer party, according to the Path Setup request sent, pre-build data respectively
Transmission channel, resettle data transmission channel compared to when data are transmitted, it is to avoid at data transmission procedure
The time of medium pending data Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.
It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server, compared to
By a channel transmission data so that can when passage portion network transfer speeds and reliability are poor,
Change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, improve use
Family is experienced.
A kind of data transmission channel method for building up that embodiment three provides for the embodiment of the present invention, with reference to Fig. 3 institute
Showing, the method includes:
301, TCP server receives the foundation request that initiator sends, and sends foundation request to answer party.
Concrete, this foundation request can be that data transmission channel sets up request;
In actual applications, this foundation request can include the network address of answer party, the network ground of initiator
Location etc.,
This transmission process may is that
Initiator will include that the network address of self the foundation request with the network address of answer party sends as it
The TCP server connected;
This foundation request, according to the network address of answer party included in the request of setting up, is sent by TCP server
To answer party, above-mentioned transmission process is merely exemplary, the embodiment of the present invention is to concrete transmission process not
It is limited.
302, TCP server receives the first response message that answer party sends, and the first response message is used for referring to
Show that answer party receives foundation request.
Concrete, answer party, after receiving this foundation request, sends to server and is used for indicating it to receive
The first response message asked to this foundation.
Server receives the first response message that this answer party sends.
Optionally, in actual applications, if server does not receives that answer party sends in Preset Time
One response message, then can send this foundation request to answer party again, until receiving what answer party sent
First response message.
303, TCP server obtains the network parameter of all available UDP server.
Concrete, said process can be that TCP server sends test data realization to UDP server,
Can also be that the network parameter periodically reported to TCP server by obtaining UDP server realizes, this
Concrete implementation mode is not limited by inventive embodiments.
It addition, the available UDP server described in the embodiment of the present invention includes being connected with TCP server and being in
The UDP server of idle condition, or be connected with TCP server and waiting task number is less than preset value
UDP server.
Network parameter described in the embodiment of the present invention is for describing the data-handling capacity of UDP server, UDP clothes
Network between network state and UDP server and the answer party of the network link between business device and initiator
The network state of link.
304, TCP server is according to network parameter, obtains to meet and preset bar from all available UDP server
Multiple UDP server of part.
Concrete, TCP server obtains network parameter and meets multiple UDP server of threshold value;
It addition, in above process, can be by judging that the data-handling capacity of UDP server, UDP take
Network between network state and UDP server and the answer party of the network link between business device and initiator
At least one in the network state of link determines and meets pre-conditioned multiple UDP server, it is also possible to
It it is the network link between the data-handling capacity of comprehensive descision UDP server, UDP server and initiator
The network state of the network link between network state and UDP server and answer party determines to meet to be preset
Multiple UDP server of condition.
Wherein, the data-handling capacity of UDP server can pass through the unit interval treatable number of server
Describing according to amount, the data-handling capacity of UDP server meets pre-conditioned including:
The treatable data volume of unit interval server institute is more than or equal to data-quantity threshold, during this unit
Between server treatable data volume can be to process historical record by the data of server to obtain.
The network state of the network link between UDP server and initiator can pass through UDP server and initiation
The transmission speed of the network link between side, packet loss and RTT describe, between UDP server and initiator
The network state of network link meet pre-conditioned including:
Transmission speed is less than first more than the first pre-set velocity, packet loss less than the first packet loss threshold value and RTT
At least one in RTT threshold value.
The network state of the network link between UDP server and answer party can pass through UDP server and response
Between the transmission speed of network link, packet loss and RTT describe,
The network state of the network link between UDP server and answer party meets pre-conditioned including:
Transmission speed is less than second more than the second pre-set velocity, packet loss less than the second packet loss threshold value and RTT
At least one in RTT threshold value.
It should be noted that step 303 to step 304 is to realize described TCP server to obtain satisfied presetting
The process of the information of multiple UDP UDP server of condition, except the side described in described step
Outside formula, it is also possible to realize this process by other means, the embodiment of the present invention is to concrete mode the most in addition
Limit.
Owing to the network parameter of UDP server describes the data-handling capacity of UDP server, UDP server
And the network link between the network state of the network link between initiator and UDP server and answer party
Network state, so TCP server is according to network parameter, obtain full from all available UDP server
Foot the most pre-conditioned multiple UDP server, it is to avoid due to the number of UDP server in data transmission procedure
According to the network state of the network link between disposal ability, UDP server and initiator and UDP server with
The network state of the network link between answer party is poor and causes data-transmission interruptions or loss of data,
Further ensure reliability and the efficiency of data transmission.
305, TCP server sends the information of multiple UDP server to initiator and answer party.
Concrete, the information of this UDP server can include the IP address of UDP server.
Concrete transmission mode is not added with limiting by the embodiment of the present invention.
It should be noted that step 303 to step 305 is to realize described server to initiator and answer party
Send the process of the information of multiple UDP UDP server, except the mode described in described step
Outside, it is also possible to realizing this process by other means, concrete mode is not limited by the embodiment of the present invention
Fixed.
306, initiator and response direction multiple UDP server sendaisle sets up request.
Concrete, the request of this Path Setup can include the network address of initiator and the network address of answer party.
Concrete transmission mode is not added with limiting by the embodiment of the present invention.
Optionally, the request of this Path Setup could be included for describing the field of wanted wire data type,
So that UDP server is according to the field of this data type, carry out data transmission the foundation of passage.
307, UDP server judges whether can set up between initiator and answer party point-to-point P2P passage,
The most then perform step 308;Otherwise, then step 309 is performed.
Concrete, it is judged that between initiator and answer party, the type of transmission medium, initiator and answer party are connected
The coverage of the network that the speed of service of the consolidated network connect, initiator and answer party are connected and initiation
Whether the network topology structure between side and answer party meets is set up the condition needed for point-to-point P2P passage.
Wherein, between initiator and answer party, the type of transmission medium meets pre-conditioned including:
The radio network interface that can support to set up wireless ad-hoc network is at least included between initiator and answer party
Or at least include wired network interface and the biography supporting to set up wired peer-to-peer network between initiator and answer party
Defeated medium.
The speed of service of the consolidated network that initiator and answer party are connected meets pre-conditioned including:
The speed of service of the consolidated network that initiator and answer party are connected is more than or equal to network speed threshold
Value.
The coverage of the network that initiator and answer party are connected meets pre-conditioned including:
The network coverage of initiator at least includes answer party, and the network coverage between answer party at least includes
Initiator.
Network topology structure between initiator and answer party meets pre-conditioned including:
Network topology structure between initiator and answer party is self-organizing and automatically adjusts.
Concrete judgment mode is not limited by the embodiment of the present invention.
It should be noted that step 307 to step 308 is optional step, in actual applications, in step
After 306, can directly perform step 309, it is not necessary to perform step 307 to step 308.
Reliable compared to transmitted by the data of transit server owing to being carried out data transmission by P2P passage
Property higher, and the efficiency of data transmission is higher, simultaneously can also avoid carrying out data by transit server
Transmit the data-transmission interruptions or loss of data caused due to middle failure of routing equipment, so UDP clothes
Business device judge whether can set up between initiator and answer party point-to-point P2P passage so that initiator with
When can set up point-to-point P2P passage between answer party, carried out data transmission by P2P passage, thus enter
One step ensure that the reliability and efficiency that data transmit.
308, UDP server sets up the P2P passage between initiator and answer party, and by the letter of P2P passage
Breath sends to initiator and answer party.
Concrete, the information of P2P passage is included by this: the routing iinformation of P2P passage.
Concrete transmission mode is not added with limiting by the embodiment of the present invention.
309, multiple UDP server set up multiple data transmission channel respectively.
Concrete, multiple UDP server respectively according to the I P address of initiator, the I P address of answer party with
And the routing iinformation between initiator and answer party, set up multiple data transmission channel;
Concrete mode of setting up is not limited by the embodiment of the present invention.
If 310, TCP server receives the second response message that answer party sends, then by the second response message
Send to initiator, after step 310, perform any one in step 311 and step 317.
Concrete, this second response message is used for the data transfer request indicating answer party to agree to initiator, and
Instruction initiator can pass through multiple data transmission channels, transmits data to answer party.
Concrete transmission mode is not added with limiting by the embodiment of the present invention.
311, during initiator obtains the first round-trip delay RTT and first packet loss of multiple data transmission channel
At least one.
Concrete, initiator sends multiple test bag by multiple data transmission channels to UDP server, obtains
Take at least one in the first round-trip delay RTT of multiple data transmission channel and the first packet loss.
Exemplary, in actual applications, this process can be:
Initiator by multiple data transmission channels therein any one send 10 to corresponding UDP server
Individual test bag, if returning 8 test bags, then the packet loss that this data transmission channel is corresponding is 20%, these 8
The average RTT of test bag is the RTT value that this data transmission channel is corresponding.
312, at least one during answer party obtains the 2nd RTT of multiple data transmission channels and the second packet loss.
Concrete, in the 2nd RTT of the answer party multiple data transmission channels of acquisition and the second packet loss at least
The mode of one obtains the first round-trip delay RTT of multiple data transmission channel with the initiator described in step 311
Identical with the mode of at least one in the first packet loss, it is not repeated here herein.
313, initiator is according to a RTT and the 2nd RTT, calculates RTT component;
Concrete, initiator obtains the 2nd RTT of the multiple data transmission channels acquired in answer party, this acquisition
Mode can be that the 2nd RTT is forwarded to initiator by TCP server by answer party;
Being calculated by the first preset formula, according to a RTT and the 2nd RTT, calculate RTT component, this is first years old
Preset formula can be:
X=x1+x2
Wherein, in described formula, r is RTT component, x1It is a RTT, x2It is the 2nd RTT, a1、a2、
a3、a4And a5It is respectively predetermined coefficient, in actual applications, a1Value can be 100, a2Value can be
30, a3Value can be 300, a4Value can be 30000, a5Value can be 3000.
Described first preset formula is merely exemplary, concrete preset formula is not added with by the embodiment of the present invention
To limit.
314, initiator is according to the first packet loss and the second packet loss, calculates packet loss component;
Concrete, initiator obtains the second packet loss of the multiple data transmission channels acquired in answer party, should
Acquisition mode can be that the second packet loss is forwarded to initiator by TCP server by answer party;
Calculated by the second preset formula, according to the first packet loss and the second packet loss, calculate packet loss component,
This second preset formula can be:
L=b1×(1-y)2
Y=1-(1-y1)×(1-y2)
Wherein, l is packet loss component, y1It is the first packet loss, y2It is the second packet loss, b1For predetermined coefficient,
In actual applications, b1Value can be 100.
Described second preset formula is merely exemplary, concrete preset formula is not added with by the embodiment of the present invention
To limit.
315, at least one in RTT component and packet loss component during initiator obtains multiple data transmission channel
Meet pre-conditioned data transmission channel.
Concrete, by the 3rd preset formula, obtain RTT component and packet loss in multiple data transmission channel
At least one in component meets pre-conditioned data transmission channel, and the 3rd preset formula can be:
S=a × r+b × l
Wherein, s is score value, and r is RTT component, and l is packet loss component, and a is the weight of r, and b is the power of l
Weight, in actual applications, a can be 0.3, and b can be 0.7;
Meeting pre-conditioned data transmission channel can be that score value s is more than or equal to point threshold at least
One data transmission channel.
Owing to the RTT of data transmission channel and packet loss describe the data transmission capabilities of data transmission channel,
When RTT and packet loss are less, the efficiency of data transmission is higher, and the situation of loss of data is less, so
Met by RTT component in the multiple data transmission channels of acquisition and at least one in packet loss component and preset bar
The data transmission channel of part, further ensures reliability and the efficiency of data transmission.
316, sender meets the information of pre-conditioned data transmission channel according at least one, to answer party
Send data, terminate.
Concrete, concrete transmission process is not added with limiting by the embodiment of the present invention.
It should be noted that step 311 to step 316 is to realize described initiator to transmit according to multiple data
Passage meets the information of at least one pre-conditioned data transmission channel, sends the mistake of data to answer party
Journey, in addition to the mode described in described step, it is also possible to realize this process, the present invention by other means
Concrete mode is not limited by embodiment.
Optionally, in addition to the mode described in step 311 to step 316, it is also possible in the following manner
Realize initiator according to multiple data transmission channels meet at least one pre-conditioned data transmission channel
Information, sends the process of data to answer party, and which can be:
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
Concrete, this acquisition mode is identical with the acquisition mode described in step 311, is not repeated here herein.
Initiator, according to a RTT, calculates RTT component;
Concrete, calculated by the 4th preset formula, according to a RTT, calculate RTT component;4th is pre-
If formula can be:
Wherein, in described formula, r is RTT component, and x is a RTT, a1、a2、a3、a4And a5Point
Not Wei predetermined coefficient, in actual applications, a1Value can be 100, a2Value can be 30, a3Value can
Think 300, a4Value can be 30000, a5Value can be 3000.
Initiator, according to the first packet loss, calculates packet loss component;
Concrete, by the 5th preset formula, according to the first packet loss, calculate packet loss component;5th
Preset formula can be;
L=b1×(1-y)2
Wherein, in described formula, l is packet loss component, and y is the first packet loss, b1For predetermined coefficient,
In actual applications, b1Value can be 100.
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel.
Concrete, by the 3rd preset formula, obtain RTT component and packet loss in multiple data transmission channel
At least one in component meets pre-conditioned data transmission channel, which and the side described in step 315
Formula is identical, is not repeated here herein.
In addition to the two mode, it is also possible to realize described initiator by other means according to many numbers
According to transmission channel meets the information of at least one pre-conditioned data transmission channel, send number to answer party
According to process, concrete mode is not limited by the embodiment of the present invention.
317, if initiator receives the information of the P2P passage that UDP server sends, then by P2P passage,
Send data to answer party, terminate.
Concrete, concrete transmission process is not added with limiting by the embodiment of the present invention.
It should be noted that step 317 is optional step, in actual applications, after step 310,
Can directly perform step 311, it is not necessary to perform step 317;It addition, in embodiments of the present invention, if in step
Before rapid 310, executed step 307 is to step 308, the most after step 310, performs step 317.
In actual applications, the flow chart of the data transmission channel method for building up that the embodiment of the present invention is provided is also
It is referred to shown in Fig. 4.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
Multiple UDP server initiators and answer party, according to the Path Setup request sent, pre-build data respectively
Transmission channel, resettle data transmission channel compared to when data are transmitted, it is to avoid at data transmission procedure
The time of medium pending data Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.
It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server, compared to
By a channel transmission data so that can when passage portion network transfer speeds and reliability are poor,
Change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, improve use
Family is experienced.Further, since the network parameter of UDP server describe UDP server data-handling capacity,
Between network state and UDP server and the answer party of the network link between UDP server and initiator
The network state of network link, so TCP server is according to network parameter, from all available UDP server
Middle acquisition meets pre-conditioned multiple UDP server, it is to avoid take due to UDP in data transmission procedure
The business data-handling capacity of device, the network state of network link between UDP server and initiator and UDP
The network state of the network link between server and answer party is poor and causes data-transmission interruptions or number
According to loss, further ensure reliability and the efficiency of data transmission.Further, since data transmission channel
RTT and packet loss describe the data transmission capabilities of data transmission channel, when RTT and packet loss are less, and number
Efficiency according to transmission is higher, and the situation of loss of data is less, so by obtaining multiple data transmission channels
At least one in middle RTT component and packet loss component meets pre-conditioned data transmission channel, further
Ensure that reliability and efficiency that data transmit.Further, since carry out data transmission comparing by P2P passage
Higher in the reliability transmitted by the data of transit server, and the efficiency of data transmission is higher, also simultaneously
Can avoid in the data carrying out data transmission causing due to middle failure of routing equipment by transit server
Transmission or loss of data, so UDP server judges whether can build between initiator and answer party
Vertical point-to-point P2P passage, during so that point-to-point P2P passage can be set up between initiator and answer party,
Carried out data transmission by P2P passage, thus further ensure reliability and the efficiency of data transmission.
A kind of data transmission channel method for building up that embodiment four provides for the embodiment of the present invention, with reference to Fig. 5 institute
Showing, the method includes:
501, TCP server receives the foundation request that initiator sends, and sends foundation request to answer party.
Concrete, this step is identical with step 301, is not repeated here herein.
502, when TCP server receive answer party send accept response message, then will accept response message
Send to initiator.
Concrete, answer party, after receiving this foundation request, sends to server and is used for indicating it to receive
Response message is accepted to what this foundation was asked.
Server receive this answer party send accept response message.
Optionally, in actual applications, if server does not receives connecing of answer party transmission in Preset Time
By response message, then can again this foundation request be sent to answer party, until receiving what answer party sent
Accept response message.
503, TCP server obtains the network parameter of all available UDP server.
Concrete, this step is identical with step 303, is not repeated here herein.
504, TCP server is according to network parameter, obtains to meet and preset bar from all available UDP server
Multiple UDP server of part.
Concrete, this step is identical with step 304, is not repeated here herein.
It should be noted that step 503 to step 504 is to realize described TCP server to obtain satisfied presetting
The process of the information of multiple UDP UDP server of condition, except the side described in described step
Outside formula, it is also possible to realize this process by other means, the embodiment of the present invention is to concrete mode the most in addition
Limit.
Owing to the network parameter of UDP server describes the data-handling capacity of UDP server, UDP server
And the network link between the network state of the network link between initiator and UDP server and answer party
Network state, so TCP server is according to network parameter, obtain full from all available UDP server
Foot the most pre-conditioned multiple UDP server, it is to avoid due to the number of UDP server in data transmission procedure
According to the network state of the network link between disposal ability, UDP server and initiator and UDP server with
The network state of the network link between answer party is poor and causes data-transmission interruptions or loss of data,
Further ensure reliability and the efficiency of data transmission.
505, TCP server sends the information of multiple UDP server to initiator and answer party.
Concrete, this step is identical with step 305, is not repeated here herein.
It should be noted that step 503 to step 505 is to realize TCP server to initiator and answer party
Send the process of the information of multiple UDP server, in addition to the mode described in described step, it is also possible to logical
Crossing other modes and realize this process, concrete mode is not limited by the embodiment of the present invention.
506, UDP server judges whether can set up between initiator and answer party point-to-point P2P passage,
The most then perform step 507;Otherwise, then step 508 is performed.
Concrete, this step is identical with step 307, and this is not repeated here.
It should be noted that step 506 to step 507 is optional step, in actual applications, in step
After 505, can directly perform step 508, it is not necessary to perform step 506 to step 507.
Reliable compared to transmitted by the data of transit server owing to being carried out data transmission by P2P passage
Property higher, and the efficiency of data transmission is higher, simultaneously can also avoid carrying out data by transit server
Transmit the data-transmission interruptions or loss of data caused due to middle failure of routing equipment, so UDP clothes
Business device judge whether can set up between initiator and answer party point-to-point P2P passage so that initiator with
When can set up point-to-point P2P passage between answer party, carried out data transmission by P2P passage, thus enter
One step ensure that the reliability and efficiency that data transmit.
507, UDP server sets up the P2P passage between initiator and answer party, and by the letter of P2P passage
Breath sends to initiator and answer party.
Concrete, this step is identical with step 308, and this is not repeated here.
508, multiple UDP server set up multiple data transmission channel respectively.
Concrete, this step is identical with step 309, and this is not repeated here.
If 509, TCP server receives the second response message that answer party sends, then by the second response message
Send to initiator, after step 509, perform any one in step 510 and step 516.
Concrete, this step is identical with step 310, and this is not repeated here.
510, during initiator obtains the first round-trip delay RTT and first packet loss of multiple data transmission channel
At least one.
Concrete, this step is identical with step 311, and this is not repeated here.
511, at least one during answer party obtains the 2nd RTT of multiple data transmission channels and the second packet loss.
Concrete, this step is identical with step 312, and this is not repeated here.
512, initiator is according to a RTT and the 2nd RTT, calculates RTT component.
Concrete, this step is identical with step 313, and this is not repeated here.
513, initiator is according to the first packet loss and the second packet loss, calculates packet loss component.
Concrete, this step is identical with step 314, and this is not repeated here.
514, at least one in RTT component and packet loss component during initiator obtains multiple data transmission channel
Meet pre-conditioned data transmission channel.
Concrete, this step is identical with step 315, and this is not repeated here.
Owing to the RTT of data transmission channel and packet loss describe the data transmission capabilities of data transmission channel,
When RTT and packet loss are less, the efficiency of data transmission is higher, and the situation of loss of data is less, so
Met by RTT component in the multiple data transmission channels of acquisition and at least one in packet loss component and preset bar
The data transmission channel of part, further ensures reliability and the efficiency of data transmission.
515, sender meets the information of pre-conditioned data transmission channel according at least one, to answer party
Send data, terminate.
Concrete, this step is identical with step 316, and this is not repeated here.
It should be noted that step 510 to step 515 is to realize described initiator to transmit according to multiple data
Passage meets the information of at least one pre-conditioned data transmission channel, sends the mistake of data to answer party
Journey, in addition to the mode described in described step, it is also possible to realize this process, the present invention by other means
Concrete mode is not limited by embodiment.
Optionally, in addition to the mode described in step 510 to step 515, it is also possible in the following manner
Realize initiator according to multiple data transmission channels meet at least one pre-conditioned data transmission channel
Information, sends the process of data to answer party, and which can be:
Initiator obtains in the first round-trip delay RTT of multiple data transmission channel and the first packet loss at least
One;
Initiator, according to a RTT, calculates RTT component;
Initiator, according to the first packet loss, calculates packet loss component;
Initiator obtain in multiple data transmission channel in RTT component and packet loss component at least one meet
Pre-conditioned data transmission channel.
In addition to the two mode, it is also possible to realize described initiator by other means according to many numbers
According to transmission channel meets the information of at least one pre-conditioned data transmission channel, send number to answer party
According to process, concrete mode is not limited by the embodiment of the present invention.
516, if initiator receives the information of the P2P passage that UDP server sends, then by P2P passage,
Send data to answer party, terminate.
Concrete, this step is identical with step 317, and this is not repeated here.
It should be noted that step 516 is optional step, in actual applications, after step 509,
Can directly perform step 510, it is not necessary to perform step 516;It addition, in embodiments of the present invention, if in step
Before rapid 509, executed step 506 is to step 507, then, after step 509, perform step 516.
In actual applications, the flow chart of the data transmission channel method for building up that the embodiment of the present invention is provided is also
It is referred to shown in Fig. 6.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
Multiple UDP server initiators and answer party, according to the Path Setup request sent, pre-build data respectively
Transmission channel, resettle data transmission channel compared to when data are transmitted, it is to avoid at data transmission procedure
The time of medium pending data Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.
It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server, compared to
By a channel transmission data so that can when passage portion network transfer speeds and reliability are poor,
Change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, improve use
Family is experienced.Further, since the network parameter of UDP server describe UDP server data-handling capacity,
Between network state and UDP server and the answer party of the network link between UDP server and initiator
The network state of network link, so TCP server is according to network parameter, from all available UDP server
Middle acquisition meets pre-conditioned multiple UDP server, it is to avoid take due to UDP in data transmission procedure
The business data-handling capacity of device, the network state of network link between UDP server and initiator and UDP
The network state of the network link between server and answer party is poor and causes data-transmission interruptions or number
According to loss, further ensure reliability and the efficiency of data transmission.Further, since data transmission channel
RTT and packet loss describe the data transmission capabilities of data transmission channel, when RTT and packet loss are less, and number
Efficiency according to transmission is higher, and the situation of loss of data is less, so by obtaining multiple data transmission channels
At least one in middle RTT component and packet loss component meets pre-conditioned data transmission channel, further
Ensure that reliability and efficiency that data transmit.Further, since carry out data transmission comparing by P2P passage
Higher in the reliability transmitted by the data of transit server, and the efficiency of data transmission is higher, also simultaneously
Can avoid in the data carrying out data transmission causing due to middle failure of routing equipment by transit server
Transmission or loss of data, so UDP server judges whether can build between initiator and answer party
Vertical point-to-point P2P passage, during so that point-to-point P2P passage can be set up between initiator and answer party,
Carried out data transmission by P2P passage, thus further ensure reliability and the efficiency of data transmission.
A kind of server that embodiment five provides for the embodiment of the present invention, shown in reference Fig. 7, this server bag
Include:
Transit module 71, for receiving the foundation request that initiator sends, and sends foundation request to response
Side;
Sending module 72, for receiving for indicating answer party to receive the of the request of foundation at transit module
After one response message, send the information of multiple UDP UDP server to initiator and answer party;
When transit module 71 is additionally operable to the second response message receiving answer party transmission, by the second response message
Send to initiator, so that initiator meets pre-conditioned at least one according in multiple data transmission channels
The information of data transmission channel, sends data to answer party;
Wherein, multiple data transmission channels are that initiator and response direction multiple UDP server sendaisle is built
After vertical request, multiple UDP server are set up respectively.
Optionally, server includes that transmission control protocol TCP server, sending module 72 specifically include:
Obtain submodule 721, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
Send submodule 722, for sending the information of multiple UDP server to initiator and answer party.
Optionally, obtain submodule 721 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple UDP clothes
Business device.
Embodiments provide a kind of server, this server before data is transmitted, by multiple UDP
Server initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel respectively,
Data transmission channel is resettled, it is to avoid at the medium pending data of data transmission procedure compared to when data are transmitted
The time of Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.It addition, pass through
Multiple data transmission channels transmission data that multiple UDP server are set up respectively, lead to compared to by one
Road transmission data so that data can be changed pass when passage portion network transfer speeds and reliability are poor
Defeated passage, it is to avoid the loss of data, improves the reliability of data transmission, improves Consumer's Experience.
A kind of server that embodiment six provides for the embodiment of the present invention, shown in reference Fig. 8, this server bag
Include memorizer 81, Network Interface Module 82 and the process being connected with memorizer 81 and Network Interface Module 82
Device 83, wherein, memorizer 81 is used for storing batch processing code, and processor 83 calls memorizer 81 and deposited
The program code of storage is used for performing following operation:
Control Network Interface Module 82 and receive the foundation request of initiator's transmission, and foundation request is sent to answering
The side of answering;
Control Network Interface Module 82 receiving for indicating answer party to receive the first response of the request of foundation
After message;
The information of multiple UDP UDP server is sent to initiator and answer party;
Control Network Interface Module 82, when receiving the second response message that answer party sends, responds second
Message send to initiator so that initiator according to multiple data transmission channels meet pre-conditioned at least
The information of one data transmission channel, sends data to answer party;
Wherein, multiple data transmission channels are that initiator and response direction multiple UDP server sendaisle is built
After vertical request, multiple UDP server are set up respectively.
Optionally, server includes that transmission control protocol TCP server, processor 82 call memorizer 81
The program code stored is for performing following operation:
Obtain the information meeting pre-conditioned multiple UDP UDP server;
The information of multiple UDP server is sent to initiator and answer party.
Optionally, processor 82 calls program code that memorizer 81 stored for performing following operation:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple UDP clothes
Business device.
Embodiments provide a kind of server, this server before data is transmitted, by multiple UDP
Server initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel respectively,
Data transmission channel is resettled, it is to avoid at the medium pending data of data transmission procedure compared to when data are transmitted
The time of Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.It addition, pass through
Multiple data transmission channels transmission data that multiple UDP server are set up respectively, lead to compared to by one
Road transmission data so that data can be changed pass when passage portion network transfer speeds and reliability are poor
Defeated passage, it is to avoid the loss of data, improves the reliability of data transmission, improves Consumer's Experience.
A kind of server that embodiment seven provides for the embodiment of the present invention, shown in reference Fig. 9, this server bag
Include:
Transit module 91, for receiving the foundation request that initiator sends, and sends foundation request to response
Side;
Sending module 92, is used for, when transit module receives when accepting response message of answer party transmission, connecing
Sent to initiator by response message, and send multiple UDP UDP to initiator and answer party
The information of server.
Optionally, server includes that transmission control protocol TCP server, sending module 92 specifically include:
Obtain submodule 921, meet pre-conditioned multiple UDP UDP server for obtaining
Information;
Send submodule 922, for sending the information of multiple UDP server to initiator and answer party.
Optionally, obtain submodule 921 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple numbers of users
According to datagram protocol UDP server.
Embodiments provide a kind of server, this server before data is transmitted, by multiple UDP
Server initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel respectively,
Data transmission channel is resettled, it is to avoid at the medium pending data of data transmission procedure compared to when data are transmitted
The time of Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.It addition, pass through
Multiple data transmission channels transmission data that multiple UDP server are set up respectively, lead to compared to by one
Road transmission data so that data can be changed pass when passage portion network transfer speeds and reliability are poor
Defeated passage, it is to avoid the loss of data, improves the reliability of data transmission, improves Consumer's Experience.
A kind of server that embodiment eight provides for the embodiment of the present invention, shown in reference Figure 10, this server bag
Include memorizer 101, Network Interface Module 102 and be connected with memorizer 101, Network Interface Module 102
Processor 103, wherein, memorizer 101 is used for storing batch processing code, and processor 103 calls memorizer
101 program codes stored are for performing following operation:
Control Network Interface Module 102 and receive the foundation request that initiator sends, and foundation request is sent extremely
Answer party;
Control Network Interface Module 102 receive that answer party sends when accepting response message, by loud for acceptances
Answer message to send to initiator, and send multiple UDP UDP service to initiator and answer party
The information of device.
Optionally, server includes that transmission control protocol TCP server, processor 102 call memorizer 101
The program code stored is for performing following operation:
Obtain the information meeting pre-conditioned multiple UDP UDP server;
The information of multiple UDP server is sent to initiator and answer party.
Optionally, processor 102 calls program code that memorizer 101 stored for performing following operation:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple numbers of users
According to datagram protocol UDP server.
Embodiments provide a kind of server, this server before data is transmitted, by multiple UDP
Server initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel respectively,
Data transmission channel is resettled, it is to avoid at the medium pending data of data transmission procedure compared to when data are transmitted
The time of Path Setup, thus improve the efficiency of data transmission, improve Consumer's Experience.It addition, pass through
Multiple data transmission channels transmission data that multiple UDP server are set up respectively, lead to compared to by one
Road transmission data so that data can be changed pass when passage portion network transfer speeds and reliability are poor
Defeated passage, it is to avoid the loss of data, improves the reliability of data transmission, improves Consumer's Experience.
Embodiment nine sets up system for a kind of data transmission channel that the embodiment of the present invention provides, with reference to Figure 11 institute
Showing, this system includes server 111, initiator 112, answer party 113 and multiple UDP UDP
Server 114, wherein:
Server 111 includes:
Transit module 1111, for receiving the foundation request that initiator 112 sends, and sends foundation request
To answer party 113;
First sending module 1112, disappears for receiving the first response of answer party 113 transmission at transit module
Breath, when the first response message is used for indicating answer party 113 to receive foundation request, to initiator 112 and should
The side of answering sends the information of multiple UDP server;
Initiator 112 and answer party 113 include the second sending module 1121 and the 3rd sending module 1131 respectively,
Second sending module 1121 and the 3rd sending module 1131 are for setting up to multiple UDP server sendaisles
Request;
Multiple UDP server 114 include multiple Path Setup module 1141, multiple Path Setup modules respectively
It is respectively used to set up multiple data transmission channel;
Transit module 1111 is additionally operable to when receiving the second response message that answer party 113 sends, by second
Response message sends to initiator 112;
Second sending module 1121 is additionally operable to meet pre-conditioned at least one according in multiple data transmission channels
The information of individual data transmission channel, sends data to answer party 113.
Optionally, server 111 includes TCP server, and the first sending module 1112 includes:
Obtain submodule 11121, meet pre-conditioned multiple UDP UDP service for obtaining
The information of device 114;
First sends submodule 11122, for sending multiple UDP service to initiator 112 and answer party 113
The information of device 114.
Optionally, obtain submodule 11121 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple UDP clothes
Business device 114.
Optionally, initiator 112 also includes that processing module 1122, processing module 1122 are used for performing following behaviour
Any one in work:
Obtain at least one in the first round-trip delay RTT of multiple data transmission channel and the first packet loss;
According to a RTT, calculate RTT component;
According to the first packet loss, calculate packet loss component;
At least one obtained in multiple data transmission channel in RTT component and packet loss component meets presets bar
The data transmission channel of part.Or
Obtain at least one in the first round-trip delay RTT of multiple data transmission channel and the first packet loss;
In 2nd RTT of the acquisition multiple data transmission channels acquired in answer party 113 and the second packet loss
At least one;
According to a RTT and the 2nd RTT, calculate RTT component;
According to the first packet loss and the second packet loss, calculate packet loss component, wherein, the 2nd RTT and second
Packet loss is that answer party is forwarded to initiator by TCP server;
At least one obtained in multiple data transmission channel in RTT component and packet loss component meets presets bar
The data transmission channel of part.
Optionally, UDP server 114 also includes:
Process submodule 1142, be used for judging whether can set up a little between initiator 112 and answer party 113
To a P2P passage;
Described process submodule 1142 is additionally operable to can set up between judgement initiator 112 and answer party 113
During point-to-point P2P passage, set up the P2P passage between initiator and answer party;
Second sends submodule 1143, for sending the information of P2P passage to initiator 112 and answer party
113。
Optionally,
Initiator 112 also includes that receiver module 1123, the second sending module 1121 are additionally operable at receiver module
During the information that 1123 receive the P2P passage that UDP server sends, by P2P passage, to answer party 113
Send data.
Embodiments providing a kind of data transmission channel and set up system, this system is by transmitting in data
Before, multiple UDP server initiators and answer party, according to the Path Setup request sent, are built the most in advance
Vertical data transmission channel, resettles data transmission channel compared to when data transmits, it is to avoid in data biography
Wait the time that data channel is set up during defeated, thus improve the efficiency of data transmission, improve user
Experience.It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server,
Compared to by a channel transmission data so that can in passage portion network transfer speeds and reliability relatively
During difference, change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, carry
High Consumer's Experience.
Embodiment ten sets up system for a kind of data transmission channel that the embodiment of the present invention provides, with reference to Figure 12 institute
Showing, this system includes server 121, initiator 122, answer party 123 and multiple UDP UDP
Server 124, wherein:
Server 121 includes:
Transit module 1211, for receiving the foundation request that initiator 122 sends, and sends foundation request
To answer party 123;
First sending module 1212, disappears for receiving the acceptance response of answer party 123 transmission at transit module
During breath, response message will be accepted and send to initiator 122, and send many to initiator 122 and answer party 123
The information of individual UDP server 124;
Initiator 122 and answer party 123 include the second sending module 1221 and the 3rd sending module 1231 respectively,
Second sending module 1221 and the 3rd sending module are respectively used to build to multiple UDP server 124 sendaisles
Vertical request;
Multiple UDP server 124 include multiple Path Setup module 1241 respectively, are used for setting up multiple data
Transmission channel;
Second sending module 1221 is additionally operable to meet pre-conditioned at least one according in multiple data transmission channels
The information of individual data transmission channel, sends data to answer party 123.
Optionally, server 121 includes TCP server, and the first sending module 1212 includes:
Obtain submodule 12121, meet pre-conditioned multiple UDP UDP service for obtaining
The information of device;
Send submodule 12122, for sending multiple UDP server to initiator 122 and answer party 123
Information.
Optionally, obtain submodule 12121 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, obtain from all available UDP server and meet pre-conditioned multiple UDP clothes
Business device 124.
Optionally, initiator also includes that processing module 1222, processing module 1222 are used for performing in following operation
Any one:
Obtain at least one in the first round-trip delay RTT of multiple data transmission channel and the first packet loss;
According to a RTT, calculate RTT component;
According to the first packet loss, calculate packet loss component;
At least one obtained in multiple data transmission channel in RTT component and packet loss component meets presets bar
The data transmission channel of part.Or
Obtain at least one in the first round-trip delay RTT of multiple data transmission channel and the first packet loss;
In 2nd RTT of the acquisition multiple data transmission channels acquired in answer party 123 and the second packet loss
At least one;
According to a RTT and the 2nd RTT, calculate RTT component;
According to the first packet loss and the second packet loss, calculate packet loss component, wherein, the 2nd RTT and second
Packet loss is that answer party is forwarded to initiator by TCP server;
At least one obtained in multiple data transmission channel in RTT component and packet loss component meets presets bar
The data transmission channel of part.
Optionally, UDP server 124 also includes:
Process submodule 1242, be used for judging whether can set up a little between initiator 122 and answer party 123
To a P2P passage;
Described process submodule 1242 is additionally operable to can set up between judgement initiator 112 and answer party 113
During point-to-point P2P passage, set up the P2P passage between initiator and answer party;
Second sends submodule 1243, for sending the information of P2P passage to initiator 122 and answer party
123。
Optionally,
Initiator 122 also includes that receiver module 1223, the second sending module 1221 are additionally operable at receiver module
During the information that 1223 receive the P2P passage that UDP server sends, by P2P passage, to answer party 123
Send data.
Embodiments providing a kind of data transmission channel and set up system, this system is by transmitting in data
Before, multiple UDP server initiators and answer party, according to the Path Setup request sent, are built the most in advance
Vertical data transmission channel, resettles data transmission channel compared to when data transmits, it is to avoid in data biography
Wait the time that data channel is set up during defeated, thus improve the efficiency of data transmission, improve user
Experience.It addition, the multiple data transmission channels transmission data set up respectively by multiple UDP server,
Compared to by a channel transmission data so that can in passage portion network transfer speeds and reliability relatively
During difference, change data transmission channel, it is to avoid the loss of data, improve the reliability of data transmission, carry
High Consumer's Experience.
Above-mentioned all optional technical schemes, can use and arbitrarily combine the alternative embodiment forming the present invention,
This repeats the most one by one.
It should be understood that the data transmission channel that above-described embodiment provides is set up system and server and is being held
During row data transmission channel method for building up, only it is illustrated with the division of above-mentioned each functional module, actual
In application, can as desired by above-mentioned functions distribution be completed by different functional modules, will server,
The internal structure of system is divided into different functional modules, to complete all or part of function described above.
It addition, the data transmission channel that above-described embodiment provides is set up system, method and server example and is belonged to
Same design, it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through
Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in
In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or
CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's
Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's
Within protection domain.