CN101364976A - Method and apparatus for establishing communication channel - Google Patents

Method and apparatus for establishing communication channel Download PDF

Info

Publication number
CN101364976A
CN101364976A CNA2007101432233A CN200710143223A CN101364976A CN 101364976 A CN101364976 A CN 101364976A CN A2007101432233 A CNA2007101432233 A CN A2007101432233A CN 200710143223 A CN200710143223 A CN 200710143223A CN 101364976 A CN101364976 A CN 101364976A
Authority
CN
China
Prior art keywords
communication
strategy
strategies
terminal
communication strategy
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.)
Granted
Application number
CNA2007101432233A
Other languages
Chinese (zh)
Other versions
CN101364976B (en
Inventor
白振国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN 200710143223 priority Critical patent/CN101364976B/en
Publication of CN101364976A publication Critical patent/CN101364976A/en
Priority to HK09102867.7A priority patent/HK1122667A1/en
Application granted granted Critical
Publication of CN101364976B publication Critical patent/CN101364976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for establishing a communication channel. The method comprises the following steps: a first terminal sends a negotiated request message to a second terminal through a server; the negotiated request message comprises a first communication strategy assembly; two or a plurality of communication strategies are included in the first communication strategy assembly; the second terminal acquires the first communication strategy assembly from the negotiated request message received, and generates the first communication strategy assembly into a second communication strategy assembly according to preset rules; the second terminal carries out handclasp according to a communication strategy sequence in the second communication strategy assembly; and if the handclasp is realized, the communication channel is established between the first terminal and the second terminal. Thus, by carrying out the invention, the problem in the prior art that when the communication channel is established through carrying out various communication strategies, the negotiated request message is required to be forwarded for a plurality of times by the server, thereby increasing the load of the server, further reducing the performance of the server, and influencing the performance of the service is solved.

Description

A kind of method and device of setting up communication port
Technical field
The present invention relates to computer communication field, particularly relate to a kind of method and device of setting up communication port.
Background technology
At present, the network service based on P2P (Peer-to-Peer, point-to-point) is applied for example instant messaging, point-to-point file transfer, the broadcast of point-to-point audio frequency and video and voice video conference etc. in numerous fields.
In order to realize P2P communication, prior art provides the strategy of the multiple P2P of foundation passage, as based on TCP (Transmission Control Protocol, transmission control protocol) P2P passage, based on UDP (User Data Protocol, User Datagram Protoco (UDP)) P2P passage and based on communication port of UPNP (UniversalPlug and Play, UPnP) etc.But, because different communication strategies is in order to adapt to different application programs and network environment, therefore, when two main frames that are arranged in network need carry out P2P communication, under the situation of not knowing the bipartite network environment, often to need to attempt multiple communication strategy.
For ease of understanding, at first several notions that may occur in this specification are made an explanation:
This specification described " negotiation " is meant that generally the calling party transmits the process of request message by server to the callee, and in addition, this process can also comprise that the callee transmits response message by server to the calling party; This specification described " shaking hands " is meant that generally the calling party directly sends a request message to the callee by certain communication strategy, and the process that receives callee's response message.
Below, referring to Fig. 1, it with the instant communicating system process that terminal A and terminal B set up communication port in the example explanation prior art, in this embodiment, terminal A at first attempts and the communication port of terminal B foundation based on TCP, if connection failure, then attempt setting up communication port based on UDP, if connect still failure, then reattempt the communication port of alternate manner, its detailed process is: at first, terminal A sends negotiation request message to server S, this message comprises this communication mode of the IP address, application program corresponding port number of terminal A and appointment, i.e. TCP.
Server S is forwarded to terminal B with the negotiation request message of receiving;
Terminal B obtains the IP address of A from the negotiation request message of receiving, port numbers, begin to hold " shaking hands " with terminal A: terminal B then and send connection request message to A, this message comprises source IP address and source port number, and target ip address and destination port number, described source IP address and source port are IP address and the port numbers of terminal B, described target ip address and target port are IP address and the port numbers of terminal A, if terminal B receives replying of terminal A at described source port in the time bar of appointment, it is successful then " to shake hands ", both sides set up the P2P passage, otherwise the failure of shaking hands for the first time.If failure, terminal B begins to attempt another kind of communication strategy, promptly sets up the UDP passage: at first, terminal B transmits negotiation request message by server S to terminal A, and this message comprises terminal B its own IP address, the communication mode of port numbers and appointment; Terminal A carries out to terminal B and shakes hands according to IP address, the port numbers of terminal B in this negotiation request message, if shake hands successfully, then illustrate and to carry out UDP communication between terminal A and the terminal B, can set up communication port, otherwise terminal A transmits new negotiation request message by server S to terminal B, and both sides attempt down a kind of communication strategy.Repeat said process, carried out all communication strategies up to both sides.
In the above-mentioned process of setting up communication port, shake hands at every turn the failure after, the calling party needs to generate new port numbers for setting up another kind of communication strategy, and with the communication mode of this port numbers, IP address and appointment as negotiation request message by server forwards to the callee.Owing in setting up the process of communication port, often need to attempt carrying out multiple communication strategy, and communication strategy of every execution all needs the corresponding negotiation request message of server forwards, therefore, increased the load of server greatly, particularly such as in the such system of instant messaging, owing to there is a large amount of communicating terminals simultaneously, therefore, need the negotiation request message of server forwards also sharply to increase for setting up communication port, not only caused white elephant to server, but also the instability that might cause system to move influences normal data communication.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus of setting up communication port, to solve prior art in setting up the process of communication port, when communicating pair is carried out multiple communication strategy, need server repeatedly to transmit negotiation request message and server load increase that causes even the instability of moving.
For achieving the above object, the invention discloses a kind of method of setting up communication port, described method comprises:
First terminal sends negotiation request message by server to second terminal, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second terminal is obtained the described first communication strategy collection from the negotiation request message of receiving; And press presetting rule with described first communication strategy collection generation second communication set of strategies;
Second terminal is carried out in proper order according to the communication strategy in the described second communication set of strategies and is shaken hands; If shake hands successfully, then first terminal and second terminal are set up communication port.
Preferably, described is to filter according to the communication strategy that the communication strategy that second terminal self is supported is concentrated described first communication strategy to generate the second communication set of strategies by presetting rule with first communication strategy collection generation second communication set of strategies.
Preferably, described method also comprises:
Second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises described second communication set of strategies;
First terminal is obtained the negotiation response message; And carry out in proper order according to the communication strategy in the described second communication set of strategies and to shake hands.
Preferably, described method also comprises:
First terminal or second terminal are carried out preferably the second communication set of strategies that gets access to, and the storage preferred result;
Also comprised before second terminal sends negotiation request message in first terminal:
Whether first terminal inquiry stores preferred communication strategy collection, if exist, this communication strategy collection is sent negotiation request message as the first communication strategy collection to current second terminal.
Preferably, described the second communication set of strategies is preferably included:
The communication strategy of the success of shaking hands in the second communication set of strategies is labeled as the priority communication strategy.
Preferably, described the second communication set of strategies is preferably included:
Each strategy is carried out the success rate of shaking hands in the statistics second communication set of strategies when repeatedly setting up communication port, according to this success rate the communication strategy in the second communication set of strategies is sorted.
Preferably, also comprise the transfer communication strategy in the described second communication set of strategies, corresponding with this transfer communication strategy respectively transfer server of first terminal and second terminal is carried out and is shaken hands, if shake hands successfully, then first terminal and second terminal are set up communication port by transfer server.
Preferably, described carry out in proper order to shake hands by the communication strategy in the second communication set of strategies comprise:
Concentrate to take out tactful n from communication strategy, generate corresponding connection request message according to the communication mode of this strategy n appointment; Send this connection request message, if in the time of appointment, receive response message, then shake hands successfully, take out tactful n+1 and repeat and shake hands, up to shaking hands success or execute all communication strategies otherwise concentrate from described communication strategy.
For achieving the above object, the invention also discloses a kind of method of setting up communication port, described method comprises:
First terminal sends negotiation request message by server to second terminal, and this negotiation response message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second terminal is obtained the described first communication strategy collection from the negotiation request message of receiving; And press presetting rule with described first communication strategy collection generation second communication set of strategies;
Second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises described second communication set of strategies;
First terminal is obtained and is consulted response message and carry out in proper order according to the communication strategy in the described second communication set of strategies to shake hands, if shake hands successfully, then first terminal and second terminal are set up communication port.
For achieving the above object, the invention also discloses a kind of device of setting up communication port, described device comprises:
First communication unit is used for sending negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
Preferably, described communication strategy collection converting unit is to filter generation second communication set of strategies according to the communication strategy that the communication strategy that this device self is supported is concentrated described first communication strategy by presetting rule with the first communication strategy collection generation second communication set of strategies that second communication unit is received.
Preferably, described device also comprises:
The 3rd communication unit is used for sending the negotiation response message by server, and described negotiation response message comprises described second communication set of strategies;
Four-way news unit is used for receiving and consults response message, and this negotiation response message comprises the second communication set of strategies.
Preferably, described device also comprises:
Memory cell is used for the storing communication set of strategies;
Preferred cell is used for the second communication set of strategies that second communication set of strategies that communication strategy collection converting unit is generated or third communication unit received and carries out preferably, and preferred result is stored in memory cell;
Query unit is used for inquiring about memory cell and whether has preferred communication strategy collection, if exist, as the first communication strategy collection, otherwise the communication strategy collection that obtains acquiescence is as the first communication strategy collection with this communication strategy collection.
Preferably, described preferred cell also comprises:
Indexing unit is used for the shake hands communication strategy of success of second communication set of strategies is labeled as preference strategy.
Preferably, described preferred cell also comprises:
Sequencing unit is used for the communication strategy of second communication set of strategies is sorted according to its success rate of shaking hands.
Preferably, also comprise the transfer communication strategy in the described second communication set of strategies; Handshake elements is carried out with corresponding transfer server according to this transfer communication strategy and is shaken hands.
For achieving the above object, the invention also discloses a kind of caller device of setting up communication port, described device comprises:
First communication unit is used for sending negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies.
For achieving the above object, the invention also discloses a kind of called device of setting up communication port, described device comprises:
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
The invention also discloses a kind of data communication system, comprise server and a plurality of communication terminal, described communicating terminal comprises:
First communication unit is used for sending negotiation request message by server, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
Compared with prior art, one embodiment of the invention have following effect:
In the prior art, communicating pair is in setting up the process of communication port, a kind of communication strategy of every execution, the calling party needs to send negotiation request message by server to the callee, so that utilize this negotiation request message to specify this to set up information such as the employed IP of communication port address, port and communication mode.Because the difference of network environment, carry out to shake hands by a kind of communication strategy and often can't successfully set up communication port, therefore, both sides usually need to attempt carrying out multiple communication strategy, so, causing needs server repeatedly to transmit negotiation request message in setting up the process of communication port, causes server load to increase, and then influences the stability of server operation.Among the present invention, the calling party is organized as the first communication strategy collection with multiple communication strategy by certain format, and request message sends by server forwards this first communication strategy collection to the callee through consultation, the callee presses pre-defined rule according to the first communication strategy collection and generates the second communication set of strategies, and carry out in proper order according to the communication strategy in this second communication set of strategies and to shake hands, set up communication port or execute all communication strategies up to the success of shaking hands.Because the present invention is in setting up the process of communication port, communicating pair only need pass through negotiation request message of server forwards, therefore avoided repeatedly transmitting the server load increase that negotiation request message causes in the prior art, even influenced the stable problem of server.In addition, owing to needn't send negotiation request message carrying out between two communication strategies, avoided the time loss that causes thus, therefore, made that setting up the time that communication port need consume by the present invention significantly reduces, and has improved the promptness of setting up communication port.
Description of drawings
Fig. 1 is the system architecture diagram that communication terminal is set up communication port in the prior art;
Fig. 2 is the flow chart of steps of the embodiment 1 of a kind of method of setting up communication port of the present invention;
Fig. 3 is the flow chart of steps of the embodiment 2 of a kind of method of setting up communication port of the present invention;
Fig. 4 is the flow chart of steps of the embodiment 3 of a kind of method of setting up communication port of the present invention;
Fig. 5 is the system environments block diagram according to an Application Example of the method for setting up communication port of the present invention;
Fig. 6 is a kind of structured flowchart of setting up device one embodiment of communication port of the present invention;
Fig. 7 is the system architecture diagram of an embodiment of a kind of communication system of the present invention.
Embodiment
At present, prior art is when using a kind of communication strategy to set up communication port, the calling party need be with negotiation message by server forwards to the callee, as if needing to attempt multiple communication strategy in the process of setting up communication port, then server need repeatedly be transmitted negotiation request message, thereby the load of the server that causes sharply increases, and causes the instability of server operation.The present invention generates the communication strategy collection with multiple communication strategy and is sent to the callee, and communicating pair is set up communication port according to the communication strategy collection, owing to avoided server repeatedly to transmit negotiation message, therefore, has well solved the problem that prior art exists.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
With reference to Fig. 2, Fig. 2 shows the flow chart of steps of the embodiment 1 of a kind of method of setting up communication port of the present invention.Referring to Fig. 2 this embodiment is further described:
Step 201: first terminal sends negotiation request message by server to second terminal, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies.
Communicating pair is under the situation of not knowing information such as bipartite network address, port as yet, can't begin to set up communication port, therefore need reliably be connected by setting up with server, utilize this server to hold consultation, so that network address, port of obtaining calling party or callee etc. are used to set up the information of communication port.
Communication strategy has been specified a kind of communication mode, for example TCP, UDP and UPNP etc.Is the communication strategy collection with multiple communication strategy by certain format organization together.The present invention is called the first communication strategy collection with the communication strategy collection that himself can support that first terminal generates.The communication strategy collection preferably can be organized according to the form of array.Provide a kind of topology example of communication strategy collection below:
Strategy 1 Strategy 2 ... Strategy n-1 Strategy n ... Strategy m
Preferably, each concentrated strategy of communication strategy comprises following content:
Channel type The passive sign of active Time of implementation (millisecond) Allocation index
Wherein,
" channel type ": i.e. the communication mode carried out of this communication strategy, as TCP or UDP etc.;
" initiatively passive sign ": being used for identifying when carrying out this strategy is initiatively to initiate or passive wait, in this example, and " 0 " expression active, " 1 " expression is passive;
" time of implementation ": limited should strategy execution consuming time, if exceed this time, then thinking this strategy execution failure needs to carry out next strategy;
" allocation index ": be used to identify the network address and the port of this communication strategy correspondence, as follows the address reference table of face:
Allocation index The one IP address First port numbers
Wherein,
" an IP address ": the IP address designation the unique positional information of terminal in network, in addition, also can adopt the network address of domain name or other information representation terminals, we represent the network address of terminal with the IP address in the following description;
" first port numbers ": in communication process, port numbers is divided into source port number and destination port number, and certainly, so-called source and target is relative.Preferably, different port numbers is set, can gives the corresponding application processing so that when communication, ask and receive data according to different application.By port numbers in conjunction with the IP address, can the different application in unique sign different location in network-wide basis.Therefore understand easily, when having a plurality of application programs to set up a plurality of communication port on the terminal with the outside, just need to open a plurality of different ports, and, even when a plurality of communication port is set up in same application program and outside, also need to open a plurality of different ports, for example, we set up communication port with a plurality of contact persons simultaneously by instant communication terminal, carry out file transfer.Exert an influence between many communication ports that may occur, the present invention is preferred, is that each communication strategy that first communication strategy is concentrated distributes different port numbers.In addition, when enforcement is of the present invention, those skilled in the art also can select to use same port to carry out different communication strategies, set up different communication ports, but need to control the data that to transmit on the different passages simultaneously and submit to application corresponding by this port, owing to often need extra development sequence to control, not only cost is higher, and realizes comparatively complicated.For the ease of understanding, in the description afterwards, all use different port with Different Strategies, the corresponding different port of different application is that example is described.For example, we represent the first communication strategy collection with array Policy1, with Addr presentation address concordance list, comprise 3 communication strategies in this set of strategies:
Policy1[0]={tcp,0,200,0}
Policy1[1]={udp,0,300,1}
Policy1[2]={upnp,0,300,2}
Addr[0]={192.168.1.2,6200}
Addr[1]={192.168.1.2,6300}
Addr[2]={ 10.21.123.6,6200} // for meeting the requirement of upnp communication mode, IP address 10.21.123.6 and port 6200 are outer net address and the port that the local area network (LAN) inner machine is hinted obliquely on NAT (Network Address Translation, network address translation) equipment.Need to prove that the organizational form of the above-mentioned first communication strategy collection and content are preferable methods of the present invention, those skilled in the art should not be interpreted as limitation of the present invention with it.
Step 202: second terminal is obtained the first communication strategy collection from the negotiation request message of receiving.
Step 203: the described first communication strategy collection is generated the second communication set of strategies by presetting rule.
Because network, hardware environment there are differences, the communication strategy that communicating pair is supported is often also inequality.Preferably, second terminal is filtered the first communication strategy collection according to the communication strategy of himself supporting and is generated the second communication set of strategies, so, since the filtering of second communication set of strategies the communication strategy invalid to second terminal, therefore, avoided having reduced the time of setting up communication port because of carrying out the time loss that invalid strategy causes.Certainly, those skilled in the art are in the content of implementing can to determine according to actual needs when of the present invention the second communication set of strategies, and the present invention does not limit this, for example, can be directly with the first communication strategy collection as the second communication set of strategies.
Be example with the above-mentioned first communication strategy collection Policy1 still, suppose that second terminal do not support the communication mode of upnp, after filtration, second communication set of strategies Policy2 thes contents are as follows:
Policy2[0]={tcp,0,200,0}
Policy2[1]={udp,0,300,1}
With the corresponding address reference table of above-mentioned communication strategy collection Policy2 be: Addr[0]=192.168.1.2,6200}, Addr[1]={ 192.168.1.2,6300}
Step 204: second terminal is carried out in proper order according to the communication strategy in the described second communication set of strategies and is shaken hands; If shake hands successfully, then first terminal and second terminal are set up communication port.
Second terminal is carried out in proper order according to the communication strategy in the second communication set of strategies and shaken hands, and is preferred, and first strategy from set of strategies begins to carry out shakes hands.In addition, can also carry out according to unordered order, as from set of strategies, selecting a unenforced strategy at random.The strategy of order executive communication in which way can be decided in its sole discretion when enforcement is of the present invention, and the present invention does not do qualification to this.Beginning to be implemented as example with first the tactful Pn (n=1) in the second communication set of strategies below describes the process of shaking hands:
Second terminal generates corresponding connection request message according to the communication mode of tactful Pn appointment, and this connection request message comprises: source/target ip address, source/target port.Because the calling party that second terminal is shaken hands as execution, therefore the IP address of pairing first terminal of tactful Pn and port numbers be as the target ip address and the destination port number of this request, the IP address of second terminal and be that the port numbers of tactful Pn unlatching is then as source IP address and source port number;
Send described connection request message to first terminal;
If in the time of appointment, listen to source port and receive response message, then shake hands successfully, repeat and shake hands otherwise from described second communication set of strategies, take out tactful Pn+1, up to shaking hands success or execute communication strategies all in the second communication set of strategies.
Wherein, in the time of described appointment be " time of implementation " mentioned above; The communication mode of described tactful appointment is " channel type " mentioned above.For different communication modes, the mechanism that its execution is shaken hands may be different, but it in fact all needs through request, replys such process.Whether successful for example, for TCP, the interface that can provide by the call operation system is carried out and be shaken hands, and the result that obtains to shake hands, and for UDP, then needs to shake hands by application program enforcement, and has judged whether return results.
With second communication set of strategies Policy2 is example, at first carry out and shake hands by the TCP mode, if in " time of implementation ", do not receive response message, the failure of shaking hands, carry out by the UDP mode then and shake hands, if receive response message in " time of implementation ", both sides set up communication port, otherwise, can't set up communication port.
More than introduced the embodiment 1 that sets up the communication port method of the present invention.Embodiment 2 is with the difference of the foregoing description 1: in embodiment 1, and the calling party that second terminal is shaken hands as execution, first terminal is as the callee, and among the embodiment 2, first terminal is carried out as the calling party and is shaken hands, second terminal is then as the callee.Be described further implementing 2 below in conjunction with Fig. 3:
Step 301: first terminal sends negotiation request message by server to second terminal, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies.
Step 302: second terminal is obtained the first communication strategy collection from the negotiation request message of receiving.
Step 303: the described first communication strategy collection is generated the second communication set of strategies by presetting rule.
Step 304: second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises the second communication set of strategies.
Preferably, describedly in the negotiation response message that first terminal sends, also comprise and the corresponding address reference table of described second communication set of strategies, not only comprise an original IP address, first port numbers in this address reference table, but also bag the 2nd IP address, second port numbers correspondingly, described the 2nd IP address is the IP address of second terminal, described second port numbers be in second terminal with this communication strategy corresponding ports number, for example:
Allocation index The one IP address First port The 2nd IP address Second port
Step 305: first obtains the second communication set of strategies eventually from the negotiation response message of receiving.
Step 306: first terminal is carried out in proper order according to the communication strategy in the second communication set of strategies and is shaken hands, if shake hands successfully, then first terminal and second terminal are set up communication port.
First terminal obtains and the corresponding IP address of current communication strategy, first port and the 2nd IP address, second port according to " allocation index "; First terminal sends connection request message, and in this connection request message, the 2nd IP address and second port are target ip address and destination port number, and an IP address and first port are source IP address and source port number; If in " in the time of implementation ", described source port is received response message, then shakes hands successfully, and both sides set up communication port.
By implement 1 and embodiment 2 as can be known, in setting up the process of communication port, no matter be the calling party that first terminal or second terminal can be shaken hands as execution, referring to Fig. 4, Fig. 4 shows the steps flow chart of setting up the embodiment 3 of communication port method of the present invention:
Step 401: first terminal sends negotiation request message by server to second terminal, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies.
Step 402: second terminal is obtained the first communication strategy collection from the negotiation request message of receiving.
Step 403: the described first communication strategy collection is generated the second communication set of strategies by presetting rule.
Step 404: second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises the second communication set of strategies.
Step 405: second terminal is carried out in proper order according to the communication strategy in the second communication set of strategies and is shaken hands.
Step 406: first terminal is obtained the negotiation response message, and carries out in proper order according to the communication strategy in the second communication set of strategies and to shake hands.
Second terminal by server after first terminal send to be consulted response message, begin to carry out according to the second communication set of strategies immediately and shake hands, this moment, have 2 kinds of situations for first terminal: a kind of is the negotiation response message of not receiving second terminal as yet, and a kind of is to have received this negotiation response message.If first terminal is received the negotiation response message, then begin to carry out and shake hands according to the second communication set of strategies, that is to say that in this case, first terminal and second terminal are carried out according to the second communication set of strategies respectively and shaken hands.But need to prove, when both sides carry out same communication strategy, caller with called be relative, for example, concentrating communication mode for implementation strategy is the communication strategy of TCP, if second terminal sends connection request message as the calling party to first terminal, and judge in " time of implementation ", whether to receive and reply; Meanwhile, first terminal is monitored this strategy corresponding port and whether is received connection request message then as the callee in " time of implementation ", if receive, and echo reply message, otherwise carry out next strategy.
Step 407: in step 405 and step 406, if shake hands successfully, then first terminal and second terminal are set up communication port, otherwise next the bar strategy in the execution second communication set of strategies is up to shaking hands success or execute all communication strategies.
Among the embodiment 3, first terminal and second terminal are carried out in proper order according to the communication strategy in the second communication set of strategies respectively and are shaken hands, particularly, the calling party that both sides can alternately shake hands as execution, so, to be dispersed in two terminals to the load of a terminal, reduced effectively terminal pressure, guaranteed the performance of terminal and the stability of communication port.In embodiments of the invention 4: the implementation status according to strategy is carried out preferably the strategy in the second communication set of strategies, when both sides set up communication port once more, shakes hands according to preferred communication strategy collection execution.Illustrating the strategy of how communication strategy being concentrated below carries out preferably:
Method one: after communicating pair is successfully set up communication port, this communication strategy of shaking hands institute's foundation is labeled as the priority communication strategy, if both sides set up communication port again, at first shake hands according to the priority communication strategy execution, if the failure of shaking hands of this priority communication strategy, then carry out other communication strategy again.For example, the second communication set of strategies that obtains after consulting of both sides thes contents are as follows:
Strategy 1 Strategy 2 ... Strategy n-1 Strategy n ... Strategy m
Wherein, shake hands when the setting up communication port first strategy of success of tactful n should be labeled as preference strategy by strategy n.Mark how, those skilled in the art can be provided with marking convention voluntarily when implementing.Preferably, this strategy is placed the first place of set of strategies, the result is as follows:
Strategy n Strategy 1 ... Strategy n-1 Strategy n+1 ... Strategy m
Can be with the preferred second communication set of strategies of above-mentioned process as the set of strategies recorded and stored in communicating pair this locality, so, when first terminal need be with second terminal when this sets up communication port again, whether first-selected inquiry this locality exists and the current second terminal corresponding communication set of strategies record, if exist, directly obtain this communication strategy collection and hold consultation,, then obtain the communication strategy collection of acquiescence and hold consultation as the first communication strategy collection if do not exist as the first communication strategy collection.Draw easily, when using the preferred communication strategy collection execution of process to shake hands, what at first carry out is preference strategy, because the successful record of this strategy, therefore, the success rate of shaking hands based on this strategy execution is much higher than other strategy, thus, significantly reduce the strategy number that needs execution, shortened the time of setting up the required consumption of communication port.
Method two: the statistics communication strategy concentrates each strategy to carry out the success rate of shaking hands when repeatedly setting up communication port, and the strategy of strategy being concentrated according to this success rate sorts.So, the strategy that success rate is high will preferentially be carried out when execution is shaken hands, and has further reduced the strategy number that needs execution, has improved the promptness of setting up communication port.
It is pointed out that above-mentioned two kinds, the communication strategy collection is carried out preferable methods is not unique method, and how preferred those skilled in the art are implementing can to determine according to own needs when of the present invention, and the present invention does not limit this.
Be in the difference of embodiments of the invention 5, in the time can't setting up point-to-point communication port between first terminal and second terminal, set up communication port by transfer server with the foregoing description.
At first, first communication strategy is concentrated and is comprised the transfer communication strategy, in addition, also comprise transfer server address and the port numbers corresponding with this transfer strategy in the negotiation request message, and this transfer communication strategy is retained in the second communication strategy of generation.When carrying out this transfer communication strategy, first terminal and second terminal send connection request message to described transfer server respectively, if both sides all receive the response message from transfer server, then first terminal and second terminal are set up communication port by described transfer server.When the transmission data, at first, target data is sent to transfer server from first terminal by described communication port, is forwarded to second terminal by this transfer server again.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, identical similar part is mutually referring to getting final product between each embodiment, each embodiment stresses all is difference with other embodiment, and these difference parts all are applicable to other embodiment usually.
More than described the embodiment that sets up the communication port method of the present invention, described method has been described further below in conjunction with concrete applied environment.Referring to Fig. 5, Fig. 5 shows the structural representation of an instant communicating system, comprise negotiate service device S1, transfer server S2, terminal A and terminal B, suppose that terminal A need set up communication port with terminal B so that the transmission data are used the method for the invention and are described below:
Whether terminal A inquiry this locality stores and terminal B corresponding communication set of strategies record, if exist, obtains this communication strategy collection, otherwise, obtain the communication strategy collection that terminal A acquiescence is supported.With the communication strategy collection that obtains as the first communication strategy collection.
Terminal A application transfer server address and port.For stablizing of system, can in system, dispose the data relay server of many special uses.When the terminal to apply transfer server, select present load minimum, the most healthy transfer server of operation, obtain the IP address and the port numbers of this transfer server.
Organize the first communication strategy collection.For the ease of resolving, each communication strategy represents with 64bit shaping numeral, the theing contents are as follows of communication strategy:
Channel type The passive sign of active Time of implementation (ms) Allocation index Transfer sign whether Keep
4bit 4bit 32bti 12bit?12bit 8bit
Represent theing contents are as follows of the first communication strategy collection with array Policy1:
Policy1[0]={tcp,0,200,0,0}
Policy1[1]={udp,0,300,1,0}
Policy1[2]={upnp,0,300,2,0}
Policy1[3]=tcp, and 0,300,3,1} // transfer communication strategy, last position " 1 " represents that this strategy is the transfer communication strategy
Address reference table thes contents are as follows:
Addr[0]={192.168.1.2,6200}
Addr[1]={192.168.1.2,6300}
Addr[2]={ 10.21.123.6, outer net IP address and port that 6200} // terminal A shines upon on NAT device
Addr[3]={ 10.12.5.1, the IP address of 8000} // transfer server, port numbers
It may be noted that, the IP address of terminal A may need to change according to the network or the hardware environment of reality when implementing in the above-mentioned address reference table, for example if terminal A is positioned at local area network (LAN), the IP address that is exactly an Intranet, this IP address so, through network address translation apparatus the time, need be converted into the IP address of outer net, this partial content can be referring to existing pertinent literature, and the present invention repeats no more.
The first communication strategy collection of organizing is packaged into negotiation request message with corresponding address reference table is sent to negotiate service device S1.
S1 forwards it to terminal B after receiving this negotiation request message.
Terminal B obtains the first communication strategy collection and corresponding address reference table from negotiation request message, the communication strategy of supporting according to terminal B carried out slightly generating the second communication set of strategies to the first communication strategy collection Policy1, mend terminal B and each communication strategy corresponding IP address and port numbers simultaneously in the second communication set of strategies, Policy2 result is as follows:
Policy2[0]={tcp,0,200,0,0}
Policy2[1]={udp,0,300,1,0}
Policy2[2]={ upnp, 0,300,2, in 0} // this example, still keep the communication strategy upnp that terminal B can't support in the second communication set of strategies, but to identify this communication strategy be invalid strategy by IP address, the port of the terminal B of this communication strategy correspondence being put sky.
Policy2[3]={tcp,0,300,3,1}
Address reference table:
Addr[0]={192.168.1.2,6200,112.11.1.3,7200}
Addr[1]={192.168.1.2,6300,112.11.1.3,7300}
Addr[2]={ 10.21.123.6,6200,0.0.0.0,0} //, therefore the IP address and the port that return are put sky because terminal B does not support upnp
Addr[3]={10.12.5.1,8000}
Need to prove, in this example with second communication set of strategies corresponding address concordance list in, the IP address and the port numbers that have comprised terminal A and terminal B simultaneously, doing like this is in order more clearly to describe the corresponding relation of source IP address, port and target ip address and port.In the specific implementation, in the address reference table that returns to terminal A, the IP address and the port numbers that can only comprise terminal B, Addr[0 for example]={ 112.11.1.3,7200} is as long as terminal A can obtain and corresponding target ip address of the communication strategy of current execution and port according to this address reference table.
Terminal B is packaged as the negotiation response message with second communication set of strategies and corresponding address reference table, and server S should be consulted response message and is sent to terminal A through consultation.Need explanation, in the second communication set of strategies that terminal A sends, " initiatively passive sign " in " the initiatively passive sign " of its communication strategy and the second communication set of strategies of terminal B this locality has relativeness, for example, same communication strategy is if terminal A is that initiatively then terminal B is passive.
Terminal A obtains second communication set of strategies and corresponding address reference table from the negotiation response message of receiving, carries out in proper order according to the communication strategy in the second communication set of strategies then and shakes hands.
Terminal B sends to consult also to carry out in proper order according to the communication strategy in the second communication set of strategies after the response message and shakes hands.If, illustrate and shake hands successfully that both sides set up communication port in " in the time of implementation " of current communication strategy request of receiving or response message, otherwise, the failure of shaking hands, both sides carry out next bar communication strategy.If both sides do not shake hands successfully yet when carrying out " whether transfer policy flag " for the communication strategy of " 1 ", then illustrate between terminal A and the terminal B and can't set up point-to-point communication port, at this moment, terminal A and terminal B carry out with transfer server S2 respectively and shake hands, if shake hands successfully, both sides set up communication port by transfer server S2.
The method of setting up communication port of the present invention has below been described in conjunction with specific embodiments.Below, with reference to above relevant introduction of the present invention, with reference to Fig. 6 an embodiment who sets up the device of communication port of the present invention is introduced simultaneously.As shown in Figure 6, described device 600 comprises:
First communication unit 610 is used for sending negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit 620 is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit 630 is used for by presetting rule the first communication strategy collection that second communication unit 620 is received being generated the second communication set of strategies;
Handshake elements 640 is used for shaking hands according to the communication strategy execution;
The control unit 650 of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements 640 generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
Wherein, communication strategy collection converting unit is to filter generation second communication set of strategies according to the communication strategy that the communication strategy that this device self is supported is concentrated described first communication strategy by presetting rule with the first communication strategy collection generation second communication set of strategies that second communication unit is received.
Described device 600 also comprises: the 3rd communication unit 660, be used for sending the negotiation response message by server, and described negotiation response message comprises described second communication set of strategies; Four-way news unit 670 is used for receiving and consults response message, and this negotiation response message comprises the second communication set of strategies.
Described device 600 also comprises:
Memory cell 680 is used for the storing communication set of strategies;
Preferred cell 690 is used for the second communication set of strategies that second communication set of strategies that communication strategy collection converting unit 630 is generated or third communication unit 660 received and carries out preferably, and preferred result is stored in memory cell 680;
Query unit 710 is used for inquiring about memory cell 680 and whether has preferred communication strategy collection, if exist, this communication strategy collection is sent negotiation message as the first communication strategy collection by first communication unit 610.
Preferably, described preferred cell 690 comprises: indexing unit 691 is used for the shake hands communication strategy of success of second communication set of strategies is labeled as preference strategy.
Preferably, described preferred cell 690 comprises: sequencing unit 692 is used for the communication strategy of second communication set of strategies is sorted according to its success rate of shaking hands.
Wherein, also comprise the transfer communication strategy in the described second communication set of strategies; Handshake elements is carried out with corresponding transfer server according to this transfer communication strategy and is shaken hands.
A kind of implementation that said apparatus is set up communication port is described below:
If this device is used for caller, at first, whether there is preferred communication strategy collection in the query unit 710 inquiry memory cell 680, if exist, as the first communication strategy collection, otherwise the communication strategy collection that obtains acquiescence is as the first communication strategy collection with this communication strategy collection; First communication unit 610 sends negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies; The negotiation response message is received in four-way news unit 670, and this negotiation response message comprises the second communication set of strategies; Communication strategy in the second communication set of strategies in the negotiation response message that the control unit 650 of shaking hands is received according to four-way news unit 670 is carried out in proper order and is shaken hands, if current communication strategy is the transfer communication strategy, handshake elements 640 transfer server corresponding with this transfer communication strategy carried out and shaken hands; Communication strategy in 690 pairs of second communication set of strategies of preferred cell carries out preferably, and preferred result is stored in memory cell.
If this device is used for called, after negotiation request message was received in second communication unit 620, two or more communication strategies that the communication strategy that communication strategy collection converting unit 630 is supported according to this device self is concentrated first communication strategy in the described negotiation request message filtered and generate the second communication set of strategies; Then, the 3rd communication unit 660 sends by server and consults response message, and described negotiation response message comprises the second communication set of strategies; Afterwards, communication strategy in the second communication set of strategies that the control unit 650 of shaking hands is generated according to set of strategies converting unit 630 is carried out in proper order and is shaken hands, wherein, if current communication strategy is the transfer communication strategy, handshake elements 640 transfer server corresponding with this transfer communication strategy carried out and shaken hands; At last, the communication strategy in 690 pairs of second communication set of strategies of preferred cell carries out preferably, and preferred result is stored in memory cell.
Referring to Fig. 7, Fig. 7 shows the structural representation of an embodiment of a kind of data communication system of the present invention, and described system comprises server 800 and a plurality of communication terminal 700, and described terminal 700 comprises:
First communication unit 710 is used for sending negotiation request message by server, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit 720 is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit 730 is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements 740 is used for shaking hands according to the communication strategy execution;
The control unit 750 of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
For device, system embodiment, because it is substantially corresponding to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than to a kind of method, device of setting up communication port provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (19)

1. a method of setting up communication port is characterized in that, described method comprises:
First terminal sends negotiation request message by server to second terminal, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second terminal is obtained the described first communication strategy collection from the negotiation request message of receiving; And press presetting rule with described first communication strategy collection generation second communication set of strategies;
Second terminal is carried out in proper order according to the communication strategy in the described second communication set of strategies and is shaken hands; If shake hands successfully, then first terminal and second terminal are set up communication port.
2. method according to claim 1, it is characterized in that described is to filter according to the communication strategy that the communication strategy that second terminal self is supported is concentrated described first communication strategy to generate the second communication set of strategies by presetting rule with first communication strategy collection generation second communication set of strategies.
3. method according to claim 1 and 2 is characterized in that, described method also comprises:
Second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises described second communication set of strategies;
First terminal is obtained the negotiation response message; And carry out in proper order according to the communication strategy in the described second communication set of strategies and to shake hands.
4. method according to claim 3 is characterized in that, described method also comprises:
First terminal or second terminal are carried out preferably the second communication set of strategies that gets access to, and the storage preferred result;
Also comprised before second terminal sends negotiation request message in first terminal:
Whether first terminal inquiry stores preferred communication strategy collection, if exist, this communication strategy collection is sent negotiation request message as the first communication strategy collection to current second terminal.
5. method according to claim 4 is characterized in that, described the second communication set of strategies is preferably included:
The communication strategy of the success of shaking hands in the second communication set of strategies is labeled as the priority communication strategy.
6. method according to claim 4 is characterized in that, described the second communication set of strategies is preferably included:
Each strategy is carried out the success rate of shaking hands in the statistics second communication set of strategies when repeatedly setting up communication port, according to this success rate the communication strategy in the second communication set of strategies is sorted.
7. method according to claim 3, it is characterized in that, also comprise the transfer communication strategy in the described second communication set of strategies, corresponding with this transfer communication strategy respectively transfer server of first terminal and second terminal is carried out and is shaken hands, if shake hands successfully, then first terminal and second terminal are set up communication port by transfer server.
8. method according to claim 1 is characterized in that, described carry out in proper order to shake hands by the communication strategy in the second communication set of strategies comprise:
Concentrate to take out tactful n from communication strategy, generate corresponding connection request message according to the communication mode of this strategy n appointment; Send this connection request message, if in the time of appointment, receive response message, then shake hands successfully, take out tactful n+1 and repeat and shake hands, up to shaking hands success or execute all communication strategies otherwise concentrate from described communication strategy.
9. a method of setting up communication port is characterized in that, described method comprises:
First terminal sends negotiation request message by server to second terminal, and this negotiation response message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second terminal is obtained the described first communication strategy collection from the negotiation request message of receiving; And press presetting rule with described first communication strategy collection generation second communication set of strategies;
Second terminal sends to first terminal by server and consults response message, and described negotiation response message comprises described second communication set of strategies;
First terminal is obtained and is consulted response message and carry out in proper order according to the communication strategy in the described second communication set of strategies to shake hands, if shake hands successfully, then first terminal and second terminal are set up communication port.
10. a device of setting up communication port is characterized in that, described device comprises:
First communication unit is used for sending negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
11. device according to claim 10, it is characterized in that it is to filter according to the communication strategy that the communication strategy that this device self is supported is concentrated described first communication strategy to generate the second communication set of strategies that the first communication strategy collection that described communication strategy collection converting unit is received second communication unit by presetting rule generates the second communication set of strategies.
12., it is characterized in that described device also comprises according to claim 10 or 11 described devices:
The 3rd communication unit is used for sending the negotiation response message by server, and described negotiation response message comprises described second communication set of strategies;
Four-way news unit is used for receiving and consults response message, and this negotiation response message comprises the second communication set of strategies.
13. device according to claim 12 is characterized in that, described device also comprises:
Memory cell is used for the storing communication set of strategies;
Preferred cell is used for the second communication set of strategies that second communication set of strategies that communication strategy collection converting unit is generated or third communication unit received and carries out preferably, and preferred result is stored in memory cell;
Query unit is used for inquiring about memory cell and whether has preferred communication strategy collection, if exist, as the first communication strategy collection, otherwise the communication strategy collection that obtains acquiescence is as the first communication strategy collection with this communication strategy collection.
14. device according to claim 13 is characterized in that, described preferred cell also comprises:
Indexing unit is used for the shake hands communication strategy of success of second communication set of strategies is labeled as preference strategy.
15. device according to claim 13 is characterized in that, described preferred cell also comprises:
Sequencing unit is used for the communication strategy of second communication set of strategies is sorted according to its success rate of shaking hands.
16. device according to claim 10 is characterized in that, also comprises the transfer communication strategy in the described second communication set of strategies; Handshake elements is carried out with corresponding transfer server according to this transfer communication strategy and is shaken hands.
17. a caller device of setting up communication port is characterized in that described device comprises:
First communication unit is used for sending negotiation request message by server to called device, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies.
18. a called device of setting up communication port is characterized in that described device comprises:
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
19. a data communication system comprises server and a plurality of communication terminal, it is characterized in that described communicating terminal comprises:
First communication unit is used for sending negotiation request message by server, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Second communication unit is used to receive negotiation request message, and this negotiation request message comprises the first communication strategy collection, and this first communication strategy is concentrated and comprised two or more communication strategies;
Communication strategy collection converting unit is used for by presetting rule the first communication strategy collection that second communication unit is received being generated the second communication set of strategies;
Handshake elements is used for shaking hands according to the communication strategy execution;
The control unit of shaking hands, the communication strategy that is used for controlling the second communication set of strategies that handshake elements generated according to communication strategy collection converting unit is carried out in proper order and is shaken hands.
CN 200710143223 2007-08-07 2007-08-07 Method and apparatus for establishing communication channel and data communication system Active CN101364976B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200710143223 CN101364976B (en) 2007-08-07 2007-08-07 Method and apparatus for establishing communication channel and data communication system
HK09102867.7A HK1122667A1 (en) 2007-08-07 2009-03-25 Method and device for establishing communication channel, and data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710143223 CN101364976B (en) 2007-08-07 2007-08-07 Method and apparatus for establishing communication channel and data communication system

