CN105847275A - Data transmission channel creating method, system and server - Google Patents
Data transmission channel creating method, system and server Download PDFInfo
- Publication number
- CN105847275A CN105847275A CN201610278942.5A CN201610278942A CN105847275A CN 105847275 A CN105847275 A CN 105847275A CN 201610278942 A CN201610278942 A CN 201610278942A CN 105847275 A CN105847275 A CN 105847275A
- Authority
- CN
- China
- Prior art keywords
- server
- answer party
- udp
- initiator
- sends
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Abstract
The invention discloses a data transmission channel creating method, system and server and belongs to the communication field. Before data transmission, a UDP server, a starting party and an answering party creates a data transmission channel in advance according to a sent channel creating request. Compared with creating the data transmission channel during data transmission, time for waiting for data channel creation during the data transmission process is saved, so that data transmission efficiency is improved and user experiment is improved.
Description
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 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.
Summary of the invention
In order to improve the efficiency of data transmission, embodiments provide a kind of data transmission channel foundation side
Method, 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 user to described initiator and described answer party
The information of datagram protocol UDP server;
UDP server sendaisle described in described initiator and described response direction sets up request;
Described UDP server sets up data transmission channel;
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 through described data transmission channel, 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 the information of UDP server to described initiator and described answer party
Including:
Described TCP server obtains the information meeting pre-conditioned UDP server;
Described TCP server sends the information of described UDP server to described initiator and described answer party.
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 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 net from described all available UDP server
The UDP server that network parameter is optimum.
In conjunction with first aspect, in the implementation that the third is possible, set up data at described UDP server
Before 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 third possible implementation of first aspect, in the 4th 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;
If described server receives the Temporary Response message that answer party sends, then to described initiator and described
Answer party sends the information of UDP UDP server, so that described initiator and described answer party
Setting up request to described UDP server sendaisle, described UDP server sets up data transmission channel;
Wherein, described Temporary Response message is used for indicating described answer party to receive described foundation request.
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 the information of UDP server to described initiator and described answer party
Including:
Described TCP server obtains the information meeting pre-conditioned UDP server;
Described TCP server sends the information of described UDP server to described initiator and described answer party.
In conjunction with the first possible implementation of second aspect, in the implementation that the second is possible, institute
State TCP server to obtain and meet the information of pre-conditioned 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 net from described all available UDP server
The UDP server that network parameter is optimum.
The third aspect, it is provided that a kind of data transmission channel sets up system, and described system includes server, use
User data datagram protocol UDP server, initiator and answer party, 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;
Sending module, during for receiving the first response message of described answer party transmission at described transit module,
Send the information of described UDP server to described initiator and described answer party, described first response message is used
Ask in indicating described answer party to receive described foundation;
Described initiator and described answer party include the first sending module and the second sending module respectively, described
One sending module and described second sending module are for setting up request to described UDP server sendaisle respectively;
Described UDP server includes that transmission channel sets up module, is used for setting up data transmission channel;
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 first sending module is additionally operable to, according to described data transmission channel, send data to described answer party.
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, for obtaining the information meeting pre-conditioned UDP server;
First sends submodule, for sending described 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, from described all available UDP server, obtain the UDP that network parameter is optimum
Server.
In conjunction with the third aspect, in the implementation that the third is possible,
Described UDP server also includes processing submodule, be used for judging described initiator and described answer party it
Between whether can set up point-to-point P2P passage;
Described UDP server also includes the second transmission submodule, described for judging at described process submodule
When can set up point-to-point P2P passage between initiator and described answer party, by the information of described P2P passage
Send to described initiator and described answer party.
In conjunction with the third possible implementation of the third aspect, in the 4th 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.
Fourth 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, during for receiving the Temporary Response message of answer party transmission at described transit module, to
Described initiator and described answer party send the information of UDP UDP server, so that described
Playing UDP server sendaisle described in side and described response direction and set up request, described UDP server is set up
Data transmission channel;
Wherein, described Temporary Response message is used for indicating described answer party to receive described foundation request.
In conjunction with fourth 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, for obtaining the information meeting pre-conditioned UDP server;
Send submodule, for sending the information of described UDP server 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 acquisition submodule specifically for:
Obtain the network parameter of all available UDP server;
According to described network parameter, from described all available UDP server, obtain the UDP that network parameter is optimum
Server.
5th 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;
If described Network Interface Module receives the Temporary Response message that answer party sends, then to described initiator
With the information that described answer party sends UDP UDP server so that described initiator and described
UDP server sendaisle described in response direction sets up request, and it is logical that described UDP server sets up data transmission
Road;
Wherein, described Temporary Response message is used for indicating described answer party to receive described foundation request.
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 processor call program code that described memorizer stored specifically for perform with
Lower operation:
Obtain the information meeting pre-conditioned UDP server;
The information of described UDP server is sent to described initiator and described answer party.
In conjunction with the first possible implementation of the 5th 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, from described all available UDP server, obtain the UDP that network parameter is optimum
Server.
Embodiments provide a kind of data transmission channel method for building up, system and server, including:
Server receives the foundation request that initiator sends, and sends foundation request to answer party;If server connects
Receiving the first response message that answer party sends, the first response message is used for indicating answer party to receive foundation please
Ask, then send the information of UDP UDP server to initiator and answer party;Initiator and should
Answer direction UDP server sendaisle and set up request;UDP server sets up data transmission channel;If server
Receive the second response message that answer party sends, then the second response message is sent to initiator;Initiator
By data transmission channel, send data to answer party.By before data is transmitted, UDP server, send out
Play side and answer party to ask according to the Path Setup sent, pre-build data transmission channel, compared to counting
Data transmission channel is resettled, it is to avoid at data transmission procedure medium pending data Path Setup during according to transmission
Time, thus improve the efficiency 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 that a kind of data transmission channel that the embodiment of the present invention provides sets up system schematic;
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.
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 UDP UDP server to initiator and answer party
Information.
Concrete, server includes transmission control protocol TCP server;
TCP server obtains the information meeting pre-conditioned UDP server.
TCP server sends the information of UDP server to initiator and answer party.
Wherein, the process of the information that the acquisition of described TCP server meets pre-conditioned UDP server is permissible
For: TCP server obtains the network parameter of all available UDP server.
TCP server, according to network parameter, obtains network parameter optimum from all available UDP server
UDP server.
103, initiator and response direction UDP server sendaisle set up request.
104, UDP server sets up data transmission channel.
Optionally, before step 104, method also includes:
UDP server judges whether can set up between initiator and answer party point-to-point P2P passage;
The most then the information of P2P passage is sent to initiator and answer party by UDP server.
If 105, server receives the second response message that answer party sends, then the second response message is sent
To initiator.
106, initiator passes through data transmission channel, sends data to answer party.
Optionally, method also includes:
If initiator receives the information of the P2P passage that UDP server sends, then by P2P passage, to
Answer party sends data.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
UDP server, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel,
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.
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.
If 202, server receives the Temporary Response message that answer party sends, then send out to initiator and answer party
Send the information of UDP UDP server, so that initiator and response direction UDP server send
Path Setup is asked, and UDP server sets up data transmission channel.
Concrete, server includes transmission control protocol TCP server, and server is to initiator and answer party
The information sending UDP server includes:
TCP server obtains the information meeting pre-conditioned UDP server;
TCP server sends the information of UDP server to initiator and answer party.
Wherein, the process of the information that the acquisition of described TCP server meets pre-conditioned UDP server is permissible
For:
TCP server obtains the network parameter of all available UDP server;
TCP server, according to network parameter, obtains network parameter optimum from all available UDP server
UDP server.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
UDP server, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel,
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.
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.
If 302, TCP server receives the first response message that answer party sends, the first response message is used for
Instruction 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 network parameter from all available UDP server
Excellent UDP server.
Can be by judging the net between the data-handling capacity of UDP server, UDP server and initiator
In the network state of the network link between network state and UDP server and the answer party of network link extremely
A few UDP server determining that network parameter is optimum, it is also possible to be the number of comprehensive descision UDP server
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 determines the UDP server meeting network parameter optimum.
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 maximum, and this unit interval server can process
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:
At least one in transmission speed maximum, packet loss minimum and RTT minimum.
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:
At least one in transmission speed maximum, packet loss minimum and RTT minimum.
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, from all available UDP server obtain net
The UDP server of the UDP server that network parameter is optimum, 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.
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 the UDP server of condition, in addition to the mode described in described step, it is also possible to pass through
Other modes realize this process, and concrete mode is not limited by the embodiment of the present invention.
305, TCP server sends the information of UDP server to initiator and answer party.
Concrete, the information of this UDP server can include the I P 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.
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 UDP UDP server, in addition to the mode described in described step,
Can also realize this process by other means, concrete mode is not limited by the embodiment of the present invention.
306, initiator and response direction UDP server sendaisle set 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 perform step 309.
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.
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.
It should be noted that step 307 to step 308 is optional step, in actual applications, in step
After 306, step 307 can not be performed to step 308, directly perform step 309.
309, UDP server sets up data transmission channel.
Concrete, UDP server is respectively according to the IP address of initiator, the IP address of answer party and send out
Play the routing iinformation between side and answer party, set up data transmission channel;
Concrete mode of setting up is not limited by the embodiment of the present invention.
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.
If 310, server receives the second response message that answer party sends, then the second response message is sent
To initiator, after step 310, any one in step 311 and 312 is performed.
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, initiator passes through data transmission channel, sends data to answer party.
Concrete, concrete transmission process is not added with limiting by the embodiment of the present invention.
If 312 initiators receive the information of the P2P passage that UDP server sends, then by P2P passage,
Data are sent to answer party.
Concrete, concrete transmission process is not added with limiting by the embodiment of the present invention.
If it should be noted that after step 306, executed step 307 is to step 308, then in step
After 310, directly perform step 312;If after step 306, it is not carried out step 307 to step 308,
The most after step 310, only carry out step 311 and do not perform step 312.
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,
UDP server, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel,
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.
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.
If 502, TCP server receive answer party send Temporary Response message, this Temporary Response message with
The first response message in embodiment three is identical, is used for indicating answer party to receive initiator and is serviced by TCP
The foundation request that device forwards.
Concrete, answer party, after receiving this foundation request, sends Temporary Response message to server.
Server receives the Temporary Response message that this answer party sends.
Optionally, in actual applications, if server does not receives facing of answer party transmission in Preset Time
Time response message, then can again this foundation request be sent to answer party, until receiving what answer party sent
Temporary 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 network parameter from all available UDP server
Excellent UDP server.
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 TCP server acquisition to meet pre-conditioned
The process of information of UDP server, in addition to the mode described in described step, it is also possible to by other
Mode realizes this process, and concrete mode is not limited by the embodiment of the present invention.
505, TCP server sends the information of UDP server to initiator and answer party so that initiator and
Response direction UDP server sendaisle sets up request, and UDP server sets up data transmission channel.
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 sending number of users to initiator and answer party
According to the process of the information of datagram protocol 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.
Embodiments provide a kind of data transmission channel method for building up, by before data is transmitted,
UDP server, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel,
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.
Embodiment five sets up system for a kind of data transmission channel that the embodiment of the present invention provides, with reference to Fig. 6 institute
Showing, shown system includes server 61, initiator 62, answer party 63 and UDP UDP
Server 64 is wherein:
Server 61 includes:
Transit module 611, for receiving the foundation request that initiator 62 sends, and sends foundation request extremely
Answer party 63;
Sending module 612, for receiving, at transit module 611, the first response message that answer party 63 sends
Time, the first response message is used for indicating answer party 63 to receive foundation request, to initiator 62 and answer party
63 information sending UDP server 64;
Initiator 62 and answer party 63 include the first sending module 621 and the second sending module 631 respectively, the
One sending module 621 and the second sending module 631 please for setting up to UDP server 64 sendaisle respectively
Ask;
UDP server 64 includes that transmission channel sets up module 641, is used for setting up data transmission channel;
Transit module 611 is additionally operable to when receiving the second response message that answer party 63 sends, by the second sound
Message is answered to send to initiator 62;
First sending module 621 is additionally operable to, according to data transmission channel, send data to answer party 63.
Optionally, server includes that transmission control protocol TCP server, sending module 612 specifically include:
Obtain submodule 6121, for obtaining the information meeting pre-conditioned UDP server;
First sends submodule 6122, for sending UDP server 64 to initiator 62 and answer party 63
Information.
Optionally, obtain submodule 6121 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, from all available UDP server, obtain the UDP server that network parameter is optimum.
Optionally,
UDP server 64 also includes processing submodule 642, be used for judging initiator 62 and answer party 63 it
Between whether can set up point-to-point P2P passage;
UDP server 64 also includes the second transmission submodule 643, for processing submodule 642 judgement
Rise between side 62 and answer party 63 when can set up point-to-point P2P passage, the information of P2P passage is sent
To initiator 62 and answer party 63.
Optionally,
Initiator 62 also includes that receiver module 622, the second sending module 621 are additionally operable at receiver module 622
When receiving the information of the P2P passage that UDP server 64 sends, by P2P passage, to answer party 63
Send data.
Embodiments providing a kind of data transmission channel and set up system, this system is by transmitting in data
Before, UDP server, initiator and answer party, according to the Path Setup request sent, pre-build that data pass
Defeated passage, resettle data transmission channel compared to when data are transmitted, it is to avoid in data transmission procedure
Wait the time that data channel is set up, thus improve the efficiency of data transmission, improve Consumer's Experience.
A kind of server that embodiment six provides for the embodiment of the present invention, with reference to shown in Fig. 7, server includes:
Transit module 71, for receiving the foundation request that initiator sends, and sends foundation request to response
Side;
Sending module 72, during for receiving the Temporary Response message of answer party transmission at transit module 71, to
Initiator and answer party send the information of UDP UDP server, so that initiator and answer party
Setting up request to UDP server sendaisle, UDP server sets up data transmission channel;
Wherein, Temporary Response message is used for indicating answer party to receive foundation request.
Optionally, server includes that transmission control protocol TCP server, sending module 71 specifically include:
Obtain submodule 711, for obtaining the information meeting pre-conditioned UDP server;
Send submodule 712, for sending the information of UDP server to initiator and answer party.
Optionally, obtain submodule 711 specifically for:
Obtain the network parameter of all available UDP server;
According to network parameter, from all available UDP server, obtain the UDP server that network parameter is optimum.
Embodiments providing a kind of server, this server is by before data is transmitted, and UDP services
Device, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel, compare
In resettling data transmission channel when data are transmitted, it is to avoid at data transmission procedure medium pending data passage
The time set up, thus improve the efficiency of data transmission, improve Consumer's Experience.
A kind of server that embodiment seven provides for the embodiment of the present invention, with reference to shown in Fig. 8, server includes
Memorizer 81, Network Interface Module 82 and the processor being connected with memorizer 83, Network Interface Module 82,
Wherein, memorizer 81 is used for storing batch processing code, and processor 83 calls the journey that memorizer 81 is stored
Sequence code 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;
If Network Interface Module 82 receives the Temporary Response message that answer party sends, then to initiator and response
Side sends the information of UDP UDP server, so that initiator and response direction UDP server
Sendaisle sets up request, and UDP server sets up data transmission channel;
Wherein, Temporary Response message is used for indicating answer party to receive foundation request.
Optionally, server includes that transmission control protocol TCP server, processor 83 call memorizer 81
The program code stored is specifically for performing following operation:
Obtain the information meeting pre-conditioned UDP server;
The information of UDP server is sent to initiator and answer party.
Optionally, processor 83 calls program code that memorizer 81 stored specifically for performing following behaviour
Make:
Obtain the network parameter of all available UDP server;
According to network parameter, from all available UDP server, obtain the UDP server that network parameter is optimum.
Embodiments providing a kind of server, this server is by before data is transmitted, and UDP services
Device, initiator and answer party, according to the Path Setup request sent, pre-build data transmission channel, compare
In resettling data transmission channel when data are transmitted, it is to avoid at data transmission procedure medium pending data passage
The time set up, thus improve the efficiency of data transmission, improve 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.
Performing it should be understood that the data transmission channel that above-described embodiment provides sets up system and server
During data transmission channel method for building up, being only illustrated with the division of above-mentioned each functional module, reality should
In with, can as desired above-mentioned functions distribution be completed by different functional modules, will data transmission
The internal structure of Path Setup system and server is divided into different functional modules, described above to complete
All or part of function.It addition, above-described embodiment provide data transmission channel set up system, method and
Server example belongs to same design, and 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.
Claims (10)
1. a data transmission channel method for building up, it is characterised in that 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 user to described initiator and described answer party
The information of datagram protocol UDP server;
UDP server sendaisle described in described initiator and described response direction sets up request;
Described UDP server sets up data transmission channel;
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 through described data transmission channel, sends data to described answer party.
Method the most according to claim 1, it is characterised in that described server includes passing transport control protocol
View TCP server, described server sends the information of UDP server to described initiator and described answer party
Including:
Described TCP server obtains the information meeting pre-conditioned UDP server;
Described TCP server sends the information of described UDP server to described initiator and described answer party.
Method the most according to claim 2, it is characterised in that described TCP server obtains and meets in advance
If the information of the UDP server of condition includes:
Described TCP server obtains the network parameter of all available UDP server;
Described TCP server, according to described network parameter, obtains net from described all available UDP server
The UDP server that network parameter is optimum.
Method the most according to claim 1, it is characterised in that set up data at described UDP server
Before 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.
Method the most according to claim 4, it is characterised in that described method 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.
6. a data transmission channel method for building up, it is characterised in that 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 Temporary Response message that answer party sends, then to described initiator and described
Answer party sends the information of UDP UDP server, so that described initiator and described answer party
Setting up request to described UDP server sendaisle, described UDP server sets up data transmission channel;
Wherein, described Temporary Response message is used for indicating described answer party to receive described foundation request.
Method the most according to claim 6, it is characterised in that described server includes passing transport control protocol
View TCP server, described server sends the information of UDP server to described initiator and described answer party
Including:
Described TCP server obtains the information meeting pre-conditioned UDP server;
Described TCP server sends the information of described UDP server to described initiator and described answer party.
Method the most according to claim 7, it is characterised in that described TCP server obtains and meets in advance
If the information of the UDP server of condition includes:
Described TCP server obtains the network parameter of all available UDP server;
Described TCP server, according to described network parameter, obtains net from described all available UDP server
The UDP server that network parameter is optimum.
9. a data transmission channel sets up system, it is characterised in that described system includes server, user
Datagram protocol UDP server, initiator and answer party, 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;
Sending module, during for receiving the first response message of described answer party transmission at described transit module,
Send the information of described UDP server to described initiator and described answer party, described first response message is used
Ask in indicating described answer party to receive described foundation;
Described initiator and described answer party include the first sending module and the second sending module respectively, described
One sending module and described second sending module are for setting up request to described UDP server sendaisle respectively;
Described UDP server includes that transmission channel sets up module, is used for setting up data transmission channel;
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 first sending module is additionally operable to, according to described data transmission channel, send data to described answer party.
10. a server, it is characterised in that 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, during for receiving the Temporary Response message of answer party transmission at described transit module, to
Described initiator and described answer party send the information of UDP UDP server, so that described
Playing UDP server sendaisle described in side and described response direction and set up request, described UDP server is set up
Data transmission channel;
Wherein, described Temporary Response message is used for indicating described answer party to receive described foundation request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610278942.5A CN105847275A (en) | 2016-04-29 | 2016-04-29 | Data transmission channel creating method, system and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610278942.5A CN105847275A (en) | 2016-04-29 | 2016-04-29 | Data transmission channel creating method, system and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105847275A true CN105847275A (en) | 2016-08-10 |
Family
ID=56589881
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610278942.5A Pending CN105847275A (en) | 2016-04-29 | 2016-04-29 | Data transmission channel creating method, system and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105847275A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112653656A (en) * | 2019-10-12 | 2021-04-13 | 华为技术有限公司 | Data communication method and device based on application layer protocol |
CN113194550A (en) * | 2021-04-30 | 2021-07-30 | 深圳市道通科技股份有限公司 | Data channel construction method, server and data cluster system |
WO2021184225A1 (en) * | 2020-03-17 | 2021-09-23 | 华为技术有限公司 | Communication method and apparatus |
CN116032998A (en) * | 2021-10-26 | 2023-04-28 | 广州视源电子科技股份有限公司 | Data transmission method, data transmission device, computer readable storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881916A (en) * | 2005-06-17 | 2006-12-20 | 腾讯科技(深圳)有限公司 | Method and apparatus for realizing communication between communication equipments |
CN101188601A (en) * | 2006-11-15 | 2008-05-28 | 中兴通讯股份有限公司 | A method for quickly sending and receiving multimedia data |
CN101364976A (en) * | 2007-08-07 | 2009-02-11 | 阿里巴巴集团控股有限公司 | Method and apparatus for establishing communication channel |
CN101640736A (en) * | 2008-07-30 | 2010-02-03 | 中国网通集团宽带业务应用国家工程实验室有限公司 | Method and system for realizing visual customer service |
CN102546559A (en) * | 2010-12-29 | 2012-07-04 | 北京新媒传信科技有限公司 | Method, equipment and system for end-to-end transmission of data in challenged network |
-
2016
- 2016-04-29 CN CN201610278942.5A patent/CN105847275A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881916A (en) * | 2005-06-17 | 2006-12-20 | 腾讯科技(深圳)有限公司 | Method and apparatus for realizing communication between communication equipments |
US20080175383A1 (en) * | 2005-06-17 | 2008-07-24 | Tencent Technology (Shenzhen) Company, Ltd. | Method and communication unit for communicating between communication apparatus |
CN101188601A (en) * | 2006-11-15 | 2008-05-28 | 中兴通讯股份有限公司 | A method for quickly sending and receiving multimedia data |
CN101364976A (en) * | 2007-08-07 | 2009-02-11 | 阿里巴巴集团控股有限公司 | Method and apparatus for establishing communication channel |
CN101640736A (en) * | 2008-07-30 | 2010-02-03 | 中国网通集团宽带业务应用国家工程实验室有限公司 | Method and system for realizing visual customer service |
CN102546559A (en) * | 2010-12-29 | 2012-07-04 | 北京新媒传信科技有限公司 | Method, equipment and system for end-to-end transmission of data in challenged network |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112653656A (en) * | 2019-10-12 | 2021-04-13 | 华为技术有限公司 | Data communication method and device based on application layer protocol |
WO2021184225A1 (en) * | 2020-03-17 | 2021-09-23 | 华为技术有限公司 | Communication method and apparatus |
CN113194550A (en) * | 2021-04-30 | 2021-07-30 | 深圳市道通科技股份有限公司 | Data channel construction method, server and data cluster system |
CN116032998A (en) * | 2021-10-26 | 2023-04-28 | 广州视源电子科技股份有限公司 | Data transmission method, data transmission device, computer readable storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634299B (en) | Based on multi-link real time streaming terminal and method | |
CN110536262A (en) | A kind of direct link communications method, apparatus and storage medium | |
CN104080170B (en) | A kind of transmission method and equipment of D2D response message | |
CN102111409B (en) | Method and system to support wireless multicast transmission | |
CN100338898C (en) | Apparatus and method for establishing a session in a radio network organized with mobile nodes | |
JP2020511083A (en) | Service quality control method and device, SMF, UPF, UE, PCF and AN | |
CN103582174A (en) | Wireless communication system for offline participation in a display session | |
CN105847275A (en) | Data transmission channel creating method, system and server | |
CN108924872A (en) | Data transmission method, terminal and equipment of the core network | |
CN104519414B (en) | A kind of method and system of streaming media | |
CN106027599A (en) | Data transmission channel establishing method and system, and server | |
CN104410982A (en) | Terminal aggregation and refactoring method in wireless heterogeneous network | |
CN105227418A (en) | Data channel establishing method and communication equipment | |
CN115118524A (en) | Interface equipment and free intercommunication data transparent transmission method, system and device of Internet of things | |
WO2012146170A1 (en) | Data distribution method and apparatus for multiple radio access technologies servicing one user equipment | |
CN102223371A (en) | Method and equipment for managing multimedia conference | |
WO2017008701A1 (en) | Data transmission method, apparatus, and user device | |
CN110505614A (en) | A kind of communication means and device of ZigBee binding switch | |
CN107889095B (en) | Method for realizing wireless data transmission by adopting multilink channel | |
CN106559833A (en) | A kind of data transmission method, terminal, WAP and system | |
CN113038064B (en) | Mobile terminal conference system | |
US20240049116A1 (en) | Method for transmitting and receiving data and device for same in short-range wireless communication system | |
CN105871868A (en) | Data transmission channel establishing method, system and server | |
CN116016025A (en) | Communication method, device and storage medium | |
CN105519049A (en) | Message transmission method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160810 |
|
WD01 | Invention patent application deemed withdrawn after publication |