CN104995898A - Method, device and system for establishing data channel - Google Patents

Method, device and system for establishing data channel Download PDF

Info

Publication number
CN104995898A
CN104995898A CN201480000443.9A CN201480000443A CN104995898A CN 104995898 A CN104995898 A CN 104995898A CN 201480000443 A CN201480000443 A CN 201480000443A CN 104995898 A CN104995898 A CN 104995898A
Authority
CN
China
Prior art keywords
communication equipment
channel
channel number
role
message
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
CN201480000443.9A
Other languages
Chinese (zh)
Other versions
CN104995898B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104995898A publication Critical patent/CN104995898A/en
Application granted granted Critical
Publication of CN104995898B publication Critical patent/CN104995898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/02Selection of wireless resources by user or terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

A method, device and system for establishing a data channel, the method comprising: a first communication device negotiates with a second communication device to determine that the first communication device uses a channel number in a first channel number set to establish a channel and the second channel device uses a channel number in a second channel number set to establish a data channel, the first channel number set and the second channel number set having no intersection so as to ensure that there is no conflict between the channel number of the data channel established by one device and the channel number of the data channel established by the other device, thus solving the problem of inability of distinguishing the data packets transmitted through different data channels resulting from channel number conflicts, while avoiding the problem of communication delay resulting from reselecting a channel number to establish a data channel in the case of channel number conflicts.

Description

