CN101540655B - Method and system for dynamically packing speech frames - Google Patents

Method and system for dynamically packing speech frames Download PDF

Info

Publication number
CN101540655B
CN101540655B CN 200910106772 CN200910106772A CN101540655B CN 101540655 B CN101540655 B CN 101540655B CN 200910106772 CN200910106772 CN 200910106772 CN 200910106772 A CN200910106772 A CN 200910106772A CN 101540655 B CN101540655 B CN 101540655B
Authority
CN
China
Prior art keywords
packing
frame number
packet loss
frames
delay time
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.)
Active
Application number
CN 200910106772
Other languages
Chinese (zh)
Other versions
CN101540655A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200910106772 priority Critical patent/CN101540655B/en
Publication of CN101540655A publication Critical patent/CN101540655A/en
Application granted granted Critical
Publication of CN101540655B publication Critical patent/CN101540655B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method and a system for dynamically packing speech frames; the method comprises the following steps: both sides transmitting speech frames packet the speech frames in terms of single frame when no blockage occurs in the transmission network, and dynamically adjust the number of packing frames with set step-length, and packet the speech frames with the adjusted number when the blockage occurs in the transmission network; and the system comprises a base station controller and a mobile exchange center. The invention adopts single-frame packing when no blockage occurs in the network, thus guaranteeing no time delay of speech; and the invention adopts multi-frame packing when the blockage occurs, and then adopts single-frame packing again after the blockage is relieved, thus overcoming the inherent defects of single single-frame packing or multi-frame packing, and being capable of maximally optimizing the speech effect on the transmission network.

Description

