Embodiment
For making purpose of the present invention, technical characterictic and implementation result clearer, below in conjunction with the accompanying drawings and the specific embodiments technical scheme of the present invention is described in detail.Realized in the embodiment of the invention that a calling carries out route by a plurality of transmission lines, and different routes can be based on dissimilar transmission lines.
For description technique scheme more clearly, carry out following explanation:
In each embodiment of the invention, " calling " of indication is meant that all one is looked audio frequency, pure audio or needs the mutual pairing calling of data in real time, because the existence of calling out needs transmission code stream.
In each embodiment of the invention, " capability negotiation " of indication, be meant that all the both sides of call setup obtain a process of the other side's disposal ability, can be referring to (the ITU-T of the Bureau of Standards of international telecommunication union telecommunication, International Telecommunication Union Telecommunication Standardization Sector) H.323 agreement (H.323, ITU-TH.323protocol), H.320 or conversation initialized protocol (SIP, The Session Initiation Protocol) or the like.
In each embodiment of the invention, " route " of indication all is IP network route of general reference, E1 network (link of 2.048M is used pcm encoder) route, isdn network route or based on the network route of other transmission lines.
In each embodiment of the invention, " common code stream " of indication, be also referred to as " with reference to code stream ", be meant the business code flow on basis of both sides' transmission of set up calling out or the code stream of other types, specifically can be referring to H261, H263, H264, G.711, G.722, AAC, T.120 wait definition in the international standard protocol; That is, a complete common code stream can independently, correctly be decoded as complete business code flow at least.Wherein, " with reference to code stream " is the notion of a general reference, two parts of code stream references mutually, but always need a copy of it to be chosen as reference data, generally can select autonomous channel " common code stream " conduct with reference to benchmark.
In each embodiment of the invention, " the redundant code stream " of indication all is meant the most all or part of copy of the business code flow on basis of setting up both sides' transmission of calling out; And, can realize copy very simply for code stream in the general communications industry.
In each embodiment of the invention, introduce the concept definition of " main channel ", if the calling of a calling terminal is normal, its most basic communication condition that requires can be satisfied; Then main channel meets this communication condition and by the channel of the determined most critical of current call.Set up the reason of " main channel " to be, if because " calling " carried out repeatedly route and caused producing a plurality of channels, then when recovering to look code stream such as audio frequency, when needing a restore data as the code stream of reference benchmark, be common code stream, part or all of this common code stream transmits on selected main channel.Corresponding with main channel is from channel.Wherein, put down in writing a notion endpoint (node) in the H323 standard agreement, this node comprises terminal, MCU and gateway; Wherein terminal refers to described calling terminal in this application; Calling terminal specifically is divided into: send terminal and receiving terminal.Because the transmission course in the communication also has the signaling of some control aspects, for example flow-control command is undertaken by main channel, can only be benchmark with the main channel therefore.Whether normal benchmark also is a main channel to differentiate whole communication, because all in theory channels are all unreliable, the benchmark of a differentiation will be arranged at least, therefore can select main channel as this discrimination standard.
In the embodiment of the invention, a calling not only can be walked a transmission line and carry out route one time, and further, a calling can be walked different transmission lines and carry out repeatedly route.As shown in Figure 2, the both sides that set calling terminal are respectively calling terminal 1 and calling terminal 2, have identified several transmission lines as channel, to finish each time route, be respectively: the corresponding route 1 of main channel, from channel 1 corresponding route 2, from channel 2 corresponding routes 3, from the corresponding route n+1 of channel n.With calling terminal 1 serves as to send terminal, and the solid line among Fig. 2 has represented to realize the sendaisle of the code stream of communication function, the receive path of then representing code stream of dotted line.Wherein, if code stream is divided according to function, then comprised and realized required control stream and the data code flow of communication function.
Accordingly, the sending method of code stream when a kind of conference communications is provided, described code stream is divided into common code stream and redundant code stream, and described common code stream includes the partial data that need transmit; At least comprise:
Set up at least two required channels of transmission with receiving terminal, and determine a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel;
The communication information of collecting described at least two channels and carrying out route at least by described two channels;
According to described communication information, specify described main channel to transmit part or all of described common code stream at least; Specify the described redundant code stream of any Channel Transmission in described at least two channels.
Use above technology, the an amount of transmission bandwidth that increases promptly can reach anti-preferably network harm effect at very abominable transmission environment, also can realize simultaneously the backup of transmission line break-make, feasible one side can realize that a certain transmission line does not influence call business when disconnecting, in the time of can realizing also that on the other hand all circuit transmission qualities are not good, reduce the influence of network harm significantly to call business.
Described common code stream is to set up the business code flow on the basis of transmitting between the both sides that call out, and also can comprise the code stream of other types, for example controls the code stream of class;
With sending method accordingly, the method for reseptance of code stream when the embodiment of the invention also provides a kind of conference communications is applied to receiving terminal and receives from the code stream that sends terminal, described code stream is divided into common code stream and redundant code stream, comprises at least:
Set up at least two required channels of transmission with described transmission terminal, and determine a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel;
The communication information of collecting described at least two channels and carrying out route at least by described two channels;
According to described communication information, receive described common code stream and described redundant code stream at each described channel;
With described common code stream is reference data, to the recovery of decoding of described code stream, eliminates the interference of transmission course.
Use above technology, the an amount of transmission bandwidth that increases promptly can reach anti-preferably network harm effect at very abominable transmission environment, also can realize simultaneously the backup of transmission line break-make, feasible one side can realize that a certain transmission line does not influence call business when disconnecting, in the time of can realizing also that on the other hand all circuit transmission qualities are not good, reduce the influence of network harm significantly to call business.
When sending between terminal and the receiving terminal by cooperating, when the sending method that provides with the foregoing description and the reciprocal process of a transmission code stream of method of reseptance realization, as shown in Figure 3, specifically comprise:
Step 301. is in calling out mounting phase, and a calling terminal has been initiated calling, is without loss of generality, and is made a call by calling terminal 1.
Calling terminal 1 is initiated a plurality of callings at different channels simultaneously, for the concrete ins and outs how to make a call, can directly continue to use standard H.323, H.320 or each agreement such as SIP, also can use self-defining off-gauge hello protocol.
Step 302. is set up the calling of channel 0, sets up the calling of channel 1, sets up the calling of channel 2, until the calling of setting up channel n; Wherein the concrete numerical value of n can be specified in advance, also can be increased or delete the concrete numerical value of n voluntarily according to predetermined rule by program in calling procedure.
So far, calling out mounting phase finishes.
Step 303. is determined main channel in a plurality of channels of setting up from step 302 in call establishment stage, be without loss of generality, with channel 0 as main channel; Then other channel correspondences is from channel.
The foundation of main channel can be manually to specify before making a call or consulted automatically by calling terminal when making a call, if consulted automatically by calling terminal 1 and calling terminal 2 as calling terminal, then finishes this negotiation in current step.
Step 304. judges whether to enable multichannel redundancy backup call function; If change step 305, otherwise change step 306.
The foundation that the result of the capability negotiation that is carried out in the time of can be with call setup is used as judging; Calling terminal can learn whether the other side supports described multichannel redundancy backup call function, if support then handle according to subsequent step 305, otherwise can only change step 306.
Step 305. is collected each channel and is carried out the related communication information of route, prepares for the workload that reduces the network recovery processing, changes step 307 afterwards.
The communication information that needs to collect mainly comprises: finish foundation and call out the route-type of the communication bandwidth of all total number of channels orders of communication, each channel, each channel, be the main channel of the independent numbering of these channel settings, appointment, the communications parameter of each channel.Wherein, as shown in Figure 4, code stream part 401, code stream part 402, code stream part 403, code stream part 404 and code stream part 405 be in different all being backed up from channel, and described code stream part 404 and code stream part 405 are backed up from channel at one.
Wherein, described route-type can comprise the transmission line type; Described communications parameter can comprise that video channel bandwidth and code stream partly identify, voice-grade channel bandwidth and code stream partly identifies, other bandwidth chahnels and code stream partly identify etc.
Table 1 is respectively called out corresponding parameters information
Call out sequence number |
Channel information |
Route-type |
Bandwidth |
The communications parameter of each channel |
Call out 1 |
From channel 1 |
E1? |
2Mbps? |
Video: part 1 code stream, bandwidth 2Mbps |
Call out 2 |
Main channel |
The IP private network |
4Mbps? |
Video: 4M-128kbps, audio frequency: 64kbps, other: 64kbps |
Call out 3 |
From channel 2 |
ISDN? |
128kbps? |
Audio frequency: the 4th partial code streams, bandwidth 64kbps; Other: the 5th partial code streams, bandwidth 64kbps |
Call out 4 |
From channel 3 |
The IP public network |
1280kbps? |
Video: part 2 code stream, bandwidth 1280kbps |
Call out 5 |
From channel 4 |
The IP public network |
512kbps? |
Video: the 3rd partial code streams, bandwidth 512kbps |
Step 306. is carried out ordinary call and is handled.Normally use the method for prior art and call out, for the call technology of the application prior art of not mentioned, can directly continue to use standard H.323, H.320 or agreement such as SIP, also can use off-gauge hello protocol.So far, call establishment stage finishes.
Step 307. is this stage in calling is carried out, each channel transceiver code stream, and to receiving or transmitted stream carries out normalized.
Normalized mainly contains two kinds of methods:
A, as shown in Figure 5, the common code stream and the redundant code stream of all transmission lines transmission transmit according to grouping/subpackage mode, and common code stream is transmitted in main channel, and redundant code stream is then from Channel Transmission; Concrete packing form can also can be realized with similar custom protocol referring to the RTP (RTP, Real-time Transport Protocol) of international standard.
B, as shown in Figure 6, the common code stream and the redundant code stream of all transmission lines transmission transmit according to circuit/frame mode, and common code stream is transmitted in main channel, and redundant code stream is then from Channel Transmission; Concrete framing format can also can be realized with similar custom protocol referring to the H.320 agreement of international standard.
The communication information that step 308. is collected according to step 305 searches out and according to predetermined transmission redundant code Flow Policy, specifies different channels to send the preparation of different code streams respectively;
Usually, main channel sends common code stream, sends redundant code stream from channel.
Step 309. as shown in Figure 7, priority regardless of time is transmitted common code stream at least in main channel, and sends redundant code stream at channel 1, sends redundant code stream at channel 2, sends redundant code stream at channel n.
Because according to described communication information, can specify described main channel to transmit part or all of described common code stream at least, specify the described redundant code stream of any Channel Transmission in described at least two channels, so the embodiment of the invention also provides following technical scheme:
Sending terminal, further comprising:
Described main channel is also transmitted part or all of described redundant code stream; Which kind of that is,, limit with regard to not transmitting code stream to main channel as long as the status transmission of main channel allows;
When specifying described main channel to transmit described common code stream a part of at least, the described remainder that also transmits described common code stream from channel.
During calling is carried out, support main channel to switch message, calling terminal can switch the main channel of use in real time.That is, determine that any time after the main channel also comprises: when described main channel occurs when unusual, with described transmission terminal consult to select one from channel as a new main channel.
During calling is carried out, support the receiving terminal configuration to receive buffering area, make receiving terminal to reconfigure the reception buffering area according to network condition or code stream transmission situation.For example, adjust described reception buffering area according to the time-delay and the delay jitter of code stream transmission.
Step 310. receiving terminal receives all code streams, carries out the comparison between the code stream, decodes.
Receiving terminal is received the different code streams that the other side's different channels is come, and reverts to one road code stream according to distribution of front code stream and predetermined " code stream recovers rule ", outputs to the inside such as the processing module of looking audio frequency then respectively and decodes.
Wherein, the described transmission redundant code Flow Policy in the step 308 directly influences the anti-network harm ability of whole calling:
The situation of transmission code stream as shown in Figure 7 between two calling terminals, is looked code stream such as audio frequency and has been walked 5 different transmission lines and carry out route, therefore can define 1 main channel and 4 from channel; Because the some or all of code stream of main channel transmission is by redundancy backup, so having under the network harm situation, by the code stream of redundancy backup good anti-network anomalous performance is arranged all, wherein, the unusual consequence of described network mainly is presented as loss of transmitted data or transmission error in data.Wherein, code stream part 701, code stream part 702, code stream part 703 and code stream part 704 are all in different being backed up from channel.
According to probabilistic statistical method, be without loss of generality, suppose to be respectively a%, b%, c%, d% from channel 1 to packet loss from channel 4, the main channel packet loss is z%, code stream part 1 accounts for A%, B%, C%, the D% of whole main channel code stream respectively to code stream part 4, calling terminal 1 is toward calling terminal 2 transmitted streams so, and packet loss H is after recovering:
H=[(1-A%-B%-C%-D%)+(a%×A%)+(b%×B%+c%×C%)+(d%×D%)]×z%;
Find out from result of calculation, if a%, b%, c%, d%, z% are sufficiently little, for example all be 1/100, so code stream by the packet loss of redundancy section substantially less than 1/10000, approximating for user's result of use does not have packet loss, so result of calculation:
H≈(1-A%-B%-C%-D%)*z%
If 1-A%-B%-C%-D%=0, the packet loss of so whole calling drop to 1/10000 from 1/100, greatly improve user's experience.
Described code stream in the step 309 recovers rule, then being the root that receives code stream totally receives buffering area according to the circuit buffer configuration of each master/slave channel, and the code stream after reception in each master/slave channel and the rearrangement, its part of occuring simultaneously all extracts, as the input of looking decoders such as audio frequency.For example the buffer circle of main channel buffering area is 100ms, is 120ms from the buffer circle of channel 1 buffering area, is 150ms from the buffer circle of channel 2 buffering areas, and then the buffer circle of the reception buffering area of whole calling is configured to 150ms.
If the damage packet loss/error rate of in fact general two routes is no more than 3%, directly use 2 routes and 2 circuit available bandwidth unanimities, article 1, do 1 of main channel and do from passage, can to reach packet loss or the error rate be 1/1000 effect to practical application effect so.And for example the damage packet loss/error rate of 3 routes of fruit is no more than 10%, directly use 3 routes and 3 circuit available bandwidth unanimities, article 1, doing 2 of main channels does from passage, can to reach packet loss or the error rate also be 1/1000 effect to practical application effect so, as long as increase cost of access a little again, promptly can reach anti-preferably network harm effect at very abominable transmission environment.
As shown in Figure 8, to receive and dispatch 10 packets in the buffer circle, if main channel is lost bag 3 and bag 8, lose bag 1 from channel 1, lose bag 10 from channel 2, but in a whole complete buffer circle, receive buffering area and all can receive 10 bags, receiving terminal can and be decoded the complete recovery of 10 bags of receiving, the effect of decoding back output is in full accord with the effect of the no network harm of only carrying out a route.
By the above embodiment of the invention as can be seen, two kinds of calling terminal existence or above transmission line carry out route with transmitting user data, set up the end-to-end communication that to set up part or all routes when calling out simultaneously, and calling terminal can compare the other side's who receives data and recover.
Because call out the route difference of being carried out, so can be simultaneously not influenced under the most of situation of whole code streams of transmission, especially for the code stream that needs real-time Transmission,, can promote user experience greatly by the anti-network harm technology that the embodiment of the invention provided; Realize the multi-line redundancy backup, can realize on the one hand not influencing business when a certain transmission line disconnects, in the time of can realizing also that on the other hand the transmission quality of all transmission lines is not good, reduce the influence of network harm significantly call business.
The embodiment of the invention is not limited only to provide the technical scheme of main channel transmission common code stream, and provides the main channel also can the transmitting redundancy code stream, also can transmit the technical scheme of common code stream from Channel Transmission.
As shown in Figure 9, as the backup transmission, code stream part 905 is not carried out redundancy backup and only from channel on main channel for 901 of code stream parts; In the other parts, code stream part 902, code stream part 903 and 904 master/slave channels of code stream part all transmit, and with main channel transmitted as redundancy backup.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer/server read/write memory medium, this program is when carrying out, comprise step as above-mentioned method embodiment, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Corresponding with the method that above embodiment provides, the present invention also provides a kind of transmission terminal of conference communications code stream, as shown in figure 10, comprising:
First channel is set up modules A 01, is used for setting up at least two required channels of transmission one code stream with the receiving terminal of conference communications, determines a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel; Described code stream is divided into common code stream and redundant code stream, and described common code stream includes the partial data that need transmit;
The first communication information collection module A02 is used for after setting up channel, the communication information of collecting described at least two channels and carrying out route at least by described two channels;
Code stream distribution designated module A03 is used for according to described communication information, specifies described main channel to transmit part or all of described common code stream at least; Specify the described redundant code stream of any Channel Transmission in described at least two channels;
Code stream sending module A04 is used for the appointment according to described code stream distribution designated module A03, sends the different piece of described code stream at each channel.
Use above technology, the an amount of transmission bandwidth that increases promptly can reach anti-preferably network harm effect at very abominable transmission environment, also can realize simultaneously the backup of transmission line break-make, feasible one side can realize that a certain transmission line does not influence call business when disconnecting, in the time of can realizing also that on the other hand all circuit transmission qualities are not good, reduce the influence of network harm significantly to call business.
Sending terminal also comprises: the channel handover module, be used for occurring when unusual when described main channel, and consult between the described receiving terminal selection one from channel as main channel.
The capability negotiation module, be used for after determining a described main channel, carry out capability negotiation with described receiving terminal, do not support to use the multichannel redundancy backup transfer function of described at least two channels if judge described receiving terminal, then do not enable described multichannel redundancy backup transfer function, and transmit according to the flow process of normal transmission.
The embodiment of the invention provides a kind of receiving terminal of conference communications code stream, as shown in figure 11, comprising:
Second channel is set up module B01, is used for setting up at least two required channels of transmission code stream with the transmission terminal of conference communications, determines a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel;
The second communication information collection module B02 is used for after setting up channel, the communication information of collecting described at least two channels and carrying out route at least by described two channels;
Code stream receiver module B03 is used for according to described communication information, receives described common code stream and described redundant code stream at each described channel;
Code stream recovers module B04, and being used for described common code stream is reference data, to recoverys of decoding of described code stream, the interference of elimination transmission course.
Using above technology, in common code stream that receives and redundant code stream, is reference data with described common code stream, to the recovery of decoding of described code stream, eliminates the interference of transmission course.
The system of transmission code stream when the embodiment of the invention provides a kind of conference communications comprises that one sends a terminal and a receiving terminal; Wherein, described transmission terminal comprises:
First channel is set up modules A 01, is used for setting up at least two required channels of transmission one code stream with the receiving terminal of conference communications, determines a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel; Described code stream is divided into common code stream and redundant code stream, and described common code stream includes the partial data that need transmit;
The first communication information collection module A02 is used for after setting up channel, the communication information of collecting described at least two channels and carrying out route at least by described two channels;
Code stream distribution designated module A03 is used for according to described communication information, specifies described main channel to transmit part or all of described common code stream at least; Specify the described redundant code stream of any Channel Transmission in described at least two channels;
Code stream sending module A04 is used for the appointment according to described code stream distribution designated module A03, sends the different piece of described code stream at each channel;
Described receiving terminal comprises:
Second channel is set up module B01, is used for setting up at least two required channels of transmission code stream with the transmission terminal of conference communications, determines a main channel; And described at least two channels are respectively that a described main channel and at least one are from channel;
The second communication information collection module B02 is used for after setting up channel, the communication information of collecting described at least two channels and carrying out route at least by described two channels;
Code stream receiver module B03 is used for according to described communication information, receives described common code stream and described redundant code stream at each described channel;
Code stream recovers module B04, and being used for described common code stream is reference data, to recoverys of decoding of described code stream, the interference of elimination transmission course.
Embodiments of the invention have following beneficial effect, need not do redundancy backup on the transmission line of special use, do not limit the circuit types of redundancy backup, do not limit the route of redundancy backup, and are therefore with low cost and implementation is flexible; And increase transmission bandwidth in right amount and promptly can reach anti-preferably network harm effect at very abominable transmission environment.Also can realize simultaneously the backup of transmission line break-make, can when a transmission lines disconnects, rely on other one to recover normal rapidly, therefore can be applied to the percent of call lost is required very strict scene; Feasible one side can realize not influencing call business when a certain transmission line disconnects, and in the time of can realizing also that on the other hand all circuit transmission qualities are not good, reduces the influence of network harm to call business significantly.
Should be noted that above embodiment is only unrestricted in order to technical scheme of the present invention to be described, all parameter values can be according to the actual conditions adjustment, and in this rights protection scope.Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spiritual scope of technical solution of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.