WO2013060229A1 - Ip single-pass detection method and ip single-pass detection device - Google Patents

Ip single-pass detection method and ip single-pass detection device Download PDF

Info

Publication number
WO2013060229A1
WO2013060229A1 PCT/CN2012/082610 CN2012082610W WO2013060229A1 WO 2013060229 A1 WO2013060229 A1 WO 2013060229A1 CN 2012082610 W CN2012082610 W CN 2012082610W WO 2013060229 A1 WO2013060229 A1 WO 2013060229A1
Authority
WO
WIPO (PCT)
Prior art keywords
received
packets
valid
pass
threshold
Prior art date
Application number
PCT/CN2012/082610
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2013060229A1 publication Critical patent/WO2013060229A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • 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

Definitions

  • the invention relates to a method for detecting an IP (Internet Protocol, IP) single pass and a device for detecting an IP single pass.
  • IP Internet Protocol
  • IP single-pass detection In an IP network, especially in an A-port IP network, sometimes a call encounters an IP single-pass problem. There are many reasons for IP single-pass. Sometimes the user's subjective feeling will affect the accuracy of IP single-pass detection results, resulting in misjudgment of IP single-pass detection. For example: During the muting period, 100% packet loss is detected, but this does not affect the user's subjective feeling. At this time, it is easy to cause IP single-pass detection misjudgment.
  • a method for detecting an IP single pass and a detection device for an IP single pass are provided, and the method for detecting an IP single pass and the detecting device for an IP single pass can avoid IP single pass detection caused by subjective feeling of a user Misjudgment.
  • An aspect of the present invention provides a method for detecting an IP single pass, including a first detection method, where the first detection method includes: receiving a real-time transmission protocol frame in one detection period, and acquiring the first received a sequence number of the real-time transmission protocol frame, a sequence number of the last real-time transmission protocol frame, and a total number of received packets; calculating the detection period according to the sequence number of the first and last real-time transmission protocol frames Desiring the number of received frames; calculating a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets, if the received synchronization source flag of the real-time transmission protocol frame remains unchanged, and is received
  • the sequence number hopping value of any two adjacent real-time transmission protocol frames is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first
  • the single-pass detection threshold, the IP single-pass in the detection period includes: receiving a real-time
  • Another aspect of the present invention provides a method for detecting an IP single pass, comprising: obtaining a cumulative number of sent packets in a received first valid transmission report, where the first valid transmission report is a real-time transmission control protocol Sending a report; obtaining a cumulative number of sent packets in the received second valid transmission report, where the second valid transmission report is a transmission of the real-time transmission control protocol and adjacent to the first valid transmission report; Obtaining a total number of receivables in a time interval of the first and second valid transmission reports; calculating the first and second effective ones according to the accumulated number of packets in the first and second valid transmission reports The total number of packets sent in the interval during which the report is sent; the packet loss ratio is calculated according to the total number of packets sent and the total number of packets received.
  • the packet loss ratio is greater than Or equal to the single-pass detection threshold, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the channel is single-passed.
  • a further aspect of the present invention provides an apparatus for detecting an IP single-pass, including a first detecting apparatus, where the first detecting apparatus includes: a first receiving module, configured to receive a real-time transport protocol frame within a detection period; a first extraction module, configured to extract a sequence number of a first real-time transmission protocol frame received by the first receiving module, a sequence number of a last real-time transmission protocol frame, and a total number of packets received in the detection period; a calculating module, configured to calculate, according to the sequence numbers of the first and last real-time transmission protocol frames, a desired number of received frames in the detection period, and further configured to use, according to the expected number of received frames, the total received number Calculating the frame loss ratio in the detection period, if the synchronization source flag of the real-time transmission protocol frame received by the first receiving module remains unchanged, and receiving any adjacent two real-time transmission protocol frames
  • the sequence number hop value is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective
  • an apparatus for detecting an IP single pass comprising: a receiving module, configured to receive a transmission report of a first valid real-time transmission control protocol, and to be associated with the first valid transmission a sending report of the second effective real-time transmission control protocol of the neighboring; an extracting module, configured to extract the cumulative number of outgoing packets in the first and second valid sending reports, and the first and second valid sending 4 reports a total number of packets received in the time interval; a calculation module, configured to calculate a total time interval between the first and second valid transmission reports according to the cumulative number of packets sent in the first and second valid transmission reports The number of packets sent is also used to calculate a packet loss ratio according to the total number of packets sent and the total number of packets received; if the synchronization source flag of the report of the real-time transmission protocol received by the receiving module remains unchanged, the packet loss ratio is greater than or When the single-pass detection threshold is equal to, and the total number of packets sent is greater than or equal
  • FIG. 1 is a flow chart of a first embodiment of a method for detecting an IP single pass according to the present invention
  • FIG. 2 is a flow chart of a second embodiment of a method for detecting an IP single pass according to the present invention
  • FIG. 3 is a flow chart of a third embodiment of a method for detecting an IP single pass according to the present invention.
  • FIG. 4 is a flowchart of a fourth embodiment of a method for detecting an IP single pass according to the present invention.
  • FIG. 5 is a flowchart of a fifth embodiment of a method for detecting an IP single pass according to the present invention.
  • FIG. 6 is a flowchart of a sixth embodiment of a method for detecting an IP single pass according to the present invention.
  • FIG. 7 is a schematic diagram of a first embodiment of an apparatus for detecting an IP single pass according to the present invention.
  • FIG. 8 is a schematic diagram of a second embodiment of an apparatus for detecting an IP single pass according to the present invention.
  • Fig. 9 is a schematic view showing a third embodiment of the apparatus for detecting an IP single-channel according to the present invention.
  • Embodiments of the present invention provide a method for detecting an IP single pass and a detecting device for an IP single pass.
  • the single pass is a one-way call, and when the one-way call is expressed as a call, the other party's voice is not heard.
  • the method in this embodiment can be applied to detecting a downlink IP single pass and an uplink IP single pass.
  • the local end is a base station controller (BSC)
  • the opposite end is a media gateway (Media GateWay, MGW) or a transcoder (TransCoder, TC) in the media gateway.
  • another BSC when used to detect the uplink IP single-pass, the local end is the BSC, and the opposite end is the base transceiver transceiver station (Base Transceiver Station, BTS).
  • the method of this embodiment includes: Sll: Receive a real-time transport protocol frame in a detection period P, and obtain a serial number (Serial Number, SN) of the received Real-time Transport Protocol (RTP) frame.
  • Sll Serial Number, SN
  • the detection period P is configurable according to design requirements.
  • the unit of the detection period P is seconds.
  • S12 Calculate, according to the sequence numbers SNi, SN of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is
  • S13 Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - ( ).
  • the hop value between the sequence numbers SN and SN n of any two adjacent RTP frames received is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame.
  • the threshold where the frame loss ratio is greater than or equal to the single-pass detection threshold, the IP single-pass in the detection period.
  • the effective frame threshold is P*MinNum
  • the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection.
  • the effective frame threshold is preferably less than or equal to P*MaxNum.
  • MinNum and MaxNum can be configured according to design requirements.
  • MinNum has a value of 20 and MaxNum has a value of 50. If the SSRC of the received RTP frame changes, or the hop value between the sequence numbers SN 8 ⁇ ! of any two adjacent RTP frames is greater than the hop threshold, the peer is considered to be switched. The IP single pass is no longer detected during the detection period, and the IP single pass continues to be detected in the next detection cycle.
  • the threshold of the hopping is 50. And if the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the single-pass detection threshold, ending the IP single-pass detection of the detection period.
  • the method for detecting an IP single-pass in this embodiment does not depend on whether the peer end supports Real-time Transport Control Protocol (RTCP), and prevents the cause by the setting of the expected number of received frames greater than or equal to the effective frame threshold. Local misdetection caused by fewer valid voice frames at the opposite end. In fact, if the number of packets sent by the peer is very small, the local end will not affect the normal call even if all the received packets are lost.
  • RTCP Real-time Transport Control Protocol
  • FIG. 2 is a flow chart of a second embodiment of a method for detecting an IP single pass according to the present invention. This embodiment is a further description of the embodiment shown in FIG. 1. The method of this embodiment includes:
  • S21 Receive a real-time transmission protocol frame in a detection period, and obtain the first RTP received.
  • the detection period P is configurable according to design requirements.
  • the unit of the detection period P is seconds.
  • S22 Calculate the expected number of received frames in the detection period according to the sequence number SN SN n of the first and last RTP frames. Specifically, the expected number of received frames is SNn-SNi+L.
  • S23 Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - ( ).
  • Step S24 determining whether the SSRC of the received RTP frame remains unchanged, if yes, executing step S25; if not, indicating that the peer end switches, and ending the IP single-pass detection of the current period. Step S24 can also be performed after step S21 or S22, and details are not described herein again.
  • Step S25 determining whether the sequence number hopping value of any two adjacent RTPs is less than or equal to the hopping threshold value, and if yes, executing step S26; if not, indicating that the peer end switches, ending the IP single pass of the current period Detection. Step S25 may also be performed after step S21 or S22, or may be performed before step S24, and details are not described herein again.
  • step S26 Determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and if yes, execute step S27; if not, end the IP single-pass detection of the current period. Step S26 can also be performed after step S22, and details are not described herein again.
  • the effective frame threshold is P*MinNum
  • the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection.
  • the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the voice service may exceed the possible value of the voice service, and an abnormality may occur.
  • the values of MinNum and MaxNum can be configured according to design needs. Optionally, MinNum has a value of 20 and MaxNum has a value of 50.
  • S27 Determine whether the frame loss ratio is greater than or equal to a single-pass detection threshold, and if yes, the IP single-pass in the detection period; if not, end the IP single-pass detection in the current period.
  • steps S24, S25, S26, and S27 can also be freely adjusted, and details are not described herein again.
  • FIG. 3 is a flow chart of a third embodiment of a method for detecting an IP single pass according to the present invention.
  • the method of this embodiment relies on the peer to support RTCP.
  • the method in this embodiment is applicable to detecting a downlink IP single pass, where the local end is a BSC, and the opposite end is an MGW or a TC in the MGW or another BSC.
  • the BSC receives the second valid report (Send Report, SR)
  • SR the second valid report
  • This embodiment includes: S31: Acquire a cumulative number of sent packets in the received first valid SR, where the first valid SR is an SR of the RTCP.
  • S32 Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is an SR of the RTCP and is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, the SR is considered invalid. If it is 5 seconds, it is considered to be a valid SR.
  • S33 Acquire a total number of receivables in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
  • S34 Calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
  • S35 Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss ratio is
  • the time interval is single-pass.
  • the threshold of the effective number of packets is n * MinNum, and the total number of packets is greater than or equal to the threshold of the number of valid packets, indicating that the effective voice frame is greater than a certain threshold.
  • IP single-pass detection is enabled to prevent local misdetection due to fewer valid voice frames at the peer end.
  • the value of the MinNum can be configured according to design requirements. Optionally, the MinNum value is 20.
  • the peer If the SSRC of the RTCP report is changed, the peer is considered to be in the switch, and the IP single-pass is no longer detected in the time interval. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the IP single-pass detection in the interval is ended.
  • the method for detecting an IP single-pass in this embodiment relies on the peer to support RTCP.
  • the total number of packets sent is calculated by the difference between the number of accumulated packets in the two adjacent valid SRs. By setting the total number of packets to be greater than or equal to the number of valid packets, the local end caused by fewer active voice frames at the peer is prevented. False detection.
  • FIG. 4 is a flow chart of a fourth embodiment of a method for detecting an IP single pass according to the present invention. This embodiment is a further description of the embodiment shown in FIG. 3, and the method of the embodiment includes:
  • S41 Acquire a cumulative number of sent packets in the received first valid SR, where the first valid SR is an SR of the RTCP.
  • S42 Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is an SR of the RTCP and is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, it is considered that the current SR is invalid, and if it is 5 seconds, it is considered to be a valid SR.
  • S43 Acquire a total number of packets in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
  • S44 Calculate the total number of packets sent in the time interval of the first and second valid SRs according to the cumulative number of packets sent in the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
  • Step S46 It is determined whether the SSRC of the received RTCP SR remains unchanged. If yes, step S47 is performed; if not, the peer end is switched, and the IP single-pass detection in the time interval is ended. Step S46 can also be performed after step S43 or S44, and details are not described herein again.
  • Step S47 Determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and if yes, execute step S48; if not, end the IP single-pass detection in the interval.
  • the threshold of the effective number of packets is n * MinNum
  • the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer.
  • the local error detection caused.
  • the value of the MinNum can be configured according to the design needs, and optionally, the value of MinNum is 20. Step S47 can also be performed after step S43 or S44, and details are not described herein again.
  • S48 Determine whether the packet loss ratio is greater than or equal to a single-pass detection threshold, and if yes, the IP single-pass in the time interval; if not, end the IP single-pass detection in the time interval.
  • steps S46, S47, and S48 can also be freely adjusted, and details are not described herein.
  • FIG. 5 is a flow chart of a fifth embodiment of a method for detecting an IP single pass according to the present invention.
  • the method for detecting an IP single-pass in this embodiment includes a first detecting method and a second detecting method, and the first and second detecting methods are performed in parallel. If the detection result of any one of the first and second detection methods is an IP single-pass, the detection result of the method for detecting the IP single-pass is an IP single-pass. After the local IP address is transmitted, the A-interface over IP (AoIP) downlink single-pass detection is not performed during the detection period.
  • the first Detection methods include:
  • S51 Receive a real-time transmission protocol frame in a detection period P, obtain the sequence number SNi of the received first RTP frame, the sequence number SN n of the last RTP frame, and the total number of received packets N.
  • the detection period P is configurable according to design requirements.
  • the unit of the detection period P is seconds.
  • S52 Calculate, according to the sequence number SN SN of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is SNn-SNi+L.
  • S53 Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - (- - -).
  • the effective frame threshold is P*MinNum
  • the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection.
  • the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur.
  • the values of the MmNum and MaxNum can be configured according to design requirements.
  • the MinNum value is 20 and the MaxNum value is 50. If the SSRC of the received RTP frame changes, or the hop value between the sequence numbers SN SN n of any two adjacent RTP frames is greater than the hop threshold, the peer is considered to be handed over. The IP single pass is no longer detected during the detection period, and the IP single pass continues to be detected in the next detection cycle.
  • the threshold of the hopping is 50. If the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the first single pass detection threshold, the IP single pass detection of the detection period is ended.
  • the method for detecting the IP single-pass in this embodiment also starts the second detecting method, where the second detecting method includes:
  • S55 Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
  • S56 Acquire a total number of packets in a time interval of the first and second valid SRs. specific, The interval between two consecutive valid SRs is n. Optionally, the time interval is in seconds.
  • S57 Calculate the total number of packets sent in the time interval of the first and second valid SRs according to the accumulated number of packets in the first and second valid SRs. Specifically, the total number of packets sent is the second effective one.
  • S58 Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss is
  • the effective packet number threshold is n * MinNum, and the total number of packets sent is greater than or equal to the effective number of packets to indicate that the effective voice frame is greater than A certain threshold is used to enable IP single-pass detection, which is used to prevent local erroneous detection caused by a small number of valid voice frames at the peer end.
  • the first and second single-pass detection thresholds may be configured according to design requirements.
  • the first single pass detection threshold is equal to the second single pass detection threshold.
  • the peer If the SSRC of the RTCP report is changed, the peer is considered to be in the switch, and the IP single-pass is no longer detected in the time interval. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the IP single-pass detection in the interval is ended.
  • the first detection method may be applicable to the case where the peer end supports and does not support the RTCP, so as to make up for the limitation that the second detection method is only applicable to support the use of the RTCP, and the second detection method can compensate for the limitation.
  • the usage limitation that the first detection method cannot be detected in the case of 100% packet loss is described. Therefore, the detection result of the method for detecting IP single-channel in this embodiment is more accurate.
  • the method for detecting an IP single-pass in this embodiment includes a first detection method and a second detection method, and the first and second detection methods are performed in parallel. If the detection result of any one of the first and second detection methods is an IP single-pass, the detection result of the method for detecting the IP single-pass is an IP single-pass.
  • the first detecting method includes:
  • S601 Receive a real-time transmission protocol frame in a detection period, and obtain a sequence number of the first RTP frame received, a sequence number of the last RTP frame, and a total number of received packets.
  • the detection period P is configurable according to design requirements.
  • the unit of the detection period P is seconds.
  • S602 Calculate, according to the sequence numbers SNi, SN n of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is SNn-SNi+L.
  • S603 Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - (- - - ).
  • Step S604 It is determined whether the SSRC of the received RTP frame remains unchanged, and if yes, step S605 is performed; if not, the peer end is switched, and the IP single-pass detection of the current period is ended. Step S604 can also be performed after step S601 or S602, and details are not described herein again.
  • Step S605 determining whether the sequence number hopping value of any two adjacent RTPs is less than or equal to the hopping threshold value, if yes, executing step S606; if not, indicating that the peer end switches, ending the IP single pass of the current period Detection. Step S605 can also be performed after step S601 or S602, or before step S604, and details are not described herein again.
  • step S606 Determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and if yes, execute step S607; if not, end the IP single-pass detection of the current period. Step S606 can also be performed after step S602, and details are not described herein again.
  • the effective frame threshold is P*MmNum
  • the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection.
  • the effective frame threshold is preferably less than or equal to P*MaxNum.
  • MinNum and MaxNum can be configured according to design needs.
  • MinNum has a value of 20 and MaxNum has a value of 50.
  • S607 Determine whether the frame loss ratio is greater than or equal to the first single-pass detection threshold, and if yes, the IP single-pass in the detection period; if not, end the IP single-pass detection in the current period.
  • steps S604, S605, S606, and S607 can also be freely adjusted, and details are not described herein again.
  • the second detection method includes:
  • S608 Determine whether the second valid RTCP transmission report is received, if yes, execute step S610, if no, execute S608 repeatedly. Specifically, if the received SR is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
  • Step S610 Acquire the cumulative number of issued packets in the first valid SR received. Step S610 can also be performed after step S607, and details are not described herein again.
  • S611 Acquire the cumulative number of outstanding packets in the received second valid SR.
  • S612 Acquire a total number of packets in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
  • S613 Calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
  • S614 Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss ratio is
  • Step S615 Determine whether the SSRC of the received RTCP SR remains unchanged, and if yes, execute step S616; if not, it indicates that the peer end switches, and the IP single-pass detection in the time interval is ended. Step S615 can also be performed after any step in steps S608 to S613, and details are not described herein again.
  • Step S616 Determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and if yes, execute step S617; if not, end the IP single-pass detection in the time interval.
  • the threshold of the effective number of packets is n * MinNum
  • the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer.
  • the value of MinNum can be configured according to design needs, and optionally, the value of MinNum is 20. Step S616 can also be performed after step S612 or S613, and details are not described herein again.
  • S617 Determine whether the packet loss ratio is greater than or equal to the second single-pass detection threshold, and if yes, the IP single-pass in the time interval; if not, end the IP single-pass detection in the time interval.
  • the first single pass detection threshold is equal to the second single pass detection threshold.
  • steps S615, S616, and S617 can also be freely adjusted, and details are not described herein again.
  • Fig. 7 is a schematic view showing a first embodiment of the apparatus for detecting an IP single pass of the present invention.
  • the apparatus of this embodiment can be adapted to detect a downlink IP single pass and an uplink IP single pass.
  • the local end is the BSC
  • the opposite end is the MGW or the TC in the MGW or the other BSC
  • the local end is the BSC
  • the opposite end is the BTS.
  • the apparatus for detecting an IP single pass of this embodiment includes a receiving module 71, an extracting module 72, and a calculating module 73.
  • the receiving module 71 is configured to receive an RTP frame of P in a detection period.
  • the extraction module 72 is configured to extract the sequence number SN n of the first RTP frame received by the receiving module 71 and the sequence number SN n of the last RTP frame and the total number of packets N in the detection period.
  • the calculating module 73 is configured to calculate, according to the sequence numbers of the first and last RTP frames, a desired number of received frames in the detection period, and further configured to: according to the expected number of received frames and the total received packet The number is calculated as the frame loss ratio during the detection period. Specifically, the expected number of received frames is SNn-SNi+1, and the frame loss ratio is
  • the IP single-pass detection device of the present embodiment determines the IP single-pass in the detection period, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the single-pass detection threshold.
  • the effective frame threshold is P*MinNum
  • the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection.
  • the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur.
  • the values of MinNum and MaxNum can be configured according to design requirements. Optionally, MinNum has a value of 20 and MaxNum has a value of 50.
  • the IP single-pass detection in the time interval is ended.
  • the threshold is 50. If the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the single-pass detection threshold, the IP single-pass detection of the detection period is ended.
  • the detecting device of the IP single-pass includes a determining module 74, configured to determine whether the SSRC of the RTP frame received by the receiving module 71 remains unchanged, and is used for determining any two adjacent RTPs received. Whether the hop value between the sequence numbers SNi and SN n of the frame is less than or equal to the hop threshold value, and is used to determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and is used to determine whether the frame loss ratio is Greater than or equal to the single pass detection threshold.
  • the apparatus for detecting an IP single-pass in this embodiment does not depend on whether the peer end supports the real-time transmission control protocol TCP, and prevents the number of valid frames to be received due to the fact that the number of expected received frames is greater than or equal to the effective frame threshold. The local side is detected by mistake.
  • Fig. 8 is a schematic view showing a second embodiment of the apparatus for detecting an IP single pass of the present invention.
  • the device in this embodiment relies on the peer to support the RTCR.
  • the device in this embodiment is applicable to detecting a downlink IP single pass, and the local end is a BSC.
  • the opposite end is a TC or another BSC in the MGW or MGW.
  • the apparatus for detecting an IP single-channel includes a receiving module 81, an extracting module 82, and a calculating module 83.
  • the IP single-channel detection apparatus of this embodiment relies on the peer to support RTCP. Specifically, when the detecting device of the IP single-pass receives the second valid SR, it starts to start detecting, and detects whether the valid SR distance is the last valid SR period, and whether the IP is single-pass.
  • the receiving module 81 is configured to receive the SR of the first valid RTCP and the SR of the second valid RTCP adjacent to the first valid transmission report. Specifically, if the SR received by the receiving module 51 is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
  • the extracting module 82 is configured to extract the cumulative number of packets sent in the first and second valid SRs and the total number of packets in the time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
  • the calculating module 83 is configured to calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs, and further, according to the total The number of packets sent and the total number of packets are counted. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR, and the packet loss ratio is
  • the detection device of the IP single-pass in this embodiment confirms the single-pass in the time interval.
  • the threshold of the effective number of packets is n * MinNum If the total number of packets sent is greater than or equal to the number of valid packets, the IP address is greater than a certain threshold to enable IP single-pass detection, which is used to prevent local erroneous detection caused by fewer valid voice frames at the peer end.
  • the value of the MinNum can be Configured according to design needs, optional, MinNum has a value of 20.
  • the IP single-pass detection in the time interval is ended. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective packet number threshold, the IP single-pass detection in the time interval is ended.
  • the detecting device of the IP single-pass includes a determining module 84, configured to determine whether the SSRC of the received RTCP report remains unchanged, and is used to determine whether the packet loss ratio is greater than or equal to a single
  • the detection threshold is used to determine whether the total number of packets is greater than or equal to the threshold of the number of valid packets.
  • the apparatus for detecting an IP single-pass in this embodiment relies on the peer to support RTCP.
  • the total number of packets sent is calculated by the difference between the number of accumulated packets in the two adjacent valid SRs. By setting the total number of packets to be greater than or equal to the number of valid packets, the local end caused by fewer active voice frames at the peer is prevented. False detection.
  • Fig. 9 is a schematic view showing a third embodiment of the apparatus for detecting an IP single-channel according to the present invention.
  • the apparatus 900 for detecting an IP single pass of the present embodiment includes a first detecting means 901 and a second detecting means 906. If the detection result of any one of the first and second detecting devices 901, 906 is an IP single pass, the detection result of the detecting device 900 of the IP single pass is an IP single pass.
  • the first detecting device 901 includes a first receiving module 902, a first extracting module 903, and a first calculating module 904.
  • the first receiving module 902 is configured to receive an RTP frame of P in a detection period.
  • the first extraction module 903 is configured to extract a sequence number of the first RTP frame received by the first receiving module 902, a sequence number SN n of the last RTP frame, and a total packet in the detection period. number
  • the first calculating module 904 is configured to calculate, according to the sequence numbers of the first and last RTP frames, a desired number of received frames in the detection period, and further, according to the expected number of received frames and the total The number of packets received calculates the frame loss ratio during the detection period. Specifically, the expected number of received frames is
  • the detecting device of the IP single pass of the embodiment determines Within the detection cycle
  • the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur.
  • the values of the MinNum and the MaxNum may be configured according to the design requirements. Optionally, the value of the MinNum value of 2Q MaxNum is 5 ⁇ .
  • the peer is considered to be switched, and the IP is not detected in the detection period.
  • the threshold of the hopping is 50. If the expected number of received frames is less than the effective frame threshold, or the frame loss ratio is smaller than the first single pass detection threshold, the IP single pass detection of the detection period is ended.
  • the first detecting device 901 further includes a first determining module 905, configured to determine whether the SSRC of the RTP frame received by the first receiving module 902 remains unchanged, and is used to determine any two phases received. Whether the hop value between the sequence numbers SN1 and SNn of the adjacent RTP frame is less than or equal to the hop threshold, and is used to determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and is used to determine the frame loss. Whether the ratio is greater than or equal to the first single pass detection threshold.
  • the second detecting device 906 includes a second receiving module 907, a second extracting module 908, and a second calculating module 909.
  • the second detecting means 906 relies on the peer to support RTCP. Specifically, when the detecting device 900 of the IP single-pass receives the second valid SR, the second detecting device 906 starts the detecting, and detects whether the current valid SR distance is the last valid SR period, whether IP Single-pass.
  • the second receiving module 907 is configured to receive the SR of the first valid RTCP and the SR of the second valid RTCP adjacent to the first valid sending report, if the second receiving module 907 receives If the SR is less than 5 seconds from the last SR, it is considered that the SR is invalid. If it is 5 seconds, it is considered to be a valid SR.
  • the second lifting block 908 is configured to extract the cumulative number of packets in the first and second valid SRs and the total number of packets in the time interval of the first and second valid SRs. Specifically, the interval between adjacent two valid SRs is ⁇ , and optionally, the time interval is in seconds.
  • the second calculating module 909 is configured to calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs, and The total number of packets sent and the total number of packets are counted to calculate the packet loss ratio.
  • the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR, and the packet loss ratio is
  • the detecting device of the IP single-channel in this embodiment confirms the single-pass in the time interval.
  • the threshold of the effective number of packets is n * MmNum, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer.
  • the value of the MinNum can be configured according to design needs, optionally, MinNum has a value of 20.
  • the IP single-pass detection in the time interval is ended.
  • the second detecting device 906 further includes a second determining module 910, configured to determine whether the SSRC of the RTCP report received by the second receiving module 907 remains unchanged, and is used to determine whether the packet loss ratio is greater than Or equal to the second single-pass detection threshold, used to determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets.
  • a second determining module 910 configured to determine whether the SSRC of the RTCP report received by the second receiving module 907 remains unchanged, and is used to determine whether the packet loss ratio is greater than Or equal to the second single-pass detection threshold, used to determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets.
  • the first detecting apparatus 901 may be adapted to support the peer end and not support the RTCP, thereby compensating for the use limitation that the second detecting apparatus 906 is only applicable to support RTCP, and the second The detecting device 906 can compensate for the usage limitation that the first detecting device 901 cannot detect when 100% of the packets are lost. Therefore, the detection result of the IP single-pass detecting device of the embodiment is more accurate.
  • the technical solution of the present invention may be embodied in the form of a software product in the form of a software product, or a part of the technical solution, which is stored in a storage medium, including a plurality of instructions. All or part of the steps of the method of the various embodiments of the present invention are performed by a computer device (which may be a personal computer, server, or network device, etc.).
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program code. .

Abstract

Embodiments of the present invention relate to an IP single-pass detection method and an IP single-pass detection device. The method of an embodiment of the present invention comprises: in a detection period, obtaining a serial number of a received first real-time transfer protocol frame, a serial number of a received last real-time transfer protocol frame and the total number of received packets; according to the serial numbers of the first and the last real-time transfer protocol frames, calculating the expected number of received frames in the detection period; according to the expected number of received frames and the total number of received packets, calculating a frame loss ratio in the detection period, and if a synchronization source symbol of the received real-time transfer protocol frame maintains unchanged, a jump value of the serial numbers of any two adjacent real-time transfer protocol frames is less than or equal to a jump threshold, the expected number of received frames is greater than or equal to a valid frame threshold, and the frame loss ratio is greater than or equal to a first single-pass detection threshold, judging that IP single-pass occurs in the detection period. The embodiments of the present invention can avoid erroneous judgment in IP single-pass detection caused by subjective feelings of a user.

Description

检测 IP单通的方法及 IP单通的检测装置 本申请要求于 2011 年 10 月 28 日提交中国专利局、 申请号为 201110333614.8, 发明名称为"检测 IP单通的方法及 IP单通的检测装置"的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  Method for detecting IP single pass and detecting device for IP single pass This application claims to be submitted to Chinese Patent Office on October 28, 2011, application number is 201110333614.8, and the invention name is "method for detecting IP single pass and detecting device for IP single pass" The priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及检测 IP(Internet Protocol, IP)单通的方法及 IP单通的检测装置。  The invention relates to a method for detecting an IP (Internet Protocol, IP) single pass and a device for detecting an IP single pass.
背景技术 Background technique
在 IP组网中, 尤其是在 A口 IP组网中, 有时通话会遇到 IP单通的问题。 造成 IP单通的原因很多, 有时用户主观感受也会影响 IP单通检测结果的准确 性, 导致 IP单通检测的误判。 例如: 当静音期间, 检测到了 100%丢包, 但此 时对用户的主观感受并没有影响, 此时, 容易导致 IP单通检测的误判。  In an IP network, especially in an A-port IP network, sometimes a call encounters an IP single-pass problem. There are many reasons for IP single-pass. Sometimes the user's subjective feeling will affect the accuracy of IP single-pass detection results, resulting in misjudgment of IP single-pass detection. For example: During the muting period, 100% packet loss is detected, but this does not affect the user's subjective feeling. At this time, it is easy to cause IP single-pass detection misjudgment.
发明内容 Summary of the invention
本发明的多个方面 , 提供检测 IP单通的方法及 IP单通的检测装置, 所述检 测 IP单通的方法及 IP单通的检测装置能够避免因用户主观感受而导致的 IP单 通检测的误判。  In various aspects of the present invention, a method for detecting an IP single pass and a detection device for an IP single pass are provided, and the method for detecting an IP single pass and the detecting device for an IP single pass can avoid IP single pass detection caused by subjective feeling of a user Misjudgment.
本发明的一方面, 提供了一种检测 IP单通的方法, 包括第一检测方法, 所 述第一检测方法包括: 在一个检测周期内, 接收实时传输协议帧, 获取接收到的 第一个实时传输协议帧的序列号、 最后一个实时传输协议帧的序列号以及接收 到的总收包数; 根据所述第一个和最后一个实时传输协议帧的序列号, 计算所 述检测周期内的期望接收帧数; 根据所述期望接收帧数和所述总的收包数计算 所述检测周期内的丢帧比例 , 若接收到的实时传输协议帧的同步源标志保持不 变 , 且接收到的任意相邻的两个实时传输协议帧的序列号跳变值小于或者等于 跳变门限值, 且所述期望接收帧数大于或者等于有效帧门限, 所述丟帧比例大 于或者等于第一单通检测门限, 则所述检测周期内 IP单通。 本发明的另一方面, 提供了一种检测 IP单通的方法, 包括: 获取接收到的 第一有效的发送报告中的累积发包数, 所述第一有效的发送报告为实时传输控 制协议的发送报告; 获取接收到的第二有效的发送报告中的累积发包数, 所述 第二有效的发送报告为实时传输控制协议的发送 · ^告且与所述第一有效的发送 报告相邻; 获取所述第一、 第二有效的发送报告的时间间隔内的总收包数; 根 据所述第一、 第二有效的发送报告中的累积发包数, 计算所述第一、 第二有效 的发送报告的时间间隔内的总发包数; 根据所述总发包数和总收包数计算丢包 比例, 若接收到的实时传输协议的报告的同步源标志保持不变, 所述丢包比例 大于或者等于单通检测门限, 且所述总发包数大于或者等于有效发包数门限, 则所述时间间隔内单通。 An aspect of the present invention provides a method for detecting an IP single pass, including a first detection method, where the first detection method includes: receiving a real-time transmission protocol frame in one detection period, and acquiring the first received a sequence number of the real-time transmission protocol frame, a sequence number of the last real-time transmission protocol frame, and a total number of received packets; calculating the detection period according to the sequence number of the first and last real-time transmission protocol frames Desiring the number of received frames; calculating a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets, if the received synchronization source flag of the real-time transmission protocol frame remains unchanged, and is received The sequence number hopping value of any two adjacent real-time transmission protocol frames is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first The single-pass detection threshold, the IP single-pass in the detection period. Another aspect of the present invention provides a method for detecting an IP single pass, comprising: obtaining a cumulative number of sent packets in a received first valid transmission report, where the first valid transmission report is a real-time transmission control protocol Sending a report; obtaining a cumulative number of sent packets in the received second valid transmission report, where the second valid transmission report is a transmission of the real-time transmission control protocol and adjacent to the first valid transmission report; Obtaining a total number of receivables in a time interval of the first and second valid transmission reports; calculating the first and second effective ones according to the accumulated number of packets in the first and second valid transmission reports The total number of packets sent in the interval during which the report is sent; the packet loss ratio is calculated according to the total number of packets sent and the total number of packets received. If the synchronization source flag of the received real-time transport protocol remains unchanged, the packet loss ratio is greater than Or equal to the single-pass detection threshold, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the channel is single-passed.
本发明的再一方面, 提供了一种 IP单通的检测装置, 包括第一检测装置, 所述第一检测装置包括: 第一接收模块, 用于接收一个检测周期内的实时传输 协议帧; 第一提取模块, 用于提取所述第一接收模块接收到的第一个实时传输 协议帧的序列号、 最后一个实时传输协议帧的序列号以及所述检测周期内的总 收包数; 第一计算模块, 用于根据所述第一个和最后一个实时传输协议帧的序 列号计算所述检测周期内的期望接收帧数, 还用于根据所述期望接收帧数和所 述总的收包数计算所述检测周期内的丢帧比例, 若所述第一接收模块接收到的 实时传输协议帧的同步源标志保持不变, 且接收到的任意相邻的两个实时传输 协议帧的序列号跳变值小于或者等于跳变门限值, 且所述期望接收帧数大于或 者等于有效帧门限, 所述丟帧比例大于或者等于第一单通检测门限, 则所述第 一检测装置确定所述检测周期内 IP单通。  A further aspect of the present invention provides an apparatus for detecting an IP single-pass, including a first detecting apparatus, where the first detecting apparatus includes: a first receiving module, configured to receive a real-time transport protocol frame within a detection period; a first extraction module, configured to extract a sequence number of a first real-time transmission protocol frame received by the first receiving module, a sequence number of a last real-time transmission protocol frame, and a total number of packets received in the detection period; a calculating module, configured to calculate, according to the sequence numbers of the first and last real-time transmission protocol frames, a desired number of received frames in the detection period, and further configured to use, according to the expected number of received frames, the total received number Calculating the frame loss ratio in the detection period, if the synchronization source flag of the real-time transmission protocol frame received by the first receiving module remains unchanged, and receiving any adjacent two real-time transmission protocol frames The sequence number hop value is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to A single-pass detection threshold, then the first detecting means determines said detection period IP single pass.
本发明的又一方面, 提供了一种 IP单通的检测装置, 包括: 接收模块, 用 于接收第一有效的实时传输控制协议的发送报告以及与所述第一有效的发送 4艮 告相邻的第二有效的实时传输控制协议的发送报告; 提取模块, 用于提取所述 第一、 第二有效的发送报告中的累积发包数以及所述第一、 第二有效的发送4艮 告的时间间隔内的总收包数; 计算模块, 用于根据所述第一、 第二有效的发送 报告中的累积发包数计算所述第一、 第二有效的发送报告的时间间隔内的总发 包数, 还用于根据所述总发包数和总收包数计算丢包比例; 若所述接收模块接 收到的实时传输协议的报告的同步源标志保持不变, 所述丢包比例大于或者等 于单通检测门限, 且所述总发包数大于或者等于有效发包数门限, 则所述检测 装置确定所述时间间隔内 IP单通。 本发明的实施例中, 通过设置期望接收帧数大于或者等于有效帧门限, 或 者通过设置总发包数大于或者等于有效发包数门限, 能够避免因用户主观感受 而导致的 IP单通检测的误判。 According to still another aspect of the present invention, there is provided an apparatus for detecting an IP single pass, comprising: a receiving module, configured to receive a transmission report of a first valid real-time transmission control protocol, and to be associated with the first valid transmission a sending report of the second effective real-time transmission control protocol of the neighboring; an extracting module, configured to extract the cumulative number of outgoing packets in the first and second valid sending reports, and the first and second valid sending 4 reports a total number of packets received in the time interval; a calculation module, configured to calculate a total time interval between the first and second valid transmission reports according to the cumulative number of packets sent in the first and second valid transmission reports The number of packets sent is also used to calculate a packet loss ratio according to the total number of packets sent and the total number of packets received; if the synchronization source flag of the report of the real-time transmission protocol received by the receiving module remains unchanged, the packet loss ratio is greater than or When the single-pass detection threshold is equal to, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the detecting device determines the IP single-pass in the time interval. In the embodiment of the present invention, by setting the expected number of received frames to be greater than or equal to the effective frame threshold, or by setting the total number of outstanding packets to be greater than or equal to the effective number of packets, it is possible to avoid false positives of IP single-pass detection caused by subjective perception of the user. .
附图说明 DRAWINGS
为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例描述中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1为本发明的检测 IP单通的方法的第一实施例的流程图;  1 is a flow chart of a first embodiment of a method for detecting an IP single pass according to the present invention;
图 2为本发明的检测 IP单通的方法的第二实施例的流程图;  2 is a flow chart of a second embodiment of a method for detecting an IP single pass according to the present invention;
图 3为本发明的检测 IP单通的方法的第三实施例的流程图;  3 is a flow chart of a third embodiment of a method for detecting an IP single pass according to the present invention;
图 4为本发明的检测 IP单通的方法的第四实施例的流程图;  4 is a flowchart of a fourth embodiment of a method for detecting an IP single pass according to the present invention;
图 5为本发明的检测 IP单通的方法的第五实施例的流程图;  5 is a flowchart of a fifth embodiment of a method for detecting an IP single pass according to the present invention;
图 6为本发明的检测 IP单通的方法的第六实施例的流程图;  6 is a flowchart of a sixth embodiment of a method for detecting an IP single pass according to the present invention;
图 7为本发明的 IP单通的检测装置的第一实施例的示意图;  7 is a schematic diagram of a first embodiment of an apparatus for detecting an IP single pass according to the present invention;
图 8为本发明的 IP单通的检测装置的第二实施例的示意图;  8 is a schematic diagram of a second embodiment of an apparatus for detecting an IP single pass according to the present invention;
图 9为本发明的 IP单通的检测装置的第三实施例的示意图。  Fig. 9 is a schematic view showing a third embodiment of the apparatus for detecting an IP single-channel according to the present invention.
具体实施方式 detailed description
为使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本发明 实施方式作进一步地详细描述。 本发明的实施例提供了检测 IP单通的方法及 IP 单通的检测装置。 在本发明的实施例中, 单通即单向通话, 单向通话表现为通 话时, 没有听到对方的声音。  The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Embodiments of the present invention provide a method for detecting an IP single pass and a detecting device for an IP single pass. In the embodiment of the present invention, the single pass is a one-way call, and when the one-way call is expressed as a call, the other party's voice is not heard.
图 1为本发明检测 IP单通的方法的第一实施例的流程图。 本实施例的方法 能够适用于检测下行 IP单通和上行 IP单通。 其中, 当用于检测下行 IP单通时, 本端为基站控制器(Base Station Controller, BSC), 对端为媒体网关(Media GateWay, MGW) 或者媒体网关中的代码转换器(TransCoder, TC)或另一个 BSC ; 当用于检测上行 IP 单通时, 本端为 BSC , 对端为基站收发台(Base Transceiver Station, BTS)。 该实施例的方法包括: Sll: 在一个检测周期 P内, 接收实时传输协议帧, 获取接收到的第一个实 时传输协议 (Real-time Transport Protocol, RTP)帧的序列号(Serial Number, SN)1 is a flow chart of a first embodiment of a method for detecting an IP single pass according to the present invention. The method in this embodiment can be applied to detecting a downlink IP single pass and an uplink IP single pass. When detecting the downlink IP single-pass, the local end is a base station controller (BSC), and the opposite end is a media gateway (Media GateWay, MGW) or a transcoder (TransCoder, TC) in the media gateway. Or another BSC; when used to detect the uplink IP single-pass, the local end is the BSC, and the opposite end is the base transceiver transceiver station (Base Transceiver Station, BTS). The method of this embodiment includes: Sll: Receive a real-time transport protocol frame in a detection period P, and obtain a serial number (Serial Number, SN) of the received Real-time Transport Protocol (RTP) frame.
SNi、 最后一个 RTP帧的序列号 SNn以及接收到的总收包数 N。 具体的, 所述检 测周期 P根据设计需要可配置, 可选的, 所述检测周期 P的单位为秒。 SNi, the sequence number SN n of the last RTP frame and the total number of received packets N. Specifically, the detection period P is configurable according to design requirements. Optionally, the unit of the detection period P is seconds.
S12: 根据所述第一个和最后一个 RTP帧的序列号 SNi、 SN„, 计算所述检 测周期内的期望接收帧数。 具体的, 所述期望接收帧数为
Figure imgf000006_0001
S12: Calculate, according to the sequence numbers SNi, SN of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is
Figure imgf000006_0001
S13: 根据所述期望接收帧数和所述总的收包数计算所述检测周期内的丢帧 比例。 具体的, 所述丟帧比例为 1 - ( )。 S13: Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - ( ).
Figure imgf000006_0002
保持不变, 且接收到的任意相邻的两个 RTP帧的序列号 SN、 SNn之间的跳变值 小于或者等于跳变门限值, 且所述期望接收帧数大于或者等于有效帧门限, 所 述丟帧比例大于或者等于单通检测门限, 则所述检测周期内 IP单通。 具体的 , 所述有效帧门限为 P * MinNum, 所述期望接收帧数大于或者等于有效帧门限表 示有效语音帧大于一定门限才启动 IP单通检测, 用于防止由于对端有效语音帧 较少而造成的本端误检测。 进一步的, 所述有效帧门限最好小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的可能值, 可能会发生异常。 所述 MinNum和 MaxNum的值可根据设计需要而配置 , 可选的, MinNum的值 20, MaxNum的值为 50。 若接收到的 RTP帧的 SSRC发生改变, 或者任意相邻的两 个 RTP帧的序列号 SN 8^!之间的跳变值大于所述跳变门限值, 则认为对端发 生切换, 所述检测周期内不再检测 IP单通, 下个检测周期继续检测 IP单通。 可 选的, 所述跳变门限值为 50。 若所述期望接收帧数小于所述有效帧门限, 或者 所述丟帧比例小于所述单通检测门限, 则结束所述检测周期的 IP单通检测。
Figure imgf000006_0002
The same is true, and the hop value between the sequence numbers SN and SN n of any two adjacent RTP frames received is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame. The threshold, where the frame loss ratio is greater than or equal to the single-pass detection threshold, the IP single-pass in the detection period. Specifically, the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur. The values of MinNum and MaxNum can be configured according to design requirements. Optionally, MinNum has a value of 20 and MaxNum has a value of 50. If the SSRC of the received RTP frame changes, or the hop value between the sequence numbers SN 8^! of any two adjacent RTP frames is greater than the hop threshold, the peer is considered to be switched. The IP single pass is no longer detected during the detection period, and the IP single pass continues to be detected in the next detection cycle. Optionally, the threshold of the hopping is 50. And if the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the single-pass detection threshold, ending the IP single-pass detection of the detection period.
本实施例的检测 IP单通的方法, 不依赖对端是否支持实时传输控制协议 (Real-time Transport Control Protocol, RTCP), 且通过设置所述期望接收帧数大于 或者等于有效帧门限来防止由于对端有效语音帧较少而造成的本端误检测。 事 实上如果对端处于静音期间发包个数很少, 本端即使接收报文全部丢失也不会 影响正常通话。  The method for detecting an IP single-pass in this embodiment does not depend on whether the peer end supports Real-time Transport Control Protocol (RTCP), and prevents the cause by the setting of the expected number of received frames greater than or equal to the effective frame threshold. Local misdetection caused by fewer valid voice frames at the opposite end. In fact, if the number of packets sent by the peer is very small, the local end will not affect the normal call even if all the received packets are lost.
图 2为本发明检测 IP单通的方法的第二实施例的流程图。 本实施例是对图 1所述实施例的进一步描述, 该实施例的方法包括:  2 is a flow chart of a second embodiment of a method for detecting an IP single pass according to the present invention. This embodiment is a further description of the embodiment shown in FIG. 1. The method of this embodiment includes:
S21: 在一个检测周期内 P, 接收实时传输协议帧,获取接收到的第一个 RTP 帧的序列号、 最后一个 RTP帧的序列号以及接收到的总收包数。 具体的, 所述 检测周期 P根据设计需要可配置, 可选的, 所述检测周期 P的单位为秒。 S21: Receive a real-time transmission protocol frame in a detection period, and obtain the first RTP received. The serial number of the frame, the serial number of the last RTP frame, and the total number of received packets. Specifically, the detection period P is configurable according to design requirements. Optionally, the unit of the detection period P is seconds.
S22: 根据所述第一个和最后一个 RTP帧的序列号 SN SNn, 计算所述检 测周期内的期望接收帧数。 具体的, 所述期望接收帧数为 SNn-SNi+L S22: Calculate the expected number of received frames in the detection period according to the sequence number SN SN n of the first and last RTP frames. Specifically, the expected number of received frames is SNn-SNi+L.
S23: 根据所述期望接收帧数和所述总的收包数计算所述检测周期内的丟帧 比例。 具体的, 所述丢帧比例为 1 - ( )。 S23: Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - ( ).
Figure imgf000007_0001
Figure imgf000007_0001
S24: 判断接收到的 RTP帧的 SSRC是否保持不变, 若是, 则执行步骤 S25; 若否, 则表示对端发生切换, 结束本周期的 IP单通检测。 步骤 S24还可以在步 骤 S21或者 S22后执行, 在此不再赘述。  S24: determining whether the SSRC of the received RTP frame remains unchanged, if yes, executing step S25; if not, indicating that the peer end switches, and ending the IP single-pass detection of the current period. Step S24 can also be performed after step S21 or S22, and details are not described herein again.
S25: 判断任意相邻的两个 RTP的序列号跳变值是否小于或等于跳变门限 值, 若是, 则执行步骤 S26; 若否, 则表示对端发生切换, 结束本周期的 IP单 通检测。 步骤 S25还可以在步骤 S21或者 S22后执行, 或者在步骤 S24前执行, 在此不再赘述。  S25: determining whether the sequence number hopping value of any two adjacent RTPs is less than or equal to the hopping threshold value, and if yes, executing step S26; if not, indicating that the peer end switches, ending the IP single pass of the current period Detection. Step S25 may also be performed after step S21 or S22, or may be performed before step S24, and details are not described herein again.
S26: 判断所述期望接收帧数是否大于或者等于有效帧门限, 若是, 则执行 步骤 S27; 若否, 则结束本周期的 IP单通检测。 步骤 S26还可以在步骤 S22后 执行, 在此不再赘述。 具体的, 所述有效帧门限为 P * MinNum, 所述期望接收 帧数大于或者等于有效帧门限表示有效语音帧大于一定门限才启动 IP单通检 测, 用于防止由于对端有效语音帧较少而造成的本端误检测。 进一步的, 所述 有效帧门限最好小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的可 能值, 可能会发生异常。 所述 MinNum和 MaxNum的值可根据设计需要而配置, 可选的, MinNum的值 20 , MaxNum的值为 50。  S26: Determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and if yes, execute step S27; if not, end the IP single-pass detection of the current period. Step S26 can also be performed after step S22, and details are not described herein again. Specifically, the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the voice service may exceed the possible value of the voice service, and an abnormality may occur. The values of MinNum and MaxNum can be configured according to design needs. Optionally, MinNum has a value of 20 and MaxNum has a value of 50.
S27: 判断所述丟帧比例是否大于或者等于单通检测门限, 若是, 则所述检 测周期内 IP单通; 若否, 则结束本周期的 IP单通检测。  S27: Determine whether the frame loss ratio is greater than or equal to a single-pass detection threshold, and if yes, the IP single-pass in the detection period; if not, end the IP single-pass detection in the current period.
在本实施例中, 步骤 S24、 S25、 S26、 S27的执行顺序也可以自由调整, 在 此不再赘述。  In this embodiment, the execution order of steps S24, S25, S26, and S27 can also be freely adjusted, and details are not described herein again.
图 3为本发明检测 IP单通的方法的第三实施例的流程图。 本实施例的方法 依赖对端支持 RTCP。 本实施例的方法适用于检测下行 IP单通, 本端为 BSC, 对端为 MGW或者 MGW中的 TC或另一个 BSC。 具体的, 当 BSC收到第二个 有效的发送报告 (Send Report, SR)时, 启动检测本次有效的 SR距离上一次有效 的 SR期间, 是否 IP单通。 该实施例包括: S31: 获取接收到的第一有效的 SR中的累积发包数, 所述第一有效的 SR 为 RTCP的 SR。 3 is a flow chart of a third embodiment of a method for detecting an IP single pass according to the present invention. The method of this embodiment relies on the peer to support RTCP. The method in this embodiment is applicable to detecting a downlink IP single pass, where the local end is a BSC, and the opposite end is an MGW or a TC in the MGW or another BSC. Specifically, when the BSC receives the second valid report (Send Report, SR), it starts to detect whether the current valid SR is from the last valid SR period, and whether the IP is single-pass. This embodiment includes: S31: Acquire a cumulative number of sent packets in the received first valid SR, where the first valid SR is an SR of the RTCP.
S32: 获取接收到的第二有效的 SR中的累积发包数, 所述第二有效的 SR 为 RTCP的 SR且与所述第一有效的 SR相邻。 具体的, 若接收到的 SR距离上 一次 SR不足 5秒钟, 则认为本次 SR是无效的, 若达到 5秒钟, 则认为是有效 的 SR。  S32: Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is an SR of the RTCP and is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, the SR is considered invalid. If it is 5 seconds, it is considered to be a valid SR.
S33: 获取所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次有效的 SR的间隔时间为 n, 可选的, 所述时间间隔的单位为秒。  S33: Acquire a total number of receivables in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
S34: 根据所述第一、 第二有效的 SR中的累积发包数, 计算所述第一、 第 二有效的 SR的时间间隔内的总发包数。 具体的, 所述总发包数为第二有效的 SR中的累积发包数与第一有效的 SR中的累积发包数的差。  S34: Calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
S35: 根据所述总发包数和总收包数计算丟包比例。 具体的, 所述丟包比例 为  S35: Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss ratio is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数 若接收到的 RTCP报告的 SSRC保持不 所述丢包比例大于或者等于单通 检测门限, 且所述总发包数大于或者等于有效发包数门限, 则所述时间间隔内 单通。 具体的, 所述有效发包数门限为 n * MinNum, 总发包数大于或者等于有 效发包数门限表示有效语音帧大于一定门限才启动 IP单通检测, 用于防止由于 对端有效语音帧较少而造成的本端误检测。 所述 MinNum的值可根据设计需要 而配置, 可选的, MinNum的值 20。  - (the number of accumulated packets in the first valid SR - the number of accumulated packets in the first valid SR if the SSRC of the received RTCP report does not keep the packet loss ratio greater than or equal to the single pass detection threshold, and the total If the number of packets sent is greater than or equal to the threshold of the number of valid packets, the time interval is single-pass. Specifically, the threshold of the effective number of packets is n * MinNum, and the total number of packets is greater than or equal to the threshold of the number of valid packets, indicating that the effective voice frame is greater than a certain threshold. IP single-pass detection is enabled to prevent local misdetection due to fewer valid voice frames at the peer end. The value of the MinNum can be configured according to design requirements. Optionally, the MinNum value is 20.
若接收到的 RTCP报告的 SSRC发生改变, 则认为对端发生切换, 所述时间 间隔内不再检测 IP单通。 若所述丟包比例小于单通检测门限, 或者所述总发包 数小于有效发包数门限, 则结束所述时间间隔内的 IP单通检测。  If the SSRC of the RTCP report is changed, the peer is considered to be in the switch, and the IP single-pass is no longer detected in the time interval. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the IP single-pass detection in the interval is ended.
本实施例的检测 IP单通的方法, 需依赖对端支持 RTCP。 通过相邻两个有 效的 SR中的累积发包数的差额来计算总的发包数, 通过设置总的发包数大于或 者等于有效发包数门限来防止由于对端有效语音帧较少而造成的本端误检测。  The method for detecting an IP single-pass in this embodiment relies on the peer to support RTCP. The total number of packets sent is calculated by the difference between the number of accumulated packets in the two adjacent valid SRs. By setting the total number of packets to be greater than or equal to the number of valid packets, the local end caused by fewer active voice frames at the peer is prevented. False detection.
图 4为本发明检测 IP单通的方法的第四实施例的流程图。 本实施例是对图 3所述实施例的进一步描述, 该实施例的方法包括:  4 is a flow chart of a fourth embodiment of a method for detecting an IP single pass according to the present invention. This embodiment is a further description of the embodiment shown in FIG. 3, and the method of the embodiment includes:
S41 : 获取接收到的第一有效的 SR中的累积发包数, 所述第一有效的 SR 为 RTCP的 SR。 S42: 获取接收到的第二有效的 SR中的累积发包数, 所述第二有效的 SR 为 RTCP的 SR且与所述第一有效的 SR相邻。 具体的, 若接收到的 SR距离上 一次 SR不足 5秒钟, 则认为本次 SR是无效的, 若达到 5秒钟, 则认为是有效 的 SR。 S41: Acquire a cumulative number of sent packets in the received first valid SR, where the first valid SR is an SR of the RTCP. S42: Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is an SR of the RTCP and is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, it is considered that the current SR is invalid, and if it is 5 seconds, it is considered to be a valid SR.
S43: 获取所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次有效的 SR的间隔时间为 n, 可选的, 所述时间间隔的单位为秒。  S43: Acquire a total number of packets in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
S44: 根据所述第一、 第二有效的 SR中的累积发包数, 计算所述第一、 第 二有效的 SR的时间间隔内的总发包数。 具体的, 所述总发包数为第二有效的 SR中的累积发包数与第一有效的 SR中的累积发包数的差。  S44: Calculate the total number of packets sent in the time interval of the first and second valid SRs according to the cumulative number of packets sent in the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
S45: 根据所述总发包数和总收包数计算丟包比例。 具体的, 所述丟包比例 为  S45: Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss ratio is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数  — (cumulative number of packets in the first valid SR - number of accumulated packets in the first valid SR
S46: 判断接收到的 RTCP的 SR的 SSRC是否保持不变, 若是, 则执行步 骤 S47; 若否, 则表示对端发生切换, 结束所述时间间隔内的 IP单通检测。 步 骤 S46还可以在步骤 S43或者 S44后执行, 在此不再赘述。 S46: It is determined whether the SSRC of the received RTCP SR remains unchanged. If yes, step S47 is performed; if not, the peer end is switched, and the IP single-pass detection in the time interval is ended. Step S46 can also be performed after step S43 or S44, and details are not described herein again.
S47: 判断所述总发包数是否大于或等于有效发包数门限, 若是, 则执行步 骤 S48; 若否, 则结束所述时间间隔内的 IP单通检测。 具体的, 所述有效发包 数门限为 n * MinNum, 总发包数大于或者等于有效发包数门限表示有效语音帧 大于一定门限才启动 IP单通检测, 用于防止由于对端有效语音帧较少而造成的 本端误检测。 所述 MinNum的值可根据设计需要而配置, 可选的, MinNum的 值 20。 步骤 S47还可以在步骤 S43或者 S44后执行, 在此不再赘述。  S47: Determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and if yes, execute step S48; if not, end the IP single-pass detection in the interval. Specifically, the threshold of the effective number of packets is n * MinNum, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer. The local error detection caused. The value of the MinNum can be configured according to the design needs, and optionally, the value of MinNum is 20. Step S47 can also be performed after step S43 or S44, and details are not described herein again.
S48: 判断所述丟包比例是否大于或等于单通检测门限, 若是, 则所述时间 间隔内 IP单通; 若否, 则结束所述时间间隔内的 IP单通检测。  S48: Determine whether the packet loss ratio is greater than or equal to a single-pass detection threshold, and if yes, the IP single-pass in the time interval; if not, end the IP single-pass detection in the time interval.
在本实施例中, 步骤 S46、 S47、 S48的执行顺序也可以自由调整, 在此不 再赘述。  In this embodiment, the execution order of steps S46, S47, and S48 can also be freely adjusted, and details are not described herein.
图 5为本发明检测 IP单通的方法的第五实施例的流程图。 本实施例的检测 IP单通的方法包括第一检测方法和第二检测方法, 所述第一、 第二检测方法并 行进行。 若所述第一、 第二检测方法中的任何一个的检测结果为 IP单通, 则所 述检测 IP单通的方法的检测结果为 IP单通。 本端上艮 IP单通后 , 本检测周期 内不再进行 A口 IP(A-interface over IP, AoIP)下行单通检测。 具体的, 所述第一 检测方法包括: FIG. 5 is a flow chart of a fifth embodiment of a method for detecting an IP single pass according to the present invention. The method for detecting an IP single-pass in this embodiment includes a first detecting method and a second detecting method, and the first and second detecting methods are performed in parallel. If the detection result of any one of the first and second detection methods is an IP single-pass, the detection result of the method for detecting the IP single-pass is an IP single-pass. After the local IP address is transmitted, the A-interface over IP (AoIP) downlink single-pass detection is not performed during the detection period. Specifically, the first Detection methods include:
S51: 在一个检测周期 P内, 接收实时传输协议帧, 获取接收到的第一个 RTP帧的序列号 SNi、 最后一个 RTP帧的序列号 SNn以及接收到的总收包数 N。 具体的, 所述检测周期 P根据设计需要可配置, 可选的, 所述检测周期 P的单 位为秒。 S51: Receive a real-time transmission protocol frame in a detection period P, obtain the sequence number SNi of the received first RTP frame, the sequence number SN n of the last RTP frame, and the total number of received packets N. Specifically, the detection period P is configurable according to design requirements. Optionally, the unit of the detection period P is seconds.
S52: 根据所述第一个和最后一个 RTP帧的序列号 SN SN„, 计算所述检 测周期内的期望接收帧数。 具体的, 所述期望接收帧数为 SNn-SNi+L  S52: Calculate, according to the sequence number SN SN of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is SNn-SNi+L.
S53: 根据所述期望接收帧数和所述总的收包数计算所述检测周期内的丟帧 比例。 具体的, 所述丟帧比例为 1 - (—— -——)。  S53: Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - (- - -).
SN^ SN^ l 若接收到的 RTP帧的 SSRC保持不变, 且接收到的任意相邻的两个 RTP帧 的序列号 SN SNn之间的跳变值小于或者等于跳变门限值, 且所述期望接收帧 数大于或者等于有效帧门限, 所述丟帧比例大于或者等于第一单通检测门限, 则所述检测周期内 IP单通。 具体的, 所述有效帧门限为 P * MinNum, 所述期望 接收帧数大于或者等于有效帧门限表示有效语音帧大于一定门限才启动 IP单通 检测, 用于防止由于对端有效语音帧较少而造成的本端误检测。 进一步的, 所 述有效帧门限最好小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的 可能值, 可能会发生异常。 所述 MmNum和 MaxNum的值可根据设计需要而配 置, 可选的, MinNum的值 20, MaxNum的值为 50。 若接收到的 RTP帧的 SSRC 发生改变, 或者任意相邻的两个 RTP帧的序列号 SN SNn之间的跳变值大于所 述跳变门限值, 则认为对端发生切换, 所述检测周期内不再检测 IP单通, 下个 检测周期继续检测 IP单通。 可选的, 所述跳变门限值为 50。 若所述期望接收帧 数小于所述有效帧门限, 或者所述丟帧比例小于所述第一单通检测门限, 则结 束所述检测周期的 IP单通检测。 SN^ SN^ l If the SSRC of the received RTP frame remains unchanged, and the received hop value between the sequence numbers SN SN n of any two adjacent RTP frames is less than or equal to the hop threshold, And the number of expected received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first single pass detection threshold, and the IP single pass in the detection period. Specifically, the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur. The values of the MmNum and MaxNum can be configured according to design requirements. Optionally, the MinNum value is 20 and the MaxNum value is 50. If the SSRC of the received RTP frame changes, or the hop value between the sequence numbers SN SN n of any two adjacent RTP frames is greater than the hop threshold, the peer is considered to be handed over. The IP single pass is no longer detected during the detection period, and the IP single pass continues to be detected in the next detection cycle. Optionally, the threshold of the hopping is 50. If the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the first single pass detection threshold, the IP single pass detection of the detection period is ended.
当接收到两个有效的 RTCP的 SR时, 本实施例的检测 IP单通的方法还启 动所述第二检测方法, 所述第二检测方法包括:  When the two SRs of the valid RTCP are received, the method for detecting the IP single-pass in this embodiment also starts the second detecting method, where the second detecting method includes:
S54: 获取接收到的第一有效的 SR中的累积发包数。  S54: Acquire the cumulative number of issued packets in the first valid SR received.
S55: 获取接收到的第二有效的 SR中的累积发包数, 所述第二有效的 SR 与所述第一有效的 SR相邻。 具体的, 若接收到的 SR距离上一次 SR不足 5秒 钟, 则认为本次 SR是无效的, 若达到 5秒钟, 则认为是有效的 SR。  S55: Acquire a cumulative number of sent packets in the received second valid SR, where the second valid SR is adjacent to the first valid SR. Specifically, if the received SR is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
S56: 获取所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次有效的 SR的间隔时间为 n, 可选的, 所述时间间隔的单位为秒。 S56: Acquire a total number of packets in a time interval of the first and second valid SRs. specific, The interval between two consecutive valid SRs is n. Optionally, the time interval is in seconds.
S57: 根据所述第一、 第二有效的 SR中的累积发包数, 计算所述第一、 第 二有效的 SR的时间间隔内的总发包数。 具体的, 所述总发包数为第二有效的 S57: Calculate the total number of packets sent in the time interval of the first and second valid SRs according to the accumulated number of packets in the first and second valid SRs. Specifically, the total number of packets sent is the second effective one.
SR中的累积发包数与第一有效的 SR中的累积发包数的差。 The difference between the number of accumulated packets in the SR and the number of accumulated packets in the first valid SR.
S58: 根据所述总发包数和总收包数计算丟包比例。 具体的, 所述丟包为  S58: Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数 若接收到的 RTCP报告的 SSRC保持不免 所述总发包数大于或者等于有效 发包数门限, 且所述丟包比例大于或者等于第二单通检测门限, 则所述时间间 隔内单通。 具体的, 所述有效发包数门限为 n * MinNum, 总发包数大于或者等 于有效发包数门限表示有效语音帧大于一定门限才启动 IP单通检测, 用于防止 由于对端有效语音帧较少而造成的本端误检测。 具体的, 所述第一、 第二单通 检测门限可根据设计需要而配置, 可选的, 所述第一单通检测门限等于所述第 二单通检测门限。  - (the number of accumulated packets in the first valid SR - the number of accumulated packets in the first valid SR. If the SSRC of the received RTCP report is inevitably inevitably the number of total packets is greater than or equal to the threshold of the number of valid packets, and the lost The packet ratio is greater than or equal to the second single-pass detection threshold, and the single-pass is within the time interval. Specifically, the effective packet number threshold is n * MinNum, and the total number of packets sent is greater than or equal to the effective number of packets to indicate that the effective voice frame is greater than A certain threshold is used to enable IP single-pass detection, which is used to prevent local erroneous detection caused by a small number of valid voice frames at the peer end. Specifically, the first and second single-pass detection thresholds may be configured according to design requirements. Optionally, the first single pass detection threshold is equal to the second single pass detection threshold.
若接收到的 RTCP报告的 SSRC发生改变, 则认为对端发生切换, 所述时间 间隔内不再检测 IP单通。 若所述丢包比例小于单通检测门限, 或者所述总发包 数小于有效发包数门限, 则结束所述时间间隔内的 IP单通检测。  If the SSRC of the RTCP report is changed, the peer is considered to be in the switch, and the IP single-pass is no longer detected in the time interval. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the IP single-pass detection in the interval is ended.
本实施例的方法中, 所述第一检测方法可以适用于对端支持和不支持 RTCP 的情况, 从而弥补第二检测方法只适用于支持 RTCP的使用局限, 所述第二检 测方法能够弥补所述第一检测方法在 100%丢包的情况下不能检测的使用局 限, 因此, 本实施例的检测 IP单通的方法的检测结果更加准确。  In the method of this embodiment, the first detection method may be applicable to the case where the peer end supports and does not support the RTCP, so as to make up for the limitation that the second detection method is only applicable to support the use of the RTCP, and the second detection method can compensate for the limitation. The usage limitation that the first detection method cannot be detected in the case of 100% packet loss is described. Therefore, the detection result of the method for detecting IP single-channel in this embodiment is more accurate.
图 6为本发明检测 IP单通的方法的第六实施例的流程图。 本实施例是对图 5所述实施例的进一步描述, 本实施例的检测 IP单通的方法包括第一检测方法 和第二检测方法, 所述第一、 第二检测方法并行进行。 若所述第一、 第二检测 方法中的任何一个的检测结果为 IP单通, 则所述检测 IP单通的方法的检测结果 为 IP单通。 具体的, 所述第一检测方法包括:  6 is a flow chart of a sixth embodiment of a method for detecting an IP single pass according to the present invention. This embodiment is a further description of the embodiment shown in FIG. 5. The method for detecting an IP single-pass in this embodiment includes a first detection method and a second detection method, and the first and second detection methods are performed in parallel. If the detection result of any one of the first and second detection methods is an IP single-pass, the detection result of the method for detecting the IP single-pass is an IP single-pass. Specifically, the first detecting method includes:
S601: 在一个检测周期内 P,接收实时传输协议帧,获取接收到的第一个 RTP 帧的序列号、 最后一个 RTP帧的序列号以及接收到的总收包数。 具体的, 所述 检测周期 P根据设计需要可配置, 可选的, 所述检测周期 P的单位为秒。  S601: Receive a real-time transmission protocol frame in a detection period, and obtain a sequence number of the first RTP frame received, a sequence number of the last RTP frame, and a total number of received packets. Specifically, the detection period P is configurable according to design requirements. Optionally, the unit of the detection period P is seconds.
S602: 根据所述第一个和最后一个 RTP帧的序列号 SNi、 SNn, 计算所述检 测周期内的期望接收帧数。 具体的, 所述期望接收帧数为 SNn-SNi+L S603: 根据所述期望接收帧数和所述总的收包数计算所述检测周期内的丢 帧比例。 具体的, 所述丢帧比例为 1 - (—— -—— )。 S602: Calculate, according to the sequence numbers SNi, SN n of the first and last RTP frames, the expected number of received frames in the detection period. Specifically, the expected number of received frames is SNn-SNi+L. S603: Calculate a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets. Specifically, the frame loss ratio is 1 - (- - - ).
S604: 判断接收到的 RTP帧的 SSRC是否保持不变, 若是, 则执行步驟 S605; 若否, 则表示对端发生切换, 结束本周期的 IP单通检测。 步骤 S604还 可以在步骤 S601或者 S602后执行, 在此不再赘述。 S604: It is determined whether the SSRC of the received RTP frame remains unchanged, and if yes, step S605 is performed; if not, the peer end is switched, and the IP single-pass detection of the current period is ended. Step S604 can also be performed after step S601 or S602, and details are not described herein again.
S605: 判断任意相邻的两个 RTP的序列号跳变值是否小于或等于跳变门限 值, 若是, 则执行步骤 S606; 若否, 则表示对端发生切换, 结束本周期的 IP单 通检测。 步骤 S605还可以在步骤 S601或者 S602后执行, 或者在步骤 S604前 执行, 在此不再赘述。  S605: determining whether the sequence number hopping value of any two adjacent RTPs is less than or equal to the hopping threshold value, if yes, executing step S606; if not, indicating that the peer end switches, ending the IP single pass of the current period Detection. Step S605 can also be performed after step S601 or S602, or before step S604, and details are not described herein again.
S606: 判断所述期望接收帧数是否大于或者等于有效帧门限, 若是, 则执 行步骤 S607; 若否, 则结束本周期的 IP单通检测。 步骤 S606还可以在步骤 S602 后执行, 在此不再赘述。 具体的, 所述有效帧门限为 P * MmNum, 所述期望接 收帧数大于或者等于有效帧门限表示有效语音帧大于一定门限才启动 IP单通检 测, 用于防止由于对端有效语音帧较少而造成的本端误检测。 进一步的, 所述 有效帧门限最好小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的可 能值, 可能会发生异常。 所述 MinNum和 MaxNum的值可根据设计需要而配置, 可选的, MinNum的值 20 , MaxNum的值为 50。  S606: Determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and if yes, execute step S607; if not, end the IP single-pass detection of the current period. Step S606 can also be performed after step S602, and details are not described herein again. Specifically, the effective frame threshold is P*MmNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the voice service may exceed the possible value of the voice service, and an abnormality may occur. The values of MinNum and MaxNum can be configured according to design needs. Optionally, MinNum has a value of 20 and MaxNum has a value of 50.
S607: 判断所述丟帧比例是否大于或者等于第一单通检测门限, 若是, 则 所述检测周期内 IP单通; 若否, 则结束本周期的 IP单通检测。  S607: Determine whether the frame loss ratio is greater than or equal to the first single-pass detection threshold, and if yes, the IP single-pass in the detection period; if not, end the IP single-pass detection in the current period.
在本实施例中, 步骤 S604、 S605、 S606、 S607的执行顺序也可以自由调整, 在此不再赘述。  In this embodiment, the execution order of steps S604, S605, S606, and S607 can also be freely adjusted, and details are not described herein again.
所述第二检测方法包括:  The second detection method includes:
S607: 判断是否收到第一有效的 RTCP发送报告, 若是, 则执行步骤 S609 , 若否, 则重复执行 S607。  S607: Determine whether the first valid RTCP transmission report is received, and if yes, execute step S609; if no, execute S607 repeatedly.
S608: 判断是否收到第二有效的 RTCP发送报告, 若是, 则执行步骤 S610, 若否, 则重复执行 S608。 具体的, 若接收到的 SR距离上一次 SR不足 5秒钟, 则认为本次 SR是无效的, 若达到 5秒钟, 则认为是有效的 SR。  S608: Determine whether the second valid RTCP transmission report is received, if yes, execute step S610, if no, execute S608 repeatedly. Specifically, if the received SR is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
S610: 获取接收到的第一有效的 SR中的累积发包数。 步骤 S610还可以在 步骤 S607后执行, 在此不再贅述。  S610: Acquire the cumulative number of issued packets in the first valid SR received. Step S610 can also be performed after step S607, and details are not described herein again.
S611 : 获取接收到的第二有效的 SR中的累积发包数。 S612: 获取所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次有效的 SR的间隔时间为 n, 可选的, 所述时间间隔的单位为秒。 S611: Acquire the cumulative number of outstanding packets in the received second valid SR. S612: Acquire a total number of packets in a time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
S613: 根据所述第一、 第二有效的 SR中的累积发包数, 计算所述第一、 第 二有效的 SR的时间间隔内的总发包数。 具体的, 所述总发包数为第二有效的 SR中的累积发包数与第一有效的 SR中的累积发包数的差。  S613: Calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR.
S614: 根据所述总发包数和总收包数计算丟包比例。 具体的, 所述丟包比 例为  S614: Calculate the packet loss ratio according to the total number of packets sent and the total number of packets received. Specifically, the packet loss ratio is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数  — (cumulative number of packets in the first valid SR - number of accumulated packets in the first valid SR
S615: 判断接收到的 RTCP的 SR的 SSRC是否保持不变, 若是, 则执行步 骤 S616; 若否, 则表示对端发生切换, 结束所述时间间隔内的 IP单通检测。 步 骤 S615还可以在步骤 S608到 S613中的任何一步后执行, 在此不再赘述。 S615: Determine whether the SSRC of the received RTCP SR remains unchanged, and if yes, execute step S616; if not, it indicates that the peer end switches, and the IP single-pass detection in the time interval is ended. Step S615 can also be performed after any step in steps S608 to S613, and details are not described herein again.
S616: 判断所述总发包数是否大于或等于有效发包数门限, 若是, 则执行 步骤 S617; 若否, 则结束所述时间间隔内的 IP单通检测。 具体的, 所述有效发 包数门限为 n * MinNum, 总发包数大于或者等于有效发包数门限表示有效语音 帧大于一定门限才启动 IP单通检测, 用于防止由于对端有效语音帧较少而造成 的本端误检测。 所述 MinNum的值可根据设计需要而配置, 可选的, MinNum 的值 20。 步骤 S616还可以在步骤 S612或 S613后执行, 在此不再赘述。  S616: Determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and if yes, execute step S617; if not, end the IP single-pass detection in the time interval. Specifically, the threshold of the effective number of packets is n * MinNum, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer. The local error detection caused. The value of MinNum can be configured according to design needs, and optionally, the value of MinNum is 20. Step S616 can also be performed after step S612 or S613, and details are not described herein again.
S617: 判断所述丟包比例是否大于或等于第二单通检测门限, 若是, 则所 述时间间隔内 IP单通; 若否, 则结束所述时间间隔内的 IP单通检测。 可选的, 所述第一单通检测门限等于所述第二单通检测门限。  S617: Determine whether the packet loss ratio is greater than or equal to the second single-pass detection threshold, and if yes, the IP single-pass in the time interval; if not, end the IP single-pass detection in the time interval. Optionally, the first single pass detection threshold is equal to the second single pass detection threshold.
在本实施例中, 步骤 S615、 S616、 S617的执行顺序也可以自由调整, 在此 不再赘述。  In this embodiment, the execution order of steps S615, S616, and S617 can also be freely adjusted, and details are not described herein again.
图 7为本发明的 IP单通的检测装置的第一实施例的示意图。 本实施例的装 置能够适用于检测下行 IP单通和上行 IP单通。 其中, 当用于检测下行 IP单通 时, 本端为 BSC, 对端为 MGW或者 MGW中的 TC或另一个 BSC; 当用于检 测上行 IP单通时, 本端为 BSC, 对端为 BTS。  Fig. 7 is a schematic view showing a first embodiment of the apparatus for detecting an IP single pass of the present invention. The apparatus of this embodiment can be adapted to detect a downlink IP single pass and an uplink IP single pass. When it is used to detect the downlink IP single-pass, the local end is the BSC, the opposite end is the MGW or the TC in the MGW or the other BSC; when used to detect the uplink IP single-pass, the local end is the BSC, and the opposite end is the BTS. .
本实施例的 IP单通的检测装置包括接收模块 71、 提取模块 72、 计算模块 73。 所述接收模块 71用于接收一个检测周期内 P的 RTP帧。 所述提取模块 72 用于提取所述接收模块 71接收到的第一个 RTP帧的序列号 SN^ 最后一个 RTP 帧的序列号 SNn以及所述检测周期内的总收包数 N。 所述计算模块 73用于根据所述第一个和最后一个 RTP帧的序列号计算所述 检测周期内的期望接收帧数, 还用于根据所述期望接收帧数和所述总的收包数 计算所述检测周期内的丢帧比例。 具体的, 所述期望接收帧数为 SNn-SNi+l, 所 述丢帧比例为
Figure imgf000014_0001
The apparatus for detecting an IP single pass of this embodiment includes a receiving module 71, an extracting module 72, and a calculating module 73. The receiving module 71 is configured to receive an RTP frame of P in a detection period. The extraction module 72 is configured to extract the sequence number SN n of the first RTP frame received by the receiving module 71 and the sequence number SN n of the last RTP frame and the total number of packets N in the detection period. The calculating module 73 is configured to calculate, according to the sequence numbers of the first and last RTP frames, a desired number of received frames in the detection period, and further configured to: according to the expected number of received frames and the total received packet The number is calculated as the frame loss ratio during the detection period. Specifically, the expected number of received frames is SNn-SNi+1, and the frame loss ratio is
Figure imgf000014_0001
若所述接收模块 71接收到的 RTP帧的 SSRC保持不变, 且接收到的任意两 个相邻的 RTP帧的序列号 SNi、 SNn之间的跳变值小于或者等于跳变门限值, 且 所述期望接收帧数大于或者等于有效帧门限, 所述丟帧比例大于或者等于单通 检测门限, 则本实施例的 IP单通的检测装置确定所述检测周期内 IP单通。 具体 的, 所述有效帧门限为 P * MinNum, 所述期望接收帧数大于或者等于有效帧门 限表示有效语音帧大于一定门限才启动 IP单通检测, 用于防止由于对端有效语 音帧较少而造成的本端误检测。 进一步的, 所述有效帧门限最好小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的可能值, 可能会发生异常。 所述 MinNum和 MaxNum的值可才 据设计需要而配置, 可选的, MinNum的值 20, MaxNum的值为 50。 If the SSRC of the RTP frame received by the receiving module 71 remains unchanged, and the hop value between the sequence numbers SNi and SN n of any two adjacent RTP frames received is less than or equal to the hop threshold. The IP single-pass detection device of the present embodiment determines the IP single-pass in the detection period, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the single-pass detection threshold. Specifically, the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur. The values of MinNum and MaxNum can be configured according to design requirements. Optionally, MinNum has a value of 20 and MaxNum has a value of 50.
若所述接收模块 71接收到的 RTP帧的 SSRC发生改变, 或者接收到的任意 两个相邻的 RTP帧的序列号 SN^ 8^之间的跳变值大于所述跳变门限值, 则认 为对端发生切换, 则结束所述时间间隔内的 IP单通检测。 可选的, 所述跳变门 限值为 50。 若所述期望接收帧数小于所述有效帧门限, 或者所述丢帧比例小于 所述单通检测门限, 则结束所述检测周期的 IP单通检测。  If the SSRC of the RTP frame received by the receiving module 71 is changed, or the hop value between the sequence numbers SN^8^ of any two adjacent RTP frames received is greater than the hopping threshold value, If the peer end is considered to be handed over, the IP single-pass detection in the time interval is ended. Optionally, the threshold is 50. If the expected number of received frames is smaller than the effective frame threshold, or the frame loss ratio is smaller than the single-pass detection threshold, the IP single-pass detection of the detection period is ended.
进一步的, 所述 IP单通的检测装置还包括判断模块 74, 用于判断所述接收 模块 71接收到的 RTP帧的 SSRC是否保持不变, 用于判断接收到的任意两个相 邻的 RTP帧的序列号 SNi、 SNn之间的跳变值是否小于或者等于跳变门限值, 用 于判断所述期望接收帧数是否大于或者等于有效帧门限, 用于判断所述丟帧比 例是否大于或者等于所述单通检测门限。 Further, the detecting device of the IP single-pass includes a determining module 74, configured to determine whether the SSRC of the RTP frame received by the receiving module 71 remains unchanged, and is used for determining any two adjacent RTPs received. Whether the hop value between the sequence numbers SNi and SN n of the frame is less than or equal to the hop threshold value, and is used to determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and is used to determine whether the frame loss ratio is Greater than or equal to the single pass detection threshold.
本实施例的检测 IP单通的装置, 不依赖对端是否支持实时传输控制协议 TCP, 且通过设置所述期望接收帧数大于或者等于有效帧门限来防止由于对端 有效语音帧较少而造成的本端误检测。  The apparatus for detecting an IP single-pass in this embodiment does not depend on whether the peer end supports the real-time transmission control protocol TCP, and prevents the number of valid frames to be received due to the fact that the number of expected received frames is greater than or equal to the effective frame threshold. The local side is detected by mistake.
图 8为本发明的 IP单通的检测装置的第二实施例的示意图。 本实施例的装 置依赖对端支持 RTCR 本实施例的装置适用于检测下行 IP单通, 本端为 BSC, 对端为 MGW或者 MGW中的 TC或另一个 BSC。 Fig. 8 is a schematic view showing a second embodiment of the apparatus for detecting an IP single pass of the present invention. The device in this embodiment relies on the peer to support the RTCR. The device in this embodiment is applicable to detecting a downlink IP single pass, and the local end is a BSC. The opposite end is a TC or another BSC in the MGW or MGW.
本实施例的 IP单通的检测装置包括接收模块 81、 提取模块 82、 计算模块 83。 本实施例的 IP单通的检测装置依赖对端支持 RTCP。 具体的, 当所述 IP单 通的检测装置收到第二个有效的 SR时, 开始启动检测, 检测本次有效的 SR距 离上一次有效的 SR期间, 是否 IP单通。  The apparatus for detecting an IP single-channel according to this embodiment includes a receiving module 81, an extracting module 82, and a calculating module 83. The IP single-channel detection apparatus of this embodiment relies on the peer to support RTCP. Specifically, when the detecting device of the IP single-pass receives the second valid SR, it starts to start detecting, and detects whether the valid SR distance is the last valid SR period, and whether the IP is single-pass.
所述接收模块 81用于接收第一有效的 RTCP的 SR以及与所述第一有效的 发送报告相邻的第二有效的 RTCP的 SR。 具体的, 若所述接收模块 51接收到的 SR距离上一次 SR不足 5秒钟, 则认为本次 SR是无效的, 若达到 5秒钟, 则 认为是有效的 SR。  The receiving module 81 is configured to receive the SR of the first valid RTCP and the SR of the second valid RTCP adjacent to the first valid transmission report. Specifically, if the SR received by the receiving module 51 is less than 5 seconds from the last SR, the current SR is considered invalid, and if it is 5 seconds, it is considered to be a valid SR.
所述提取模块 82用于提取所述第一、 第二有效的 SR中的累积发包数以及 所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次有效 的 SR的间隔时间为 n, 可选的, 所述时间间隔的单位为秒。  The extracting module 82 is configured to extract the cumulative number of packets sent in the first and second valid SRs and the total number of packets in the time interval of the first and second valid SRs. Specifically, the interval between two consecutive valid SRs is n, and optionally, the time interval is in seconds.
所述计算模块 83用于根据所述第一、 第二有效的 SR中的累积发包数计算 所述第一、 第二有效的 SR的时间间隔内的总发包数, 还用于根据所述总发包数 和总收包数计算丟包比例。 具体的, 所述总发包数为第二有效的 SR中的累积发 包数与第一有效的 SR中的累积发包数的差, 所述丢包比例为  The calculating module 83 is configured to calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs, and further, according to the total The number of packets sent and the total number of packets are counted. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR, and the packet loss ratio is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数 若所述接收模块 81接收到的 RTCP报告的 SSRC保持不变, 所述丢包比例 大于或者等于单通检测门限, 且所述总发包数大于或者等于有效发包数门限, 则本实施例的 IP单通的检测装置确认所述时间间隔内单通。 具体的, 所述有效 发包数门限为 n * MinNum, 总发包数大于或者等于有效发包数门限表示有效语 音帧大于一定门限才启动 IP单通检测, 用于防止由于对端有效语音帧较少而造 成的本端误检测。 所述 MinNum的值可根据设计需要而配置, 可选的, MinNum 的值 20。  - (the number of accumulated packets in the first valid SR - the number of accumulated packets in the first valid SR) If the SSRC of the RTCP report received by the receiving module 81 remains unchanged, the packet loss ratio is greater than or equal to the single pass The threshold of the detection, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the detection device of the IP single-pass in this embodiment confirms the single-pass in the time interval. Specifically, the threshold of the effective number of packets is n * MinNum If the total number of packets sent is greater than or equal to the number of valid packets, the IP address is greater than a certain threshold to enable IP single-pass detection, which is used to prevent local erroneous detection caused by fewer valid voice frames at the peer end. The value of the MinNum can be Configured according to design needs, optional, MinNum has a value of 20.
若所述接收模块 81接收到的 RTCP报告的 SSRC发生改变, 则认为对端发 生切换, 则结束所述时间间隔内的 IP单通检测。 若所述丟包比例小于单通检测 门限, 或者所述总发包数小于有效发包数门限, 则结束所述时间间隔内的 IP单 通检测。  If the SSRC of the RTCP report received by the receiving module 81 changes, it is considered that the handover occurs at the opposite end, and the IP single-pass detection in the time interval is ended. If the packet loss ratio is less than the single-pass detection threshold, or the total number of packets sent is less than the effective packet number threshold, the IP single-pass detection in the time interval is ended.
进一步的, 所述 IP单通的检测装置还包括判断模块 84, 用于判断接收到的 RTCP报告的 SSRC是否保持不变, 用于判断所述丢包比例是否大于或者等于单 通检测门限, 用于判断所述总发包数是否大于或者等于有效发包数门限。 Further, the detecting device of the IP single-pass includes a determining module 84, configured to determine whether the SSRC of the received RTCP report remains unchanged, and is used to determine whether the packet loss ratio is greater than or equal to a single The detection threshold is used to determine whether the total number of packets is greater than or equal to the threshold of the number of valid packets.
本实施例的检测 IP单通的装置, 需依赖对端支持 RTCP。 通过相邻两个有 效的 SR中的累积发包数的差额来计算总的发包数, 通过设置总的发包数大于或 者等于有效发包数门限来防止由于对端有效语音帧较少而造成的本端误检测。  The apparatus for detecting an IP single-pass in this embodiment relies on the peer to support RTCP. The total number of packets sent is calculated by the difference between the number of accumulated packets in the two adjacent valid SRs. By setting the total number of packets to be greater than or equal to the number of valid packets, the local end caused by fewer active voice frames at the peer is prevented. False detection.
图 9为本发明的 IP单通的检测装置的第三实施例的示意图。 本实施例的检 测 IP单通的装置 900包括第一检测装置 901和第二检测装置 906。 若所述第一、 第二检测装置 901、 906中的任何一个的检测结果为 IP单通, 则所述 IP单通的 检测装置 900的检测结果为 IP单通。  Fig. 9 is a schematic view showing a third embodiment of the apparatus for detecting an IP single-channel according to the present invention. The apparatus 900 for detecting an IP single pass of the present embodiment includes a first detecting means 901 and a second detecting means 906. If the detection result of any one of the first and second detecting devices 901, 906 is an IP single pass, the detection result of the detecting device 900 of the IP single pass is an IP single pass.
所述第一检测装置 901包括第一接收模块 902、 第一提取模块 903、 第一计 算模块 904。 所述第一接收模块 902用于接收一个检测周期内 P的 RTP帧。 所 述第一提取模块 903用于提取所述第一接收模块 902接收到的第一个 RTP帧的 序列号 、 所述最后一个 RTP帧的序列号 SNn以及所述检测周期内的总收包 数 The first detecting device 901 includes a first receiving module 902, a first extracting module 903, and a first calculating module 904. The first receiving module 902 is configured to receive an RTP frame of P in a detection period. The first extraction module 903 is configured to extract a sequence number of the first RTP frame received by the first receiving module 902, a sequence number SN n of the last RTP frame, and a total packet in the detection period. number
所述第一计算模块 904用于根据所述第一个和最后一个 RTP帧的序列号计 算所述检测周期内的期望接收帧数, 还用于根据所述期望接收帧数和所述总的 收包数计算所述检测周期内的丟帧比例。 具体的, 所述期望接收帧数为  The first calculating module 904 is configured to calculate, according to the sequence numbers of the first and last RTP frames, a desired number of received frames in the detection period, and further, according to the expected number of received frames and the total The number of packets received calculates the frame loss ratio during the detection period. Specifically, the expected number of received frames is
SNn-SNi+ 1, 所述丢帧比例为 SN n -SNi+ 1, the frame loss ratio is
SNn - SN、 + 若所述第一接收模块 902接收到的 RTP帧的 SSRC保持不变, 且接收到的 任意两个相邻的 RTP帧的序列号 SN1、 SNn之间的跳变值小于或者等于跳变门 限值, 且所述期望接收帧数大于或者等于有效帧门限, 所述丢帧比例大于或者 等于第一单通检测门限, 则本实施例的 IP单通的检测装置确定所述检测周期内SN n - SN, + if the SSRC of the RTP frame received by the first receiving module 902 remains unchanged, and the hop value between the sequence numbers SN1 and SNn of any two adjacent RTP frames received is less than Or equal to the hopping threshold, and the number of expected received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first single pass detection threshold, and the detecting device of the IP single pass of the embodiment determines Within the detection cycle
IP单通。 具体的, 所述有效帧门限为 P * MinNum, 所述期望接收帧数大于或者 等于有效帧门限表示有效语音帧大于一定门限才启动 IP单通检测, 用于防止由 于对端有效语音帧较少而造成的本端误检测。 进一步的, 所述有效帧门限最好 小于或者等于 P * MaxNum, 如果超过, 则超过了语音业务的可能值, 可能会发 生异常。所述 MinNum和 MaxNum的值可根据设计需要而配置,可选的, MinNum 的值 2Q MaxNum的值为 5α若所述第一接收模块 902接收到的 RTP帧的 SSRC 发生改变, 或者接收到的任意两个相邻的 RTP帧的序列号 SN1、 SNn之间的跳 变值大于所述跳变门限值, 则认为对端发生切换, 所述检测周期内不再检测 IP 单通。 可选的, 所述跳变门限值为 50。 若所述期望接收帧数小于所述有效帧门 限, 或者所述丢帧比例小于所述第一单通检测门限, 则结束所述检测周期的 IP 单通检测。 IP single pass. Specifically, the effective frame threshold is P*MinNum, and the expected number of received frames is greater than or equal to the effective frame threshold, indicating that the valid voice frame is greater than a certain threshold to start IP single-pass detection, and is used to prevent less effective voice frames due to the peer end. The resulting local error detection. Further, the effective frame threshold is preferably less than or equal to P*MaxNum. If it exceeds, the possible value of the voice service is exceeded, and an abnormality may occur. The values of the MinNum and the MaxNum may be configured according to the design requirements. Optionally, the value of the MinNum value of 2Q MaxNum is 5α. If the SSRC of the RTP frame received by the first receiving module 902 changes, or any received If the hop value between the sequence numbers SN1 and SNn of the two adjacent RTP frames is greater than the hop threshold, the peer is considered to be switched, and the IP is not detected in the detection period. Single-pass. Optionally, the threshold of the hopping is 50. If the expected number of received frames is less than the effective frame threshold, or the frame loss ratio is smaller than the first single pass detection threshold, the IP single pass detection of the detection period is ended.
进一步的, 所述第一检测装置 901还包括第一判断模块 905, 用于判断所述 第一接收模块 902接收到的 RTP帧的 SSRC是否保持不变, 用于判断接收到的 任意两个相邻的 RTP帧的序列号 SN1、 SNn之间的跳变值是否小于或者等于跳 变门限值, 用于判断所述期望接收帧数是否大于或者等于有效帧门限, 用于判 断所述丢帧比例是否大于或者等于所述第一单通检测门限。  Further, the first detecting device 901 further includes a first determining module 905, configured to determine whether the SSRC of the RTP frame received by the first receiving module 902 remains unchanged, and is used to determine any two phases received. Whether the hop value between the sequence numbers SN1 and SNn of the adjacent RTP frame is less than or equal to the hop threshold, and is used to determine whether the expected number of received frames is greater than or equal to the effective frame threshold, and is used to determine the frame loss. Whether the ratio is greater than or equal to the first single pass detection threshold.
所述第二检测装置 906包括第二接收模块 907、 第二提取模块 908、 第二计 算模块 909。 第二检测装置 906依赖对端支持 RTCP。 具体的, 当所述 IP单通的 检测装置 900收到第二个有效的 SR时, 所述第二检测装置 906开始启动检测, 检测本次有效的 SR距离上一次有效的 SR期间, 是否 IP单通。  The second detecting device 906 includes a second receiving module 907, a second extracting module 908, and a second calculating module 909. The second detecting means 906 relies on the peer to support RTCP. Specifically, when the detecting device 900 of the IP single-pass receives the second valid SR, the second detecting device 906 starts the detecting, and detects whether the current valid SR distance is the last valid SR period, whether IP Single-pass.
所述第二接收模块 907用于接收第一有效的 RTCP的 SR以及与所述第一有 效的发送报告相邻的第二有效的 RTCP的 SR 具体的, 若所述第二接收模块 907 接收到的 SR距离上一次 SR不足 5秒钟, 则认为本次 SR是无效的, 若达到 5 秒钟, 则认为是有效的 SR。  The second receiving module 907 is configured to receive the SR of the first valid RTCP and the SR of the second valid RTCP adjacent to the first valid sending report, if the second receiving module 907 receives If the SR is less than 5 seconds from the last SR, it is considered that the SR is invalid. If it is 5 seconds, it is considered to be a valid SR.
所述第二提耳4莫块 908用于提取所述第一、 第二有效的 SR中的累积发包数 以及所述第一、 第二有效的 SR的时间间隔内的总收包数。 具体的, 相邻的两次 有效的 SR的间隔时间为 η , 可选的, 所述时间间隔的单位为秒。  The second lifting block 908 is configured to extract the cumulative number of packets in the first and second valid SRs and the total number of packets in the time interval of the first and second valid SRs. Specifically, the interval between adjacent two valid SRs is η, and optionally, the time interval is in seconds.
所述第二计算模块 909用于根据所述第一、 第二有效的 SR中的累积发包数 计算所述第一、 第二有效的 SR的时间间隔内的总发包数, 还用于根据所述总发 包数和总收包数计算丢包比例。 具体的, 所述总发包数为第二有效的 SR中的累 积发包数与第一有效的 SR中的累积发包数的差, 所述丢包比例为  The second calculating module 909 is configured to calculate, according to the cumulative number of packets sent in the first and second valid SRs, the total number of packets sent in the time interval of the first and second valid SRs, and The total number of packets sent and the total number of packets are counted to calculate the packet loss ratio. Specifically, the total number of packets sent is the difference between the number of accumulated packets in the second valid SR and the number of accumulated packets in the first valid SR, and the packet loss ratio is
总的收包数  Total number of receipts
—(第一有效的 SR中的累积发包数 -第一有效的 SR中的累积发包数)° 若所述第二接收模块 907接收到的 RTCP报告的 SSRC保持不变, 所述丟包 比例大于或者等于第二单通检测门限, 且所述总发包数大于或者等于有效发包 数门限, 则本实施例的 IP单通的检测装置确认所述时间间隔内单通。 具体的, 所述有效发包数门限为 n * MmNum, 总发包数大于或者等于有效发包数门限表 示有效语音帧大于一定门限才启动 IP单通检测, 用于防止由于对端有效语音帧 较少而造成的本端误检测。 所述 MinNum的值可根据设计需要而配置, 可选的, MinNum的值 20。 - (the number of accumulated packets in the first valid SR - the number of accumulated packets in the first valid SR) ° If the SSRC of the RTCP report received by the second receiving module 907 remains unchanged, the packet loss ratio is greater than Or equal to the second single-pass detection threshold, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the detecting device of the IP single-channel in this embodiment confirms the single-pass in the time interval. Specifically, the threshold of the effective number of packets is n * MmNum, and the total number of packets sent is greater than or equal to the threshold of the number of valid packets, indicating that the valid voice frame is greater than a certain threshold to initiate IP single-pass detection, which is used to prevent less effective voice frames due to the peer. The local error detection caused. The value of the MinNum can be configured according to design needs, optionally, MinNum has a value of 20.
若所述第二接收模块 907接收到的 RTCP报告的 SSRC发生改变, 则认为对 端发生切换在所述检测周期内不再检测 IP单通。 若所述丢包比例小于所述第二 单通检测门限, 或者所述总发包数小于有效发包数门限, 则结束所述时间间隔 内的 IP单通检测。  If the SSRC of the RTCP report received by the second receiving module 907 changes, it is considered that the switching of the peer does not detect the IP single-pass in the detection period. If the packet loss ratio is smaller than the second single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the IP single-pass detection in the time interval is ended.
进一步的, 所述第二检测装置 906还包括第二判断模块 910, 用于判断所述 第二接收模块 907接收到的 RTCP报告的 SSRC是否保持不变,用于判断所述丢 包比例是否大于或者等于所述第二单通检测门限, 用于判断所述总发包数是否 大于或者等于有效发包数门限。  Further, the second detecting device 906 further includes a second determining module 910, configured to determine whether the SSRC of the RTCP report received by the second receiving module 907 remains unchanged, and is used to determine whether the packet loss ratio is greater than Or equal to the second single-pass detection threshold, used to determine whether the total number of packets sent is greater than or equal to the threshold of the number of valid packets.
本实施例的检测装置中, 所述第一检测装置 901可以适用于对端支持和不 支持 RTCP的情 ¾从而弥补所述第二检测装置 906只适用于支持 RTCP的使用 局限, 所述第二检测装置 906能够弥补所述第一检测装置 901在 100%丟包的情 况下不能检测的使用局限, 因此, 本实施例的 IP单通的检测装置的检测结果更 力口准确。  In the detecting apparatus of this embodiment, the first detecting apparatus 901 may be adapted to support the peer end and not support the RTCP, thereby compensating for the use limitation that the second detecting apparatus 906 is only applicable to support RTCP, and the second The detecting device 906 can compensate for the usage limitation that the first detecting device 901 cannot detect when 100% of the packets are lost. Therefore, the detection result of the IP single-pass detecting device of the embodiment is more accurate.
本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方 案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一 个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等 )执行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存储器 (ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory )、 磁碟或者光盘等 各种可以存储程序代码的介质。  The technical solution of the present invention may be embodied in the form of a software product in the form of a software product, or a part of the technical solution, which is stored in a storage medium, including a plurality of instructions. All or part of the steps of the method of the various embodiments of the present invention are performed by a computer device (which may be a personal computer, server, or network device, etc.). The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program code. .
以上所述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽 管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本发明各实施例技术方案的精神和范围。  The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents; and the modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权利要求书 Claim
1、 一种检测 IP单通的方法, 其特征在于, 包括第一检测方法, 所述第一检 测方法包括: A method for detecting an IP single pass, comprising: a first detecting method, wherein the first detecting method comprises:
在一个检测周期内, 接收实时传输协议帧, 获取接收到的第一个实时传输协 议帧的序列号、 最后一个实时传输协议帧的序列号以及接收到的总收包数; 根据所述第一个和最后一个实时传输协议帧的序列号 , 计算所述检测周期 内的期望接收帧数;  Receiving a real-time transmission protocol frame in a detection period, obtaining a sequence number of the first real-time transmission protocol frame received, a sequence number of the last real-time transmission protocol frame, and a total number of received packets; And the sequence number of the last real-time transmission protocol frame, and calculating the expected number of received frames in the detection period;
根据所述期望接收帧数和所述总的收包数计算所述检测周期内的丟帧比 例, 若接收到的实时传输协议帧的同步源标志保持不变, 且接收到的任意相邻 的两个实时传输协议帧的序列号跳变值小于或者等于跳变门限值, 且所述期望 接收帧数大于或者等于有效帧门限, 所述丟帧比例大于或者等于第一单通检测 门限, 则所述检测周期内 IP单通。  Calculating a frame loss ratio in the detection period according to the expected number of received frames and the total number of received packets, if the synchronization source flag of the received real-time transmission protocol frame remains unchanged, and any adjacent ones received are received The sequence number hopping value of the two real-time transmission protocol frames is less than or equal to the hop threshold, and the expected number of received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first single-pass detection threshold. Then, the IP single pass in the detection period.
2、 根据权利要求 1所述的方法, 其特征在于, 若接收到的实时传输协议帧 的同步源标志改变, 或者接收到的任意相邻的两个实时传输协议帧的序列号跳 变值大于所述跳变门限值, 或者所述期望接收帧数小于所述有效帧门限, 或者 所述丟帧比例小于所述第一单通检测门限 则结束所述检测周期的 IP单通检测。  2. The method according to claim 1, wherein if the synchronization source flag of the received real-time transmission protocol frame is changed, or the received sequence number of any two adjacent real-time transmission protocol frames is greater than The hop threshold, or the number of expected received frames is less than the effective frame threshold, or the frame loss ratio is less than the first single-pass detection threshold to end the IP single-pass detection of the detection period.
3、 根据权利要求 1所述的方法, 其特征在于, 所述检测 IP单通的方法还包 括第二检测方法, 若所述第一、 第二检测方法中的任何一个的检测结果为 IP单 通, 则所述检测 IP单通的方法的检测结果为 IP单通, 所述第二检测方法包括: 若接收到相邻的第一、 第二有效的实时传输控制协议的发送报告, 则获取 所述第一有效的发送 4艮告中的累积发包数;  The method according to claim 1, wherein the method for detecting an IP single-pass further comprises a second detecting method, if the detection result of any one of the first and second detecting methods is an IP single The detection result of the method for detecting an IP single-pass is an IP single-pass, and the second detection method includes: acquiring, if receiving, a report of the transmission of the adjacent first and second valid real-time transmission control protocols, acquiring The number of accumulated packets in the first valid transmission 4 report;
获取所述第二有效的发送报告中的累积发包数;  Obtaining the cumulative number of issued packets in the second valid transmission report;
获取所述第一、 第二有效的发送报告的时间间隔内的总收包数;  Obtaining the total number of receivables in the time interval of the first and second valid transmission reports;
根据所述第一、 第二有效的发送报告中的累积发包数, 计算所述第一、 第 二有效的发送报告的时间间隔内的总发包数;  Calculating, according to the cumulative number of packets sent in the first and second valid transmission reports, the total number of packets sent in the time interval of the first and second valid transmission reports;
根据所述总发包数和总收包数计算丢包比例 , 若接收到的实时传输协议的 报告的同步源标志保持不变, 所述丟包比例大于或者等于第二单通检测门限, 且所述总发包数大于或者等于有效发包数门限, 则所述时间间隔内 IP单通。  Calculating a packet loss ratio according to the total number of packets sent and the total number of packets received, if the synchronization source flag of the received real-time transmission protocol remains unchanged, the packet loss ratio is greater than or equal to the second single-pass detection threshold, and If the total number of packets sent is greater than or equal to the threshold of the number of valid packets, the IP address is within the interval.
4、 根据权利要求 3所述的方法, 其特征在于, 所述第一单通检测门限等于 所述第二单通检测门限。  The method according to claim 3, wherein the first single pass detection threshold is equal to the second single pass detection threshold.
5、 根据权利要求 3所述的方法, 其特征在于, 所述第二检测方法中, 若接 收到的实时传输协议的报告的同步源标志改变, 或者所述丟包比例小于所述第 二单通检测门限, 或者所述总发包数小于所述有效发包数门限, 则结束所述时 间间隔内的 IP单通检测。 The method according to claim 3, wherein in the second detecting method, if If the synchronization source flag of the received real-time transmission protocol is changed, or the packet loss ratio is smaller than the second single-pass detection threshold, or the total number of packets sent is less than the effective number of packets, the time interval is ended. IP single pass detection inside.
6、 一种检测 IP单通的方法, 其特征在于, 包括:  6. A method for detecting an IP single pass, comprising:
获取接收到的第一有效的发送报告中的累积发包数, 所述第一有效的发送 报告为实时传输控制协议的发送报告;  Acquiring the number of accumulated delivery packets in the received first valid transmission report, where the first valid transmission report is a transmission report of the real-time transmission control protocol;
获取接收到的第二有效的发送报告中的累积发包数, 所述第二有效的发送 报告为实时传输控制协议的发送报告且与所述第一有效的发送报告相邻;  Obtaining a cumulative number of sent packets in the received second valid transmission report, where the second valid transmission report is a transmission report of the real-time transmission control protocol and adjacent to the first valid transmission report;
获取所述第一、 第二有效的发送报告的时间间隔内的总收包数;  Obtaining the total number of receivables in the time interval of the first and second valid transmission reports;
根据所述第一、 第二有效的发送报告中的累积发包数, 计算所述第一、 第 二有效的发送报告的时间间隔内的总发包数;  Calculating, according to the cumulative number of packets sent in the first and second valid transmission reports, the total number of packets sent in the time interval of the first and second valid transmission reports;
根据所述总发包数和总收包数计算丟包比例, 若接收到的实时传输协议的 报告的同步源标志保持不变, 所述丢包比例大于或者等于单通检测门限, 且所 述总发包数大于或者等于有效发包数门限, 则所述时间间隔内单通。  Calculating a packet loss ratio according to the total number of packets sent and the total number of packets received, if the synchronization source flag of the received real-time transmission protocol remains unchanged, the packet loss ratio is greater than or equal to a single-pass detection threshold, and the total If the number of packets sent is greater than or equal to the threshold of the number of valid packets, the channel is single-passed.
7、 根据权利要求 6所述的方法, 其特征在于, 若接收到的实时传输协议帧 的同步源标志改变, 或者所述丟包比例小于所述单通检测门限, 或者所述总发 包数小于所述有效发包数门限, 则结束所述时间间隔内的 IP单通检测。  The method according to claim 6, wherein if the synchronization source flag of the received real-time transmission protocol frame is changed, or the packet loss ratio is smaller than the single-pass detection threshold, or the total number of packets sent is smaller than The effective number of packets is sent, and the IP single-pass detection in the time interval is ended.
8、 一种 IP单通的检测装置, 其特征在于, 包括第一检测装置, 所述第一检 测装置包括:  8. A device for detecting an IP single pass, comprising: a first detecting device, wherein the first detecting device comprises:
第一接收模块, 用于接收一个检测周期内的实时传输协议帧;  a first receiving module, configured to receive a real-time transmission protocol frame within a detection period;
第一提取模块, 用于提取所述第一接收模块接收到的第一个实时传输协议 帧的序列号、 最后一个实时传输协议帧的序列号以及所述检测周期内的总收包 数;  a first extraction module, configured to extract a sequence number of a first real-time transport protocol frame received by the first receiving module, a sequence number of a last real-time transport protocol frame, and a total number of packets in the detection period;
第一计算模块, 用于根据所述第一个和最后一个实时传输协议帧的序列号 计算所述检测周期内的期望接收帧数, 还用于根据所述期望接收帧数和所述总 的收包数计算所述检测周期内的丟帧比例;  a first calculating module, configured to calculate, according to a sequence number of the first and last real-time transmission protocol frames, a desired number of received frames in the detection period, and further configured to: according to the expected number of received frames and the total The number of received packets calculates the frame loss ratio in the detection period;
若所述第一接收模块接收到的实时传输协议帧的同步源标志保持不变, 且 接收到的任意相邻的两个实时传输协议帧的序列号跳变值小于或者等于跳变门 限值, 且所述期望接收帧数大于或者等于有效帧门限, 所述丢帧比例大于或者 等于第一单通检测门限, 则所述第一检测装置确定所述检测周期内 IP单通。  If the synchronization source flag of the real-time transmission protocol frame received by the first receiving module remains unchanged, and the received sequence number hop value of any two adjacent real-time transmission protocol frames is less than or equal to the hopping threshold value And the number of expected received frames is greater than or equal to the effective frame threshold, and the frame loss ratio is greater than or equal to the first single pass detection threshold, and the first detecting device determines the IP single pass in the detecting period.
9、 根据权利要求 8所述的检测装置, 其特征在于, 所述第一检测装置还包 括第一判断模块, 用于判断所述第一接收模块接收到的实时传输协议帧的同步 源标志是否保持不变, 用于判断接收到的任意相邻的两个实时传输协议帧的序 列号之间的跳变值是否小于或者等于跳变门限值, 用于判断所述期望接收帧数 是否大于或者等于有效帧门限, 用于判断所述丢帧比例是否大于或者等于所述 第一单通检测门限。 9. The detecting device according to claim 8, wherein the first detecting device further comprises The first judging module is configured to determine whether the synchronization source flag of the real-time transport protocol frame received by the first receiving module remains unchanged, and is used to determine the sequence number of any two adjacent real-time transport protocol frames received. Whether the hop value is less than or equal to the hop threshold, and is used to determine whether the expected number of received frames is greater than or equal to a valid frame threshold, and is used to determine whether the frame loss ratio is greater than or equal to the first Pass detection threshold.
10、 根据权利要求 8所述的检测装置, 其特征在于, 所述 IP单通的检测装 置还包括第二检测装置, 若所述第一、 第二检测装置中的任何一个的检测结果 为 IP单通, 则所述 IP单通的检测装置的检测结果为 IP单通, 所述第二检测装 置包括:  The detecting device according to claim 8, wherein the detecting device of the IP single pass further comprises a second detecting device, if the detection result of any one of the first and second detecting devices is IP The detection result of the IP single-pass detection device is an IP single-pass, and the second detection device includes:
第二接收模块, 用于接收第一有效的实时传输控制协议的发送报告以及与 所述第一有效的发送 4艮告相邻的第二有效的实时传输控制协议的发送报告; 第二提取模块, 用于提取所述第一、 第二有效的发送报告中的累积发包数 以及所述第一、 第二有效的发送报告的时间间隔内的总收包数;  a second receiving module, configured to receive a transmission report of the first valid real-time transmission control protocol and a transmission report of a second valid real-time transmission control protocol adjacent to the first valid transmission message; the second extraction module And a method for extracting the cumulative number of packets sent in the first and second valid transmission reports and the total number of packets in the time interval of the first and second valid transmission reports;
第二计算模块, 用于根据所述第一、 第二有效的发送报告中的累积发包数 计算所述第一、 第二有效的发送报告的时间间隔内的总发包数, 还用于根据所 述总发包数和总收包数计算丟包比例;  a second calculating module, configured to calculate, according to the accumulated number of packets sent in the first and second valid sending reports, a total number of packets sent in a time interval of the first and second valid sending reports, and Calculate the proportion of lost packets by the total number of packets sent and the total number of packets received;
若所述第二接收模块接收到的实时传输协议的报告的同步源标志保持不 变, 所述总发包数大于或者等于有效发包数门限, 且所述丟包比例大于或者等 于第二单通检测门限, 则所述第二检测装置确定所述时间间隔内 IP单通。  If the synchronization source identifier of the report of the real-time transmission protocol received by the second receiving module remains unchanged, the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and the packet loss ratio is greater than or equal to the second single-pass detection. The threshold, the second detecting means determines the IP single pass in the time interval.
11、 根据权利要求 10所述的检测装置, 其特征在于, 所述第一单通检测门 限等于所述第二单通检测门限。  The detecting device according to claim 10, wherein the first single pass detection threshold is equal to the second single pass detection threshold.
12、 根据权利要求 10所述的检测装置, 其特征在于, 所述第二检测装置还 包括第二判断模块, 用于判断所述第二接收模块接收到的实时传输协议的报告 的同步源标志是否保持不变, 用于判断所述总发包数是否大于或者等于所述有 效发包数门限, 用于判断所述丟包比例是否大于或者等于所述第二单通检测门 限。  The detecting device according to claim 10, wherein the second detecting device further comprises a second determining module, configured to determine a synchronization source flag of the report of the real-time transport protocol received by the second receiving module Whether the value of the total number of packets sent is greater than or equal to the threshold of the number of valid packets, and is used to determine whether the packet loss ratio is greater than or equal to the second single-pass detection threshold.
13、 一种 IP单通的检测装置, 其特征在于, 包括:  13. An apparatus for detecting an IP single pass, comprising:
接收模块, 用于接收第一有效的实时传输控制协议的发送报告以及与所述 第一有效的发送 告相邻的第二有效的实时传输控制协议的发送艮告;  a receiving module, configured to receive a sending report of the first valid real-time transmission control protocol and a sending report of a second valid real-time transmission control protocol adjacent to the first valid sending message;
提取模块, 用于提取所述第一、 第二有效的发送报告中的累积发包数以及 所述第一、 第二有效的发送报告的时间间隔内的总收包数; 计算模块, 用于根据所述第一、 第二有效的发送报告中的累积发包数计算 所述第一、 第二有效的发送报告的时间间隔内的总发包数, 还用于根据所述总 发包数和总收包数计算丢包比例; An extracting module, configured to extract a cumulative number of outgoing packets in the first and second valid sending reports, and a total number of received packets in a time interval of the first and second valid sending reports; a calculation module, configured to calculate, according to the cumulative number of packets sent in the first and second valid transmission reports, a total number of packets sent in a time interval of the first and second valid transmission reports, and further, according to the total Calculate the packet loss ratio by the number of packets sent and the total number of packets received;
若所述接收模块接收到的实时传输协议的报告的同步源标志保持不变, 所 述丟包比例大于或者等于单通检测门限, 且所述总发包数大于或者等于有效发 包数门限, 则所述检测装置确定所述时间间隔内 IP单通。  If the synchronization source identifier of the report of the real-time transmission protocol received by the receiving module remains unchanged, the packet loss ratio is greater than or equal to the single-pass detection threshold, and the total number of packets sent is greater than or equal to the threshold of the effective number of packets sent, The detecting means determines the IP single pass within the time interval.
14、 根据权利要求 13所述的检测装置, 其特征在于, 还包括第二判断模块, 用于判断所述接收模块接收到的实时传输协议的报告的同步源标志是否保持不 变, 用于判断所述总发包数是否大于或者等于所述有效发包数门限, 用于判断 所述丟包比例是否大于或者等于所述单通检测门限。  The detecting device according to claim 13, further comprising a second determining module, configured to determine whether a synchronization source flag of the report of the real-time transmission protocol received by the receiving module remains unchanged, and is used for determining Whether the total number of packets is greater than or equal to the threshold of the number of valid packets, and is used to determine whether the packet loss ratio is greater than or equal to the single-pass detection threshold.
PCT/CN2012/082610 2011-10-28 2012-10-09 Ip single-pass detection method and ip single-pass detection device WO2013060229A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110333614.8 2011-10-28
CN201110333614.8A CN102333016B (en) 2011-10-28 2011-10-28 Method and device for detecting Internet protocol (IP) single-pass

Publications (1)

Publication Number Publication Date
WO2013060229A1 true WO2013060229A1 (en) 2013-05-02

Family

ID=45484626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/082610 WO2013060229A1 (en) 2011-10-28 2012-10-09 Ip single-pass detection method and ip single-pass detection device

Country Status (2)

Country Link
CN (1) CN102333016B (en)
WO (1) WO2013060229A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333016B (en) * 2011-10-28 2014-02-19 华为技术有限公司 Method and device for detecting Internet protocol (IP) single-pass
CN102572531B (en) * 2012-02-21 2014-08-27 德科仕通信(上海)有限公司 Method and system for delimiting packet loss faults of internet protocol television (IPTV) network
CN104065518A (en) * 2014-07-07 2014-09-24 北京市博汇科技股份有限公司 Determining method and device for network data packet loss position
CN111294249B (en) * 2018-12-06 2021-10-29 中国移动通信集团陕西有限公司 Method and device for determining one-way problem
CN114374656A (en) * 2020-10-14 2022-04-19 上海华为技术有限公司 Data processing method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050197792A1 (en) * 2004-03-03 2005-09-08 Michael Haeuptle Sliding window for alert generation
CN101056217A (en) * 2006-04-14 2007-10-17 华为技术有限公司 A network performance measurement method and system
CN101626346A (en) * 2009-08-03 2010-01-13 中兴通讯股份有限公司 Method and device for restoring self-adaptive clock
CN101656747A (en) * 2009-09-25 2010-02-24 深圳创维数字技术股份有限公司 Method and system for transmitting streaming media data
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss
CN102333016A (en) * 2011-10-28 2012-01-25 华为技术有限公司 Method and device for detecting Internet protocol (IP) single-pass

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050197792A1 (en) * 2004-03-03 2005-09-08 Michael Haeuptle Sliding window for alert generation
CN101056217A (en) * 2006-04-14 2007-10-17 华为技术有限公司 A network performance measurement method and system
CN101626346A (en) * 2009-08-03 2010-01-13 中兴通讯股份有限公司 Method and device for restoring self-adaptive clock
CN101656747A (en) * 2009-09-25 2010-02-24 深圳创维数字技术股份有限公司 Method and system for transmitting streaming media data
CN102215144A (en) * 2011-05-17 2011-10-12 中兴通讯股份有限公司 Measuring method and system of packet loss
CN102333016A (en) * 2011-10-28 2012-01-25 华为技术有限公司 Method and device for detecting Internet protocol (IP) single-pass

Also Published As

Publication number Publication date
CN102333016A (en) 2012-01-25
CN102333016B (en) 2014-02-19

Similar Documents

Publication Publication Date Title
WO2013060229A1 (en) Ip single-pass detection method and ip single-pass detection device
TWI376922B (en) Method and apparatus for time-warping packets at the sender side
EP1805954B1 (en) Terminal having plural playback pointers for jitter buffer
KR101164836B1 (en) System and method to adapt to network congestion
JP2018517326A5 (en)
JP4930588B2 (en) Relay device and relay method
JP2007028644A (en) Method and apparatus for measuring burst bit rate
US20120281589A1 (en) Audio quality measurement apparatus, audio quality measurement method, and program
JP4889787B2 (en) Measuring method, measuring apparatus and computer program
US9729474B2 (en) Proxy schemes for voice-over-LTE calls
US20160135079A1 (en) IP Media Rate Adaptation
US20150029881A1 (en) Controlling a user device
WO2012071851A1 (en) Method and apparatus for adjusting bidirectional forwarding detection transmission interval according to network jitter
KR101056209B1 (en) SIP client device with adaptive codec conversion method and adaptive codec conversion function in handover between heterogeneous networks
EP2941840B1 (en) Selectively patching erasures in circuit-switched calls whose frame erasure rate rises above a threshold by establishing and synchronizing a voip stream
JP2011166418A (en) Communication control method for improving throughput, communication system, and program for the same
EP2337392B1 (en) Time sequence number jumping detecting and processing method and device
KR101563081B1 (en) System for evaluating communication quality of communication apparatus assortatively, control method thereof, and recording medium for recording program for executing the control method
WO2014087764A1 (en) Terminal and communication system
KR100486447B1 (en) METHOD FOR CONTROLLING QoS FOR USER'S MOBILITY SUPPORT IN THE INTERNET MULTIMEDIA COMMUNICATION
Lee et al. Handoff-aware adaptive media streaming in mobile IP networks
JP6287409B2 (en) Communication quality monitoring apparatus, method, system, and program
Tong et al. A Novel Method of Dynamic Rate Adaptation for Streaming Media Server
WO2014083961A1 (en) Packet transfer control device and communications system
WO2007087901A1 (en) Method and apparatus for use in a communications network

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: 12844184

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12844184

Country of ref document: EP

Kind code of ref document: A1