A kind of method and system of dynamically packing speech frames
Technical field
The present invention relates to the communications field, in particular, is a kind of method and system of the AP mouth dynamically packing speech frames in the CDMA2000 system.
Background technology
The AP mouth is (the Base Station System of BSS in the CDMA2000 system, base station controller) and MSC (Mobile Switching Center, mobile switching centre) interface between, based on the IP technology, can realize that single frames and multiframe packaging technique transmit speech frame, the single frames packaging technique is exactly that an IP (Internet Protocol, Internet protocol) bag only has a frame speech data, the benefit of this technology is that time delay is little, and voice quality is high; Shortcoming is that each frame all will attach a large IP frame head, because TCP/IP is (Transmission Control Protocol/Internet Protocol, transmission control protocol/internet protocol) head at least 40 bytes of protocol stack, and the voice payload data also do not have head many, bandwidth usage is very low like this, when telephone traffic is higher, will cause packet loss, shake larger to voice quality impacts.The multiframe packing is exactly that an IP is surrounded by a plurality of speech frames, the pluses and minuses of multiframe packaging technique and single frames packaging technique are just in time opposite, higher bandwidth availability ratio is arranged, can guarantee speek voice quality when telephone traffic is high, shortcoming has been brought voice delay time exactly, will lose several frames if lose a bag simultaneously, this will have a strong impact on sound effect, bring larger risk.
Prior art does not effectively combine single frames packaging technique and multiframe packaging technique.
Summary of the invention
The technical problem that will solve of the present invention is, a kind of method and system of dynamically packing speech frames are provided, and the present invention has overcome independent single frames packing or the intrinsic defective of multiframe packing, can be on IP network the largest optimization sound effect.
The invention discloses a kind of method of dynamically packing speech frames, described method is: the both sides of transmission voice frames at transmission network when congested, with the single frames packing speech frames, after described transmission network appearance is congested, dynamically adjust packing frame number to set step-length, and with the number packing speech frames after adjusting.
Described method also comprises:
Exhale the stage rising, the both sides of described transmission voice frames notify the other side with the maximum packing frame number of self supporting.
Described both sides judge also whether described transmission network is congested in the speech frame of transmission packing.
Described both sides judge by the following method whether described transmission network is congested:
Steps A: obtain packet loss, delay time and shake time in current RTCP Real-time Transport Control Protocol (Real-time Transport Control Protocol, the RTCP) message;
Step B: the size of the packet loss that relatively gets access to respectively, delay time, shake time and the packet loss of presetting, delay time, the threshold value of shake time, if the described packet loss that gets access to, delay time, in the shake time any one index greater than corresponding threshold value, then described transport network congestion produces alarm information; Otherwise described transmission network is without congested.
Carry the packet loss, delay time and the shake time that get access in the described alarm information.
Described both sides adjust packing frame number by the following method:
Step a: increase packing frame number with described setting step-length;
Step b: packet loss, delay time, the threshold value of shake time all are set to 0;
Step c: the number of the alarm information that accumulative total produces, and judge the alarm information number whether described number equals to preset, if, execution in step d then; Otherwise, continue execution in step c;
Steps d: extract packet loss in each alarm information, delay time, at least one index in the shake time, calculate the mean value of the index that gets access to, and respectively more described mean value and the max-thresholds of default corresponding index, the size of minimum threshold; If described mean value is greater than described max-thresholds, execution in step e then; If described mean value is all more than or equal to described minimum threshold and less than or equal to described max-thresholds, then current packing frame number is constant, execution in step g; If described mean value is less than described minimum threshold, execution in step f then;
Step e: judge the maximum packing frame number whether current packing frame number is supported less than the other side, if then increase current packing frame number, execution in step g with described setting step-length; Otherwise current packing frame number is constant, execution in step g;
Step f: judge whether the congested of described transmission network removes, if then recover described packet loss, delay time, the predetermined threshold value of shake time, with the single frames packing speech frames; Otherwise, reduce current packing frame number, execution in step g with described setting step-length;
Step g: the number of the alarm information of zero clearing accumulative total changes step c over to.
The present invention also further discloses a kind of system of dynamically packing speech frames, comprises base station controller BSS and moving exchanging center MSC, and is described
BSS is used for the maximum packing frame number of self supporting is informed described MSC; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for by at transmission network when congested, with the single frames packing speech frames, described transmission network occur congested after, dynamically adjust packing frame number to set step-length;
MSC is used for the maximum packing frame number of self supporting is informed described BSS; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for by at transmission network when congested, with the single frames packing speech frames, described transmission network occur congested after, dynamically adjust packing frame number to set step-length;
Include RTP (Real-time Transport Protocol, RTP) stack module and selection/Dispatching Unit (Selection/Distribution Unit, SDU) among described BSS and the MSC; Described
RTP stack module is for packet loss, delay time, the shake time of obtaining the RTCP message; Be used for judging with corresponding predetermined threshold value whether transmission network is congested by the index that relatively gets access to; Be used for producing alarm information and sending to described SDU during greater than corresponding predetermined threshold value in the index that gets access to;
SDU is for the number of the alarm information that adds up to receive; For the number of the alarm information that more totally receives and the size of default number; When equaling described default number, the number that is used for the alarm information that receives in described accumulative total calculates packet loss, the delay time of all alarm informations, the mean value of shake time at least one index; The size that is used for the maximum packing frame number of more current packing frame number and opposite end support; Be used for adjusting packing frame number by more described mean value and the minimum and maximum threshold value of the corresponding index of presetting; Be used for when the alarm information number of accumulative total equals default number the alarm information number of zero clearing accumulative total.
The present invention does not have not time-delay of employing single frames packing assurance voice in the congested situation at transmission network, adopts multiframe to pack when appearance is congested, returns the single frames packing behind the relieve congestion, has effectively optimized the sound effect of IP network.
Description of drawings
Fig. 1 is the structured flowchart of system of the present invention;
Fig. 2 is the method for the invention embodiment flow chart.
Embodiment
Describe the present invention below in conjunction with accompanying drawing and preferred embodiment.
As shown in Figure 1, be the as a result block diagram of system of the present invention, comprise BSS and MSC, wherein
BSS is used for the maximum packing frame number of self supporting is informed described MSC; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for adjusting packing frame number;
MSC is used for the maximum packing frame number of self supporting is informed described BSS; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for adjusting packing frame number;
Include RTP stack module and SDU among BSS and the MSC; Wherein, RTP stack module be used for obtaining the RTCP message packet loss, delay time, at least one index in the shake time; Be used for judging with corresponding predetermined threshold value whether transmission network is congested by the index that relatively gets access to; Be used for producing alarm information and sending to SDU during greater than corresponding predetermined threshold value in the index that gets access to; SDU is for the number of the alarm information that adds up to receive; For the number of the alarm information that more totally receives and the size of default number; When equaling described default number, the number that is used for the alarm information that receives in described accumulative total calculates packet loss, the delay time of all alarm informations, the mean value of shake time at least one index; The size that is used for the maximum packing frame number of more current packing frame number and opposite end support; Be used for adjusting packing frame number by more described mean value and the minimum and maximum threshold value of the corresponding index of presetting; Be used for when the alarm information number of accumulative total equals default number the alarm information number of zero clearing accumulative total.
As shown in Figure 2, be the flow chart of the method for the invention; Take BSS as example, suppose that the maximum packing frame number that MSC supports is M; Default packet loss threshold value is that Ya, default delay time threshold value are that Yb, default shake time gate limit value are Yc; Step-length L; Packing frame number is i; Default alarm information number is J; In the present embodiment packet loss, delay time, shake time three indexs of carrying in the alarm information are all judged, and default packet loss max-thresholds is that Damax, default packet loss minimum threshold are Damin; Default delay time max-thresholds is that Dbmax, default delay time minimum threshold are Dbmin; Default shake time max-thresholds is that Dcmax, default shake minimal time threshold value are Dcmin; Specifically comprise the steps:
Step 201:BSS receives the maximum packing frame number M that MSC supports after notifying MSC with the maximum packing frame number of self supporting;
BSS sends to assign and finishes message to MSC, initiates to set up transmission link, and described appointment is finished and carried the maximum packing frame number that BSS supports in the message;
MSC receives after message is finished in appointment and sends the bear format request message to BSS, carries the maximum packing frame number that MSC supports in the described bear format request;
Like this, exhale the stage rising, BSS and MSC have just known the maximum packing frame number of supporting the opposite end, begin transmission after, both sides can not surpass the maximum packing frame number that the other side supports when packing.
The SDU of step 202:BSS is with the i=1 packing speech frames;
The RTP stack module of step 203:BSS is obtained packet loss β, delay time ty and the shake time td in the current RTCP message;
Step 204: whether compare with Ya, Yb, Yc respectively, judging has in the value of β, ty, td greater than the value of threshold value separately, if then execution in step 205; Otherwise, execution in step 203;
Step 205: produce alarm information, report SDU;
Step 206:SDU adds L to packing frame number after receiving alarm, even i=i+L;
Step 207:SDU is with the i=i+L packing speech frames;
Step 208: the packet loss threshold value is set to 0, the delay time threshold value is set to 0, shake time gate limit value is set to 0;
The number j of the alarm information that step 209:SDU accumulative total receives;
Step 210: and relatively whether j equals J, if then execution in step 211; Otherwise, execution in step 209;
Step 211: extract β, ty, td in each alarm information,
Step 212: calculate β, ty, td mean value β ^, ty^, td^;
Step 213: with corresponding Damax, Damix, Dbmax, Dbmix, Dcmax, Dcmix relatively, if β ^, the value greater than corresponding max-thresholds is arranged among ty^, the td^, then execution in step 214; If β is ^, the value less than the corresponding index minimum threshold is arranged among ty^, the td^, then execution in step 215; If β is ^, ty^, all more than or equal to the minimum threshold of corresponding index and less than or equal to corresponding max-thresholds, then execution in step 219 for td^ three;
Step 214: whether judge i less than M, if then execution in step 218; Otherwise, execution in step 219;
Step 215: judge whether the congested of described transmission network removes, if then execution in step 216; Otherwise; Execution in step 217;
Step 216: the packet loss threshold value is set to that Ya, delay time threshold value are set to Yb, shake time gate limit value is set to Yc, execution in step 202;
Step 217:i=i-L, execution in step 220;
Step 218:i=i+L, execution in step 220;
Step 219:i=i, execution in step 220;
Step 220: make j=0, namely to the zero clearing of j value, change step 209 over to.
In embodiment, can also be only by judging that packet loss, delay time, in the shake time one or any two indexs change to adjust packing frame number, with easier concerning three indexs are all judged, no longer illustrate relatively here.
The above is preferred embodiment of the present invention only, is not for restriction protection scope of the present invention.Should be understood that; concerning the those of ordinary skill in field, the technology of the present invention place; can be equal to accordingly according to technical scheme of the present invention and design thereof and change or replace, and all these changes or replacement, all should belong to the protection range of claims of the present invention.

