CN108521400A - A kind of codec adaptive approach for postponing to keep out of the way - Google Patents
A kind of codec adaptive approach for postponing to keep out of the way Download PDFInfo
- Publication number
- CN108521400A CN108521400A CN201810179254.2A CN201810179254A CN108521400A CN 108521400 A CN108521400 A CN 108521400A CN 201810179254 A CN201810179254 A CN 201810179254A CN 108521400 A CN108521400 A CN 108521400A
- Authority
- CN
- China
- Prior art keywords
- codec
- voip equipment
- way
- time
- local terminal
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M7/00—Arrangements for interconnection between switching centres
- H04M7/006—Networks 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/0072—Speech 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 present invention relates to a kind of codec adaptive approach for postponing to keep out of the way, it is when detecting codec conflicts, local terminal VoIP equipment random back one end times, one end VoIP equipment that wherein back off time is short is allowed to carry out codec switchings, keep it consistent with the codec of other end VoIP equipment, it avoids ping-pong occur between two VoIP equipment, ensures its normal communication.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of codec adaptive approach for postponing to keep out of the way.
Background technology
VoIP(Voice over Internet Protocol), it is a kind of networking telephone.VoIP equipment is bi-directional device,
Including two processes of coding and decoding, codec is often write in one word of VoIP industries encoding and decoding.The meeting when establishing call of VoIP equipment
The negotiation that codec is realized by signaling protocols such as SIP or H323, to ensure the same codec of both sides' use.But due to various
It is inconsistent that reason may result in the codec that both sides use, or one party suddenly change codec during call, to
It is even noiseless to lead to occur single-pass, influences equipment normal use.
It is inconsistent for both sides codec(Hereinafter referred to as conflict)When the variety of problems that occurs, propose the adaptive plans of codec
Slightly, i.e., check opposite end codec with it is local different when, it is consistent with opposite end to adjust local codec.
It is often adaptive for VoIP opening of device codec generally for the adaptability for ensureing equipment, it is possible in this way
It is adaptive that appearance both call sides all open codec.And to be equipment once detect conflict to original codec adaptive strategies, it is just vertical
Switch codec, both sides will be caused to adapt into the codec of opposite end repeatedly in this way, generates ping-pong, also result in equipment
It can not normal talking.
Invention content
The purpose of the present invention is to provide a kind of codec adaptive approach for postponing to keep out of the way, it is avoided that VoIP equipment is produced
Raw ping-pong, ensures the normal talking of VoIP equipment.
To achieve the above object, the technical solution adopted by the present invention is:
A kind of codec adaptive approach for postponing to keep out of the way, the adaptive approach include the following steps:
Step 1 carries out codec collision detection;
Local terminal VoIP equipment receives the RTP packets that opposite end VoIP equipment is sent, and detects the ptype fields in RTP packets, judges it
It is whether consistent with the ptype fields in the PRT packets that local terminal VoIP equipment is currently transmitted, when inconsistent, local terminal VoIP equipment with
Opposite end VoIP equipment generates codec conflicts;
Step 2 carries out postponing to keep out of the way;
When detecting codec conflicts, local terminal VoIP equipment is kept out of the way a period of time, which is back off time, waits for opposite end
VoIP equipment progress codec is adaptive, adjusts its coding mode, keeps it consistent with the coding of local terminal VoIP equipment;If more than moving back
Opposite end VoIP equipment is not made adaptively after keeping away the time, then has local terminal VOIP equipment to carry out codec adaptive.
The back off time is the default time.
The back off time is D=m*ptime, wherein ptime is that RTP gives out a contract for a project interval, and m is 0 ~ 2nOne between -1 with
Machine number, n are that local terminal VoIP equipment adapts to number in conversing all the way.
The present invention local terminal VoIP equipment random back one end times, keeps back off time short when detecting codec conflicts
One side executes adaptive process and avoids rattling between two VoIP equipment to keep the codec of both sides' VoIP equipment consistent
Effect ensures its normal communication.
In addition, random value, i.e. D=m*ptime is arranged in back off time by the present invention, wherein the value range of m can be with
The adaptation number of VoIP equipment increases and exponentially rises, and so as to quickly allow both sides to be staggered back off time, it is suitable to improve it
Response.
Description of the drawings
Fig. 1 is one schematic diagram of the embodiment of the present invention;
Fig. 2 is two schematic diagram of the embodiment of the present invention.
Specific implementation mode
As shown in Figure 1, present invention is disclosed a kind of codec adaptive approach for postponing to keep out of the way comprising following steps:
Step 1 carries out codec collision detection;
The communication of VoIP equipment follows RFC3550 specifications, and multi-medium data is transmitted by Real-time Transport Protocol, RTP header
Ptype fields have mapping relations from different codec, as long as so detecting its ptype word when receiving opposite end RTP packets
Whether section, see consistent with currently transmitted, if it find that inconsistent, illustrate that opposite end changes codec, thereby realizes
Codec collision detection.
Step 2 carries out postponing to keep out of the way;
Do not switch codec immediately when a collision is detected, but keep out of the way a period of time, in this way if opposite end supports codec adaptive
It answers, can actively be adapted to by opposite end.If opposite end is not supported adaptively, carried out certainly by local device after back off time reaches
It adapts to, such both sides keep unified codec again.
DUT and M in Fig. 1 refer to the VoIP equipment used when exploitation, and DUT and M are the difference of role, i.e., indicate this respectively
Hold VoIP phones and opposite end VoIP phones;PCMU and PCMA is the rtp streaming after coding caused by codec.And DUT in Fig. 2,
M, PCMU and PCMA meanings are identical as Fig. 1.
Above-mentioned a period of time is back off time, is the time of default.When back off time is inconsistent, in use
Stating adaptive approach can solve the problems, such as to generate ping-pong when VoIP device conflicts, if but both sides' back off time complete one
Cause (as use same equipment), effect will with do not take keep out of the way when as.
For this purpose, as shown in Fig. 2, the present invention proposes the dynamic hedging plan of random delay on the basis of the above embodiments
Slightly, i.e., back off time is random, and random value range is expanded with the increase for adapting to number, in this way can be as far as possible
The both sides that are staggered back off time, and provide appropriate speed-adaptive.
If it is n that VoIP equipment adapts to number in conversing all the way, 0 ~ 2nA random number m is chosen between -1,
So back off time is D=m*ptime, and ptime is that the RTP defined in RFC3550 gives out a contract for a project interval.
It can be seen that detecting can adapt to when conflict for the first time immediately, in this way opposite end be not turned on codec it is adaptive when, Neng Gouyou
Faster speed-adaptive.And with the increase for adapting to number, random value range will exponentially rise, thus can quickly allow
Both sides are staggered back off time.
The above is only the embodiment of the present invention, is not intended to limit the scope of the present invention, therefore every
According to the technical essence of the invention to any subtle modifications, equivalent variations and modifications made by above example, this is still fallen within
In the range of inventive technique scheme.
Claims (3)
1. a kind of codec adaptive approach for postponing to keep out of the way, it is characterised in that:The adaptive approach includes the following steps:
Step 1 carries out codec collision detection;
Local terminal VoIP equipment receives the RTP packets that opposite end VoIP equipment is sent, and detects the ptype fields in RTP packets, judges it
It is whether consistent with the ptype fields in the PRT packets that local terminal VoIP equipment is currently transmitted, when inconsistent, local terminal VoIP equipment with
Opposite end VoIP equipment generates codec conflicts;
Step 2 carries out postponing to keep out of the way;
When detecting codec conflicts, local terminal VoIP equipment is kept out of the way a period of time, which is back off time, waits for opposite end
VoIP equipment progress codec is adaptive, adjusts its coding mode, keeps it consistent with the coding of local terminal VoIP equipment;If more than moving back
Opposite end VoIP equipment is not made adaptively after keeping away the time, then has local terminal VOIP equipment to carry out codec adaptive.
2. the codec adaptive approach according to claim 1 for postponing to keep out of the way, it is characterised in that:The back off time is
The default time.
3. the codec adaptive approach according to claim 1 for postponing to keep out of the way, it is characterised in that:The back off time is D
=m*ptime, wherein ptime is that RTP gives out a contract for a project interval, and m is 0 ~ 2nA random number between -1, n are that local terminal VoIP equipment exists
Number is adapted in conversing all the way.
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 true CN108521400A (en) | 2018-09-11 |
CN108521400B 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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090225747A1 (en) * | 2008-03-06 | 2009-09-10 | Shoretel, Inc. | Bandwidth Management and Codec Negotiation Based on WAN Topology |
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 |
-
2018
- 2018-03-05 CN CN201810179254.2A patent/CN108521400B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090225747A1 (en) * | 2008-03-06 | 2009-09-10 | Shoretel, Inc. | Bandwidth Management and Codec Negotiation Based on WAN Topology |
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 |
---|---|
CN108521400B (en) | 2020-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100434054B1 (en) | Polling method of radio link control | |
US20180302515A1 (en) | Seamless codec switching | |
WO2018213510A4 (en) | Voice communication method | |
US20120170591A1 (en) | Advanced and Dynamic Physical Layer Device Capabilities Utilizing a Link Interruption Signal | |
CA2554416A1 (en) | Congestion handling in a packet communication system | |
WO2007041319A3 (en) | Video packet shaping for video telephony | |
CN105430320A (en) | Audio and video media data transmission method based on UDP (User Datagram Protocol) and TCP (Transmission Control Protocol) | |
US20160164942A1 (en) | Decoupled audio and video codecs | |
WO2021170023A1 (en) | Method and device for transmitting wireless data, storage medium, and terminal | |
WO2006073877A2 (en) | Systems and methods of providing voice communications over packet networks | |
WO2023066125A1 (en) | Method and apparatus for reducing power consumption of communication device in sleep state, and device and medium | |
WO2008023302A1 (en) | Discontinuous transmission of speech signals | |
CN105187167A (en) | Voice data communication method and device | |
US8218529B2 (en) | Device for and method of terminating a VoIP call | |
US8676573B2 (en) | Error concealment | |
US8224984B2 (en) | Method for quality analysis during transmission of real-time critical data in packet-oriented network | |
US9306797B2 (en) | Forking interworking | |
CN107770473B (en) | Audio and video data transmission control method and device | |
CN108521400A (en) | A kind of codec adaptive approach for postponing to keep out of the way | |
CN101562500A (en) | Data transmission request method, data transmission method and data transmission device | |
CN105657374A (en) | Self-adaptive multi-network link real-time video transmission control system | |
CN112087416B (en) | Communication method and system of bidirectional hidden channel | |
TWI465075B (en) | Apparatus for processing packets and system for using the same | |
CN107404363A (en) | A kind of method of adjustment, system, terminal and the network side equipment of voice code check | |
CN115038120A (en) | Data transmission method, data transmission device, electronic device, storage medium, and program product |
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 |