Publications (2)

Publication Number Publication Date
CN101364976A true CN101364976A (en) 2009-02-11
CN101364976B CN101364976B (en) 2013-12-18

Family

ID=40391130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710143223 Active CN101364976B (en) 2007-08-07 2007-08-07 Method and apparatus for establishing communication channel and data communication system

Country Status (2)

Country Link
CN (1) CN101364976B (en)
HK (1) HK1122667A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104569A (en) * 2013-04-01 2014-10-15 华为技术有限公司 VPN tunnel establishing method and server
WO2015143915A1 (en) * 2014-03-26 2015-10-01 海能达通信股份有限公司 Communication system, communication terminal, relay station and handshake communication method
CN105635069A (en) * 2014-11-04 2016-06-01 华为技术有限公司 IPDR working mode negotiation method and apparatus
CN105847275A (en) * 2016-04-29 2016-08-10 掌赢信息科技(上海)有限公司 Data transmission channel creating method, system and server
CN105871868A (en) * 2016-04-29 2016-08-17 掌赢信息科技(上海)有限公司 Data transmission channel establishing method, system and server
CN106027599A (en) * 2016-04-29 2016-10-12 掌赢信息科技(上海)有限公司 Data transmission channel establishing method and system, and server
CN106161186A (en) * 2015-03-31 2016-11-23 Tcl集团股份有限公司 Instant communication method and device
CN107026903A (en) * 2017-03-22 2017-08-08 阔地教育科技有限公司 A kind of safety communicating method and system
GB2582473A (en) * 2017-10-25 2020-09-23 Walmart Apollo Llc Systems and methods for routing data in distributed environments
CN111787261A (en) * 2020-06-04 2020-10-16 视联动力信息技术股份有限公司 Audio and video data sending method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302213A (en) * 2016-08-02 2017-01-04 无锡天脉聚源传媒科技有限公司 A kind of method and device of data transmission

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104569A (en) * 2013-04-01 2014-10-15 华为技术有限公司 VPN tunnel establishing method and server
WO2015143915A1 (en) * 2014-03-26 2015-10-01 海能达通信股份有限公司 Communication system, communication terminal, relay station and handshake communication method
CN105635069A (en) * 2014-11-04 2016-06-01 华为技术有限公司 IPDR working mode negotiation method and apparatus
CN105635069B (en) * 2014-11-04 2019-07-09 华为技术有限公司 The machinery of consultation of IPDR operating mode and device
CN106161186A (en) * 2015-03-31 2016-11-23 Tcl集团股份有限公司 Instant communication method and device
CN106161186B (en) * 2015-03-31 2019-06-18 Tcl集团股份有限公司 Instant communication method and device
CN106027599A (en) * 2016-04-29 2016-10-12 掌赢信息科技(上海)有限公司 Data transmission channel establishing method and system, and server
CN105871868A (en) * 2016-04-29 2016-08-17 掌赢信息科技(上海)有限公司 Data transmission channel establishing method, system and server
CN105847275A (en) * 2016-04-29 2016-08-10 掌赢信息科技(上海)有限公司 Data transmission channel creating method, system and server
CN106027599B (en) * 2016-04-29 2020-01-17 掌赢信息科技(上海)有限公司 Data transmission channel establishing method, system and server
CN107026903A (en) * 2017-03-22 2017-08-08 阔地教育科技有限公司 A kind of safety communicating method and system
GB2582473A (en) * 2017-10-25 2020-09-23 Walmart Apollo Llc Systems and methods for routing data in distributed environments
US11038746B2 (en) 2017-10-25 2021-06-15 Walmart Apollo, Llc Systems and methods for routing data in distributed environments
US11700167B2 (en) 2017-10-25 2023-07-11 Walmart Apollo, Llc Systems and methods for routing data in distributed environments
CN111787261A (en) * 2020-06-04 2020-10-16 视联动力信息技术股份有限公司 Audio and video data sending method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN101364976B (en) 2013-12-18
HK1122667A1 (en) 2009-05-22

Similar Documents

Publication Publication Date Title
CN101364976B (en) Method and apparatus for establishing communication channel and data communication system
CN101369987B (en) Method and apparatus for establishing communication channel
EP1542409B1 (en) Protocol for multi-hop ad-hoc networks
CN100584057C (en) Method and communication system for automatically discovering the common multimedia service capability
US6377808B1 (en) Method and apparatus for routing data in a communication system
US20020150091A1 (en) Packet mode speech communication
US20050021616A1 (en) Method for managing sessions between network parties, methods, network element and terminal for managing calls
US20090305688A1 (en) Method of Enabling a Combinational Service and Communication Network Implementing the Service
EP2514139B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
JP2007049415A (en) Voice data conversion apparatus, network system, and control method and program
CN100363870C (en) Method and apparatus for providing multi-client support in a SIP-enabled terminal
US20120106429A1 (en) Method for interconnecting mobile communication terminals in ad-hoc network
US8085759B2 (en) Method for establishing a VoIP communication using a peer-to-peer databank
EP1528745B1 (en) Communication method and apparatus
CN102056147A (en) Method and system for subscribing service in IP (Internet Protocol) multimedia subsystem network
CN101854703B (en) Method, server and system for acquiring status information
CN107959672A (en) A kind of transfer method of multicasting based on Darwin's streaming media server
KR20050043772A (en) Module and process for inter-user communication
CN100562186C (en) A kind of shared public user identity teleservice reorientation method
CN101222437A (en) Method and system for transparent transmission of BPDU packet in two-layer switching network
CN105516176A (en) Call center system, communication connection method and device of call center system
JP2003069640A (en) Method and apparatus for explicit multicast service on ethernet (r)
CN110474781B (en) Method and device for forwarding multicast data
CN101305623B (en) Method and apparatus for determining PT server having controlling function
CN108337215B (en) File transmission method, system and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1122667

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1122667

Country of ref document: HK