Claims (8)

1. the method for a dynamically packing speech frames is characterized in that, described method is:
Base station controller BSS and moving exchanging center MSC are notified the other side as the both sides of transmission voice frames with the maximum packing frame number of self supporting;
Self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length are set before transmission voice frames;
When transmission voice frames, obtain packet loss, delay time, shake time in the RTCP message;
Judge whether transmission network is congested;
At transmission network when congested, with the single frames packing speech frames, described transmission network occur congested after, dynamically adjust packing frame number to set step-length, and with the number packing speech frames after adjusting.
2. the method for dynamically packing speech frames as claimed in claim 1 is characterized in that, described method also comprises:
Exhale the stage rising, the both sides of described transmission voice frames notify the other side with the maximum packing frame number of self supporting.
3. the method for dynamically packing speech frames as claimed in claim 1 is characterized in that, described both sides judge also whether described transmission network is congested in the speech frame of transmission packing.
4. the method for dynamically packing speech frames as claimed in claim 3 is characterized in that, described both sides judge by the following method whether described transmission network is congested:
Steps A: obtain packet loss, delay time and shake time in the current RTCP Real-time Transport Control Protocol RTCP message;
Step B: the size of the packet loss that relatively gets access to respectively, delay time, shake time and the packet loss of presetting, delay time, the threshold value of shake time, if the described packet loss that gets access to, delay time, in the shake time any one index greater than corresponding threshold value, then described transport network congestion produces alarm information; Otherwise described transmission network is without congested.
5. the method for dynamically packing speech frames as claimed in claim 4 is characterized in that, carries the packet loss, delay time and the shake time that get access in the described alarm information.
6. such as the method for claim 1 or 4 described dynamically packing speech frames, it is characterized in that described both sides adjust packing frame number by the following method:
Step a: increase packing frame number with described setting step-length;
Step b: packet loss, delay time, the threshold value of shake time all are set to 0;
Step c: the number of the alarm information that accumulative total produces, and judge the alarm information number whether described number equals to preset, if, execution in step d then; Otherwise, continue execution in step c;
Steps d: extract packet loss in each alarm information, delay time, at least one index in the shake time, calculate the mean value of the index that gets access to, and respectively more described mean value and the max-thresholds of default corresponding index, the size of minimum threshold; If described mean value is greater than described max-thresholds, execution in step e then; If described mean value is all more than or equal to described minimum threshold and less than or equal to described max-thresholds, then current packing frame number is constant, execution in step g; If described mean value is less than described minimum threshold, execution in step f then;
Step e: judge the maximum packing frame number whether current packing frame number is supported less than the other side, if then increase current packing frame number, execution in step g with described setting step-length; Otherwise current packing frame number is constant, execution in step g;
Step f; Judge whether the congested of described transmission network removes, if then recover described packet loss, delay time, the predetermined threshold value of shake time, with the single frames packing speech frames; Otherwise, reduce current packing frame number, execution in step g with described setting step-length;
Step g: the number of the alarm information of zero clearing accumulative total changes step c over to.
7. the system of a dynamically packing speech frames comprises base station controller BSS and moving exchanging center MSC, it is characterized in that, and is described
BSS is used for the maximum packing frame number of self supporting is informed described MSC; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for by at transmission network when congested, with the single frames packing speech frames, described transmission network occur congested after, dynamically adjust packing frame number to set step-length;
MSC is used for the maximum packing frame number of self supporting is informed described BSS; Be used for before transmission voice frames, arranging self packet loss, delay time, the threshold value of shake time and minimum and maximum threshold value, step-length; For packet loss, delay time, the shake time of when transmission voice frames, obtaining the RTCP message; Be used for judging whether transmission network is congested; Be used for by at transmission network when congested, with the single frames packing speech frames, described transmission network occur congested after, dynamically adjust packing frame number to set step-length.
8. the system of dynamically packing speech frames as claimed in claim 7 is characterized in that, includes realtime transmission protocol RTP stack module and selection/Dispatching Unit SDU among described BSS and the MSC; Described
RTP stack module is for packet loss, delay time, the shake time of obtaining the RTCP message; Be used for judging with corresponding predetermined threshold value whether transmission network is congested by the index that relatively gets access to; Be used for producing alarm information and sending to described SDU during greater than corresponding predetermined threshold value in the index that gets access to;
SDU is for the number of the alarm information that adds up to receive; For the number of the alarm information that more totally receives and the size of default number; When equaling described default number, the number that is used for the alarm information that receives in described accumulative total calculates packet loss, the delay time of all alarm informations, the mean value of shake time at least one index; The size that is used for the maximum packing frame number of more current packing frame number and opposite end support; Be used for adjusting packing frame number by more described mean value and the minimum and maximum threshold value of the corresponding index of presetting; Be used for when the alarm information number of accumulative total equals default number the alarm information number of zero clearing accumulative total.
CN 200910106772 2009-04-20 2009-04-20 Method and system for dynamically packing speech frames Active CN101540655B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910106772 CN101540655B (en) 2009-04-20 2009-04-20 Method and system for dynamically packing speech frames

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910106772 CN101540655B (en) 2009-04-20 2009-04-20 Method and system for dynamically packing speech frames

Publications (2)

Publication Number Publication Date
CN101540655A CN101540655A (en) 2009-09-23
CN101540655B true CN101540655B (en) 2013-02-27

Family

ID=41123661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910106772 Active CN101540655B (en) 2009-04-20 2009-04-20 Method and system for dynamically packing speech frames

Country Status (1)

Country Link
CN (1) CN101540655B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601941A (en) * 2003-09-28 2005-03-30 华为技术有限公司 Combined selection method of transmission format
CN1747465A (en) * 2004-09-09 2006-03-15 华为技术有限公司 Realization of speech service
CN101257419A (en) * 2007-02-27 2008-09-03 中国移动通信集团公司 Wireless VOIP voice frame combining method as well as radio device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601941A (en) * 2003-09-28 2005-03-30 华为技术有限公司 Combined selection method of transmission format
CN1747465A (en) * 2004-09-09 2006-03-15 华为技术有限公司 Realization of speech service
CN101257419A (en) * 2007-02-27 2008-09-03 中国移动通信集团公司 Wireless VOIP voice frame combining method as well as radio device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张海军等.基于RTP/RTCP协议的拥塞控制策略研究.《计算机网络与信息安全》.2008,第4卷(第9期),2612-26113. *

Also Published As

Publication number Publication date
CN101540655A (en) 2009-09-23