Method, device and system for establishing data channel
A kind of methods, devices and systems technical field for setting up data channel
The present embodiments relate to the communications field, and more particularly, to a kind of methods, devices and systems for setting up data channel.
Background technology
Real-time Communication for Power Network(Web Rea l Time Co gangster unicat ion, WebRTC) it is a kind of real-time data communication technology based on WEB, communicating pair utilizes WebRTC data channel protocols(Data channe l protocol) transmission data passage be referred to as data channel (datachanne l).
Datachanne l are to be carried on SCTP (St ream Cont rol Transmi s s ion Protocol, SCTP)In connection, allow to carry 65535 da tachanne 1 in a SCTP connection.
Set up in specific communication process, between communicating pair after SCTP connections, wherein any one party can be sent in needs and counterparting communications to other side includes DATA_CHANNEL-OPEN (the opening data channel of randomly selected channel number)Message is to set up data channel.DATA-CHANNEL-OPE message includes the channel number of the data channel to be set up, the effect of the data channel(Such as, for Desktop Share), the type of media transmitted by the data channel(Such as video)Deng.One direction other side is sent after DATA_CHANNEL_OPEN message, and the data channel has been set up, and the response without waiting for other side directly can be sent datagram by the data channel to other side(Being sent to other side includes the blunt text of data 4 of the channel number);Correspondingly, other side, which receives to send by the data channel after the DATA_CHANNEL_OPEN message, includes the data message of the channel number.
If communicating pair sends DATA-CHANNEL-OPE message to set up data channel to other side simultaneously, it is possible to carry identical channel number in the DATA_CHANNEL_OPEN message that both sides send, the problem of there is channel number conflict, so as to cause the problem of communicating pair cannot be distinguished by the data message transmitted by different data channel.When a wherein side detects channel number conflict, channel number can be reselected and set up new data channel, then can bring larger delay.
The content of the invention The embodiment of the present invention provides a kind of methods, devices and systems for setting up data channel, and channel number is reselected the problem of for solving the problems, such as existing and when channel number conflicts and sets up communication delay caused by data channel.
First aspect, there is provided a kind of method for setting up data channel, methods described is applied to include the communication system of the first communication equipment and the second communication equipment, communicated between first communication equipment and second communication equipment by real-time Communication for Power Network WebRTC data channel protocols, methods described includes:First communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, and the first passage number set and the second channel number set are not occured simultaneously;
First communication equipment selects a first passage number for belonging to the first passage number set;First communication equipment sends first passage to second communication equipment and sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between second communication equipment as the first passage number, and carried out data transmission by first data channel with second communication equipment;
The second channel that first communication equipment receives the second communication equipment transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, it is the second data channel of the second channel number for setting up the channel number between first communication equipment and second communication equipment, and is carried out data transmission by second data channel with second communication equipment.
In the first possible implementation of first aspect:
First communication equipment and second communication equipment pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
First communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:First communication equipment passes through ICE angles Color negotiation mechanism consults to determine the role of first communication equipment and the role of second communication equipment with second communication equipment, the role for consulting first communication equipment of determination is effector role, and the corresponding relation gathered according to the effector role pre-set with first passage number determines that first communication equipment sets up data channel using the channel number in first passage number set, the role for consulting second communication equipment of determination is by effector role, in order to which second communication equipment determines that second communication equipment sets up data channel using the channel number in second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
With reference to the first possible implementation of first aspect, in second of possible implementation, first communication equipment is consulted by ICE role negotiations mechanism and second communication equipment after the role of determination first communication equipment and the role of second communication equipment, the first communication equipment transmission first passage sets up message and receives the second channel and sets up before message, in addition to:First communication equipment receives the call request message that second communication equipment is sent, and the call request message includes the role of second communication equipment;First communication equipment judges whether the role for the second communication equipment that the call request message includes is identical with the role of second communication equipment for consulting to determine, and returns to success response message to second communication equipment when judging identical.
In the third possible implementation of first aspect, first communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:First communication equipment receives the call request message that second communication equipment is sent, the call request message include the second channel number set, for show second communication equipment using the second channel number gather in channel number set up data channel;First communication equipment is gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number;First communication equipment returns to call message to second communication equipment, the call message include the first passage number set, for show first communication equipment using the first passage number gather in channel number set up data channel.
With reference to first aspect, first aspect the first to the third any possible implementation, In four kinds of possible implementations, when the third channel for setting up triple data path that first communication equipment receives the second communication equipment transmission sets up message, first communication equipment judges whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned.Second aspect is communicated there is provided a kind of communication equipment between the communication equipment and Correspondent Node by real-time Communication for Power Network WebRTC data channel protocols, and the communication equipment includes negotiation module and communication module;
The negotiation module, for consulting to determine that the channel number that the communication equipment is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, the first passage number set and the second channel number set are not occured simultaneously, and for the first passage number set for consulting to determine to be transmitted to the communication module;
The communication module, for receiving the first passage number set from the negotiation module, and select a first passage number for belonging to the first passage number set, first passage, which is sent, to the Correspondent Node sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between the Correspondent Node as the first passage number, and carried out data transmission by first data channel and the Correspondent Node, the second channel for being additionally operable to receive the Correspondent Node transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, for setting up the second data channel that the channel number between the communication equipment and the Correspondent Node is the second channel number, and carried out data transmission by second data channel and the Correspondent Node.
In the first possible implementation of second aspect:
The communication equipment and the Correspondent Node pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
The negotiation module, specifically for consulting to determine the role of the communication equipment and the role of the Correspondent Node by ICE role negotiations mechanism and the Correspondent Node, the role of the communication equipment for consulting to determine is effector role, and according to the effector role pre-set and first passage number gather it is corresponding Relation determines that the communication equipment sets up data channel using the channel number in first passage number set, the role for the Correspondent Node that negotiation is determined is by effector role, in order to which the Correspondent Node determines that the Correspondent Node sets up data channel using the channel number in the second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
With reference to the first possible implementation of second aspect, in second of possible implementation, the communication module, it is additionally operable to receive the second channel number set from the negotiation module, receive the call request message that the Correspondent Node is sent, the call request message includes the role of the Correspondent Node, judge whether the role of the Correspondent Node of the role for the Correspondent Node that the call request message includes with being received from the negotiation module is identical, and success response message is returned to the Correspondent Node when judging identical.
In the third possible implementation of second aspect, the communication module, it is additionally operable to receive the call request message that the Correspondent Node is sent, the call request message is gathered including the second channel number, for show the Correspondent Node gathered using the second channel number in channel number set up data channel, and the second channel number set is transmitted to the negotiation module;The negotiation module, specifically for receiving the second channel number set from the communication module, gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number, and the first passage number set is transmitted to the communication module;The communication module, it is additionally operable to receive the first passage number set from the negotiation module, and return to call message to the Correspondent Node, the call message include the first passage number set, for show the communication equipment using the first passage number gather in channel number set up data channel.
With reference to second aspect, second aspect the first to the third any possible implementation, in the 4th kind of possible implementation, the communication module, it is additionally operable to when the third channel for setting up triple data path that the communication module receives the Correspondent Node transmission sets up message, judge whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned. The third aspect includes the first communication equipment and the second communication equipment, real-time Communication for Power Network is passed through between first communication equipment and second communication equipment there is provided a kind of communication system, the communication system
WebRTC data channel protocols are communicated;
First communication equipment, for consulting to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, the first passage number set and the second channel number set are not occured simultaneously;It is additionally operable to the first passage number that selection one belongs to the first passage number set, first passage, which is sent, to second communication equipment sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between second communication equipment as the first passage number, and carried out data transmission using first data channel with second communication equipment;
Second communication equipment, for consulting to determine that first communication equipment sets up data channel using the channel number in first passage number set with first communication equipment, channel number during second communication equipment is gathered using second channel number sets up data channel, it is additionally operable to the second channel number that selection one belongs to the second channel number set, second channel, which is sent, to first communication equipment sets up message, the second channel, which sets up message, includes the second channel number, to set up second data channel of the channel number between first communication equipment as the second channel number, and carried out data transmission using second data channel with first communication equipment.
In the first possible implementation of the third aspect:
First communication equipment and second communication equipment pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
First communication equipment is used to consult to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:First communication equipment is used to pass through ICE role negotiations mechanism and the role of second communication equipment negotiation determination, first communication equipment and the role of second communication equipment, and the role for consulting first communication equipment of determination is effector Role, the role of second communication equipment are, by effector role, to be additionally operable to determine that first communication equipment sets up data channel using the channel number in first passage number set according to the corresponding relation that the effector role pre-set gathers with first passage number;
Second communication equipment is used to consult to determine that the channel number that second communication equipment is set up during data channel, first communication equipment are gathered using first passage number using the channel number in second channel number set sets up data channel with first communication equipment, specifically includes:Second communication equipment is used to consult to determine the role of first communication equipment and the role of second communication equipment by ICE role negotiations mechanism and first communication equipment, the role of first communication equipment for consulting to determine be effector role, the role of second communication equipment be by effector role, be additionally operable to according to pre-set determined by the corresponding relation that effector role and second channel number are gathered second communication equipment gathered using second channel number in channel number set up data channel.
With reference to the first possible implementation of the third aspect, in second of possible implementation, second communication equipment, is additionally operable to send call request message to first communication equipment, the call request message includes the role of second communication equipment;First communication equipment, it is additionally operable to receive the call request message, and judge whether the role for the second communication equipment that the call request message includes is identical with the role of second communication equipment for consulting to determine, and return to success response message to second communication equipment when judging identical.
In the third possible implementation of the third aspect:
Second communication equipment is used to consult to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with first communication equipment, specifically includes:Second communication equipment is used to send call request message to first communication equipment, the call request message is gathered including the second channel number, for show second communication equipment using the second channel number gather in channel number set up data channel, and receive the call message that first communication equipment is returned, the call message include the first passage number set, for show first communication equipment using the first passage number gather in channel number set up data channel; First communication equipment is used to consult to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:First communication equipment is used to receive the call request message, second channel number in the call request message is gathered to determine with the second channel number to gather for one and gathered without the channel number set occured simultaneously as the first passage number, and includes the call message that the first passage number is gathered to second communication equipment return.
With reference to the third aspect, the third aspect the first to the third any possible implementation, in the 4th kind of possible implementation, first communication equipment, it is additionally operable to when the third channel for setting up triple data path that first communication equipment receives the second communication equipment transmission sets up message, judge whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned.
According to embodiments of the present invention, communicating pair is consulted to determine to set up data channel each with the channel number in different channel number set, and do not occur simultaneously between different channel number set, the channel number for the data channel that the channel number and the opposing party that the data channel that a wherein side sets up can be ensured are set up does not conflict, the problem of defeated data message, while it also avoid reselecting channel number when channel number conflicts sets up communication delay problem caused by data channel.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, cylinder will be made to the required accompanying drawing used in embodiment or description of the prior art below singly to introduce, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1-3 is the method flow schematic diagram that the embodiment of the present invention 1 is provided;
Fig. 4 is the structural representation for the communication equipment that the embodiment of the present invention 1 is provided;
Fig. 5 is the structural representation for the communication equipment that the embodiment of the present invention 3 is provided; Fig. 6 is the structural representation for the communication system that the embodiment of the present invention 4 is provided.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
In the prior art, the channel number carried in DATA_CHANNEL-OPE message be send the message communication equipment it is randomly selected, therefore, if communicating pair sends DATA-CHANNEL-OPE message to other side simultaneously, the DATA_CHANNEL_OPEN message that both sides send is possible to carry identical channel number.Such as, communicating pair sends the DATA-CHANNEL-OPE message for including channel number 1 11 to other side simultaneously, wherein, the data channel that one DATA_CHANNEL_OPEN message is set up is used for Desktop Share, the data channel that another DATA_CHANNEL_OPEN message is set up is used for IM (ins tant mes sage, instant message), then there is the data channel that two passes number are 111.When a wherein direction other side, which sends, includes channel number i l l data message, the opposing party cannot be distinguished by the data channel corresponding to the data message, also can not just determine that the data message is for Desktop Share or for IM's.When a wherein side detects channel number conflict, channel number can be reselected and set up new data channel, then can bring larger delay.
In order to solve the above problems, the embodiment of the present invention 1 provides a kind of method for setting up data channel, methods described is applied to include the communication system of the first communication equipment and the second communication equipment, is communicated between first communication equipment and second communication equipment by WebRTC data channel protocols.
As shown in figure 1, the method that the embodiment of the present invention 1 is provided includes:
Step 210:First communication equipment is consulted to determine that first communication equipment sets up data channel using the channel number in first passage number set with second communication equipment(Da tachanne l), the channel number during second communication equipment is gathered using second channel number set up data channel, the first passage number set and the second channel number set are not occured simultaneously. Such as, what the first passage number set included is the channel number that value is odd number, and what the second channel number set included is the channel number that value is even number.
And for example, what the first passage number set included is the channel number that value is 1 to 32768, and what second channel number set included is the channel number that value is 32769 to 65535.
Step 220:First communication equipment selects a first passage number for belonging to the first passage number set.
Such as, what the first passage number set included is the channel number that value is odd number, and correspondingly, first communication equipment selects a value to be used as the first passage number for the channel number of odd number.
Step 230:First communication equipment sets up message to the second communication equipment sendaisle, and the Path Setup message includes the first passage number, to set up data channel of the channel number between second communication equipment as the first passage number;
The Path Setup message is specifically as follows WebRTC data channel protocol message DATA_CHANNEL_0PENo
The Path Setup message can also include the effect of the data channel(Such as, for Desktop Share), the type of media transmitted by the data channel(Such as video)Deng.
Step 240:The data channel that first communication equipment and second communication equipment are set up by step 230 carries out data transmission.
It should be noted that carrying out data transmission by a certain data channel, refer to that transmission includes the data message of channel number of the data channel.Specifically, in step 240, the data channel that first communication equipment and second communication equipment are set up by step 230 carries out data transmission, and refers to that transmission includes the data message of the first passage number.
Step 250:Second communication equipment selects a second channel number for belonging to the second channel number set.
Such as, what the second channel number set included is the channel number that value is even number, and correspondingly, second communication equipment selects a value to be used as the second channel number for the channel number of even number.
Step 260:Second communication equipment sets up message to the first communication equipment sendaisle, institute Stating Path Setup message includes the second channel number, to set up data channel of the channel number between first communication equipment as the second channel number;
The Path Setup message is specifically as follows WebRTC data channel protocol message DATA_CHANNEL_0PENo
The Path Setup message can also include the effect of the data channel(Such as, for IM), the type of media transmitted by the data channel(Such as text)Deng.
Step 270:The data channel that first communication equipment and second communication equipment are set up by step 260 carries out data transmission.
Step 240 and step 270 can be carried out simultaneously, e.g., and communicating pair carries out Screen sharing by sending the data message comprising first passage number to other side, and IM communications are carried out by sending the blunt texts of the data ^ comprising second channel number to other side.
It can also include before step 220, the SCTP connections that first communication equipment is set up between second communication equipment, correspondingly, data channel in step 230 and step 260 is set up in the SCTP connections, and the data message transmitted between subsequent communications both sides is transmitted by the SCTP connections.
According to embodiments of the present invention 1, communicating pair is consulted to determine to set up data channel each with the channel number in different channel number set, and do not occur simultaneously between different channel number set, the channel number for the data channel that the channel number and the opposing party that the data channel that a wherein side sets up can be ensured are set up does not conflict, the problem of defeated data message, while it also avoid reselecting channel number when channel number conflicts sets up communication delay problem caused by data channel.
Preferably, the side in first communication equipment and second communication equipment is receiving the Path Setup message for being used to set up data channel of other side's transmission(First passage such as step 230 sets up message, the second channel of step 260 sets up message)When, whether the channel number that the Path Setup message received, which can also be judged, to be included belongs to the channel number set of other side, such as, second communication equipment is when receiving the first passage and setting up message, judges whether the first passage sets up first passage number that message includes Belong in step 210 the first passage number set for consulting to determine, if be not belonging to, the channel number that illustrating the Path Setup message that other side sends includes is wrong, then return to the message for showing refusal using the data channel, otherwise, return for showing to agree to the message using the data channel.Step 210 can be accomplished in several ways, and elaborate two kinds of specific implementations of step 210 with reference to Fig. 2 and Fig. 3 separately below.
As shown in Fig. 2 step A1-A5 provides a kind of specific implementation of step 210.
Step A1-A2:First communication equipment and second communication equipment pre-set effector role(Controlling role) and first passage number set corresponding relation, by effector role (controlled role) and second channel number set corresponding relation.
Example is as follows:
What the first passage number set included is the channel number that value is odd number, is represented especially by a character string odd, or represented by mathematic(al) representation { yly=2n+l, n are integer };What the second channel number set included is the channel number that value is even number, is represented especially by a character string even, or represented by mathematic(al) representation { yly=2n, n are integer }.Correspondingly, the role and the corresponding relation of channel number set set in first communication terminal and second communication terminal is as shown in the table:
Or
Step A3:First communication equipment and with second communication equipment by interactive mode be connected foundations (Interactive Connectivity Establishment, ICE) role negotiation mechanism negotiation determine The role of first communication equipment and the role of second communication equipment, the role of first communication equipment for consulting to determine is that effector role, the role of second communication equipment are by effector role.
In a kind of specific implementation, communicating pair realizes ICE functions(ICE
Implementation), any of which side, it may be possible to realize whole ICE functions(ful 1
Implementation equipment), it is also possible to realize lightweight ICE functions(lite
Implementation equipment).The device cartridge for realizing whole ICE functions is subsequently referred to as full ICE equipment, the device cartridge for realizing lightweight ICE functions is referred to as lite ICE equipment.
The rule for determining both sides role is:
In the case where first communication equipment and second communication equipment are full ICE (complete ICE) equipment or are lite ICE (lightweight ICE) equipment, it is determined that the role for initiating the communication equipment of ICE role negotiations is effector role, correspondingly, the role of another communication equipment is by effector role.
It is to determine that the role of Full ICE equipment is effector role in the case that full ICE equipment, a side are lite ICE equipment in a side, the role of lite ICE equipment is by effector role.
Specifically consulting flow is:A direction other side in first communication equipment and second communication equipment sends the request message for initiating ICE role negotiations, carried in request message for showing the information for itself being full ICE equipment or lite ICE equipment, the opposing party receives and carried after the request message in the response message of return for showing the information for itself being full ICE equipment or lite ICE equipment, after communicating pair knows that other side is full ICE equipment or lite ICE equipment, you can the role of both sides is determined according to above-mentioned rule.
It should be noted that, the role of the communicating pair negotiated by ICE role negotiation mechanism, one side is effector role, the opposing party is by effector role, the result specifically consulted, the role that can be first communication equipment is effector role, the role of second communication equipment is by effector role, the role that can also be first communication equipment is by effector role, the role of second communication equipment is effector role, in step A1-A8, role using first communication equipment is effector role, the role of second communication equipment is to be elaborated exemplified by effector role, the role of first communication equipment is by effector role, when the role of second communication equipment is effector role Implementation it is similar with step A1-A8, repeat no more.
Step A4:The corresponding relation that first communication equipment is gathered according to the effector role pre-set with first passage number determines that first communication equipment sets up data channel using the channel number in first passage number set.
Step A5:Second communication equipment determines that second communication equipment sets up data channel using the channel number in second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
Step A1 and step A2 do not have specific sequencing, and step A4 and step A5 are also without specific sequencing.
Preferably, after step A5, it can also include:
Step A6:Second communication equipment sends call request message to first communication equipment, and the call request message includes the role of second communication equipment;
The call request message, can be specifically session initiation protocol(Session Initiation Protocol, SIP) invite (invitations)Message, java script session establishments agreement (Javascript Session Establishment Protocol, JSEP) offer (offer) message etc..
, can be by extending SDP (Session Description Protocol, Session Description Protocol that the call request message includes when implementing)Form to carry the role of communication equipment.As follows, an attribute role of reinforcement mouthful in SDP sctpmap- attr attributes, the value of the attribute can be to represent " controlling " of effector role or represent by effector role
, control led ".
sctpmap Attribute
sctpmap-at tr = "a=sctpmap: " sctpmap-number protocol [streams] [role] sctpmap-number = 1*DIGIT
protocol = labelstr ing
labelstring = text
text = byte-string streams = 1*DIGIT
role = labelstr ing
Here is the SDP of the extension carried in the call request message that second communication equipment is sent specific example.
m=application 54111 DTLS/SCTP 5000
c=IN IP4 79.97.215.79
a=sctpmap: 5000 webr t c-Da t aChanne 1 2 control led
a=webr tc-DataChannel: 5000 s tream=l; label="channel
1 "; subprotocol="chat ";
a=webr tc-DataChannel: 5000 s tream=3; label="channel
2"; subprotocol="f ile transfer"; max_retr=3
It should be noted that, either one in communicating pair can include the call request message of the role of itself to other side's transmission, in step A6-A8, sent exemplified by call request message, first communication equipment return to call message and be illustrated by by second communication equipment, implementation when the first communication equipment transmission call request message, second communication equipment return call message is similar with step A6-A8, repeats no more.
Step A7:First communication equipment judges whether the role of second communication equipment of the role for the second communication equipment that the call request message includes with consulting to determine in step A3 is identical;
If it is judged that it is identical, step A8 is performed, otherwise, failure response message is returned to second communication equipment.
Step A8:First communication equipment returns to success response message to second communication equipment.The success response message can be specifically SIP Temporary Response message(Such as 183 message, 180 message), JSEP answer (responses)Message etc..
First communication equipment can also carry the role of first communication equipment in the success response message, and the SDP that can be specifically included by success response message carries the role of the first communication equipment, and example is as follows: m=application 54222 DTLS/SCTP 5000
c=IN IP4 79.97.215.80
a=sctpmap: 5000 webr t c-Da t aChanne 1 2 controlling
a=webr tc-DataChannel: 5000 s tream=2; label="channel
1 "; subprotocol="chat ";
a=webr tc-DataChannel: 5000 s tream=4; label="channel
2"; subprotocol="f ile transfer"; max_retr=3
First communication equipment is after the success response message is returned, you can the data channel that the channel number in the selection first passage number set is set up between second communication equipment;Second communication equipment is after the success response message is received, you can the data channel that the channel number in the selection second channel number set is set up between first communication equipment.
As shown in figure 3, step B1-B3 provides another specific implementation of step 210.
Step B1:Second communication equipment sends call request message to first communication equipment, the call request message include the second channel number set, for show second communication equipment using the second channel number gather in channel number set up data channel.
The call request message, can be specifically SIP invite message, JSEP offer message etc..When implementing, the second channel number set can be carried by extending the form for the SDP that the call request message includes.As follows, an attribute set of reinforcement mouthful in SDP sctpmap- attr attributes, the value of the attribute can be " odd " or expression even-numbered channels for representing odd chanel number set
sctpmap Attribute
sctpmap-at tr = "a=sctpmap: " sctpmap-number protocol [streams] [set] sctpmap-number = 1*DIGIT
protocol = labelstr ing
labelstring = text
text = byte-string streams = 1*DIGIT
role = labelstr ing
If what the second channel number set included is the channel number that value is even number, example is as follows: m=application 54111 DTLS/SCTP 5000
c=IN IP4 79.97.215.79
a=sctpmap: 5000 webr t c-Da t aChanne 1 2 even
a=webr tc-DataChannel: 5000 s tream=l; label="channel
1 "; subprotocol="chat ";
a=webr tc-DataChannel: 5000 s tream=3; label="channel
2"; subprotocol="f ile transfer"; max_retr=3
It should be noted that, either one in communicating pair can send the call request message for the channel number set for including itself using to other side, in step B1-B3, sent exemplified by call request message, first communication equipment return to call message and be illustrated by by second communication equipment, implementation when the first communication equipment transmission call request message, second communication equipment return call message is similar with step B1-B3, repeats no more.
Step B2:First communication equipment is gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number;
Step B3:First communication equipment returns to call message to second communication equipment, the call message include the first passage number set, for show first communication equipment using the first passage number gather in channel number set up data channel.
If what the first passage number set included is the channel number that value is odd number, example is as follows: m=application 54222 DTLS/SCTP 5000
c=IN IP4 79.97.215.80
a=sctpmap: 5000 webr t c-Da t aChanne 1 2 odd
a=webr tc-DataChannel: 5000 s tream=2; label="channel
1 "; subprotocol="chat "; a=webr tc-DataChanne l: 5000 s t ream=4; labe l=" channe l
2 " ; subprotocol=" f i le t ransfer " ;Max_ ret r=3 according to embodiments of the present invention 1, the embodiment of the present invention 1 proposes a kind of communication equipment 500, is communicated between communication equipment 500 and Correspondent Node by real-time Communication for Power Network WebRTC data channel protocols.As shown in figure 3, communication equipment 500 includes:Negotiation module 501 and communication module 502.
Negotiation module 501, for consulting to determine that the channel number that communication equipment 500 is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, the first passage number set and the second channel number set are not occured simultaneously, and for the first passage number set for consulting to determine to be transmitted to communication module 502.
Such as, what the first passage number set included is the channel number that value is odd number, and what the second channel number set included is the channel number that value is even number.
And for example, what the first passage number set included is the channel number that value is 1 to 32768, and what second channel number set included is the channel number that value is 32769 to 65535.
Communication module 502, for receiving the first passage number set from negotiation module 501, and select a first passage number for belonging to the first passage number set, first passage, which is sent, to the Correspondent Node sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between the Correspondent Node as the first passage number, and carried out data transmission by first data channel and the Correspondent Node, the second channel for being additionally operable to receive the Correspondent Node transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, for setting up the second data channel that the channel number between communication equipment 500 and the Correspondent Node is the second channel number, and carried out data transmission by second data channel and the Correspondent Node.
Such as, what the first passage number set included is the channel number that value is odd number, and correspondingly, communication module 502 selects a value to be used as the first passage number for the channel number of odd number;What the second channel number set included is the channel number that value is even number, and correspondingly, the second channel number is the channel number that a value is even number. The Path Setup message that communicating pair is sent to other side(First passage sets up message, the second channel and sets up message as described)It is specifically as follows WebRTC data channel protocol message DATA_CHANNEL_0PENoThe Path Setup message can also include the effect for the data channel that the Path Setup message is set up(Such as, for Desktop Share, for IM), the type of media transmitted by the data channel(Such as video, text)Deng.
Communication module 502, can be also used for the SCTP connections set up between the Correspondent Node, correspondingly, the data channel set up between communication equipment 500 and the Correspondent Node(First data channel, second data channel as described)Set up in the SCTP connections, the data message transmitted between subsequent communications both sides is transmitted by the SCTP connections.
In a kind of concrete implementation mode of channel number set used in negotiation communication both sides:Communication equipment 500 and the Correspondent Node pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;Negotiation module 501, specifically for consulting to determine the role of communication equipment 500 and the role of the Correspondent Node by ICE role negotiations mechanism and the Correspondent Node, the role for consulting the communication equipment 500 of determination is effector role, and the corresponding relation gathered according to the effector role pre-set with first passage number determines that communication equipment 500 sets up data channel using the channel number in first passage number set, the role for consulting the Correspondent Node of determination is by effector role, in order to which the Correspondent Node determines that the Correspondent Node sets up data channel using the channel number in the second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
Further, communication module 502, it can be also used for receiving the second channel number set from the negotiation module, receive the call request message that the Correspondent Node is sent, the call request message includes the role of the Correspondent Node, judge whether the role of the Correspondent Node of the role for the Correspondent Node that the call request message includes with being received from the negotiation module is identical, and success response message is returned to the Correspondent Node when judging identical.
The call request message, can be specifically S IP inv i te message, JSEP offer message etc..When implementing, it can be taken by extending the form for the SDP that the call request message includes Role with communication equipment, such as, an attribute role of reinforcement mouthful in SDP sctpmap- at t r attributes, the value of the attribute can be to represent " the cont rol l ing " of effector role or represent by effector role's,, cont rol led ".
The success response message can be specifically SIP Temporary Response message(Such as 183 message, 180 message), JSEP answer message etc..Communication module 502 can also carry the role of communication equipment 500 in the success response message, and the SDP that can be specifically included by success response message carries the role of communication equipment 500.
In another specific implementation of channel number set used in negotiation communication both sides:Communication module 502, it is additionally operable to receive the call request message that the Correspondent Node is sent, the call request message is gathered including the second channel number, for show the Correspondent Node gathered using the second channel number in channel number set up data channel, and the second channel number set is transmitted to negotiation module 501;Negotiation module 501, specifically for receiving the second channel number set from communication module 502, gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number, and the first passage number set is transmitted to communication module 502;Communication module 502, it is additionally operable to receive the first passage number set from negotiation module 501, and return to call message to the Correspondent Node, the call message include the first passage number set, for show communication equipment 500 using the first passage number gather in channel number set up data channel.
The call request message, can be specifically SIP invi te message, JSEP offer message etc..When implementing, channel number set can be carried by extending the form for the SDP that the call request message and the call message include, such as, increase an attribute set in SDP sctpmap- at t r attributes, the value of the attribute can be " odd " that represents odd chanel number set or " even " that represents even-numbered channels number set
When communication module 502 receives the Path Setup message for being used to set up data channel that the Correspondent Node is sent(Second channel sets up message as described)When, whether the channel number that communication module 502 can be also used for judging the Path Setup message received and include belongs to the second channel number set, if be not belonging to, returns to the message for showing refusal using the data channel. According to embodiments of the present invention 2, communication equipment 500 is consulted to determine to set up data channel each with the channel number in different channel number set first from Correspondent Node, and do not occur simultaneously between different channel number set, it can ensure that the channel number of data channel that the channel number and Correspondent Node of the data channel that communication equipment 500 is set up are set up does not conflict, so as to solve the problems, such as that the channel number that reselected when can not dash forward caused by channel number conflict in the prior art sets up communication delay caused by data channel.According to embodiments of the present invention 1, the embodiment of the present invention 3 provides a kind of communication equipment 1000, is communicated between communication equipment 1000 and Correspondent Node by real-time Communication for Power Network WebRTC data channel protocols.As shown in figure 4, communication equipment 1000 includes processor(Proces sor) 1010 and memory(Memory) 1020, wherein, mutual communication is completed between processor 1010 and memory 1020 by bus.
Memory 1020, for depositing computer-managed instruction.Memory 1020 may include high-speed RAM memory, it is also possible to also including nonvolatile memory(Non-volat i le memory), for example, at least one magnetic disk storage.
Processor 1010, for performing the computer-managed instruction deposited in memory 1020.Processor 1010 can be specifically central processing unit(CPU, cent ra l proces s ing uni t), it is computer core unit.
Wherein, processor 1010 performs the computer-managed instruction so that communication equipment 1000 performs following operation:
Consult to determine that the channel number that communication equipment 1000 is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, the first passage number set and the second channel number set are not occured simultaneously, such as, what the first passage number set included is the channel number that value is odd number, and what the second channel number set included is the channel number that value is even number;
Selection one belongs to the first passage number of the first passage number set;
First passage is sent to the Correspondent Node and sets up message, and the first passage, which sets up message, includes institute First passage number is stated, to set up first data channel of the channel number between the Correspondent Node as the first passage number, and is carried out data transmission by first data channel and the Correspondent Node;The second channel for receiving the Correspondent Node transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, it is the second data channel of the second channel number for setting up the channel number between communication equipment 1000 and the Correspondent Node, and is carried out data transmission by second data channel and the Correspondent Node.
Such as, what the first passage number set included is the channel number that value is odd number, correspondingly, processor
1010, which perform the computer-managed instructions, causes communication equipment 1000 to select channel number that a value is odd number as the first passage number;What the second channel number set included is the channel number that value is even number, and correspondingly, the second channel number is the channel number that a value is even number.
The Path Setup message that communicating pair is sent to other side(First passage sets up message, the second channel and sets up message as described)It is specifically as follows WebRTC data channel protocol message
DATA_CHANNEL_0PENoThe Path Setup message can also include the effect for the data channel that the Path Setup message is set up(Such as, for Desktop Share, for IM), the type of media transmitted by the data channel(Such as video, text)Deng.
Processor 1010 performs the computer-managed instruction can be with further such that communication equipment 1000 performs following operation:The SCTP connections set up between the Correspondent Node.Correspondingly, the data channel set up between communication equipment 1000 and the Correspondent Node(First data channel, second data channel as described)Set up in the SCTP connections, the data message transmitted between subsequent communications both sides is transmitted by the SCTP connections.
In a kind of specific implementation of channel number set used in negotiation communication both sides:
Communication equipment 1 000 and the Correspondent Node pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
It is described to consult to determine that the channel number that communication equipment 1000 is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, specifically include:Consult to determine communication equipment by ICE role negotiations mechanism and the Correspondent Node 1000 role and the role of the Correspondent Node, the role for consulting the communication equipment 1000 of determination is effector role, and the corresponding relation gathered according to the effector role pre-set with first passage number determines that communication equipment 1000 sets up data channel using the channel number in first passage number set, the role for consulting the Correspondent Node of determination is by effector role, in order to which the Correspondent Node determines that the Correspondent Node sets up data channel using the channel number in second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
Processor 1010 performs the computer-managed instruction can be with further such that communication equipment 1000 performs following operation:Receive the call request message that the Correspondent Node is sent, the call request message includes the role of the Correspondent Node, judge whether the role for the Correspondent Node that the call request message includes is identical with the role of the Correspondent Node for consulting to determine, and success response message is returned to the Correspondent Node when judging identical.
The call request message, can be specifically SIP invi te message, JSEP offer message etc..When implementing, the role of communication equipment can be carried by extending the form for the SDP that the call request message includes, such as, an attribute role of reinforcement mouthful in SDP sctpmap- at t r attributes, the value of the attribute can be " the cont rol l ing " of expression effector role or expression by effector role's,, cont rol led ".
The success response message can be specifically SIP Temporary Response message(Such as 183 message, 180 message), JSEP answer message etc..The success response message can also carry the role of communication equipment 1000, and the SDP that can be specifically included by success response message carries the role of communication equipment 1000.
In another specific implementation of channel number set used in negotiation communication both sides:It is described to consult to determine that the channel number that communication equipment 1000 is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, specifically include:Receive the call request message that the Correspondent Node is sent, the call request message is gathered including the second channel number, for show the Correspondent Node using the second channel number gather in channel number set up data channel, gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number, returned and call to the Correspondent Node Response message, the call message is gathered including the first passage number, for showing communication equipment
1000 set up data channel using the channel number in the first passage number set.
The call request message, can be specifically S IP inv i te message, JSEP offer message etc..When implementing, channel number set can be carried by extending the form for the SDP that the call request message and the call message include, such as, increase an attribute se t in SDP sc t pmap- a t t r attributes, the value of the attribute can be " odd " that represents odd chanel number set or " even " that represents even-numbered channels number set
Processor 1010 performs the computer-managed instruction can be with further such that communication equipment 1 000 performs following operation:When communication equipment 1 000 receives the Path Setup message for being used to set up data channel that the Correspondent Node is sent(Second channel sets up message as described)When, whether the channel number that judging the Path Setup message received includes belongs to the second channel number set, if be not belonging to, returns to the message for showing refusal using the data channel.
According to embodiments of the present invention 3, communication equipment 1000 is consulted to determine to set up data channel each with the channel number in different channel number set first from Correspondent Node, and do not occur simultaneously between different channel number set, it can ensure that the channel number for the data channel that the channel number and Correspondent Node of the data channel that the communication equipment is set up are set up does not conflict, so that solving the problems, such as to reselect channel number during Lothrus apterus caused by channel number conflict in the prior art sets up communication delay caused by data channel.According to embodiments of the present invention 1, the embodiment of the present invention 4 proposes a kind of communication system 5000, as shown in Fig. 5, communication system 5000 includes communication equipment 5010 and communication equipment 5020, is communicated between communication equipment 5010 and communication equipment 5020 by real-time Communication for Power Network WebRTC data channel protocols.
Communication equipment 501 0, for consulting to determine that the channel number that communication equipment 5010 is set up during data channel, communication equipment 5020 are gathered using second channel number using the channel number in first passage number set sets up data channel with communication equipment 5020, the first passage number set and the second channel number set are not occured simultaneously(What first passage number set included is the channel number that value is odd number as described, the second channel number collection What conjunction included is the channel number that value is even number);It is additionally operable to the first passage number that selection one belongs to the first passage number set, first passage, which is sent, to communication equipment 5020 sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between communication equipment 5020 as the first passage number, and carried out data transmission using first data channel and communication equipment 5020.
Communication equipment 5020, for consulting to determine that communication equipment 5010 sets up data channel using the channel number in first passage number set with communication equipment 5010, channel number during communication equipment 5020 is gathered using second channel number sets up data channel, it is additionally operable to the second channel number that selection one belongs to the second channel number set, second channel, which is sent, to communication equipment 5010 sets up message, the second channel, which sets up message, includes the second channel number, to set up second data channel of the channel number between communication equipment 5010 as the second channel number, and carried out data transmission using second data channel and communication equipment 5010.
In a kind of specific implementation:
Communication equipment 5010 and communication equipment 5020 pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
Communication equipment 5010 is used to consult to determine that the channel number that communication equipment 5010 is set up during data channel, communication equipment 5020 are gathered using second channel number using the channel number in first passage number set sets up data channel with communication equipment 5020, specifically includes:Communication equipment 5010 is used to consult to determine the role of communication equipment 5010 and the role of communication equipment 5020 by ICE role negotiations mechanism and communication equipment 5020, the role of communication equipment 5010 for consulting to determine be effector role, the role of communication equipment 5020 be by effector role, be additionally operable to according to the corresponding relation that the effector role pre-set gathers with first passage number determine communication equipment 5010 gathered using first passage number in channel number set up data channel;
Communication equipment 5020 is used to consult to determine that the channel number that communication equipment 5020 is set up during data channel, communication equipment 5010 are gathered using first passage number using the channel number in second channel number set sets up data channel with communication equipment 5010, specifically includes:Communication equipment 5020 is used to consult to determine the role of communication equipment 5010 and the role of communication equipment 5020 by ICE role negotiations mechanism and communication equipment 5010, and the role of communication equipment 5010 for consulting to determine is that effector role, the role of communication equipment 5020 are controlled Person role processed, is additionally operable to determine that communication equipment 5020 sets up data channel using the channel number in second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
Further, communication equipment 5020, are additionally operable to send call request message to communication equipment 5010, the call request message includes the role of communication equipment 5020;Communication equipment 5010, it is additionally operable to receive the call request message, and judge whether the role for the communication equipment 5020 that the call request message includes is identical with the role of the communication equipment 5020 for consulting to determine, and return to success response message to communication equipment 5020 when judging identical.
In another specific implementation:Communication equipment 5020 is used to consult to determine that the channel number that communication equipment 5010 is set up during data channel, communication equipment 5020 are gathered using second channel number using the channel number in first passage number set sets up data channel with communication equipment 5010, specifically includes:Communication equipment 5020 is used to send call request message to communication equipment 5010, the call request message is gathered including the second channel number, for show communication equipment 5020 using the second channel number gather in channel number set up data channel, and the call message that receiving communication device 5010 is returned, the call message include the first passage number set, for show communication equipment 5010 using the first passage number gather in channel number set up data channel;Communication equipment 5010 is used to consult to determine that the channel number that communication equipment 5010 is set up during data channel, communication equipment 5020 are gathered using second channel number using the channel number in first passage number set sets up data channel with communication equipment 5020, specifically includes:Communication equipment 5010 is used to receive the call request message, second channel number in the call request message is gathered to determine with the second channel number to gather for one and gathered without the channel number set occured simultaneously as the first passage number, and includes the call message that the first passage number is gathered to the return of communication equipment 5020.
Preferably, the side in communication equipment 5010 and communication equipment 5020 is receiving the Path Setup message for being used to set up data channel of other side's transmission(First passage such as step 230 sets up message, the second channel of step 260 sets up message)When, whether the channel number that the Path Setup message received, which can also be judged, to be included belongs to the channel number set of other side, such as, communication equipment 5020 is when receiving the first passage and setting up message, judge whether the first passage number that the first passage is set up message and included belongs to the first passage number set for consulting to determine in step 210, if be not belonging to, illustrate the Path Setup that other side sends The channel number that message includes is wrong, then returns to the message for showing refusal using the data channel, otherwise, is returned for showing to agree to the message using the data channel.
Communication system described in the embodiment of the present invention 4 can be for the method described in implementation above-described embodiment 1.
According to embodiments of the present invention 4, communicating pair is consulted to determine to set up data channel each with the channel number in different channel number set, and do not occur simultaneously between different channel number set, the channel number for the data channel that the channel number and the opposing party that the data channel that a wherein side sets up can be ensured are set up does not conflict, the problem of defeated data message, while it also avoid reselecting channel number when channel number conflicts sets up communication delay problem caused by data channel.Those of ordinary skill in the art are it is to be appreciated that the unit and algorithm steps of each example described with reference to the embodiments described herein, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function to each specific application using distinct methods, but this realization is it is not considered that beyond the scope of this invention.
It is apparent to those skilled in the art that, the specific work process of the system of foregoing description, device and unit clean for the convenience and cylinder of description may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can realize by another way.For example, device embodiment described above is only schematical, for example, the division of the unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, it, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,. It can be for the part that unit is shown or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or in use, can be stored in a computer read/write memory medium.Understood based on such, the part or the part of the technical scheme that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product is stored in a storage medium, including some instructions are to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory (RAM, Random Acces s Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (15)

  1. Claims
    1. a kind of method for setting up data channel, it is characterized in that, methods described is applied to include the communication system of the first communication equipment and the second communication equipment, communicated between first communication equipment and second communication equipment by real-time Communication for Power Network WebRTC data channel protocols, methods described includes:
    First communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, and the first passage number set and the second channel number set are not occured simultaneously;
    First communication equipment selects a first passage number for belonging to the first passage number set;First communication equipment sends first passage to second communication equipment and sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between second communication equipment as the first passage number, and carried out data transmission by first data channel with second communication equipment;
    The second channel that first communication equipment receives the second communication equipment transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, it is the second data channel of the second channel number for setting up the channel number between first communication equipment and second communication equipment, and is carried out data transmission by second data channel with second communication equipment.
    2. the method as described in claim 1, characterized in that, first communication equipment and second communication equipment pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
    First communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:
    First communication equipment is consulted to determine the role of first communication equipment and the role of second communication equipment by ICE role negotiations mechanism and second communication equipment, the role for consulting first communication equipment of determination is effector role, and gathered according to the effector role pre-set with first passage number Corresponding relation determines that first communication equipment sets up data channel using the channel number in first passage number set, the role for second communication equipment that negotiation is determined is by effector role, in order to which second communication equipment determines that second communication equipment sets up data channel using the channel number in second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
    3. method as claimed in claim 2, it is characterised in that
    First communication equipment is consulted by ICE role negotiations mechanism and second communication equipment after the role of determination first communication equipment and the role of second communication equipment, the first communication equipment transmission first passage sets up message and receives the second channel and sets up before message, in addition to:First communication equipment receives the call request message that second communication equipment is sent, and the call request message includes the role of second communication equipment;
    First communication equipment judges whether the role for the second communication equipment that the call request message includes is identical with the role of second communication equipment for consulting to determine, and returns to success response message to second communication equipment when judging identical.
    4. the method as described in claim 1, it is characterized in that, first communication equipment is consulted to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:
    First communication equipment receives the call request message that second communication equipment is sent, the call request message include the second channel number set, for show second communication equipment using the second channel number gather in channel number set up data channel;
    First communication equipment is gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number;
    First communication equipment returns to call message to second communication equipment, the call message include the first passage number set, for show first communication equipment using the first passage number gather in channel number set up data channel.
    5. the method as described in claim 1-4 is any, it is characterised in that methods described also includes: When the third channel for setting up triple data path that first communication equipment receives the second communication equipment transmission sets up message, first communication equipment judges whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned.
    6. a kind of communication equipment, it is characterised in that communicated between the communication equipment and Correspondent Node by real-time Communication for Power Network WebRTC data channel protocols, the communication equipment includes negotiation module and communication module;The negotiation module, for consulting to determine that the channel number that the communication equipment is set up during data channel, the Correspondent Node are gathered using second channel number using the channel number in first passage number set sets up data channel with the Correspondent Node, the first passage number set and the second channel number set are not occured simultaneously, and for the first passage number set for consulting to determine to be transmitted to the communication module;
    The communication module, for receiving the first passage number set from the negotiation module, and select a first passage number for belonging to the first passage number set, first passage, which is sent, to the Correspondent Node sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between the Correspondent Node as the first passage number, and carried out data transmission by first data channel and the Correspondent Node, the second channel for being additionally operable to receive the Correspondent Node transmission sets up message, the second channel, which sets up message, to be included belonging to the second channel number of the second channel number set, for setting up the second data channel that the channel number between the communication equipment and the Correspondent Node is the second channel number, and carried out data transmission by second data channel and the Correspondent Node.
    7. communication equipment as claimed in claim 6, it is characterised in that the communication equipment and the Correspondent Node pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
    The negotiation module, specifically for consulting to determine the role of the communication equipment and the role of the Correspondent Node by ICE role negotiations mechanism and the Correspondent Node, the role for consulting the communication equipment of determination is effector role, and the corresponding relation gathered according to the effector role pre-set with first passage number determines that the communication equipment sets up data channel using the channel number in first passage number set, consults the institute determined The role for stating Correspondent Node is by effector role, in order to which the Correspondent Node determines that the Correspondent Node sets up data channel using the channel number in the second channel number set according to the corresponding relation by effector role and second channel number set pre-set.
    8. communication equipment as claimed in claim 7, it is characterised in that
    The communication module, it is additionally operable to receive the second channel number set from the negotiation module, receive the call request message that the Correspondent Node is sent, the call request message includes the role of the Correspondent Node, judge whether the role of the Correspondent Node of the role for the Correspondent Node that the call request message includes with being received from the negotiation module is identical, and success response message is returned to the Correspondent Node when judging identical.
    9. communication equipment as claimed in claim 6, it is characterised in that
    The communication module, it is additionally operable to receive the call request message that the Correspondent Node is sent, the call request message is gathered including the second channel number, for show the Correspondent Node gathered using the second channel number in channel number set up data channel, and the second channel number set is transmitted to the negotiation module;
    The negotiation module, specifically for receiving the second channel number set from the communication module, gathered to determine with the second channel number to gather for one according to the second channel number and gathered without the channel number set occured simultaneously as the first passage number, and the first passage number set is transmitted to the communication module;
    The communication module, it is additionally operable to receive the first passage number set from the negotiation module, and return to call message to the Correspondent Node, the call message include the first passage number set, for show the communication equipment using the first passage number gather in channel number set up data channel.
    10. the communication equipment as described in claim 6-9 is any, it is characterised in that
    The communication module, it is additionally operable to when the third channel for setting up triple data path that the communication module receives the Correspondent Node transmission sets up message, judge whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned.
    11. a kind of communication system, it is characterised in that the communication system includes the first communication equipment and second Communication equipment, real-time Communication for Power Network is passed through between first communication equipment and second communication equipment
    WebRTC data channel protocols are communicated;
    First communication equipment, for consulting to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, the first passage number set and the second channel number set are not occured simultaneously;It is additionally operable to the first passage number that selection one belongs to the first passage number set, first passage, which is sent, to second communication equipment sets up message, the first passage, which sets up message, includes the first passage number, to set up first data channel of the channel number between second communication equipment as the first passage number, and carried out data transmission using first data channel with second communication equipment;
    Second communication equipment, for consulting to determine that first communication equipment sets up data channel using the channel number in first passage number set with first communication equipment, channel number during second communication equipment is gathered using second channel number sets up data channel, it is additionally operable to the second channel number that selection one belongs to the second channel number set, second channel, which is sent, to first communication equipment sets up message, the second channel, which sets up message, includes the second channel number, to set up second data channel of the channel number between first communication equipment as the second channel number, and carried out data transmission using second data channel with first communication equipment.
    12. communication system as claimed in claim 11, characterized in that, first communication equipment and second communication equipment pre-set the corresponding relation that effector role and first passage number are gathered, the corresponding relation gathered by effector role and second channel number;
    First communication equipment is used to consult to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with second communication equipment, specifically includes:First communication equipment is used to consult to determine the role of first communication equipment and the role of second communication equipment by ICE role negotiations mechanism and second communication equipment, the role of first communication equipment for consulting to determine be effector role, the role of second communication equipment be by effector role, be additionally operable to according to the corresponding relation that the effector role pre-set gathers with first passage number determine first communication equipment gathered using first passage number in passage Number set up data channel;
    Second communication equipment is used to consult to determine that the channel number that second communication equipment is set up during data channel, first communication equipment are gathered using first passage number using the channel number in second channel number set sets up data channel with first communication equipment, specifically includes:Second communication equipment is used to consult to determine the role of first communication equipment and the role of second communication equipment by ICE role negotiations mechanism and first communication equipment, the role of first communication equipment for consulting to determine be effector role, the role of second communication equipment be by effector role, be additionally operable to according to pre-set determined by the corresponding relation that effector role and second channel number are gathered second communication equipment gathered using second channel number in channel number set up data channel.
    13. communication system as claimed in claim 12, it is characterised in that
    Second communication equipment, is additionally operable to send call request message to first communication equipment, the call request message includes the role of second communication equipment;
    First communication equipment, it is additionally operable to receive the call request message, and judge whether the role for the second communication equipment that the call request message includes is identical with the role of second communication equipment for consulting to determine, and return to success response message to second communication equipment when judging identical.
    14. communication system as claimed in claim 11, it is characterised in that
    Second communication equipment is used to consult to determine that the channel number that first communication equipment is set up during data channel, second communication equipment are gathered using second channel number using the channel number in first passage number set sets up data channel with first communication equipment, specifically includes:Second communication equipment is used to send call request message to first communication equipment, the call request message is gathered including the second channel number, for show second communication equipment using the second channel number gather in channel number set up data channel, and receive the call message that first communication equipment is returned, the call message include the first passage number set, for show first communication equipment using the first passage number gather in channel number set up data channel;
    First communication equipment is used to consult to determine that first communication equipment sets up data channel, second communication equipment using the channel number in first passage number set and utilizes second channel with second communication equipment Number set in channel number set up data channel, specifically include:First communication equipment is used to receive the call request message, second channel number in the call request message is gathered to determine with the second channel number to gather for one and gathered without the channel number set occured simultaneously as the first passage number, and includes the call message that the first passage number is gathered to second communication equipment return.
    15. the communication system as described in claim 11-14 is any, it is characterised in that
    First communication equipment, it is additionally operable to when the third channel for setting up triple data path that first communication equipment receives the second communication equipment transmission sets up message, judge whether the third channel number that the third channel received is set up message and included belongs to the second channel number set, if be not belonging to, the message for showing refusal using the triple data path is returned.
CN201480000443.9A 2014-02-19 2014-02-19 A kind of methods, devices and systems for establishing data channel Active CN104995898B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/072248 WO2015123822A1 (en) 2014-02-19 2014-02-19 Method, device and system for establishing data channel

Publications (2)

Publication Number Publication Date
CN104995898A true CN104995898A (en) 2015-10-21
CN104995898B CN104995898B (en) 2018-06-05

Family

ID=53877512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480000443.9A Active CN104995898B (en) 2014-02-19 2014-02-19 A kind of methods, devices and systems for establishing data channel

Country Status (2)

Country Link
CN (1) CN104995898B (en)
WO (1) WO2015123822A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131934A (en) * 2019-12-27 2020-05-08 武汉长光科技有限公司 Extended wavelength allocation method based on PON system
CN112019417A (en) * 2019-05-30 2020-12-01 华为技术有限公司 Method and equipment for transmitting message

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117177304A (en) * 2022-05-25 2023-12-05 中国移动通信有限公司研究院 Negotiation method, device, network equipment and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770731A (en) * 2004-11-01 2006-05-10 凌阳科技股份有限公司 Channel assigning method in special peer-to-peer network
CN101616156A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of signal negotiation method and device of realizing the RTP data stream multiplexing
CN102710798A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Browser expanding service supporting system and method based on real-time communication
CN103580986A (en) * 2012-07-30 2014-02-12 华为终端有限公司 Real-time communication method, terminal equipment, real-time communication server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770731A (en) * 2004-11-01 2006-05-10 凌阳科技股份有限公司 Channel assigning method in special peer-to-peer network
CN101616156A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 A kind of signal negotiation method and device of realizing the RTP data stream multiplexing
WO2011009369A1 (en) * 2009-07-24 2011-01-27 中兴通讯股份有限公司 Method and equipment for realizing signaling negotiation of real-time transport protocol data stream multiplexing
CN102710798A (en) * 2012-06-29 2012-10-03 百度在线网络技术(北京)有限公司 Browser expanding service supporting system and method based on real-time communication
CN103580986A (en) * 2012-07-30 2014-02-12 华为终端有限公司 Real-time communication method, terminal equipment, real-time communication server and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019417A (en) * 2019-05-30 2020-12-01 华为技术有限公司 Method and equipment for transmitting message
CN111131934A (en) * 2019-12-27 2020-05-08 武汉长光科技有限公司 Extended wavelength allocation method based on PON system

Also Published As

Publication number Publication date
CN104995898B (en) 2018-06-05
WO2015123822A1 (en) 2015-08-27

Similar Documents

Publication Publication Date Title
EP2649531B1 (en) Multichannel connections in file system sessions
US5931913A (en) Methods, system and computer program products for establishing a session between a host and a terminal using a reduced protocol
EP1494410B1 (en) Method and device for instant messaging
KR101033713B1 (en) Methods of network-initiated partial session transfer
CN107113342B (en) Relay optimization using software defined networks
EP2075974A1 (en) A method and a device for aggregating ports
Sosinsky Networking bible
CN104170353B (en) TCP link configurations method, apparatus and equipment
CN102638582B (en) Data communicating method and communication end
CN104106303A (en) Methods and apparatus for establishing tunneled direct link setup (TDLS) session between devices in wireless network
US11632361B2 (en) Combined authentication and connection establishment for a communication channel
CN103916275A (en) BFD detection device and method
CN101675346A (en) Pseudowire load balancing
CN107078974A (en) Multicast advertisements message for the network switch in storage area network
CN104935641B (en) A kind of method and apparatus for accelerating file transmission
CN104780191A (en) Group information acquiring and sharing methods and group information acquiring and sharing devices
CN104995898A (en) Method, device and system for establishing data channel
CN110505640A (en) The processing method of apparatus bound, apparatus and system, to distribution net equipment and terminal
CN102858025A (en) Method and device of point-to-point interactive operation
CN101626345B (en) Message processing method and real-time stream protocol application layer gateway in home gateway
US6470390B1 (en) Method and apparatus for a dual connection communication session
CN104486187B (en) A kind of CAN communication device and method of dynamic synchronization
US11637874B2 (en) Communications apparatus, systems, and methods for preventing and/or minimizing session data clipping
US20190037054A1 (en) Method and server for establishing a tcp connection
CN105991629B (en) TCP connection method for building up and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant