CN108521400B - Codec self-adaptive method for delayed backoff - Google Patents

Codec self-adaptive method for delayed backoff Download PDF

Info

Publication number
CN108521400B
CN108521400B CN201810179254.2A CN201810179254A CN108521400B CN 108521400 B CN108521400 B CN 108521400B CN 201810179254 A CN201810179254 A CN 201810179254A CN 108521400 B CN108521400 B CN 108521400B
Authority
CN
China
Prior art keywords
codec
time
voip
voip device
adaptation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810179254.2A
Other languages
Chinese (zh)
Other versions
CN108521400A (en
Inventor
卢荣富
史玉柱
邓勇军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Yealink Network Technology Co Ltd
Original Assignee
Xiamen Yealink Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Yealink Network Technology Co Ltd filed Critical Xiamen Yealink Network Technology Co Ltd
Priority to CN201810179254.2A priority Critical patent/CN108521400B/en
Publication of CN108521400A publication Critical patent/CN108521400A/en
Application granted granted Critical
Publication of CN108521400B publication Critical patent/CN108521400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer
    • H04M7/0072Speech codec negotiation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a codec self-adapting method of delayed backoff, when detecting codec conflict, a local end VoIP device randomly backs off for a period of time, and the VoIP device at one end with short back-off time is switched with the codec of the VoIP device at the other end, so that the codec is consistent with the codec of the VoIP device at the other end, thereby avoiding ping-pong effect between the two VoIP devices and ensuring normal communication.

Description

Codec self-adaptive method for delayed backoff
Technical Field
The invention relates to the technical field of communication, in particular to a codec self-adaption method for delaying back-off.
Background
Voip (voice over Internet protocol), which is a network telephone. The VoIP device is a bidirectional device, comprises two processes of encoding and decoding, and the encoding and decoding word in the VoIP industry is often written as codec. When establishing a call, the VoIP device implements negotiation of the codec through a signaling protocol such as SIP or H323, so as to ensure that both parties use the same codec. However, the codecs used by the two parties may be inconsistent due to various reasons, or one party suddenly changes the codec during the call, so that single-pass or even silence occurs, and normal use of the device is affected.
Aiming at various problems occurring when codecs of two parties are inconsistent (hereinafter referred to as conflict), a codec self-adaption strategy is provided, namely when the fact that the codec of an opposite terminal is different from the local is detected, the local codec is adjusted to be consistent with the opposite terminal.
Codec adaptation is often turned on for VoIP devices, usually to ensure device adaptation, which may occur when both parties to a call are on codec adaptation. The original codec self-adaptive strategy is that once the device detects a conflict, the codec is switched immediately, so that two sides can repeatedly adapt to the codec of the opposite side to generate a ping-pong effect, and the device can not normally talk.
Disclosure of Invention
The invention aims to provide a codec self-adaptive method for delaying back-off, which can avoid ping-pong effect of VoIP equipment and ensure normal conversation of the VoIP equipment.
In order to achieve the purpose, the invention adopts the technical scheme that:
a codec adaptation method of delayed backoff, the adaptation method comprising the steps of:
step 1, codec conflict detection is carried out;
the local end VoIP equipment receives an RTP packet sent by opposite end VoIP equipment, detects a ptype field in the RTP packet, judges whether the ptype field is consistent with the ptype field in a PRT packet currently sent by the local end VoIP equipment, and generates codec conflict with the opposite end VoIP equipment when the ptype field is inconsistent;
step 2, carrying out delayed backoff;
when detecting the codec conflict, the local terminal VoIP device retreats for a period of time, the time is the retreat time, waits for the opposite terminal VoIP device to carry out codec self-adaptation, and adjusts the coding mode of the opposite terminal VoIP device to enable the coding mode of the opposite terminal VoIP device to be consistent with the coding of the local terminal VoIP device; if the opposite end VoIP device does not adapt after the back-off time is exceeded, the local end VOIP device carries out codec adaptation.
The back-off time is a system setting time.
The back-off time is D = m × ptime, wherein ptime is RTP packet sending interval, and m is 0-2n1, n is the adaptation times of the local end VoIP device in one call.
When detecting the codec conflict, the invention randomly backs off one end of time by the local end VoIP equipment, and enables the party with short back-off time to execute the self-adapting process, thereby ensuring the codec of the VoIP equipment of both parties to be consistent, avoiding the ping-pong effect between the two VoIP equipment and ensuring the normal communication.
In addition, the invention sets the back-off time to be a random value, namely D = m × ptime, wherein the value range of m can exponentially rise along with the increase of the adaptation times of the VoIP equipment, so that the back-off time can be rapidly staggered between the two parties, and the adaptability of the two parties is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of the present invention;
fig. 2 is a schematic diagram of a second embodiment of the present invention.
Detailed Description
As shown in fig. 1, the present invention discloses a codec adaptive method for delayed backoff, which comprises the following steps:
step 1, codec conflict detection is carried out;
the communication of the VoIP equipment conforms to the RFC3550 specification, multimedia data is transmitted through an RTP protocol, and ptype fields of RTP headers have mapping relation with different codecs, so that the communication is realized by detecting the ptype fields of RTP packets at an opposite end only when the packets are received, and judging whether the packets are consistent with the packets currently sent or not, if the packets are inconsistent, the opposite end changes the codec, and thus, the codec conflict detection is realized.
Step 2, carrying out delayed backoff;
when collision is detected, the codec is not switched immediately, but is backed off for a period of time, so that if the opposite end supports codec adaptation, the opposite end can actively adapt. If the opposite terminal does not support the self-adaptation, the self-adaptation is carried out by the local terminal equipment after the back-off time is reached, so that the two sides keep the unified codec.
DUTs and M in fig. 1 refer to VoIP devices used in development, and the DUTs and M are only differences in roles, that is, they respectively represent a home VoIP phone and an opposite VoIP phone; PCMU and PCMA are encoded RTP streams produced by codec. Whereas the DUTs, M, PCMU and PCMA in fig. 2 have the same meaning as fig. 1.
The period of time is the back-off time, which is the time set by the system. When the back-off times are not consistent, the problem of ping-pong effect generated when the VoIP devices conflict can be solved by adopting the self-adaptive method, but if the back-off times of the two devices are completely consistent (if the same device is used), the effect is the same as that when the back-off time is not adopted.
Therefore, as shown in fig. 2, the present invention proposes a random-delay dynamic avoidance strategy based on the above-mentioned embodiment, that is, the back-off time is random, and the random value range is expanded with the increase of the adaptation times, so that the back-off times of both sides can be staggered as much as possible, and a more suitable adaptation speed can be provided.
If the adaptation frequency of the VoIP equipment in one-way call is n, the adaptation frequency is 0-2nAnd 1, selecting a random number m, so that the back-off time is D = m × ptime, and ptime is the RTP packet sending interval defined in RFC 3550.
Therefore, the method can adapt immediately when the conflict is detected for the first time, and can have higher adaptation speed when the codec adaptation is not started at the opposite end. And along with the increase of the adaptation times, the range of the random value rises exponentially, so that the backoff time can be quickly staggered between the two parties.
The above description is only exemplary of the present invention and is not intended to limit the technical scope of the present invention, so that any minor modifications, equivalent changes and modifications made to the above exemplary embodiments according to the technical spirit of the present invention are within the technical scope of the present invention.

Claims (3)

1. A codec adaptive method of delayed backoff is characterized in that: the adaptive method comprises the following steps:
step 1, codec conflict detection is carried out;
the local end VoIP equipment receives an RTP packet sent by opposite end VoIP equipment, detects a ptype field in the RTP packet, judges whether the ptype field is consistent with the ptype field in the RTP packet currently sent by the local end VoIP equipment, and generates codec conflict with the opposite end VoIP equipment when the ptype field is inconsistent;
step 2, carrying out delayed backoff;
when detecting the codec conflict, the local terminal VoIP device retreats for a period of time, the time is the retreat time, waits for the opposite terminal VoIP device to carry out codec self-adaptation, and adjusts the coding mode of the opposite terminal VoIP device to enable the coding mode of the opposite terminal VoIP device to be consistent with the coding of the local terminal VoIP device; if the opposite end VoIP device does not adapt after the back-off time is exceeded, the local end VOIP device carries out codec adaptation.
2. The codec adaptation method for delayed backoff according to claim 1, wherein: the back-off time is a system setting time.
3. The codec adaptation method for delayed backoff according to claim 1, wherein: the back-off time is D = m × ptime, wherein ptime is RTP packet sending interval, and m is 0-2n1, n is the adaptation times of the local end VoIP device in one call.
CN201810179254.2A 2018-03-05 2018-03-05 Codec self-adaptive method for delayed backoff Active CN108521400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810179254.2A CN108521400B (en) 2018-03-05 2018-03-05 Codec self-adaptive method for delayed backoff

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810179254.2A CN108521400B (en) 2018-03-05 2018-03-05 Codec self-adaptive method for delayed backoff

Publications (2)

Publication Number Publication Date
CN108521400A CN108521400A (en) 2018-09-11
CN108521400B true CN108521400B (en) 2020-09-22

Family

ID=63433539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810179254.2A Active CN108521400B (en) 2018-03-05 2018-03-05 Codec self-adaptive method for delayed backoff

Country Status (1)

Country Link
CN (1) CN108521400B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010117326A1 (en) * 2009-04-07 2010-10-14 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for session negotiation
CN102739605A (en) * 2011-03-31 2012-10-17 华为技术有限公司 Method and device for improving speech communication
CN107404363A (en) * 2016-05-18 2017-11-28 中国移动通信有限公司研究院 A kind of method of adjustment, system, terminal and the network side equipment of voice code check

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8593999B2 (en) * 2008-03-06 2013-11-26 Shoretel, Inc. Bandwidth management and codec negotiation based on WAN topology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010117326A1 (en) * 2009-04-07 2010-10-14 Telefonaktiebolaget Lm Ericsson (Publ) Method and arrangement for session negotiation
CN102739605A (en) * 2011-03-31 2012-10-17 华为技术有限公司 Method and device for improving speech communication
CN107404363A (en) * 2016-05-18 2017-11-28 中国移动通信有限公司研究院 A kind of method of adjustment, system, terminal and the network side equipment of voice code check

Also Published As

Publication number Publication date
CN108521400A (en) 2018-09-11

Similar Documents

Publication Publication Date Title
US20080013447A1 (en) Method and Apparatus for Survivable Failover in Communication System
US20120275337A1 (en) System for transmitting high quality speech signals on a voice over internet protocol network
CA2554416A1 (en) Congestion handling in a packet communication system
JPH11331222A (en) Device and method for transmitting voice having adaptive packet length
JP4273136B2 (en) VoIP terminal call control method and apparatus in wireless LAN system
WO2017030635A1 (en) Sender side video telephony downgrade
US20060146805A1 (en) Systems and methods of providing voice communications over packet networks
AU2005234699B2 (en) Changing codec information to provide voice over internet protocol (VoIP) terminal with colouring service
US8355334B2 (en) Speech codec selection for improved voice quality in a packet based network
US20070058537A1 (en) Handling of early media ii
CN108521400B (en) Codec self-adaptive method for delayed backoff
US20090245235A1 (en) Relay apparatus and memory product
US20120315958A1 (en) Mobile fast alerting
US9306797B2 (en) Forking interworking
TWI378684B (en) Communication method and system of internet
US10530400B2 (en) Methods, network nodes, computer programs and computer program products for managing processing of an audio stream
CN102647402B (en) A kind of machinery of consultation of Multimedia session, relevant device and system
CN108668098B (en) Multi-party call establishing method and device and multi-way terminal
CN105657374A (en) Self-adaptive multi-network link real-time video transmission control system
US20230370493A1 (en) Apparatus and method to mitigate malicious calls in a wireless network
KR20170043634A (en) Data packet transmission processing method and device
CN107404363B (en) Method, system, terminal and network side equipment for adjusting voice code rate
EP1368933A1 (en) Packet switched network voice communication
CN111988645A (en) Audio and video transmission bandwidth self-adaption method
US20110122868A1 (en) Communication method and gateway device based on sip phone

Legal Events

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