Similar Documents

Publication Publication Date Title
EP1767014B1 (en) Method and apparatus for optimizing cell operation toward better speech quality in wireless packet-switching networks
EP2749069B1 (en) Methods providing packet communications including jitter buffer emulation and related network nodes
CN101304557A (en) Packet transmission control method and apparatus
EP2159976A1 (en) Relay device and relay method
WO2001045870A2 (en) System and method for transmitting comfort noise across a mobile communications network
CN102739548B (en) A kind of method of rate control of transfer of data
GB2423219A (en) A proxy device interposed between a server and a wireless client controls a characteristic of the server depending on the quality of the link to the client
CN104685959B (en) Passive radio link control entity with unified interface
EP2667597B1 (en) Video communication method and terminal
US8213444B1 (en) Adaptively adjusting jitter buffer characteristics
CN101489093B (en) Code stream transmission method, terminal and system for conference communication
US20070097957A1 (en) Method for gracefully degrading packet data voice quality in a wireless communication network
WO2012155557A1 (en) Method and system for synchronous service flow transmission in heterogeneous network
EP2180651B1 (en) A method for the synchronization of the multimedia broadcast/multicast
CN101702817B (en) Switching method and device in local voice exchange
US7933270B2 (en) Method and system for prioritizing IP traffic in a wireless network based on a type-of-service identifier
CN101540655B (en) Method and system for dynamically packing speech frames
RU2567380C2 (en) Method and apparatus for adaptive multi-rate adjustment
CN102045871B (en) Local switching communication method and system
CN1879320B (en) Frame synchronisation in a radio access network
US20040085923A1 (en) Method and apparatus for cell reselection within a communications system
JP4660540B2 (en) Mobile communication system and method for switching services between an asynchronous network and a synchronous network
EP2043372B1 (en) Method for audio and video synchronization, receiving and transmitting device
US8219107B2 (en) Method and system for improving quality of service over a fixed network
CN101577864B (en) Method and system for transmitting data, base station subsystem and mobile exchange center

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant