The subject matter described herein relates to selecting a codec pair based on network conditions. More specifically, the subject matter relates to methods, systems, and computer readable media for selecting a codec pair based on network conditions.
Digital communications networks employ various codecs when encoding a signal for transmission. The particular codec utilized is often a function of the nature of the underlying information, the encoding device's capabilities, and the required level of quality of service (QoS). A typical digital mobile telephone handset, for example, will encode a signal using a codec that is optimized for telephone conversations supported by the handset and capable of providing a sufficient level of QoS. Ideally, the codec utilized is also compatible with the network hardware required to complete the call. Often, however, the codec utilized by the encoding endpoint is not supported by the destination endpoint and/or network hardware that must be traversed en route to the destination endpoint. For example, a call may be placed from an endpoint in one provider's network to an endpoint in a different provider's network. Each of the providers may utilize different codecs for encoding calls. Such a scenario necessitates the use of a transcoder to decode the signal from the originating endpoint's selected codec and then re-encode the signal using the destination endpoint's selected codec.
Codecs are designed with specific performance requirements in mind and their performance may vary dramatically based on the difference between the conditions in which they were designed to operate and actual conditions. For example, while one codec may provide excellent QoS under normal network load, its QoS may decline to unacceptable levels under demanding network conditions. Similarly, another codec may provide relatively acceptable levels of QoS under demanding network conditions, but may fail to provide an excellent level of QoS, even under ideal network conditions. A provider deciding which of the two codecs to employ may have to prioritize reliable service and, in turn, place a relatively low ceiling on the level of QoS that it is able to offer its users.
Accordingly, a need exists for methods, systems, and computer readable media for selecting a codec pair based on network conditions.
According to one aspect, the subject matter described herein includes a method for selecting a codec pair based on network conditions. The method includes steps occurring at a network node including a first communication interface and a second communication interface. The steps include obtaining a first performance metric indicating a condition of a first network connected to the network node via the first communication interface, the first network including a first endpoint. The steps also include obtaining a second performance metric indicating a condition of a second network connected to the network node via the second communication interface, the second network including a second endpoint. The steps further include generating or updating a codec selection model based on the obtained first performance metric and the obtained second performance metric. The steps further include selecting a first codec from a plurality of codecs compatible with the first endpoint based on the codec selection model. The steps further include selecting a second codec from a plurality of codecs compatible with the second endpoint based on the codec selection model. The steps further include utilizing the first selected codec and the second selected codec to communicate a portion of a communication session between the first endpoint and the second endpoint.
According to another aspect, the subject matter described herein includes a system for selecting a codec pair based on network conditions. The system includes a first communication interface configured to interface with a first network including a first endpoint. The system also includes a second communication interface configured to interface with a second network including a second endpoint. The system further includes a network performance module configured to obtain a first performance metric indicating a condition of the first network and a second performance metric indicating a condition of the second network. The system further includes a codec selection module configured to generate or update a codec selection model based on the obtained first performance metric and the obtained second performance metric, select a first codec from a plurality of codecs compatible with the first endpoint based on the codec selection model, and select a second codec from a plurality of codecs compatible with the second endpoint based on the codec selection model. The system further includes a transcoder configured to utilize the first selected codec and the second selected codec to communicate a portion of a communication session between the first endpoint and the second endpoint.
As used herein, the term “node” refers to a physical computing platform including one or more processors and memory.
As used herein, the terms “function” or “module” refer to software in combination with hardware (such as a processor) and/or firmware for implementing features described herein.
The subject matter described herein can be implemented in software in combination with hardware and/or firmware. For example, the subject matter described herein may be implemented in software executed by one or more processors. In one exemplary implementation, the subject matter described herein may be implemented using a non-transitory computer readable medium having stored thereon computer executable instructions that when executed by the processor of a computer control the computer to perform steps. Exemplary computer readable media suitable for implementing the subject matter described herein include non-transitory computer readable media, such as disk memory devices, chip memory devices, programmable logic devices, and application specific integrated circuits. In addition, a computer readable medium that implements the subject matter described herein may be located on a single device or computing platform or may be distributed across multiple devices or computing platforms.
The subject matter described herein will now be explained with reference to the accompanying drawings of which:
Methods, systems, and computer readable media for selecting a codec pair based on network conditions are provided.
Transcoder node 116 may also include network performance module 204. Network performance module 204 may be configured to obtain one or more performance metric(s) indicating a condition of one or more networks. For example, network performance module 204 may be configured to obtain a performance metric indicating a condition of access network 106. Similarly, network performance module 204 may be configured to obtain a performance metric indicating a condition of access network 108. Network performance module 204 may be configured to obtain one or more performance metrics. For example, network performance module 204 may be configured to obtain one or more of a measure of packet loss, a measure of end-to-end packet delay, and a measure of jitter. Network performance module 204 may be operative to communicate with communication interface 200 and/or communication interface 202 for obtaining one or more performance metrics. For example, network performance module 204 and/or one or both of communication interface(s) 200 and 202 may include a network probe for obtaining one or more performance metrics. In some embodiments, network performance module 204 may have access to one or more performance metrics from a probe external to transcoder node 116. For example, network performance module 204 may have access to one or more performance metrics associated with access network 106 and/or access network 108 from a probe external to transcoder node 116 via communication interface 200 and/or communication interface 202. In some embodiments, network performance module 204 may access one or more performance metrics using a standardized protocol, such as real-time transport control protocol (RTCP) or RTCP-extended reports (RTCP-XR). RTCP-XR is an extended version of RTCP which may provide access to more extensive information regarding network conditions.
In accordance with embodiments of the subject matter described herein, transcoder node 116 may also include codec selection module 206. Codec selection module 206 may be configured to determine one or more codec(s) that are compatible with one or more endpoint(s) that utilize transcoder node 116. For example, codec selection module 206 may be configured to determine one or more codec(s) compatible with one or more endpoint(s) in access network 106 (e.g., one or more codec(s) compatible with UE 102) and/or one or more codec(s) compatible with one or more endpoint(s) in access network 108 (e.g., one or more codec(s) compatible with UE 104). In some embodiments, codec selection module 206 may be configured to determine one or more codec(s) compatible with a given endpoint based on a session description protocol (SDP) offer message. In some embodiments, codec selection module 206 may be configured to determine one or more codec(s) compatible with a given endpoint based on pre-configured compatibility information associated with the endpoint.
As described above, codecs are designed with specific performance requirements in mind and their performance may vary dramatically based on the difference between the conditions in which they were designed to operate and actual conditions. Thus, for example, while one codec may perform well under a given set of network conditions, it may fail to provide sufficient QoS under more demanding network conditions. Similarly, while another codec may perform adequately under a relatively wide range of network conditions, it may not perform as well under optimal network conditions. In order to ensure service under most conditions, providers may be forced to use the codec that performs adequately under a wide range of conditions, a decision which may unnecessarily limit QoS under optimal conditions.
In accordance with embodiments of the subject matter described herein, codec selection module 206 may be configured to generate or update a codec selection model based on one or more network condition(s). For example, codec selection module 206 may be configured to generate and/or update a codec selection model based on one or more condition(s) associated with access network 106 and/or one or more condition(s) associated with access network 108. Codec selection module 206 may be operatively associated with network performance module 204 for obtaining information related to such network conditions. For example, codec selection module 206 may obtain from network performance module 204 a performance metric (e.g., a measure of packet loss, a measure of end-to-end packet delay, and/or a measure of jitter) indicating a condition of access network 106. Similarly, codec selection module 206 may obtain from network performance module 204 a performance metric (e.g., a measure of packet loss, a measure of end-to-end packet delay, and/or a measure of jitter) indicating a condition of access network 108. As will be described in greater detail below, codec selection module 206 may utilize these one or more performance metric(s) to generate or update a codec selection model. Having generated or updated the codec selection model to reflect substantially current network conditions (e.g., conditions of access network 106 and/or access network 108), codec selection module 206 may select a first codec from among one or more codec(s) determined to be compatible with an endpoint in access network 106 (e.g., UE 102) and a second codec from among one or more codec(s) determined to be compatible with an endpoint in access network 108 (e.g., UE 104) based on the generated or updated codec selection model. Accordingly, a codec may be selected which is optimal for use under substantially current network conditions in access network 106 and/or access network 108. Transcoder node 116 may also include transcoder 208. Transcoder 208 may be operative to communicate with codec selection module 206 and thus may be informed of the selected codecs by codec selection module 206. Transcoder 208 may be configured to utilize the selected codecs to communicate a portion of a communication session between the two endpoints (e.g., a communication session between UE 102 and UE 104). In some embodiments, the selected codecs may be the same and transcoder 208 may communicate the portion of the communication session between the two endpoints by supporting tandem free operation (TFO). In some embodiments, the selected codecs may be different and transcoder 208 may communicate the portion of the communication session between the two endpoints by transcoding the portion of the communication session from the first selected codec (e.g., the selected codec compatible with UE 102) to the second selected codec (e.g., the selected codec compatible with UE 104).
As indicated above, in accordance with embodiments of the subject matter described herein, codec selection module 206 may be configured to generate and/or update a codec selection model based on one or more network condition(s), for example, one or more network condition(s) associated with access network 106 and/or one or more network condition(s) associated with access network 108. In some embodiments, the codec selection model may be based on the E-model (ITU-T G.107 04/2009), a well-proven computation model that predicts voice quality using, inter alia, one or more network characteristic(s) such as delay, jitter, and packet loss. The codec selection model may be generated for a given communication session by using substantially current network conditions to compute an R-factor for each possible combination of codecs compatible with each endpoint of the communication session. For example, an R-factor can be computed for each combination of codecs that are determined to be compatible with UE 102 and UE 104 based on one or more performance metric(s) associated with access network 106 and/or one or more performance metric(s) associated with access network 108.
An R-factor is a scalar quality rating value which varies directly with overall conversation quality and may be obtained using the following formula:
R=Ro−Is−Id−Ie-eff+A
Where:
Ie-eff corresponds to an effective equipment impairment factor that reflects the effect of packet loss. Ie-eff may be calculated using the following formula:
Where:
Id represents the impairment delay caused by too-long absolute delay Ta (assuming perfect echo cancelling). In some embodiments, Id may be estimated using the method described by Rix et al., “Perceptual Evaluation of Speech Quality (PESQ): The New ITU Standard for End-to-End Speech Quality Assessment Part I—Time-Delay Compensation”; JAES Volume 50, Issue 10, pp. 755-764 (October 2002). In some embodiments, Id may be estimated using the following formulas:
For Ta≦100 ms:
For Ta>100 ms:
Ta may take the end-to-end delay into consideration, but also may include various delays that may be incurred at the network component if transcoding is required (i.e., if the codecs are different). Among the most important forms of delay that may be accounted for are:
An R-factor may be calculated for every codec combination that a network component may offer its endpoints in a given communication session. For example, an R-factor may be calculated for every codec combination that transcoder node 116 may offer to UE 102 and/or UE 104. An R-factor may be computed by calculating both Ie and Id for each codec using substantially current network conditions. For example, an R-factor may be computed for every codec combination transcoder node 116 may offer UE 102 and UE 104 by transcoder node 116's codec selection module 206 calculating both Ie and Id for each codec compatible with UE 102 and/or UE 104 using substantially current network conditions associated with access network 106 and/or access network 108. An R-factor for each codec combination Rc may then be computed by entering the calculated Ie and Id for each codec (e.g., Iecodec-a; Idcodec-a; Iecodec-b; and Idcodec-b) into the following formula:
Rc=93.2−Idcodec-a−Iecodec-a−Idcodec-b−Iecodec-b
The following table illustrates the type of results (i.e., R-factors) that might be obtained under near perfect conditions:
As Table 2 illustrates, an R-factor may be calculated for each codec combination. This will result in a total of N*M R-factors, where N is the total number of codecs compatible with the first endpoint (e.g., UE 102) and M is the total number of codecs compatible with the second endpoint (e.g., UE 104). A codec combination may be selected by choosing the combination with the greatest R-factor value.
In some embodiments, the codec selection model may take one or more factor(s) other than voice quality into account. For example, the codec selection model may take bandwidth and/or least cost routing into account. In some embodiments, the codec selection model may assign a weight to each of multiple factors, taking each of the factors into account to the extent of its weight. In such embodiments, the following formula may be utilized:
Where:
For example:
In some embodiments, transcoder node 116 may perform codec selection based on network conditions, as represented by the codec selection model, only once when communication session 300 is setup. In other embodiments, transcoder node 116 may perform codec selection based on network conditions, as represented by the codec selection model, at setup and/or periodically, updating the selected codecs based on potentially changing network conditions. In some embodiments, transcoder node 116 may update the codec selection model and/or select a new codec combination periodically at predefined intervals (e.g., every 30 seconds). In some embodiments, transcoder node 116 may update the codec selection model and/or select a new codec combination based on a hysteresis loop so that a transition will occur only when a different codec combination would increase QoS by a predefined margin (e.g., five percent), thereby reducing potentially constant transitions that might interfere with overall QoS. In some embodiments, codec renegotiation may be performed by ordering the codecs specified in SDP messages by their corresponding R-factor values. In some embodiments, codec negotiation/renegotiation may be performed in accordance with RFC 5939 (September 2010).
It will be understood that various details of the subject matter described herein may be changed without departing from the scope of the subject matter described herein. Furthermore, the foregoing description is for the purpose of illustration only, and not for the purpose of limitation, as the subject matter described herein is defined by the claims as set forth hereinafter.
| Number | Name | Date | Kind |
|---|---|---|---|
| 6961315 | Amster et al. | Nov 2005 | B1 |
| 7768998 | Everson et al. | Aug 2010 | B1 |
| 20020184131 | Gatto | Dec 2002 | A1 |
| 20030091034 | Koistinen | May 2003 | A1 |
| 20070165644 | Rossler | Jul 2007 | A1 |
| 20070274236 | Araki | Nov 2007 | A1 |
| 20080192760 | Baeder et al. | Aug 2008 | A1 |
| 20090154658 | Kasper et al. | Jun 2009 | A1 |
| 20090238085 | Khanduri | Sep 2009 | A1 |
| 20100070286 | Kampmann et al. | Mar 2010 | A1 |
| 20100161325 | Hellwig et al. | Jun 2010 | A1 |
| 20100238834 | Awais | Sep 2010 | A9 |
| Number | Date | Country | |
|---|---|---|---|
| 20130156119 A1 | Jun 2013 | US |