WO2010034252A1 - 一种时间标签跳变的检测处理方法和装置 - Google Patents

一种时间标签跳变的检测处理方法和装置 Download PDF

Info

Publication number
WO2010034252A1
WO2010034252A1 PCT/CN2009/074220 CN2009074220W WO2010034252A1 WO 2010034252 A1 WO2010034252 A1 WO 2010034252A1 CN 2009074220 W CN2009074220 W CN 2009074220W WO 2010034252 A1 WO2010034252 A1 WO 2010034252A1
Authority
WO
WIPO (PCT)
Prior art keywords
tsn
hopping
frame
hop
current
Prior art date
Application number
PCT/CN2009/074220
Other languages
English (en)
French (fr)
Inventor
严凯
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP09815621.9A priority Critical patent/EP2337392B1/en
Publication of WO2010034252A1 publication Critical patent/WO2010034252A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for detecting and processing time tag hopping. Background of the invention
  • the IP side of the BSS (Base Station Subsystem) has also become a development trend.
  • TDM Time Division Multiplex
  • IP BSS has strict timing, and the processing method of receiving voice frames is relatively simple.
  • IP BSS after IP is inevitable, temporary delay, jitter, disorder, etc. problem.
  • the IP BSS is in the RTP (Real-time Transport Protocol) voice frame transmitted by the A interface, and the TSNC Time Sequence Number (Timestamp) field, the receiving end BTS (Base Transfer and Receive Station, The base station transceiver station can eliminate jitter, out of order, etc. through the Jitter Buffer mechanism.
  • the RTP source generally calculates the TSN according to the local time, and the TSN will generate a transition, causing the receiver Jitter Buffer to be forced to adjust, affecting Voice quality.
  • the embodiment of the invention provides a method and a device for detecting a TSN hopping, and improves the voice quality of the IP BSS.
  • the embodiment of the invention provides a method for detecting and processing a TSN hopping, which includes:
  • An embodiment of the present invention provides a TSN hopping detection processing apparatus, including: a first acquiring module, configured to acquire a source end identifier of the received frame;
  • a detecting module configured to detect whether the source end identifier obtained by the first acquiring module is changed, and a determining module, configured to determine, when the detecting module detects that the source end identifier changes The TSN in the received frame is hopped.
  • the technical solution of the embodiment of the present invention has the following advantages, because the source end identifier is used as the basis for detecting the TSN hopping, and the TSN hopping in the received frame can be detected in time to prevent the TSN hopping by relying on the Jitter Buffer.
  • the frame loss increases the voice quality of the IP BSS.
  • FIG. 1 is a flowchart 1 of a method for detecting TSN hopping in an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for detecting TSN hopping in an embodiment of the present invention
  • FIG. 3 is a third flowchart of a method for detecting TSN hopping in an embodiment of the present invention.
  • FIG. 4 is a structural diagram 1 of a TSN hopping detection processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram 2 of a TSN hopping detection processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a third structural diagram of a TSN hopping detection processing apparatus according to an embodiment of the present invention. Mode for carrying out the invention
  • a flowchart of a method for detecting a TSN hopping in an embodiment of the present invention provides an embodiment of a method for detecting a TSN hopping, including the following steps:
  • Step 101 Obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, and may be, for example, a BSC or a UMG (Universal Media Gateway).
  • the source end identifier can be located in the SSRC (Synchronization) in the frame sent by the source.
  • the Source Identifier field is used as a basis for detecting a TSN hopping in the embodiment of the present invention.
  • the source end identifier may also be located in other fields, and the present invention is not limited thereto.
  • Step 102 Detect whether the acquired source end identifier changes. When it is detected that the source end identifier changes, step 103 is performed.
  • Step 103 Determine that the TSN in the received frame is hopping.
  • the TSN in the received frame does not generate a transition if the source does not change. If the SSRC in the frame changes, the RTP source switches, and the received frame is in the received frame. The TSN produces a jump.
  • the TSN in the received frame is hopping. After determining that the TSN in the received frame is hopping, optionally, the hopping difference of the accumulated TSN after the hop is obtained, and the hopping difference of the accumulated TSN after the hop is used.
  • the TSN in the received frame after the hopping is compensated. After the compensation of the TSN in the frame received after the hop is completed, the compensated TSN can be converted into a TSN smaller than 32 bits, and the converted TSN is sent to the BTS.
  • the obtaining the hopping difference value of the accumulated TSN after the current hopping may include: recording the TSN in the last frame before the current hop and the TSN in the first frame after the current hopping, according to The TSN in the last frame before the current hop and the TSN in the first frame after the current hop are calculated to obtain the current hop difference; according to the current hop difference and the The hopping difference value of the accumulated TSN before the hop is calculated to obtain the hopping difference of the accumulated TSN after the current hop.
  • the technical solution of the embodiment of the present invention has the following advantages, because the source end identifier is used as the basis for detecting the TSN hopping, and the TSN hopping in the received frame can be detected in time to prevent the TSN hopping by relying on the Jitter Buffer.
  • the frame loss increases the voice quality of the IP BSS.
  • FIG. 2 is a flow chart 2 of a method for detecting a TSN hopping in an embodiment of the present invention
  • an embodiment of a method for detecting a TSN hopping is provided, which includes the following steps:
  • Step 201 Obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, for example, may be a BSC, or may be an RTP, where the source end identifier may be located in an SSRC field in a frame sent by the source end, and the present invention
  • the embodiment uses the SSRC field as a basis for detecting TSN hopping.
  • the source end identifier can also In other fields, the invention is not limited thereto.
  • Step 202 Detect whether the obtained source end identifier changes. When it is detected that the source end identifier changes, step 204 is performed. When it is detected that the source end identifier does not change, step 203 is performed.
  • Step 203 Determine that the TSN in the received frame does not jump.
  • Step 204 Determine that the TSN in the received frame is hopping.
  • the TSN in the received frame does not generate a transition; if the SSRC in the frame changes, the RTP source switches, and the received frame is in the received frame.
  • the TSN produces a jump.
  • the hopping difference of the accumulated TSN after the hop is obtained, and the hopping difference of the accumulated TSN after the hop is used.
  • the TSN in the received frame after the second transition is compensated.
  • the specific implementation process can perform the next steps.
  • Step 205 Record the TSN in the last frame before the current hop and the TSN in the first frame after the hop, according to the TSN in the last frame before the hop and the first frame after the hop. TSN, calculate the difference in this transition.
  • TSNo is the TSN in the last frame before the hop
  • TSNi is the TSN in the first frame after the hop
  • SingleDiff is the hop difference.
  • Step 206 Calculate the hopping difference of the accumulated TSN after the current hop according to the hopping difference between the current hopping difference and the accumulated TSN before the hopping.
  • SingleDiff is the hopping difference
  • AccDiff ⁇ is the hopping difference of the accumulated TSN before the hop
  • the hopping difference of the accumulated TSN after AccDiff n is hopping.
  • the hopping difference of the accumulated TSN after this hop is the accumulation of the TSN hopping difference generated for all detected TSN hops (including this hop).
  • the current hop difference SingleDiff is calculated according to the TSN in the last frame before the hop and the TSN in the first frame after the hop.
  • the SingleDiff is added to the accumulated TSN jump difference AccDiff n after the hop, and the TSN in the frame received after the hop can be compensated according to AccDiff n .
  • AccDiff n is equal to SingleDiff.
  • Step 207 Compensate for the TSN in the frame received after the current hop according to the hopping difference of the accumulated TSN after the hop.
  • the TSN compensation formula in the frame received after this hop is as follows:
  • TSN a ' TSN a - AccDiff n
  • TSN a is the TSN before compensation
  • TSN a ' is the compensated TSN
  • AccDiff n is the hopping difference of the accumulated TSN after the hop.
  • the compensated TSN can be converted into a TSN smaller than 32 bits, and the converted TSN is transmitted to the BTS.
  • the technical solution of the embodiment of the present invention has the following advantages, because the SSRC field is used as the source end identifier, and the source end identifier is used as a basis for detecting the TSN hopping, so that the TSN hopping in the received frame can be detected in time to prevent
  • the frame loss caused by the JTS Buffer adaptive TSN hopping improves the voice quality of the IP BSS.
  • the hopped TSN can be compensated, thereby eliminating the TSN hop.
  • the effect of the change such as preventing frame loss caused by TSN hopping, improves the voice quality of IP BSS.
  • FIG. 3 is a flowchart of a method for detecting a TSN hopping in the embodiment of the present invention
  • an embodiment of a method for detecting a TSN hopping is provided, which may be applicable to the case where the downlink DTX is opened, including the following. Steps:
  • Step 301 Record the TSN in the received current frame.
  • the VAD Voice Activity Detection
  • the detection processing mechanism of the TSN hopping when the downlink DTX is turned on is different from the above embodiment, and it is required to record after each frame is received.
  • Step 302 If no frame is received in the default time interval of the next system, the TSN in the current frame is added by l o
  • Step 303 Obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, for example, may be a BSC, or may be The RTP is used as an example.
  • the source end identifier may be located in the SSRC field in the frame sent by the source.
  • the SSRC field is used as a basis for detecting the TSN hopping.
  • the source end identifier may also be located in other fields, and the present invention is not limited thereto.
  • Step 304 Detect whether the acquired source end identifier changes. When it is detected that the source end identifier changes, step 306 is performed. When it is detected that the source end identifier does not change, step 305 is performed.
  • Step 305 Determine that the TSN in the received frame does not jump.
  • Step 306 Determine that the TSN in the received frame is hopping.
  • the TSN in the received frame does not generate a transition if the source does not change. If the SSRC in the frame changes, the RTP source switches, and the received frame is in the received frame. The TSN produces a jump. When it is detected that the SSRC changes, it is determined that the TSN in the received frame is hopping; when it is detected that the SSRC has not changed, it is determined that the TSN in the received frame has not hopped. When it is detected that the TSN in the received frame is hopping, optionally, the hopping difference of the accumulated TSN after the hop is obtained, and the hopping difference of the accumulated TSN after the hop is used. The TSN in the received frame after the second transition is compensated. The specific implementation process can perform the next steps.
  • Step 307 Record the TSN in the last frame before the current hop and the TSN in the first frame after the hop, according to the TSN in the last frame before the hop and the first frame after the hop. TSN, calculate the difference in this transition.
  • TSNo is the TSN in the last frame before the hop
  • TSNi is the TSN in the first frame after the hop
  • SingleDiff is the hop difference.
  • Step 308 Calculate the hopping difference of the accumulated TSN after the current hop according to the hopping difference between the current hopping difference and the accumulated TSN before the hopping.
  • SingleDiff is the hopping difference
  • AccDiff ⁇ is the hopping difference of the accumulated TSN before the hop
  • a CC Diff n is the hopping difference of the accumulated TSN after the hop.
  • the hopping difference of the accumulated TSN after this hop is the accumulation of the TSN hopping difference generated for all detected TSN hops (including this hop). Each time the TSN in the received frame is determined to be hopping, it will be based on the TSN and the current time in the last frame before the hop.
  • TSN jump in the first frame after the change is calculated this difference SingleDiff hopping, and accumulated into SingleDiff TSN AccDiff n transition of the accumulated difference after this jump, may receive AccDiff n times after the jump according to the present The TSN in the frame is compensated. When this hop becomes the first hop, AccDiff n is equal to SingleDiff.
  • Step 309 Compensate the TSN in the frame received after the current hop according to the hopping difference of the accumulated TSN after the hop.
  • the TSN compensation formula in the frame received after this hop is as follows:
  • TSN a ' TSN a - AccDiff n
  • TSN a is the TSN before compensation
  • TSN a ' is the compensated TSN
  • AccDiff n is the hopping difference of the accumulated TSN after the hop.
  • the technical solution of the embodiment of the present invention has the following advantages, because the SSRC field is used as the source end identifier, and the source end identifier is used as a basis for detecting the TSN hopping, so that the TSN hopping in the received frame can be detected in time to prevent
  • the frame loss caused by the JTS Buffer adaptive TSN hopping improves the voice quality of the IP BSS.
  • the hopped TSN can be compensated, thereby eliminating the TSN hop.
  • the effect of the change such as preventing frame loss caused by TSN hopping, improves the voice quality of IP BSS.
  • the TSN in the current frame is incremented by 1, ensuring that the TSC outputted to the BTS is only included in the TSN.
  • Reasonable changes due to DTX opening
  • FIG. 1 is a structural diagram of a detection processing apparatus for a TSN hopping in an embodiment of the present invention, and provides an embodiment of a hopping detection processing apparatus, including:
  • the first obtaining module 410 is configured to obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, for example, may be a BSC, or may be an RTP, where the source end identifier may be located in an SSRC field in a frame sent by the source end, and the present invention
  • the embodiment uses the SSRC field as a basis for detecting TSN hopping.
  • the source end identifier may also be located in other fields, and the present invention is not limited thereto.
  • the detecting module 420 is configured to detect whether the source end identifier acquired by the first obtaining module 410 changes.
  • the determining module 430 is configured to determine that the TSN in the received frame is hopping when the detecting module 420 detects that the source end identifier changes.
  • the determining module 430 is further configured to determine that the TSN in the received frame does not hop when the detecting module 420 detects that the source identifier does not change.
  • the technical solution of the embodiment of the present invention has the following advantages.
  • the device uses the source end identifier as the detection.
  • the basis of the TSN hopping can detect the TSN hopping in the received frame in time, prevent the frame loss caused by the Jitter Buffer adaptive TSN hopping, and improve the voice quality of the IP BSS.
  • FIG. 5 is a structural diagram of a TSN hopping detection processing apparatus in an embodiment of the present invention
  • an embodiment of another hopping detection processing apparatus including:
  • the first obtaining module 510 is configured to obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, for example, may be a BSC, or may be an RTP, where the source end identifier may be located in an SSRC field in a frame sent by the source end, and the present invention
  • the embodiment uses the SSRC field as a basis for detecting TSN hopping.
  • the source end identifier may also be located in other fields, and the present invention is not limited thereto.
  • the detecting module 520 is configured to detect whether the source end identifier acquired by the first acquiring module 510 changes.
  • the determining module 530 is configured to determine that the TSN in the received frame is hopping when the detecting module 520 detects that the source end identifier changes.
  • the TSN in the received frame does not generate a transition if the source does not change. If the SSRC in the frame changes, the RTP source switches, and the received frame is in the received frame. The TSN produces a jump. When it is detected that the SSRC changes, it is determined that the TSN in the received frame is hopping, and when it is detected that the SSRC has not changed, it is determined that the TSN in the received frame has not hopped.
  • the determining module 530 is further configured to: when the detecting module 520 detects that the source end identifier has not changed, determine the receiving The TSN in the frame does not jump.
  • the foregoing apparatus may further include:
  • the second obtaining module 540 is configured to: when the determining module 530 determines that the TSN in the received frame is hopping, obtain a hopping difference value of the accumulated TSN after the hop.
  • the hopping difference of the accumulated TSN after the hop can be obtained, so as to compensate the TSN in the frame received after the hop.
  • the compensation module 550 is configured to compensate the TSN in the frame received after the current hop according to the hopping difference of the accumulated TSN after the hop.
  • the TSN compensation formula in the frame received after this hop is as follows:
  • TSN a ' TSN a - AccDiff n
  • TSN a is the TSN before compensation
  • TSN a ' is the compensated TSN
  • AccDiff n is the hopping difference of the accumulated TSN after the hop.
  • the hopping difference value AccDiff n of the accumulated TSN after the current hopping that compensates for the TSN in the frame received after the hop is generated for all TSN hops (including the current hop) before receiving the frame.
  • the entanglement of the hopping difference ⁇ Using ⁇ bend to compensate for the TSN in the frame received after this hopping, the effect of all TSN hops before receiving the frame on the TSN in the frame can be eliminated.
  • the second obtaining module 540 may specifically include:
  • the recording sub-module 541 is configured to record the TSN in the last frame before the current hop and the TSN in the first frame after the hop, according to the TSN in the last frame before the hop and the current hop The TSN in the first frame calculates the current transition difference.
  • TSNo is the TSN in the last frame before the hop
  • TSNi is the TSN in the first frame after the hop
  • SingleDiff is the hop difference.
  • the calculation sub-module 542 is configured to calculate the hopping difference of the accumulated TSN after the current hop according to the hopping difference between the hopping difference and the accumulated TSN before the hop.
  • SingleDiff is the hop difference
  • AccDiff ⁇ is the hop difference of the accumulated TSN before the hop
  • AccDiff 1 ⁇ the hop difference of the accumulated TSN after this hop.
  • the hop difference is SingleDiff
  • the SingleDiff is added to the TSN hop cumulative difference AccDiffn after the hop, and the TSN in the frame received after the hop is compensated according to the A CC Diff n .
  • AccDiff n is equal to SingleDiff.
  • the compensated TSN may also be converted into a TSN smaller than 32 bits, and the converted TSN is transmitted to the BTS.
  • the technical solution of the embodiment of the present invention has the following advantages.
  • the device uses the SSRC field as the source end identifier, and uses the source end identifier as the basis for detecting the TSN hopping, so that the TSN hop in the received frame can be detected in time.
  • FIG. 3 is a structural diagram of a TSN hopping detection processing apparatus according to an embodiment of the present invention, and provides another embodiment of a TSN hopping detection processing apparatus, which is applicable to a downlink DTX, and includes:
  • the recording module 610 is configured to record the TSN in the received current frame.
  • the VAD technology is used to stop transmitting frames when the voice signal is not transmitted, limiting the transmission of useless information, and reducing the effective time of the transmission, so that the TSN in the last frame before the hop and the first frame after the hop are changed. There is a reasonable difference between the TSNs. Therefore, the detection mechanism of the TSN transition when the downlink DTX is turned on is different from that of the above embodiment.
  • the recording module 610 records the TSN in the current frame after receiving the frame each time.
  • the accumulating module 620 is configured to add 1 to the TSN in the current frame if no frame is received in the default time interval of the next system.
  • the first obtaining module 630 is configured to obtain a source end identifier.
  • the source end in the embodiment of the present invention refers to a device capable of transmitting a frame, for example, may be a BSC, or may be an RTP, where the source end identifier may be located in an SSRC field in a frame sent by the source end, and the present invention
  • the embodiment uses the SSRC field as a basis for detecting TSN hopping.
  • the source end identifier can also In other fields, the invention is not limited thereto.
  • the detecting module 640 is configured to detect whether the source end identifier acquired by the first acquiring module 630 changes.
  • the determining module 650 is configured to determine that the TSN in the received frame is hopping when the detecting module 640 detects that the source end identifier changes.
  • the TSN in the received frame does not generate a transition if the source does not change. If the SSRC in the frame changes, the RTP source switches, and the received frame is in the received frame. The TSN produces a jump. When it is detected that the SSRC changes, it is determined that the TSN in the received frame is hopping, and when it is detected that the SSRC has not changed, it is determined that the TSN in the received frame has not hopped.
  • the determining module 650 is further configured to determine that the TSN in the received frame does not hop when the detecting module 640 detects that the source identifier does not change.
  • the foregoing apparatus may further include:
  • the second obtaining module 660 is configured to: when the determining module 650 determines that the TSN in the received frame is hopping, obtain a hopping difference value of the accumulated TSN after the hop.
  • the hopping difference of the accumulated TSN after the hop can be obtained, so as to compensate the TSN in the frame received after the hop.
  • the compensation module 670 is configured to compensate the TSN in the frame received after the current hop according to the hopping difference of the accumulated TSN after the hop.
  • the TSN compensation formula in the frame received after this hop is as follows:
  • TSN a ' TSN a - AccDiff n
  • TSN a is the TSN before compensation
  • TSN a ' is the compensated TSN
  • AccDiff n is the hopping difference of the accumulated TSN after the hop.
  • the hopping difference value AccDiff n of the accumulated TSN after the current hopping that compensates for the TSN in the frame received after the hop is generated for all TSN hops (including the current hop) before receiving the frame The gradual change of the difference.
  • AccDiffn to compensate for the TSN in the frame received after this hop can eliminate the impact of all TSN transitions before receiving the frame on the TSN in the frame.
  • the second obtaining module 660 may specifically include:
  • the recording sub-module 661 is configured to record the TSN in the last frame before the current hop and the TSN in the first frame after the hop, according to the TSN in the last frame before the hop and the current hop TSN in the first frame, calculate this hop Change the difference.
  • TSNo is the TSN in the last frame before the hop
  • TSNi is the TSN in the first frame after the hop
  • SingleDiff is the hop difference.
  • the calculation sub-module 662 is configured to calculate the hopping difference of the accumulated TSN after the current hop according to the hopping difference between the hopping difference and the accumulated TSN before the hop.
  • SingleDiff is the hop difference
  • AccDiff ⁇ is the hop difference of the accumulated TSN before the hop.
  • the transition difference of the TSN Each time the TSN in the received frame is determined to be hopping, the current hop difference SingleDiff is calculated according to the TSN in the last frame before the hop and the TSN in the first frame after the hop. SingleDiff is added to the TSN transition cumulative difference AccDiffn after this hop, and the TSN in the frame received after this hop is compensated according to A CC Diff n . When this hop becomes the first hop, AccDiff n is equal to SingleDiff.
  • the compensated TSN may also be converted into a TSN smaller than 32 bits, and the converted TSN is transmitted to the BTS.
  • the technical solution of the embodiment of the present invention has the following advantages.
  • the device uses the SSRC field as the source end identifier, and uses the source end identifier as the basis for detecting the TSN hopping, so that the TSN hop in the received frame can be detected in time. Change, prevent frame loss caused by Jitter Buffer adaptive TSN hopping, improve the voice quality of IP BSS; Optionally, when TSN hopping is detected, the hopped TSN can be compensated, so that Eliminate the impact of TSN hopping, such as preventing frame loss caused by TSN hopping, improving the voice quality of IP BSS.
  • the device records the TSN in the received current frame when the downlink DTX is turned on, and increases the TSN in the current frame by 1 when the frame is not received in the next system default time interval, and ensures that the BSC outputs the TSN to the BTS. Only the reasonable changes due to DTX opening are included.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is a better implementation. the way.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a
  • the storage medium includes instructions for causing a terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

一种时间标签跳变的检测处理方法和装置
本申请要求于 2008年 9月 28日提交中国专利局、 申请号为 200810168478.X、 发 明名称为"一种时间标签跳变的检测处理方法和装置"的中国专利申请的优先权, 其全部 内容通过弓 I用结合在本申请中。
技术领域
本发明涉及通信技术领域, 特别是涉及一种时间标签跳变的检测处理方法和装置。 发明背景
随着通信网络 IP ( Internet Protocol, 互联网协议) 化的发展, BSS ( Base Station Subsystem, 基站子系统)侧 IP化也成为一种发展趋势。 引入 IP化之前, TDM ( Time Division Multiplex, 时分复用) BSS有严格的时序, 接收语音帧的处理方式较为简单; 而引入 IP化后的 IP BSS则不可避免地面临时延、抖动、乱序等问题。为解决上述问题, IP BSS在 A接口传送的 RTP (Real-time Transport Protocol, 实时传送协议)语音帧中增 力口 TSNC Time Sequence Number,时间标签)字段,接收端 BTS (Base Transfer and Receive Station, 基站收发信台)通过 Jitter Buffer (抖动缓冲区)机制可以消除抖动、 乱序等现 象。 由于 GSM ( Global System for Mobile Communications, 全球移动通讯系统)全系统 没有基准的时间, RTP信源端一般根据本地时间计算 TSN, 而 TSN会产生跳变, 造成 接收端 Jitter Buffer被迫产生调整, 影响语音质量。
现有技术中,通过设定经验门限值,并与经验门限值的比较来检测 RTP信源端发送 的帧中的 TSN是否产生跳变, 触发接收端 Jitter Buffer调整。
发明人在实现本发明的过程中, 发现现有技术至少存在如下问题: 设定经验门限值 的检测方法的效果较差, 降低了 IP BSS语音质量。 发明内容
本发明实施例提供一种 TSN跳变的检测处理方法和装置,提高了 IP BSS的语音质 本发明实施例提出一种 TSN跳变的检测处理方法, 包括:
获取接收的帧的信源端标识;
检测所述获取到的信源端标识是否发生变化;
当检测出所述信源端标识发生变化时, 判定所述接收的帧中的 TSN发生跳变。 本发明实施例提出一种 TSN跳变的检测处理装置, 包括: 第一获取模块, 用于获取接收的帧的信源端标识;
检测模块, 用于检测所述第一获取模块获取到的所述信源端标识是否发生变化; 判定模块, 用于当所述检测模块检测出所述信源端标识发生变化时, 判定所述接收 的帧中的 TSN发生跳变。
本发明实施例的技术方案具有以下优点, 因为采用信源端标识作为检测 TSN跳变 的依据, 能够及时检测到接收的帧中的 TSN跳变, 防止因依靠 Jitter Buffer自适应 TSN 跳变而造成的丢帧, 提高了 IP BSS的语音质量。 附图简要说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例中的 TSN跳变的检测处理方法流程图一;
图 2为本发明实施例中的 TSN跳变的检测处理方法流程图二;
图 3为本发明实施例中的 TSN跳变的检测处理方法流程图三;
图 4为本发明实施例中的 TSN跳变的检测处理装置结构图一;
图 5为本发明实施例中的 TSN跳变的检测处理装置结构图二;
图 6为本发明实施例中的 TSN跳变的检测处理装置结构图三。 实施本发明的方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、完整 地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本 发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他 实施例, 都属于本发明保护的范围。
如图 1所示,为本发明实施例中的 TSN跳变的检测处理方法流程图一,提供了一 种 TSN跳变的检测处理方法实施例, 包括以下步骤: 其中,
步骤 101, 获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 UMG (Universal Media Gateway, 通用媒体网关)。
以 RTP 为例, 信源端标识可以位于信源端发送的帧中的 SSRC ( Synchronization Source Identifier, 同步源标识符)字段, 本发明实施例将该 SSRC字段作为检测 TSN跳 变的依据。 当然, 可以理解的是, 信源端标识也可以位于其它字段, 本发明并不就此做 出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。
步骤 102, 检测获取到的信源端标识是否发生变化, 当检测出信源端标识发生变化 时, 则执行步骤 103。
步骤 103, 判定接收的帧中的 TSN发生跳变。
如果帧中的 SSRC不发生变化, 则信源端没发生切换, 则接收的帧中的 TSN不产生 跳变; 如果帧中的 SSRC发生变化, 则 RTP信源端发生切换, 则接收的帧中的 TSN产生跳 变。
当检测获取到的 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变。 判定接收 的帧中的 TSN发生跳变之后, 可选的, 还可以获取本次跳变之后的累计 TSN的跳变差 值, 根据本次跳变之后的累计 TSN的跳变差值对本次跳变之后接收的帧中的 TSN进行 补偿。 完成对本次跳变之后接收的帧中的 TSN的补偿后, 可以将补偿后的 TSN转换为 小于 32比特的 TSN, 并将转换后的 TSN发送给 BTS。 所述获取本次跳变之后的累计 TSN的跳变差值, 可以包括: 记录所述本次跳变前最后一帧中的 TSN和所述本次跳变 后第一帧中的 TSN, 根据所述本次跳变前最后一帧中的 TSN和所述本次跳变后第一帧 中的 TSN计算得到所述本次跳变差值; 根据所述本次跳变差值与所述本次跳变之前的 累计 TSN的跳变差值计算得到所述本次跳变之后的累计 TSN的跳变差值。
本发明实施例的技术方案具有以下优点, 因为采用信源端标识作为检测 TSN跳变 的依据, 能够及时检测到接收的帧中的 TSN跳变, 防止因依靠 Jitter Buffer自适应 TSN 跳变而造成的丢帧, 提高了 IP BSS的语音质量。
如图 2所示,为本发明实施例中的 TSN跳变的检测处理方法流程图二,提供了另 一种 TSN跳变的检测处理方法实施例, 包括以下步骤:
步骤 201, 获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 以 RTP为例,信源端标识可以位于信源端发送的帧中的 SSRC字段,本发明实施例 将该 SSRC字段作为检测 TSN跳变的依据。 当然, 可以理解的是, 信源端标识也可以 位于其它字段, 本发明并不就此做出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。
步骤 202, 检测获取到的信源端标识是否发生变化, 当检测出信源端标识发生变化 时, 则执行步骤 204; 当检测出信源端标识未发生变化时, 则执行步骤 203。
步骤 203, 判定接收的帧中的 TSN未发生跳变。
步骤 204, 判定接收的帧中的 TSN发生跳变。
如果帧中的 SSRC不发生变化, 则信源端未发生切换, 则接收的帧中的 TSN未产 生跳变; 如果帧中的 SSRC发生变化, 则 RTP信源端发生切换, 则接收的帧中的 TSN 产生跳变。 当检测出 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变; 当检测出 SSRC未发生变化时,判定接收的帧中的 TSN未发生跳变。当检测出接收的帧中的 TSN 发生跳变时, 可选的, 可以获取本次跳变之后的累计 TSN的跳变差值, 根据本次跳变 之后的累计 TSN的跳变差值对本次跳变之后接收的帧中的 TSN进行补偿。 具体实现过 程则可执行后续步骤。
步骤 205,记录本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN,根据 本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算本次跳变差值。
本次跳变差值的计算公式如下:
SingleDiff = TSN【 - TSN0 - 1
其中, TSNo为本次跳变前最后一帧中的 TSN, TSNi为本次跳变后第一帧中的 TSN, SingleDiff为本次跳变差值。
步骤 206,根据本次跳变差值与本次跳变之前的累计 TSN的跳变差值计算得到本次 跳变之后的累计 TSN的跳变差值。
AccDiffn = AccDiffn― + SingleDiff
其中, SingleDiff为本次跳变差值, AccDiff^为本次跳变之前的累计 TSN的跳变差 值, AccDiffn 本次跳变之后的累计 TSN的跳变差值。 本次跳变之后的累计 TSN的跳 变差值, 是对所有检测到的 TSN跳变(包括本次跳变)产生的 TSN跳变差值的累计。 每次判定接收的帧中的 TSN发生跳变, 都会根据本次跳变前最后一帧中的 TSN和本次 跳变后第一帧中的 TSN, 计算本次跳变差值 SingleDiff, 并将 SingleDiff累加到本次跳 变之后的 TSN跳变累计差值 AccDiffn,可以根据 AccDiffn对本次跳变之后接收的帧中的 TSN进行补偿。 当本次跳变为第一次跳变时, 则 AccDiffn就等于 SingleDiff。 步骤 207,根据本次跳变之后的累计 TSN的跳变差值,对本次跳变之后接收的帧中 的 TSN进行补偿。
本次跳变之后接收的帧中的 TSN补偿公式如下:
TSNa' = TSNa - AccDiffn
其中, TSNa为补偿前的 TSN, TSNa '为补偿后的 TSN, AccDiffn为本次跳变之后 的累计 TSN的跳变差值。
使用八^^0„对本次跳变之后接收的帧中的 TSN进行补偿, 可以消除接收该帧之 前的所有 TSN跳变对该帧中的 TSN的影响。完成对本次跳变之后接收的帧中的 TSN的 补偿后, 可以将补偿后的 TSN转换为小于 32比特的 TSN, 并将转换后的 TSN发送给 BTS。
本发明实施例的技术方案具有以下优点, 因为采用 SSRC字段作为信源端标识, 并 将信源端标识作为检测 TSN跳变的依据,从而能够及时检测到接收的帧中的 TSN跳变, 防止因依靠 Jitter Buffer自适应 TSN跳变而造成的丢帧,提高了 IP BSS的语音质量; 可 选的, 当检测出 TSN跳变时, 可以对跳变后的 TSN进行补偿, 从而可以消除 TSN跳变 造成的影响, 如防止因 TSN跳变造成的丢帧, 提高了 IP BSS的语音质量。
如图 3所示,为本发明实施例中的 TSN跳变的检测处理方法流程图三,提供了又 一种 TSN跳变的检测处理方法实施例, 可以适用于下行 DTX打开的情况, 包括以下步 骤:
步骤 301, 记录接收的当前帧中的 TSN。
下行 DTX打开时, 采用 VAD (Voice Activity Detection, 话音激活检测)技术, 在 不传送话音信号时停止发射帧, 限制无用信息的发送, 减少了发射的有效时间, 使得跳 变前最后一帧中的 TSN和跳变后第一帧中的 TSN之间存在合理差值,因此,在下行 DTX 打开时 TSN跳变的检测处理机制与上述实施例有所不同, 需要在每次收到帧之后, 记 录当前帧中的 TSN。
步骤 302,如果下一个系统默认时间间隔内没有接收到帧,则将当前帧中的 TSN加 l o
如果下一个系统默认时间间隔内没有收到帧,是由于在不传送话音信号时停止发射 帧,因此,需要在 TSN中包含由于 DTX打开带来的合理变化,将当前帧中的 TSN加 1。
步骤 303, 获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 以 RTP为例,信源端标识可以位于信源端发送的帧中的 SSRC字段,本发明实施例 将该 SSRC字段作为检测 TSN跳变的依据。 当然, 可以理解的是, 信源端标识也可以 位于其它字段, 本发明并不就此做出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。
步骤 304, 检测获取到的信源端标识是否发生变化, 当检测出信源端标识发生变化 时, 则执行步骤 306; 当检测出信源端标识未发生变化时, 则执行步骤 305。
步骤 305, 判定接收的帧中的 TSN未发生跳变。
步骤 306, 判定接收的帧中的 TSN发生跳变。
如果帧中的 SSRC未发生变化, 则信源端未发生切换, 则接收的帧中的 TSN未产 生跳变; 如果帧中的 SSRC发生变化, 则 RTP信源端发生切换, 则接收的帧中的 TSN 产生跳变。 当检测出 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变; 当检测出 SSRC未发生变化时,判定接收的帧中的 TSN未发生跳变。当检测出接收的帧中的 TSN 发生跳变时, 可选的, 可以获取本次跳变之后的累计 TSN的跳变差值, 根据本次跳变 之后的累计 TSN的跳变差值对本次跳变之后接收的帧中的 TSN进行补偿。 具体实现过 程则可执行后续步骤。
步骤 307,记录本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN,根据 本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算本次跳变差值。
本次跳变差值的计算公式如下:
SingleDiff = TSN【 - TSN0 - 1
其中, TSNo为本次跳变前最后一帧中的 TSN, TSNi为本次跳变后第一帧中的 TSN, SingleDiff为本次跳变差值。
步骤 308,根据本次跳变差值与本次跳变之前的累计 TSN的跳变差值计算得到本次 跳变之后的累计 TSN的跳变差值。
AccDiffn = AccDiffn― + SingleDiff
其中, SingleDiff为本次跳变差值, AccDiff^为本次跳变之前的累计 TSN的跳变差 值, ACCDiffn为本次跳变之后的累计 TSN的跳变差值。 本次跳变之后的累计 TSN的跳 变差值, 是对所有检测到的 TSN跳变(包括本次跳变)产生的 TSN跳变差值的累计。 每次判定接收的帧中的 TSN发生跳变, 都会根据本次跳变前最后一帧中的 TSN和本次 跳变后第一帧中的 TSN, 计算本次跳变差值 SingleDiff, 并将 SingleDiff累加到本次跳 变之后的 TSN跳变累计差值 AccDiffn,可以根据 AccDiffn对本次跳变之后接收的帧中的 TSN进行补偿。 当本次跳变为第一次跳变时, 则 AccDiffn就等于 SingleDiff。
步骤 309,根据本次跳变之后的累计 TSN的跳变差值,对本次跳变之后接收的帧中 的 TSN进行补偿。
本次跳变之后接收的帧中的 TSN补偿公式如下:
TSNa' = TSNa - AccDiffn
其中, TSNa为补偿前的 TSN, TSNa '为补偿后的 TSN, AccDiffn为本次跳变之后 的累计 TSN的跳变差值。 完成对本次跳变之后接收的帧中的 TSN的补偿后, 可以将补 偿后的 TSN转换为小于 32比特的 TSN,并将转换后的 TSN发送给 BTS。使用 AccDiffn 对本次跳变之后接收的帧中的 TSN进行补偿, 可以消除接收该帧之前的所有 TSN跳变 对该帧中的 TSN的影响。
本发明实施例的技术方案具有以下优点, 因为采用 SSRC字段作为信源端标识, 并 将信源端标识作为检测 TSN跳变的依据,从而能够及时检测到接收的帧中的 TSN跳变, 防止因依靠 Jitter Buffer自适应 TSN跳变而造成的丢帧,提高了 IP BSS的语音质量; 可 选的, 当检测出 TSN跳变时, 可以对跳变后的 TSN进行补偿, 从而可以消除 TSN跳变 造成的影响, 如防止因 TSN跳变造成的丢帧, 提高了 IP BSS的语音质量。 另外, 通过 在下行 DTX打开时记录接收的当前帧中的 TSN, 并且在下一个系统默认时间间隔内没 有接收到帧时, 将当前帧中的 TSN加 1, 保证 BSC输出给 BTS的 TSN中仅包含由于 DTX打开带来的合理变化。
如图 4所示,为本发明实施例中的 TSN跳变的检测处理装置结构图一,提供了一 种跳变的检测处理装置实施例, 包括:
第一获取模块 410, 用于获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 以 RTP为例,信源端标识可以位于信源端发送的帧中的 SSRC字段,本发明实施例 将该 SSRC字段作为检测 TSN跳变的依据。 当然, 可以理解的是, 信源端标识也可以 位于其它字段, 本发明并不就此做出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。 检测模块 420, 用于检测第一获取模块 410获取到的信源端标识是否发生变化。 判定模块 430, 用于当检测模块 420检测出信源端标识发生变化时, 判定接收的帧 中的 TSN发生跳变。
当检测出 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变, 当检测出 SSRC 未发生变化时, 判定接收的帧中的 TSN未发生跳变。
判定模块 430, 还可以用于当检测模块 420检测出信源端标识未发生变化时, 判定 接收的帧中的 TSN未发生跳变。
应用本发明实施例提供的装置的具体步骤、 实现过程与前述方法实施例基本相同, 此处不再赘述。
本发明实施例的技术方案具有以下优点, 所述装置因为采用信源端标识作为检测
TSN跳变的依据, 能够及时检测到接收的帧中的 TSN跳变, 防止因依靠 Jitter Buffer自 适应 TSN跳变而造成的丢帧, 提高了 IP BSS的语音质量。
如图 5所示,为本发明实施例中的 TSN跳变的检测处理装置结构图二,提供了另 一种跳变的检测处理装置实施例, 包括:
第一获取模块 510, 用于获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 以 RTP为例,信源端标识可以位于信源端发送的帧中的 SSRC字段,本发明实施例 将该 SSRC字段作为检测 TSN跳变的依据。 当然, 可以理解的是, 信源端标识也可以 位于其它字段, 本发明并不就此做出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。
检测模块 520, 用于检测第一获取模块 510获取到的信源端标识是否发生变化。 判定模块 530, 用于当检测模块 520检测出信源端标识发生变化时, 判定接收的帧 中的 TSN发生跳变。
如果帧中的 SSRC未发生变化, 则信源端未发生切换, 则接收的帧中的 TSN未产 生跳变; 如果帧中的 SSRC发生变化, 则 RTP信源端发生切换, 则接收的帧中的 TSN 产生跳变。 当检测出 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变, 当检测出 SSRC未发生变化时, 判定接收的帧中的 TSN未发生跳变。
判定模块 530, 还用于当检测模块 520检测出信源端标识未发生变化时, 判定接收 的帧中的 TSN未发生跳变。
可选的, 上述装置还可以包括:
第二获取模块 540,用于当判定模块 530判定接收的帧中的 TSN发生跳变时,获取 本次跳变之后的累计 TSN的跳变差值。
判定接收的帧中的 TSN发生跳变之后, 可以获取本次跳变之后的累计 TSN的跳变 差值, 以便于对本次跳变之后接收的帧中的 TSN进行补偿。
补偿模块 550,用于根据本次跳变之后的累计 TSN的跳变差值,对本次跳变之后接 收的帧中的 TSN进行补偿。
本次跳变之后接收的帧中的 TSN补偿公式如下:
TSNa' = TSNa - AccDiffn
其中, TSNa为补偿前的 TSN, TSNa '为补偿后的 TSN, AccDiffn为本次跳变之后的 累计 TSN的跳变差值。
对本次跳变之后接收的帧中的 TSN进行补偿的本次跳变之后的累计 TSN的跳变差 值 AccDiffn, 是对接收该帧之前的所有 TSN跳变(包括本次跳变)产生的跳变差值的累 力^ 使用八^^0„对本次跳变之后接收的帧中的 TSN进行补偿, 可以消除接收该帧之 前的所有 TSN跳变对该帧中的 TSN的影响。
其中, 第二获取模块 540, 具体可以包括:
记录子模块 541,用于记录本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 根据本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算本次跳 变差值。
本次跳变差值的计算公式如下:
SingleDiff = TSN - TSN0 - 1
其中, TSNo为本次跳变前最后一帧中的 TSN, TSNi为本次跳变后第一帧中的 TSN, SingleDiff为本次跳变差值。
计算子模块 542,用于根据本次跳变差值与本次跳变之前的累计 TSN的跳变差值计 算得到本次跳变之后的累计 TSN的跳变差值。
AccDiffn = AccDiffn + SingleDiff
其中, SingleDiff为本次跳变差值, AccDiff^为本次跳变之前的累计 TSN的跳变差 值, AccDiff1^本次跳变之后的累计 TSN的跳变差值。 每次判定接收的帧中的 TSN发 生跳变, 都会根据本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算 本次跳变差值 SingleDiff, 并将 SingleDiff 累加到本次跳变之后的 TSN跳变累计差值 AccDiffn, 根据 ACCDiffn对本次跳变之后接收的帧中的 TSN进行补偿。 当本次跳变为第 一次跳变时, 则 AccDiffn等于 SingleDiff。 完成对本次跳变之后接收的帧中的 TSN的补 偿后, 也可以将补偿后的 TSN转换为小于 32比特的 TSN, 并将转换后的 TSN发送给 BTS。
应用本发明实施例提供的装置的具体步骤、 实现过程与前述方法实施例基本相同, 此处不再赘述。
本发明实施例的技术方案具有以下优点,所述装置因为采用 SSRC字段作为信源端 标识, 并将信源端标识作为检测 TSN跳变的依据, 从而能够及时检测到接收的帧中的 TSN跳变,防止因依靠 Jitter Buffer自适应 TSN跳变而造成的丢帧,提高了 IP BSS的语 音质量; 可选的, 当检测出 TSN跳变时, 所述装置还可以对跳变后的 TSN进行补偿, 从而可以消除 TSN跳变造成的影响,如防止因 TSN跳变造成的丢帧,提高了 IP BSS的 语音质量。
如图 6所示,为本发明实施例中的 TSN跳变的检测处理装置结构图三,提供了又 一种 TSN跳变的检测处理装置实施例, 适用于下行 DTX的情况, 包括:
记录模块 610, 用于记录接收的当前帧中的 TSN。
下行 DTX打开时, 采用 VAD技术, 在不传送话音信号时停止发射帧, 限制无用信 息的发送, 减少了发射的有效时间, 使得跳变前最后一帧中的 TSN和跳变后第一帧中 的 TSN之间存在合理差值, 因此, 下行 DTX打开时 TSN跳变的检测机制与上述实施 例有所不同, 记录模块 610在每次收到帧之后, 记录当前帧中的 TSN。
累加模块 620, 用于如果下一个系统默认时间间隔内没有接收到帧, 则将所述当前 帧中的 TSN加 1。
如果下一个系统默认时间间隔内没有收到帧,是由于在不传送话音信号时停止发射 帧, 因此, 需要在 TSN中包含由于 DTX打开带来的合理变化, 由累加模块 620将当前 帧中的 TSN加 1。
第一获取模块 630, 用于获取信源端标识。
本发明实施例中的信源端是指能够发送帧的设备, 例如, 可以是 BSC, 也可以是 以 RTP为例,信源端标识可以位于信源端发送的帧中的 SSRC字段,本发明实施例 将该 SSRC字段作为检测 TSN跳变的依据。 当然, 可以理解的是, 信源端标识也可以 位于其它字段, 本发明并不就此做出限定。
需要进一步指出的是, 上述有关说明仅是示例性的, 本发明的技术方案的适用并非 仅限于 RTP, 本发明实施例的技术方案可以适用于各种检测 TSN跳变的场景或协议。
检测模块 640, 用于检测第一获取模块 630获取到的信源端标识是否发生变化。 判定模块 650, 用于当检测模块 640检测出信源端标识发生变化时, 判定接收的帧 中的 TSN发生跳变。
如果帧中的 SSRC未发生变化, 则信源端未发生切换, 则接收的帧中的 TSN未产 生跳变; 如果帧中的 SSRC发生变化, 则 RTP信源端发生切换, 则接收的帧中的 TSN 产生跳变。 当检测出 SSRC发生变化时, 判定接收的帧中的 TSN发生跳变, 当检测出 SSRC未发生变化时, 判定接收的帧中的 TSN未发生跳变。
判定模块 650, 还用于当检测模块 640检测出信源端标识未发生变化时, 判定接收 的帧中的 TSN未发生跳变。
可选的, 上述装置还可以包括:
第二获取模块 660,用于当判定模块 650判定接收的帧中的 TSN发生跳变时,获取 本次跳变之后的累计 TSN的跳变差值。
判定接收的帧中的 TSN发生跳变之后, 可以获取本次跳变之后的累计 TSN的跳变 差值, 以便于对本次跳变之后接收的帧中的 TSN进行补偿。
补偿模块 670,用于根据本次跳变之后的累计 TSN的跳变差值,对本次跳变之后接 收的帧中的 TSN进行补偿。
本次跳变之后接收的帧中的 TSN补偿公式如下:
TSNa' = TSNa - AccDiffn
其中, TSNa为补偿前的 TSN, TSNa '为补偿后的 TSN, AccDiffn为本次跳变之后的 累计 TSN的跳变差值。
对本次跳变之后接收的帧中的 TSN进行补偿的本次跳变之后的累计 TSN的跳变差 值 AccDiffn, 是对接收该帧之前的所有 TSN跳变(包括本次跳变)产生的跳变差值的累 力口。 使用 AccDiffn对本次跳变之后接收的帧中的 TSN进行补偿, 可以消除接收该帧之 前的所有 TSN跳变对该帧中的 TSN的影响。
其中, 第二获取模块 660, 具体可以包括:
记录子模块 661,用于记录本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 根据本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算本次跳 变差值。
本次跳变差值的计算公式如下:
SingleDiff = TSN【 - TSN0 - 1
其中, TSNo为本次跳变前最后一帧中的 TSN, TSNi为本次跳变后第一帧中的 TSN, SingleDiff为本次跳变差值。
计算子模块 662,用于根据本次跳变差值与本次跳变之前的累计 TSN的跳变差值计 算得到本次跳变之后的累计 TSN的跳变差值。
AccDiffn = AccDiffn― + SingleDiff
其中, SingleDiff为本次跳变差值, AccDiff^为本次跳变之前的累计 TSN的跳变差 值,
Figure imgf000014_0001
TSN的跳变差值。 每次判定接收的帧中的 TSN发 生跳变, 都会根据本次跳变前最后一帧中的 TSN和本次跳变后第一帧中的 TSN, 计算 本次跳变差值 SingleDiff, 并将 SingleDiff 累加到本次跳变之后的 TSN跳变累计差值 AccDiffn, 根据 ACCDiffn对本次跳变之后接收的帧中的 TSN进行补偿。 当本次跳变为第 一次跳变时, 则 AccDiffn等于 SingleDiff。 完成对本次跳变之后接收的帧中的 TSN的补 偿后, 也可以将补偿后的 TSN转换为小于 32比特的 TSN, 并将转换后的 TSN发送给 BTS。
应用本发明实施例提供的装置的具体步骤、 实现过程与前述方法实施例基本相同, 此处不再赘述。
本发明实施例的技术方案具有以下优点,所述装置因为采用 SSRC字段作为信源端 标识, 并将信源端标识作为检测 TSN跳变的依据, 从而能够及时检测到接收的帧中的 TSN跳变,防止因依靠 Jitter Buffer自适应 TSN跳变而造成的丢帧,提高了 IP BSS的语 音质量; 可选的, 当检测出 TSN跳变时, 可以对跳变后的 TSN进行补偿, 从而可以消 除 TSN跳变造成的影响, 如防止因 TSN跳变造成的丢帧, 提高了 IP BSS的语音质量。 另外, 所述装置通过在下行 DTX打开时记录接收的当前帧中的 TSN, 并且在下一个系 统默认时间间隔内没有接收到帧时, 将当前帧中的 TSN加 1, 保证 BSC输出给 BTS的 TSN中仅包含由于 DTX打开带来的合理变化。
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可借 助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件, 但很多情况下 前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本质上或者说对现有 技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一 个存储介质中, 包括若干指令用以使得一台终端设备 (可以是手机, 个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。
最后, 还需要说明的是, 在本文中, 诸如第一和第二等之类的关系术语仅仅用来将 一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操 作之间存在任何这种实际的关系或者顺序。 而且, 术语"包括"、 "包含 "或者其任何其他 变体意在涵盖非排他性的包含, 从而使得包括一系列要素的过程、 方法、物品或者设备 不仅包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过程、 方法、 物品或者设备所固有的要素。 在没有更多限制的情况下, 由语句 "包括一个 ...... " 限定的要素, 并不排除在包括所述要素的过程、 方法、物品或者设备中还存在另外的相 同要素。
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术 人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进和润饰, 这些改进 和润饰也应视本发明的保护范围。

Claims

权利要求
1、 一种时间标签 TSN跳变的检测处理方法, 其特征在于, 所述方法包括: 获取接收的帧的信源端标识;
检测所述获取到的信源端标识是否发生变化;
当检测出所述信源端标识发生变化时, 判定所述接收的帧中的 TSN发生跳变。
2、 如权利要求 1所述 TSN跳变的检测处理方法, 其特征在于, 所述方法还包括: 当检测出所述信源端标识未发生变化时, 判定接收的帧中的 TSN未发生跳变。
3、 如权利要求 1所述 TSN跳变的检测处理方法, 其特征在于, 所述判定所述接收 的帧中的 TSN发生跳变时, 所述方法还包括:
获取本次跳变之后的累计 TSN的跳变差值;
根据所述本次跳变之后的累计 TSN的跳变差值对本次跳变之后接收的帧中的 TSN 进行补偿。
4、 如权利要求 1至 3中任意一项所述 TSN跳变的检测处理方法, 其特征在于, 所述信源端标识位于所述接收的帧中的同步源标识符字段。
5、 如权利要求 3所述 TSN跳变的检测处理方法, 其特征在于, 所述获取本次跳变 之后的累计 TSN的跳变差值, 包括:
记录所述本次跳变前最后一帧中的 TSN和所述本次跳变后第一帧中的 TSN, 根据 所述本次跳变前最后一帧中的 TSN和所述本次跳变后第一帧中的 TSN计算得到所述本 次跳变差值;
根据所述本次跳变差值与所述本次跳变之前的累计 TSN的跳变差值计算得到所述 本次跳变之后的累计 TSN的跳变差值。
6、 如权利要求 1至 3中任意一项所述 TSN跳变的检测处理方法, 其特征在于, 当 下行不连续传输 DTX打开时, 所述获取接收的帧的信源端标识, 之前还包括:
记录接收的当前帧中的 TSN;
如果下一个系统默认时间间隔内没有接收到帧, 则将所述当前帧中的 TSN加 1。
7、 一种 TSN跳变的检测处理装置, 其特征在于, 包括:
第一获取模块, 用于获取接收的帧的信源端标识;
检测模块, 用于检测所述第一获取模块获取到的所述信源端标识是否发生变化; 判定模块, 用于当所述检测模块检测出所述信源端标识发生变化时, 判定所述接收 的帧中的 TSN发生跳变。
8、 如权利要求 7所述 TSN跳变的检测处理装置, 其特征在于, 所述装置还包括: 第二获取模块, 用于当所述判定模块判定接收的帧中的 TSN发生跳变时, 获取所 述本次跳变之后的累计 TSN的跳变差值;
补偿模块, 用于根据所述第二获取模块获取的所述本次跳变之后的累计 TSN的跳 变差值对所述本次跳变之后接收的帧中的 TSN进行补偿。
9、如权利要求 8所述 TSN跳变的检测处理装置,其特征在于,所述第二获取模块, 包括:
记录子模块, 用于记录所述本次跳变前最后一帧中的 TSN和所述本次跳变后第一 帧中的 TSN,根据所述本次跳变前最后一帧中的 TSN和所述本次跳变后第一帧中的 TSN 计算得到所述本次跳变差值;
计算子模块, 用于根据所述本次跳变差值与所述本次跳变之前的累计 TSN的跳变 差值计算得到所述本次跳变之后的累计 TSN的跳变差值。
10、如权利要求 7或 8或 9所述 TSN跳变的检测处理装置,其特征在于,下行 DTX 打开时, 所述装置还包括:
记录模块, 用于记录接收的当前帧中的 TSN;
累加模块, 用于如果下一个系统默认时间间隔内没有接收到帧, 则将所述当前帧中 的 TSN加 1。
PCT/CN2009/074220 2008-09-28 2009-09-25 一种时间标签跳变的检测处理方法和装置 WO2010034252A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP09815621.9A EP2337392B1 (en) 2008-09-28 2009-09-25 Time sequence number jumping detecting and processing method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810168478A CN101369880B (zh) 2008-09-28 2008-09-28 一种时间标签跳变的检测处理方法和装置
CN200810168478.X 2008-09-28

Publications (1)

Publication Number Publication Date
WO2010034252A1 true WO2010034252A1 (zh) 2010-04-01

Family

ID=40413530

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074220 WO2010034252A1 (zh) 2008-09-28 2009-09-25 一种时间标签跳变的检测处理方法和装置

Country Status (3)

Country Link
EP (1) EP2337392B1 (zh)
CN (1) CN101369880B (zh)
WO (1) WO2010034252A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369880B (zh) * 2008-09-28 2012-09-19 华为技术有限公司 一种时间标签跳变的检测处理方法和装置
WO2014040241A1 (zh) * 2012-09-12 2014-03-20 华为技术有限公司 一种传输序列号的复位方法及无线网络控制器
CN104393974B (zh) * 2014-10-21 2018-04-06 新华三技术有限公司 一种时间跳变信息的自动保存方法和设备
CN112185413B (zh) * 2020-09-30 2024-04-12 北京搜狗科技发展有限公司 一种语音处理方法、装置和用于语音处理的装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1491000A (zh) * 2002-10-15 2004-04-21 华为技术有限公司 实现主设备和备用设备倒换后rtp流连续性的方法
CN1531276A (zh) * 2003-03-13 2004-09-22 华为技术有限公司 用于消除ip语音数据抖动的自适应抖动缓存实现方法
CN1561078A (zh) * 2004-02-27 2005-01-05 北京邮电大学 基于实时传输协议的端到端网络测量方法
CN1885856A (zh) * 2005-06-20 2006-12-27 华为技术有限公司 在网络中识别rtp媒体流的实现方法
CN101369880A (zh) * 2008-09-28 2009-02-18 华为技术有限公司 一种时间标签跳变的检测处理方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4406816B2 (ja) * 2002-12-11 2010-02-03 ソニー株式会社 受信装置および受信方法、記録媒体、並びにプログラム
CN101075860A (zh) * 2006-05-18 2007-11-21 华为技术有限公司 一种报文去抖动处理的方法
US8027328B2 (en) * 2006-12-26 2011-09-27 Alcatel Lucent Header compression in a wireless communication network
CN101127712B (zh) * 2007-08-20 2011-05-25 中兴通讯股份有限公司 一种解决rtp会话中同步源标识冲突的方法
JP5044380B2 (ja) * 2007-12-04 2012-10-10 株式会社日立国際電気 配信装置及びコーデック変換装置、通信システム

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1491000A (zh) * 2002-10-15 2004-04-21 华为技术有限公司 实现主设备和备用设备倒换后rtp流连续性的方法
CN1531276A (zh) * 2003-03-13 2004-09-22 华为技术有限公司 用于消除ip语音数据抖动的自适应抖动缓存实现方法
CN1561078A (zh) * 2004-02-27 2005-01-05 北京邮电大学 基于实时传输协议的端到端网络测量方法
CN1885856A (zh) * 2005-06-20 2006-12-27 华为技术有限公司 在网络中识别rtp媒体流的实现方法
CN101369880A (zh) * 2008-09-28 2009-02-18 华为技术有限公司 一种时间标签跳变的检测处理方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2337392A4 *

Also Published As

Publication number Publication date
EP2337392B1 (en) 2013-09-18
EP2337392A1 (en) 2011-06-22
CN101369880A (zh) 2009-02-18
CN101369880B (zh) 2012-09-19
EP2337392A4 (en) 2012-03-28

Similar Documents

Publication Publication Date Title
US10454811B2 (en) Apparatus and method for de-jitter buffer delay adjustment
US10735120B1 (en) Reducing end-to-end delay for audio communication
US7515909B2 (en) Wireless handoffs between multiple networks
US7962148B2 (en) Controlling and managing access to multiple networks
US8274945B2 (en) Method and apparatus for time-warping packets at the sender side
EP2207045B1 (en) Wireless communication device, wireless communication system, program, and wireless communication method
US20200014963A1 (en) Latency improvement via frame latency feedback
US9826445B2 (en) Facilitation of adaptive dejitter buffer between mobile devices
WO2012022785A1 (en) Minimizing speech delay in communication devices
KR20060110783A (ko) 송수신 시스템, 송신 장치, 송신 방법, 수신 장치, 수신방법, 및 프로그램
JP5406983B2 (ja) 通信ネットワークにおけるジッタの検出
US10212552B2 (en) Methods and devices for controlling speech quality
EP3270599A1 (en) Apparatuses and methods for wireless synchronization of multiple multimedia devices using a common timing framework
US7852801B2 (en) Reducing collision probability for VoIP packets
JPWO2008142736A1 (ja) 中継装置、及び中継方法
WO2010034252A1 (zh) 一种时间标签跳变的检测处理方法和装置
US20170055184A1 (en) Selective rate-adaptation in video telephony
US20070009071A1 (en) Methods and apparatus to synchronize a clock in a voice over packet network
EP3158817A2 (en) Reduced-latency processing of voice-over-lte calls
JP2014068087A (ja) バッファ制御装置、バッファ制御装置による制御方法、メディア通信装置、並びにコンピュータ・プログラム
JP2003224546A (ja) 通信システム、データ受信方法およびデータ通信端末
WO2015085511A1 (zh) 一种基于时分多址通信系统的通信方法及终端
JP2015076846A (ja) 遅延予測器、遅延予測方法およびプログラム、通信装置、通信方法およびプログラム
EP2033384A2 (en) Content-based adaptive jitter handling

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09815621

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2009815621

Country of ref document: EP