Method and system for optimizing forward error correction of multimedia streaming over wireless networks

Abstract
The loss of packets in a communication system can be minimized in an optimal manner by adapting a set of error correction (EC) parameters in response to a calculated probability of packet loss. The calculated probability is obtained from derived algorithms that are applied to a set of communication parameters. Algorithms are derived from Bernoulli-distributed traffic models and constant bit rate (CBR) traffic models of the communication system. A collapsed-state model is used to derive a very efficient algorithm that calculates an approximate probability of packet loss. Alternate applications for the algorithms are also disclosed.
Description
TECHNICAL FIELD

The present invention pertains to optimizing the operation of devices that process streams of information arranged in packets for transmission to receivers, and is directed more particularly to adapting the operation of the devices to minimize packet losses at a receiver. The present invention may be used advantageously in systems that transmit streams of packets carrying multimedia information over wireless networks.


BACKGROUND ART

The delivery of real-time multimedia traffic over wireless networks is expected to be an important application in Third Generation Cellular, WIFI and WIMAX wireless networks. In these applications, multimedia information such as digital data representing images and sounds are organized into packets. Multimedia sources send streams of these packets to processing devices such as wireless access points that transmit the packets over wireless communication channels to end-user receivers. If a processing device is unable to transmit a packet immediately, it temporarily stores the packet in a queue or buffer until it can be transmitted. For example, a processing device may not be able to transmit a packet when the wireless communication channel is being used by another processing device.


The perceived quality of the multimedia information as received by the end user can be adversely affected by a number of factors including packet loss, packet delay and delay jitter. Packet loss includes missing packets, which are not received by the end-user receiver, and corrupted packets, which are received but the information they carry has been corrupted. These packet losses may be caused by: (1) noisy communication channels, (2) simultaneous transmissions or “collisions” with packets sent by multiple transmitters, and (3) overflow of the buffers used in the processing devices to temporarily store packets before they are transmitted. Buffer overflow can occur when a processing device must temporarily store a packet in its buffer but the buffer is already full. The packet losses caused by noisy communication channels and collisions are referred to herein as Type I losses and the packet losses caused by buffer overflow are referred to herein as Type II losses.


A number of techniques have been proposed to reduce the perceived effects of Type I and Type II packet losses. One technique known as Forward Error Correction (FEC) enables a receiver to recover the information carried by missing or corrupted packets provided the conditions that caused the losses are not too frequent and do not last too long. The length and frequency of the error-causing conditions that can be handled by FEC are controlled by two parameters n and k, where a number (n−k) of “FEC packets” are combined with a number k of multimedia packets to form a set of packets with a total number of n multimedia+FEC packets. If a receiver can receive at least k of the n packets without corruption, then any losses due to missing and corrupted packets can be corrected. If fewer than k packets out of the n packets are received without corruption, then the information losses for one or more packets cannot be recovered.


Unfortunately, FEC has a cost. The additional number (n−k) of FEC packets increases the risk of delays due to collisions and increases either the time or the channel bandwidth needed to transmit each set of packets. The values of the FEC parameters (n,k) may be chosen to optimize a tradeoff between competing requirements. A higher ratio
φ=nk

increases the level of error correction that is possible but also increases delays and increases the needed channel bandwidth by a factor of φ.


The FEC parameters (n,k) can be chosen to meet requirements for protection, delay and bandwidth for a specified rate of packet loss. Unfortunately, it may be impossible to meet all requirements simultaneously and a compromise among the various requirements may be necessary. Furthermore, the available channel bandwidth imposes a practical limit on the ratio φ. A very high ratio may impose a bandwidth requirement that either causes the starvation of packets from other data sources or exceeds the available bandwidth of the communication channel. The optimal choice of the FEC parameters should take into account the available bandwidth of the channel as well as the bandwidth required by packets provided by other data sources.


In practice, however, the conditions in a communication system can change rapidly. An optimum choice of FEC parameters that provides the desired level of protection with the least increase in bandwidth requires that the FEC parameter values (n,k) be set adaptively. What is needed is a way to adapt these FEC parameters that can be implemented by a process having low computational complexity. This would allow the FEC system to adapt itself in real time using devices with only modest processing power that can be incorporated into typical network equipment at low cost.


An adaptive FEC system according to the present invention can be implemented more effectively if facilities are available to measure conditions periodically and provide those measurements to the portion of the system that adapts the FEC parameters. The existence of such a measurement facility is assumed throughout the remainder of this disclosure. No particular measurement facility is essential to the present invention in principle. For ease of explanation, the following discussion assumes a facility is available to measure all traffic rates and losses that are needed as input parameters to the communication system models described below. An implementation of the present invention can use these measurements along with other parameters to adapt the FEC parameter values (n, k) to minimize the effects of Type II packet losses.


DISCLOSURE OF INVENTION

It is an object of the present invention to provide for the adaptation of error-correction parameters in a packet communication system to minimize the effects of packet losses using a process that is computationally efficient.


One aspect of the present invention controls the provision of packets in a communication system including a first data source that provides a source signal conveying information arranged in a set of packets comprising a first number of data packets and a second number of error-correction packets; a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, where information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full; and a receiver that receives at least some of the packets in the output signal and applies an error correction process to these received packets to recover corrupted or missing information. The control is achieved by (a) receiving one or more signals conveying parameters representing the buffer size, the first and second numbers, an arrival probability that a packet from the first data source is received by the packet processing device during an interval of time, a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty, and an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time; (b) deriving from the parameters a measure of loss probability that information in a data packet is lost and not recovered by the error correction process, where the measure of the loss probability is derived by a process that accounts for losses caused by the buffer being full and where either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; and (c) adapting the first number or the second number in response to the measure of the loss probability.


Another aspect of the present invention controls the provision of packets in a communication system including a first data source that provides a source signal conveying information arragned in a set of packets; a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, where information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full; and a receiver that receives at least some of the packets in the output signal. The control is achieved by (a) receiving one or more signals conveying parameters representing the buffer size, an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time, and a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty; (b) deriving from the parameters a respective loss probability for each of a plurality of arrival probabilities, where each respective loss probability represents a probability that information in a data packet is lost and is derived by a process that accounts for losses caused by the buffer being full, where each arrival probability represents a probability that a packet from the first data source is received by the packet processing device during an interval of time, and where either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; (c) selecting the arrival probability from which a minimum loss probability in the plurality of loss probabilities is derived; and (d) adapting operation of the first data source such that the packet processing device receives packets in a manner that more closely reflects the selected arrival probability.


The various features of the present invention and its preferred embodiments may be better understood by referring to the following discussion and the accompanying drawings. The contents of the following discussion and the drawings are set forth as examples only and should not be understood to represent limitations upon the scope of the present invention.




BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a schematic illustration of a communication system.



FIGS. 2-4 are schematic illustrations of sets of primary packets arranged in time slots according to a CBR-traffic model.



FIGS. 5-7 are graphical illustrations of steady-state probabilities as a function of the state of buffer occupancy.




MODES FOR CARRYING OUT THE INVENTION
A. Introduction
1. Communication System


FIG. 1 is a schematic illustration of a communication system in which one or more data sources 2, 4 provide source signals that convey information arranged in packets. The information carried in at least some of the packets may be multimedia information, for example. The source signal provided by the data source 2 conveys information arranged in sets of packets referred to as “primary packets” because the servicing of these packets is the subject of the present invention. The sets of primary packets include primary data packets and primary error-correction (EC) packets. A set includes a number k of primary data packets and a number (n−k) of primary EC packets, for a total of n primary packets in the set. Other data sources such as the data source 4 also provide source signals conveying information arranged in packets referred to as “competing packets” because these latter packets compete for resources needed to service the primary packets; however, the source signals from these other data sources need not carry the same type of information and the competing packets need not be arranged in the same manner as that described for the data source 2.


The source signals from each of the data sources 2, 4 are passed along the communication paths 3, 5, respectively, to the packet processing device 10. These communication paths 3, 5 may be implemented by a wide variety of media including metallic wires and optical fibers, for example. The packet processing device 10 receives packets from each of the data sources 2, 4 and stores information for at least some of the packets in a queue or buffer. The packet processing device 10 transmits packets of information along the communication path 11 to the receiver 20. In the example shown in the figure, the receiver 20 processes packets of information from the data sources 2, 4. It applies an EC process as needed to the primary packets of information received from the data source 2 and passes the resulting information along the communication path 21. It passes the competing packets of information from the data source 4 along the communication path 22. The communication system may include other receivers, transmitters and data sources as desired.


This communication system may incorporate other techniques such as quality-of-service processes or additional EC processes. A quality-of-service process may be used to prevent or reduce all packet losses. This can be accomplished for primary packets, for example, by having either the data source 2 or the packet processing device 10 retransmit those primary packets that the receiver 20 does not acknowledge receiving. One or more EC processes in addition to the EC process mentioned above and discussed below may also be used. These additional EC processes can be implemented in the packet processing device 10 and the receiver 20 to reduce Type I losses. The incorporation of these additional processes would decrease the rate that original packets can be sent over the communication path 11 because some of the path bandwidth is needed for retransmission of packets and for the additional EC packets of the second EC process. As a result, the probability of Type I losses would increase accordingly. The use of quality-of-service and additional EC processes are not included in the communication models that are discussed below but could be incorporated if desired.


The schematic illustration shown in FIG. 1 does not include a number of components that may be desirable in a practical implementation of a communication system but are not needed to explain the present invention. For example, the figure does not illustrate the components that would be needed to establish whether the communication path 11 is clear, that is, whether other packet processing devices are currently using the communication path 11 or whether some type of interference exists that is likely to prevent reception by the receiver 20. Also not shown are components that would be needed to obtain from the receiver 20 any information on packet losses or the need to retransmit packets.


2. Communication System Model

Implementations of various aspects of the present invention are based on a calculation of Type II loss probability using algorithms derived from models of the communication system. The models derive the probability of Type II primary packet loss as a function of several parameters described below. Each of these parameters affects the level of buffer occupancy, which in turn affects the probability of Type II losses.


The model of the communication system can take into account how changes in the EC parameters (n,k) affect the primary data packet rates, thereby allowing an adaptive EC system to be designed that minimizes Type II primary packet losses. In the derivation described below, the method takes into account the arrival patterns of all packets at the packet processing device 10, the size of the buffer in the packet processing device 10, and the availability of the communication path 11. This model is then used to derive an algorithm that can calculate the probability of Type II primary packet losses and then adapt the EC parameters (n,k) to minimize the loss of primary data packets after error recovery by the EC process.


The communication model described below assumes that no process other than the adaptive EC process mentioned above is used to mitigate Type II losses. One example of a process that is not included in the model is a quality-of-service protection process in which the data source 2 sends again any primary packet that the receiver 20 does not acknowledge receiving. The receiver 20 sends acknowledgements to the data source 2 for the packets that it does receive. If the data source 2 does not receive an acknowledgement within some period of time, it sends again one or more primary packets that are presumed to be lost. This process mitigates both Type I and Type II losses. It is possible to include such a process in the model by taking into account the fact that primary packets sent more than once increase the rate at which primary packets arrive at the packet processing device 10, which increase buffer occupancy and increase the rate of Type II losses. The frequency that packets are sent again depends in turn on the loss probability.


a) Basic Approach

As described below, two Markov-based steady-state models are developed and solved that describe buffer occupancy as a function of: (1) the rate of primary packets that arrive at the packet processing device 10 from the data source 2, (2) the rates of competing packets that arrive at the packet processing device 10 from other data sources, (3) the probability that a primary packet is transmitted by the packet processing device 10 and received by the receiver 20 without corruption, (4) the size of the buffer or queue in the packet processing device 10, and (5) the EC parameters (n,k). One of these models describes a system in which the primary packets arrive at the packet processing device 10 according to a probabilistic process with a probability distribution that conforms to a Bernoulli process. The other model describes a system in which the primary packets arrive at the packet processing device 10 according to a deterministic process that conforms to a constant bit rate (CBR) process. If no EC process is used, each of these models is used to calculate, as a function of buffer occupancy, the probability of a Type II loss for any single data packet in the set of primary packets provided by the data source 2. If an EC process is used, the probability of primary data packet loss after EC recovery is then calculated as a function of the EC parameters (n,k).


The mathematical analysis for the two models differ significantly. For CBR traffic, singular value decomposition is used to solve the steady state Markov model. (See Press et al., Numerical Recipes in C+++: The Art of Scientific Computing, 2nd ed., Cambridge University Press, 1992.) For Bernoulli-distributed traffic, the theory of linear recurrent equations is applied to establish a closed-form solution for the Markov model. In addition, the calculation of packet loss probability after EC recovery differs for the two kinds of traffic. For Bernoulli-distributed traffic, statistically independent arrivals of data packets and EC packets is assumed, which allows an application of a simple combinatoric argument to determine the packet loss probability. For CBR traffic, an iterative mathematical procedure is developed that reflects the exact arrival pattern of data and EC packets. For each model, the traffic for competing packets is assumed to be Bernoulli distributed. This is a conservative assumption because it implies the data source 2 and the receiver 20 do not know the actual process for the competing packets. Because the arrival process for the primary packets sent by the data source 2 is known and can be controlled, however, the effects of different processes for this traffic can be investigated.


The present invention may be used advantageously in communication systems where the packet processing device 10 transmits multimedia packets using radio frequency (RF) or other wireless technology for the communication path 11; however, the present invention is not limited to any particular type of data packet or to any particular communication technology. The only property of a wireless communication path that affects the following models is the allowance for an appreciable probability that a primary packet is not transmitted or received successfully. A wired or optical technology can be modeled instead by reducing this probability to zero or to some arbitrarily small value.


b) Overview of Derivations

The following sections describe a generic communication model, derive a generic algorithm to calculate the loss probability of individual packets, derive an analytic communication model for Bernoulli-distributed traffic, derive a communication model for CBR traffic, and calculate the loss probability after EC recovery for each model. Because the algorithm used to calculate the loss probability for CBR traffic is computationally complex, an algorithm that calculates an approximation to the loss probability is derived that is much less complex.


B. Communication System Models
1. Overview

The two communication models discussed below describe the operation of a communication system like the system illustrated in FIG. 1. The model allows for the existence of one or more receivers in addition to the receiver 20. According to these models, the packet processing device 10 receives packets from the data sources and stores them in a buffer. A packet is subsequently retrieved from the buffer and transmitted along the communication path 11. The models assume that packets are stored and retrieved from the buffer in first-in-first-out (FIFO) order. If the buffer is full when a packet arrives, that packet is discarded. The techniques described below can derive models that can accommodate other queuing policies but the mathematical analysis may be more complicated.


The models discussed below are discrete-time models in which the packet processing device 10 receives and transmits packets during uniform intervals of time referred to as time slots. To simplify the model, all packets have the same fixed size.


The models assume that in any given time slot the packet processing device 10 can receive a primary packet and a competing packet, and can transmit a packet. This assumption simplifies calculations; however, the assumption can be relaxed if desired to derive more general models. A “Bernoulli-traffic model” describes a communication system where primary packets arrive at the packet processing device 10 in a manner that can be described by a probabilistic process having a Bernoulli probability distribution. The probability that one of these packets arrives at the packet processing device 10 within any given time slot is represented by the symbol pA, where 0≦pA≦1. A “CBR-traffic model” describes a communication system where the primary data packets arrive at the packet processing device 10 in a manner that can be described by a deterministic process in which packets arrive at a constant rate of once per each m time slots. For ease of discussion, the ratio
1m

is also referred to as an arrival probability and is represented by the symbol pA. Because the packets are assumed to convey a fixed amount of information or number of bits, a constant packet arrival rate is equivalent to a constant bit rate (CBR); hence the second model is referred to as a CBR-traffic model.


Both models assume all competing packets, which are those packets provided by data sources other than the data source 2, arrive at the packet processing device 10 in a manner that can be described by a probabilistic process having a Bernoulli probability distribution. The probability that a competing packet arrives at the packet processing device 10 within any given time slot is represented by the symbol pC, where 0≦pC≦1. This assumption is reasonable for most applications because the processes used by other data sources to send competing packets is generally unknown. Any technique that can be used to measure or estimate the arrival of competing packets can be used to derive a distribution for the arrival process of the competing packets, and the techniques described below can be used to construct a model that reflects the arrival process. If the arrival process is unknown, however, a Bernoulli distribution is a conservative assumption. Because the models described below are concerned with only the accumulative arrival probability pC of all competing packets, these models assume the existence of only one data source for competing traffic. This one source may represent the accumulative effect of multiple data sources.


Both models also assume that, for each time slot in which at least one packet is stored in the buffer, the packet processing device 10 successfully retrieves a packet from the buffer and transmits it over the communication path 11 with a probability represented by the symbol pD, where 0≦pD≦1. A packet is deemed to have been transmitted successfully if the information it conveys is received without corruption by the receiver 20. Information in a packet may be corrupted by a collision with other packets transmitted along the same communication path by other devices, or by noise or other interference. In preferred implementations, the risk of corruption is reduced by having the packet processing device 10 determine whether the communication path 11 is clear before attempting to transmit a packet.


Depending on the particular application for the information conveyed by the packet, the corrupted information may or may not be useable. For example, corrupted video information in a video frame that is only partially corrupted may be replaced in some instances by a prediction based on uncorrupted video information. (See Wah et al., “A Survey of Error-Concealment Schemes for Real-Time Multimedia and Video Transmissions over the Internet,” IEEE Int. Symposium on Multimedia Software Eng. 2000, Taipei, Taiwan.) In contrast to that example, it may not be possible to recover or replace the information in a corrupted packet conveying highly compressed audio information. The models described below assume that partially corrupted packets do not contain any useful information and use the probability pD that a packet is transmitted without corruption to the receiver 20. If desired, a probability that corrupted packets can be at least partially restored can be integrated into the model by defining an additional probability that a packet is received partially damaged by the receiver 20. An appropriate probability pD can be derived from this additional probability using a Gilbert model of the communication path 11. (See Bolot et al., “Adaptive FEC-based error control for Internet telephony,” IEEE Infocom 2003, San Francisco.)


In systems that have multiple competing data sources, it is possible that on average more than one competing packet can arrive in a time slot, which can be expressed by the relation pC>1. To simplify calculations, the following models assume 0≦pC, pA, pD≦1 This assumption can be met by reducing the length of each time slot such that pC, pA, pD<1.


The models and subsequent derivations described below consider packet losses but do not consider delay and delay jitter. Furthermore, the models consider packet traffic that flows only from data sources to the receivers and do not consider signals that flow from the receivers to the data sources.


2. Analysis of Buffer Operation

The models described below assume that the packet processing device 10 has a queue or buffer of length L, and that in each time slot the device attempts to store in this buffer any primary packet received from the data source 2 and any competing packet received from other data sources. According to these models, the operations performed by the device to store packets in the buffer may be described as follows:

    • 1. In any give time slot, the device receives a primary packet from the data source 2 with probability pA and receives a competing packet from another source with probability pC. If both a primary packet and a competing packet are received in the same time slot, it is assumed that either packet may arrive before the other with equal probability. In other words, it is assumed that the competing packet arrives before the primary packet with a probability equal to 0.5.
    • 2. The total number j of primary and competing packets that can arrive in a given time slot may be any number in the set {0,1,2}. Arriving packets may be stored in the buffer or may be discarded according to the following rules:
      • a) If the level of buffer occupancy just prior to the arrival of these packets is less than or equal to L−j, then all arriving packets are stored in the buffer.
      • b) If j=2 and the level of buffer occupancy is L−1, then the earlier of the two arriving packets is stored in the buffer and the later-arriving packet is discarded.
      • c) Otherwise, all arriving packets are discarded.
    • 3. In any give time slot, with probability pD the packet processing device 10 retrieves a packet from the buffer and transmits it along the communication path 11 so that the information the packet conveys is received without corruption. Packets are stored into and retrieved from the buffer in FIFO order. If the buffer is empty, no packet is retrieved and transmitted. The level of buffer occupancy is decreased by one if a packet is retrieved and transmitted.


The models described below include a steady-state vector that describes the statistical occupancy of the buffer. This vector is expressed as:

P=(PN) for 0≦N≦L (1)

where PN=probability that the buffer stores N packets at the end of a time slot; and


L=size or length of the buffer.


This steady state vector can be expressed as a function of the parameters pA, pC, pD and L. Expressions for this function are derived below.


C. Packet Loss Probability
1. Introduction

A primary packet from the data source 2 is discarded by the packet processing device 10 if either of two conditions exist during the time slot when the primary packet arrives at the device: (1) the buffer occupancy is L or (2) the buffer occupancy is L−1 and a competing packet arrived before the primary packet. The probability Ploss that an arriving primary data packet will be discarded in a given time slot can be expressed as:
Ploss=12PL-1pC+PL(2)

The factor one-half reflects the assumption that when a primary packet and a competing packet arrive in the same time slot, the probability that the competing packet arrives before the primary packet is equal to 0.5.


The steady state vector P can be calculated from a transition matrix whose entries represent the probability of a transition between different states of P. A generalized parametric expression of the transition matrix is first developed. This generalized expression can then be adapted for the Bernoulli-traffic and the CBR-traffic models by making appropriate choices for the parameters.


2. Transition Matrix

The transition matrix is denoted by the symbol T and the notation Ta,b is used to represent the probability that the level of buffer occupancy changes from a to b between consecutive time slots, where 0≦a,b≦L. The level of buffer occupancy is measured at the end of each time slot after any transmitted packet has been removed from the buffer. The notation (Ta,b)u is used to represent the probability that the level of buffer occupancy changes from a to b across u time slots, where u≧1; thus Ta,b=(Ta,b)1.


Elements of the transition matrix may be expressed as follows:
Ta,b={qAqC+qApCpD+pAqcpDfora=0,b=0pApCqDfora=k-2,b=k,2kLpApCpD+pAqcqD+qApCqDfora=k-1,b=k,1kL-1qAqCqD+qApCpD+pAqcpDfora=k,b=k,1kL-2qAqCpDfora=k+1,b=k,0kL-1qAqCqD+qApCpD+pAqcpD+pApCpDfora=L-1,b=L-1pAqCqD+qApCqD+pApCqDfora=L-1,b=LpDfora=L,b=L-1qDfora=L,b=L0forallotheraandb}(3)

where


qA=probability that no primary packet arrives in a time slot, or qA=1−pA;


qC=probability that no competing packet arrives in a time slot, or qC=1−pC; and


qD=probability that a data packet is not successfully transmitted in a time slot, or qD=1−pD.


A data packet is not successfully transmitted in those time slots for which an attempted transmission fails, no transmission is attempted, and a packet is retransmitted as part of a quality-of-service protection process.


For example, the element T0,0 represents the probability that, given the buffer is empty at the end of one time slot, the buffer will also be empty at the end of the next time slot. This situation can occur as the result of any of three possible situations whose probabilities are expressed by each of three terms for T0,0 as shown in expression 3. The first term qAqC represents the probability that the no primary packet and no competing packet arrives in the next time slot. The second term qApCpD represents the probability that no primary packet arrives, that a competing packet arrives and is stored in the buffer, and that a packet is removed from the buffer and transmitted. The third term pAqCpD represents the probability that a primary packet arrives and is stored in the buffer, that no competing packet arrives, and that a packet is removed from the buffer and transmitted.


D. Probability of Type II packet Loss for Bernoulli-Traffic Model

A model to calculate the probability of a Type II packet loss for Bernoulli distributed traffic without EC protection is first developed. This model is then modified to calculate the probability of packet loss for Bernoulli distributed traffic with EC protection.


1. Steady State Model for Bernoulli-Distributed Traffic without EC Protection

The first step to develop the Bernoulli-traffic model is to derive a calculation for the steady-state vector P for Bernoulli-distributed traffic without EC protection. In many applications of Markov models, it is not possible to derive an explicit formula for the steady state vector P but this vector can be expressed as a result of singular value decomposition of a matrix decomposition. Unfortunately, this approach is not attractive because it yields a solution that is not in a closed form and is computationally very complex. Instead, the theory of linear recurrent equations is used to establish a closed form expression for P. This is done by first deriving a rather complex and computationally expensive formula for P in Theorem 1, which is then simplified in Theorem 2.


Theorem 1 is proved as shown below.
Theorem1_P0=11+j=1L-1WjYjBj+ZpD(4)Pj=P0WjYjBj,L-1j1(5)PL=P0pDZ(6)whereBj=l=0j2(XYW2)l(j-ll),1jL-1(7)W=pApC+qApCqD+pAqCqD(8)X=pApCqD(9)Y=qAqCpD(10)Z=(1+Y-pD-qAqCqD)WL-1YL-1BL-1-(W-X)WL-1YL-2BL-2-XWL-3YL-3BL-3(11)


Theorem 1 is proved by induction. From the definition of the transition matrix given in 3, the following relations can be derived:

P0=P0(qAqC+qApCpD+pAqCpD)+P1qAqCpD  (12)
P1=P1(qAqCqD+qApCpD+pAqCpD)+P0(pApCpD+pAqCqD+qApCqD)+P2qAqCpD  (13)
Pj=Pj(qAqCqD+qApCpD+pAqCpD)+Pj−1(pApCpD+pAqCqD+qApCqD)+Pj+1qAqCpD+Pj−2pApCqD, 2≦j≦L−2  (14)
PL−1=PL−1 (qAqCqD+qApCpD+pAqCpD+pApCpD)+PLPD+PL−2(pApCpD+pAqCqD+qApCqD)+PL−3pApCqD  (15)
PL=PLqD+PL−1 (pAqCqD+qApCqD+pApCqD)+PL−2pApCqD  (16)


Using the definitions given in expressions 7 to 11, the relations given in expressions 12 to 15 can be expressed as follows:

P1Y=P0W  (17)
P2Y=P1(W+Y)−P0(W−X)  (18)
Pj+3Y=Pj+2(W+Y)−Pj+1(W−X)−PjX, 0≦j≦L−4  (19)
PLpD=PL−1(1+Y−pD−qAqCqD)−PL−2(W−X)−PL−3X  (20)


The relations given in equations 17, 18 and 19 imply the relation given in equation 5 for j=1,2,3. The relation in equation 19 can be used to show that equation 5 also holds for 4≦j+3≦L−1 provided it holds for j, j+1 and j+2. Using the definition given in equation 5 to rewrite the relation in equation 19, it may be seen that Theorem 1 can be proven by proving the following:
YWj+3Yj+3Bj+3=(W+Y)Wj+2Yj+2Bj+2-(W-X)Wj+1Yj+1Bj+1-XWjYjBj(21)

which is equivalent to

W3Bj+3=W3Bj+2+W2YBj+2−W2YBj+1WXYBj+1−XY2Bj  (22)

which can be rearranged as follows:

W3Bj+3−W3Bj+2−WXYBj+1=W2YBj+2−W2YBj+1−XY2Bj  (23)


It is known that:
(i+1j)=(ij)+(ij-1)(24)(i0)=0(25)

where
(ij)

represents the binomial coefficient that equals the number of ways j unordered outcomes can be chosen from i possibilities.


Using the expressions in equation 7, the terms in the left-hand side of equation 23 can be rewritten as follows:
W3Bj+3=W3l=0j+32(XYW2)l(j+3-ll)(26)W3Bj+2=W3l=0j+22(XYW2)l(j+2-ll)(27)WXYBj+1=WXYl=0j+12(XYW2)l(j+1-ll)=W3l=1j+32(XYW2)l(j+1-(l-1)l-1)(28)

By applying the relations in equations 24 and 25, and combining and simplifying these terms, the left-hand side of equation 23 can be shown to equal zero as follows:
W3Bj+3-W3Bj+2-WXYBj+1=A3l=1j+22(BCA2)l[(j+3-ll)-(j+2-ll)-(j+2-ll-1)]+A3((j+30)-(j+20))+A3l>j+22j+32(BCA2)l-1[(j+3-ll)-(j+1-(l-1)l-1)]=0(29)


The terms in the right-hand side of equation 23 can be expressed as follows:
W2YBj+2=W2Yl=0j+22(XYW2)l(j+2-ll)(30)W2YBj+1=W2Yl=0j+12(XYW2)l(j+1-ll)(31)XY2Bj=W2Yl=1j+22(XYW2)l(j-(l-1)l-1)(32)

By applying the relations in equations 24 and 25, and combining and simplifying these terms, the right-hand side of equation 23 can be shown to equal zero as follows:
W2YBj+2-W2YBj+1-XY2Bj=W2Yl=1j+12(XYW2)l[(j+2-ll)-(j+1-ll)-(j+1-ll-1)]-W2Y(XYW2)l((j+20)-(j+10))-W2Yl>j+12j+22(XYW2)l[(j+2-ll)-(j+1-ll-1)]=0(33)


It follows from equations 23, 29 and 33 that equation 5 is true for j+3. For j=L, equation 6 follows from equations 5 and 20. Equation 4 follows from equations 5 and 6, and the fact that
j=0LPj=1.


The expressions derived for Bj in Theorem 1 can be simplified by extending the definition of Bj as shown in equation 7 by defining B0=1. This is done by showing the following:
Lemma_1Bj+1=Bj+(XYW2)Bj-1,j1(34)

The relation in equation 34 is equivalent to the following:
(j+10)+l=1j2(XYW2)l(j+1-ll)+l>j2j+12(XYW2)l(j+1-ll)=(i0)+l=1j2(XYW2)l(j-ll)+l=1j2(XYW2)l(j-ll-1)+l>j2j+12(XYW2)l(j-ll-1)(35)


From expression 25 it can be seen that the first term on the left-hand side of equation 35 and the first term on the right-hand side of the equation are both equal to one. From expression 24 it can be seen that the second term on the left-hand side of equation 35 is equal to the sum of the second and third terms on the right-hand side of the equation as seen in equation 36:
l=1j2(XYW2)l(j+1-ll)=l=1j2(XYW2)l(j-ll)+l=1j2(XYW2)l(j-ll-1)(36)


From inspection, it may be seen that the third term on the left-hand side of equation 35 and the fourth term on the right-hand side of equation 35 are both equal to zero if the terms of summation are not within the range of summation from l=1 to ½ j and are both equal to one if the terms of summation are within the range of summation. This establishes Lemma 1, which shows that the terms Bj can be expressed as generalized Fibonacci numbers.


Lemma 2

A series is now defined as

x0=x1=1 and xi=KAxi−1+KBxi−2 for i≧2  (37)

where KA and KB are positive real numbers.


If α and β are defined as the roots of the equation x2=KAx+KB, or
α=KA+KA2+4KB2β=KA-KA2+4KB2

and are constrained to be unequal to one another, then it is known from the theory of linear recurrent equations that:
xi=1KA2+4KB[(1-β)αi+(α-1)βi](38)


It can be seen by inspection of expressions 37 and 38 that equation 38 is true for i=0,1 and it can be seen by induction that equation 38 is true for i≧2. By applying the relationship shown in equation 37 to the expression for Bj in equation 34, it can be shown that KA and KB have the following values:
KA=1KB=XYW2

It follows that:
α=1+KC2β=1-KC2

where
KC=1+4XYW2(39)

This implies that β=1α. By using this relation to substitute for β in equation 38, the expression for Bj shown in equation 7 can be rewritten as
Bj*=1KC((1+KC2)j+1-(1-KC2)j+1)=1KC(1+KC)j+1-(1-KC)j+12j+1(40)

which is computationally less complex than the expression in equation 7.


Using the relations in equations 39 and 40 as substitutes for Bj and KC allows a term in equation 4 to be rewritten as:
j=1L-1WjYjBj*=WYKC[(1+KC2)2·j=0L-2(W(1+KC))j(2Y)j-(1-KC2)2·j=0L-2(W(1-KC))j(2Y)j]=WYKC[(1+KC2)2((W(1+KC))L-1(2Y)L-1-1W(1+KC)2Y-1)-(1-KC2)2((W(1-KC))L-1(2Y)L-1-1W(1-KC)2Y-1)](41)


Algorithms for calculating the steady state vector P that are computationally less complex than the algorithms derived in Theorem 1 can be obtained by rewriting equations 4, 5 and 6 as follows:
P0=11+KD+Z*pD(42)Pj=P0WjYjBj*,T-1j1(43)PT=P0pDZ*(44)

where
KD=WYKC[(1+KC2)2(W(1+KC))L-1(2Y)L-1-1W(1+KC)2Y-1-(1-KC2)2(W(1-KC))L-1(2Y)L-1-1W(1-KC)2Y-1]Bj*=(1+KC)j+1-(1-KC)j+12j+1KC,1jL-1W=pApC+qApCqD+pAqCqDX=pApCqDY=qAqCpDZ*=(1+Y-pD-qAqCqD)WL-1YL-1BL-1*-(W-X)WL-1YL-2BL-2*-XWL-3YL-3BL-3*


2. Packet Loss Probability for Bernoulli-Traffic Model

When EC protection is not used, the probability of losing any one primary packet may be calculated using equations 2 and 42 to 44. When EC protection is used for Bernoulli-distributed traffic, it can be assumed that the probability of losing a data packet is independent of the probability of losing an EC packet. The additional EC packets increase the arrival rate of primary packets by a factor of φ. As a result, the probability of arrival is increased by the same factor, which can be expressed as:
pAφ·pA=nkpA(45)


When EC protection is used, a primary data packet will be lost and not recovered if i data packets are lost and at least s=(n−k−i+1) EC packets are lost, where i>0 and s>0. The probability of losing a data packet without EC recovery can be calculated by multiplying the probability to receive i primary data packets with the probability to receive at least s primary EC packets in equation 46:
pi(k,n)=(ki)(Ploss)i(1-Ploss)k-im=sn-k(n-km)(Ploss)m(1-Ploss)n-k-m(46)

where pi(k,n)=probability to lose i data packets and at least s EC packets; and


s=max(0, n−k−i+1).


The probability Ploss shown in equation 46 is calculated as shown in equation 2 using the modified value for pA shown in equation 45. Ploss now represents the probability that a primary data packet or a primary EC packet will be discarded.


The probability Eloss to lose a primary data packet without EC recovery is equal to:
Eloss=1ki=1ki·pi(k,n)(47)

and the probability Erec to recover a primary data packet after EC recovery is equal to:

Erec=1−Eloss  (48)


E. Probability of Type II packet Loss for CBR-Traffic Model
1. Sending Scheme for CBR-Traffic Model with EC

The algorithm to calculate the steady state vector P shown above was derived for a Bernoulli-traffic model of the communication system. The following sections derive an algorithm to calculate the vector P for a CBR-traffic model of the communication system. In this model, time slots are numbered from one to infinity and primary data packets arrive at the packet processing device in time slots t=m, 2 m, . . . where m>1. No primary data packets arrive during the m−1 intermediate time slots. A series of k primary data packets are combined with a series of (n−k) primary EC packets to form a set of n primary packets. An example of a set of packets with m=4, k=3 and n=5 is shown in FIG. 2. The k primary data packets in a first set, denoted with the label D1, arrive at the packet processing device 10 once in each interval of m time slots across an interval spanned by k·m time slots. The primary data packets in the next set, denoted with the label D2, arrive in the same manner during the next interval spanned by k·m time slots. The (n−k) EC packets for the first set, denoted by the label EC1, arrive in the free time slots between the data packets of the next set of primary packets. To guarantee the feasibility of this scheme, values for the EC parameters (n,k) are constrained such that the number of EC packets (n−k) does not exceed the number of free time slots for the next k data packets, which may be expressed as:

n−k≦k·(m−1)  (49)


This arrival scheme may be formally described by:
ei={m,2ik1,i=k+11,k+2in,ti1(modm)2,k+2in,ti=1(modm)}(50)

where ei=ti−ti−1, for 2≦i≦n; and


ti=time slot in which the i-th packet in a set of primary packets arrives at the packet processing device 10.


The first line in expression 50 pertains to all data packets in a set of primary packets except the first primary data packet. The second line pertains to the first primary EC packet in a set, which immediately follows the last data packet in the set. The third line pertains to the primary EC packets that do not immediately follow a data packet in the next set of packets, and the last line pertains to those primary EC packets that do immediately follow a data packet in the next set of packets.


The CBR-traffic model derived below assumes that the packet processing device 10 discards the first packet out of a set of primary packets, which is always a primary data packet. This packet is discarded in such a manner that the probability it is discarded is independent of the probability any previous primary packet is discarded. For all subsequent packets in the set of primary packets, the probability a primary packet is discarded is calculated iteratively using the loss probability of the previous primary packet and the level of occupancy of the buffer when the previous primary packet arrived at the processing device 10. This iterative approach is consistent with the expression shown in equation 2, which expresses the fact that the level of buffer occupancy is at least L−1 whenever a primary packet is discarded. A condition where the level of occupancy was at least L−1 when the preceding primary packet arrived increases the probability that the level of occupancy will be at least L−1 when the next primary packet arrives as compared to a condition where the preceding packet was not discarded and buffer occupancy was at a lower level between zero and L−1. As a result, whether the packet processing device 10 discarded the preceding primary packet provides some information about the level of buffer occupancy, which in turn provides some information about the probability the next primary packet will be discarded.


2. Transition Matrix for CBR-Traffic Model

The transition matrix described above for the Bernoulli-traffic model is adapted here for the CBR-traffic model. For Bernoulli-distributed traffic, the arrival process is statistically equal for all time slots because that process depends only on the arrival probability pA. As a result, the transition T matrix discussed above can provide a good description of the transition between probabilities of any two successive time slots. For CBR traffic, an average or composite arrival probability is
pA=1m;

however, the arrival process for CBR traffic is deterministic and each time slot can be placed into one of two classes. For time slots i=1 (mod m), primary packets arrive and a transition matrix F for these time slots can be obtained from expression 3 by substituting the value one for pA and the value zero for qA. For time slots i≠1 (mod m), no primary packets arrive and a transition matrix G for these time slots can be obtained from expression 3 by substituting the value zero for pA and the value one for qA. Products of the transition matrices F and G specify the arrival of packets in a sequence of time slots. Each time slot with a packet arrival is represented by the F matrix and each time slot with no packet arrival is represented by the G matrix.


3. Packet Loss Probability for CBR-Traffic Model without EC Protection

A steady state vector π for buffer occupancy in the CBR-traffic model without EC protection can be expressed as follows:

π=(FGm−1)Tπ  (51)

where T denotes the transposition of the matrix product.


Equation 51 can be solved by the singular value decomposition of the matrix (FGm−1)T−I, where I is the diagonal matrix with all diagonal entries equal to one, obtaining a one-dimensional solution space, and using the equation
i=0Lπi=1(52)

to determine the final value for π. The loss probability of a primary data packet can be calculated from a formula similar to equation 2 using the steady stated vector π rather than using the stead state vector P:
Ploss=12πL-1pC+πL(53)


4. Packet Loss Probability for CBR-Traffic Model with EC Protection

The approach used to derive a formula to calculate the loss probability for a CBR-traffic model without EC protection can be extended to derive a formula for a CBR-traffic model with EC protection. This is done by calculating the probability that any primary data packet of a set of k data packets cannot be recovered.


a) Definition of the Sending Scheme for Primary packets

The probability that the first out of n primary packets in a set of packets is lost can be determined from a steady state vector S of buffer occupancy for the time slot that immediately precedes the time slot in which the first primary data packet arrives. This steady state vector is derived for the set of m·k time slots during which the k data packets of a set of primary packets arrive. The (n−k) EC packets for the previous set of primary packets arrive during the first w time slots, where
w=mm-1(n-k)(54)


If m≦w, then some of the data packets of the current set of primary packets also arrive during the first w time slots. From equation 49, it can be seen that w≦m·k.


Additional values are defined as follows:
u=w(modm)(55)z=m-u(56)f=min(u,1)(57)y=k·m-w-f·zm(58)

The value z−1 equals the number of time slots between the w-th time slot of the considered k·m time slots and the next primary data packet. The value y equals the number of cycles or periods of m time slots in which data packets have no intervening EC packets. The steady state S can be expressed in terms of these values. Expression 62 describes situations for m−1>w illustrated in FIG. 3, where m=4, k=4, n=6, w=2, u=2, z=2, f=1 and y=3. Expression 63 describes situations for m−1<w illustrated in FIG. 4, where m=4, k=4, n=8, w=5, u=1, z=3, f=1 and y=2. No expression is needed for w=m−1 because w is not congruent to m−1(mod m) for all m≧2. This can be seen for m=2 by inspection. When m=2, w must be an even number and cannot be congruent to m−1 (mod m). For m>2, this incongruity can be proven by contradiction by assuming the opposite, that is, by assuming there exists a value (n−k) such that
m(n-k)m-1=r·m-1(59)

By definition
m(n-k)m-1=m(n-k)m-1-dm-1(60)

where 0≦d≦m−2, which together with expression 59 implies that
n-k-r·(m-1)=d-m+1m(61)

The expression shown in equation 61 cannot be true because the left-hand side is an integer but the right-hand side cannot be an integer. This contradicts the assumption expressed in equation 59, which implies w cannot be congruent to m−1(mod m).


By definition of the arrival process described above, the steady state vector S may be expressed as:

S=(Fw−m+1(Gz−1F)f(Gm−1F)yFm−1)TS for m−1<w  (62)
S=(F(Gm−1F)yFwGz−1)TS for m−1>w  (63)

The steady state vector S can be determined in the same manner as the vector π is derived from equation 51 by using the equation 52 for S instead of π.


b) EC Recovery Probability

The calculation of the probability for recovering a discarded data packet using an EC process in the CBR-traffic model may calculated as explained in the following five steps.


Step 1: This step determines the conditional probability that the level of buffer occupancy is h at the end of time slot j+m−1 given the condition that the level of buffer occupancy is g at the end of time slot j. This probability U(m−1,g,h) may be expressed as

U(m−1,g,h)=Fx1Gx2Fx3Gx4 . . . Fxv for 0≦g,h≦L  (64)

where xj are positive integers; and
j=1vxj=m-1.

The definition of the conditional probability expresses the fact that among the m−1 intermediate time slots there are some time slots in which a primary packet arrives, represented by the F matrix, and some time slots in which no primary packet arrives, represented by the G matrix. In particular, the conditional probabilities R(ej−1,g,h) are calculated for 2≦j≦n that the buffer occupancy is h at the end of the time slot before the j-th primary packet arrives given that the buffer occupancy was g at the end of the time slot when the (j−1)-th data packet arrived.
R(ej-1,g,h)={(Fm-1)g,h,2jwm(FuGq-1)g,h,j=wm+1,u1,z2(Gm-1)g,h,j=wm+1,u=0(Gm-1)g,h,wm+1<jkδg,h,k+1jn}(65)

where


(Fx)g,h=element in row g and column h of matrix F raised to x-th power;


(Gy)g,h=element in row g and column h of matrix G raised to y-th power;


(FxGy)g,h=element in row g and column h of the matrix product FxGy; and
δg,h={1,g=h0,gh}

Because the term R(ej−1,g,h) is defined only for 2≦j≦n, any set of parameters w, m, q and u that cause j to fall outside this interval represent a condition that does not occur and should be ignored.


Step 2: This step determines the conditional probabilities that an arriving primary packet either is discarded or is not discarded if the level of buffer occupancy is h at the end of the time slot immediately before the time slot in which the primary packet arrives. The conditions under which a packet is not discarded are as follows:

    • If h≦L−2 or if both h=L−1 and k=L−2, the arriving packet is not discarded.
    • If h=r=L−1, where r is the buffer occupancy at the end of the time slot in which the primary packet arrives, then the arriving packet is not discarded if either of two conditions are true: no competing packet arrives and a packet is transmitted from buffer with probability qCpD, or a competing packet arrives but it arrives after the primary packet and a packet is transmitted from the buffer with probability
      12pCpD.
    • If h=L−1 and r=L, where r is the buffer occupancy at the end of the time slot in which the primary packet arrives, then the arriving packet is not discarded if either of two conditions are true: no competing packet arrives and no packet is transmitted from the buffer with probability qCqD, or a competing packet arrives but it arrives after the primary packet and no packet is transmitted from the buffer with probability
      12pCqD.
    • If h=L, the arriving primary packet is discarded.


Given the arrival of a primary packet in a current time slot and given a buffer occupancy of h at the end of the previous time slot, the conditional probability that the buffer occupancy is equal to r at the end of the current time slot and that the arriving primary packet is not discarded may be expressed as:
Eh,r={Fh,r,hL-2Fh,r,h=L-1,rL-2qCpD+12pCpD,h=r=L-1qCqD+12pCqD,h=L-1,r=L0,allotherhandr}for0h,rL(66)


Similarly, given the arrival of a primary packet in a current time slot and given a buffer occupancy of h at the end of the previous time slot, the conditional probability that the buffer occupancy is equal to r at the end of the current time slot and that the arriving primary packet is discarded may be expressed as:
Eh,r={0,hL-20,h=L-1,rL-212pCpD,h=r=L-112pCqD,h=L-1,r=L0,h=L,r<L-1pD,h=L,r=L-1qD,h=r=L0,allotherhandr}for0h,rL(66)


Step 3: This step determines the conditional probability that the buffer occupancy is r at the end of the time slot in which the j-th packet of a set of primary packet arrives and the j-th primary packet is not discarded, given the condition that the buffer occupancy is g at the end of the time slot in which the (j−1)-th primary packet of the set arrives. This conditional probability may be expressed as
A(g,r,j)=h=0LR(ei-1,g,h)Eh,rfor0g,rL,2jn(68)


Similarly, the conditional probability that the buffer occupancy is r at the end of the time slot in which the j-th packet of a set of primary packet arrives and the j-th primary packet is discarded, given the condition that the buffer occupancy is g at the end of the time slot in which the (j−1)-th primary packet of the set arrives, may be expressed as:
B(g,r,j)=h=0LR(ei-1,g,h)Eh,r*for0g,rL,2jn(69)


Step 4: This step determines the probability M(a,b,d) that b out of the first a packets in a set of primary packets are discarded, where 1≦a≦n and 0≦b≦a, and that the level of buffer occupancy is equal to d at the end of the time slot in which the a-th packet arrives. For a=1 the probability M(a,b,d) can be expressed as a function of the vector S defined above in equations 62 and 63. For a>1, the probability M(a,b,d) can be defined recursively using A(k,g,j) and B(k,g,j) as shown in the following expressions:
M(1,0,0,)=S0qCpDM(1,0,1)=S0(qCqD+pCpD)+S1qCpDM(1,0,d)=Sd-2pCqD+Sd+1(qCqD+pCpD)+Sd-2pcpD+SL-2(qCqD+pCpD)+SdqCpD,for2dL-2M(1,0,L-1)=SL-3pCqD+SL-2(qCqD+pCpD)+SL-1(qCpD+12pCpD)M(1,0,L)SL-2pCqD+SL-1(qCqD+12pCqD)M(1,1,d)=0,for0dL-2M(1,1,L)=SL-112pCpD+SLpDM(1,1,L)=SL-112pCqD+SLqDM(a,0,d)=j=0LM(a-1,0,j)·A(j,d,a),for2anM(a,b,d)=j=0LM(a-1,b,j)·A(j,d,a)+j=0LM(a-1,b-1,j)·B(j,d,a),for2an,1ba-1M(a,a,d)=j=0LM(a-1,a-1,j)·B(j,d,a),for2an


Step 5: This step determines the probability D(a,b,d,v) that v out of k primary data packets are discarded, that b out of the first a EC packets are discarded, and that the buffer occupancy is equal to d at the end of the time slot in which the a-th EC packet arrives, where 1≦a≦n−k, 0≦b≦a and 0≦v≦k. The probability D(a,b,d,v) for a=1 can be expressed as a function of M(k,v,j), A(j,d,k) and B(j,d,k). For a>1, the probability D(a,b,d,v) can be defined recursively using D(a−1,b,d,v), A(j,d,k) and B(j,d,k) as shown in the following expressions:
D(1,0,d,v)=j=0LM(k,v,j)·A(j,d,k+1)D(1,1,d,v)=j=0LM(k,v,j)·B(j,d,k+1)D(a,0,d,v)=j=0LD(a-1,0,j,v)·A(j,d,a+k),for2an-kD(a,b,d,v)=j=0LD(a-1,b,j,v)·A(j,d,a+k)+j=0LD(a-1,b-1,j,v)·B(j,d,a+k),for2an-k,1ba-1D(a,a,d,v)=j=0LD(a-1,b-1,j,v)·B(j,d,a+k),for2an-k


The probability H(v,b) that v out of k primary data packets are discarded and b out of (n−k) EC packets are discarded may be expressed as follows:
H(v,b)=d=0LD(n-k,b,d,v)for0vk(70)


The average or expected value Erec for the number of data packets that are recovered by the EC process can be expressed as:
Erec=v=0kb=0n-kH(v,b)·J(v,b)(71)whereJ(v,b)={k,v+bn-kk-v,otherwise}.


F. Approximate Algorithms for CBR-Traffic Model

Algorithms that calculate only an approximate value for Erec usually are not needed for Bernoulli-traffic models because the exact calculation of Erec shown in equation 48 requires computing equation 42, equation 43 for k=L−1, and equation 44, which can be implemented with a computational complexity of O(1), and the application of equation 46, which has a computational complexity of O(nk). The overall computational complexity of the algorithm to calculate Erec is O(nk). These complexity figures assume that all needed binomial coefficients are pre-computed and stored for subsequent use. The calculation of Erec requires less than 1 msec. for L=400 using an implementation written in the C programming language and executed by a computer with a 3.4 GHz Pentium® microprocessor available from Intel Corporation, Santa Clara, Calif. This is fast enough to meet the real-time requirements of many applications.


Unfortunately, an algorithm that calculates an approximate value for Erec is needed for the CBR-traffic model because the computational complexity of the exact algorithm described above is very high.


1. Complexity of Exact Algorithm

Equation 71 derived by the five-step algorithm described above is referred to here as an exact algorithm because it may be used to calculate the expected value Erec without approximation. Step 1 performs m·k matrix multiplications and then calculates the singular value decomposition of a (L+1)×(L+1) matrix. These operations have a computational complexity of O(mkL3). The computational complexity of the operations needed to perform Steps 2 and 3 are negligible. The operations in Step 4 to calculate the probability M(a, b, d) have a computational complexity of O(k2L). The operations in Step 5 to calculate the probability D(a,b,d,v) have a computational complexity of O((n−k)2kL2). The overall complexity of the five-step algorithm is about ((mkL3+k2L+((n−k)2kL2). In practical implementations, however, the size of the buffer L is likely to be one or two orders of magnitude larger than the values n,k; therefore, the overall complexity of the algorithm is about O(mkL3).


The entries in Table I show the amount of time needed to calculate Erec for different buffer sizes using an exemplary implementation of the five-step algorithm written in the C programming language and executed by a computer with a 3.4 GHz Pentium microprocessor. The singular value decomposition in Step 1 was implemented by the svdcmp routine described in Press et al., “Numerical Recipes in C++: The Art of Scientific Computing,” 2nd ed., Cambridge University Press, 1992.

TABLE IBuffer size LTime in msec.40015583006232001551001550<1


In typical multimedia wireless networks, the packet processing device 10 can be implemented by many commercially available IEEE 802.11 based wireless Access Points (AP), which typically have a buffer storage capacity for 300 or more packets. The entries in Table I indicate at least 623 msec. is needed by the exemplary implementation mentioned above to calculate the expected value Erec for such an AP. Unfortunately, the calculations must be performed in an amount of time that is at least one order of magnitude smaller to allow real-time adaptation of the EC parameters (n,k) for many multimedia applications. The derivation of a lower complexity algorithm is described below that can calculate an approximate value for Erec in much less time.


2. Collapsed-State Model

The purpose of the five-step algorithm described above is to determine the EC parameters (n,k) that minimize the loss of information after EC recovery. This algorithm needs to be calculated only when packet losses occur because one or more packets were discarded by the packet processing device 10 due to buffer overflow. Buffer overflow will occur when the level of buffer occupancy is at or near L and the cumulative arrival rate of both competing and primary packets at the packet processing device 10 is higher than the rate at which the device transmits packets from the buffer. In other words, entries Sk of the steady state vector S are zero or are nearly zero for all but a few values of k that are very close to L.


Numerical experiments confirm these expectations. The graphs in FIGS. 5 to 7 show the distributions of the steady state probability Sk for different competing traffic rates pC. In all three examples, m=4, n=6, k=5 and pD=0.8. The model will achieve a state of equilibrium when the sum of the arrival rates pA+pC is equal to pD, which occurs when pC=0.5. For the example shown in FIG. 5, pC=0.52, which is slightly above the equilibrium rate. As shown in the figure, the steady state probabilities Sk rise sharply with increasing k; however, steady state probabilities larger than 0.01 can be found only for values of k>95. Even if pC is increased so that the accumulative arrival rate pA+pC is larger than the transmission rate pD, such as pC=0.6 and pC=0.66 as shown in FIGS. 6 and 7, respectively, the steady state probabilities Sk are still zero or close to zeros unless k is very close to L.


This behavior can be used to develop a good approximate algorithm. Any state of the traffic model that has a steady state probability Sk of zero or close to zero has no significant impact on system behavior because the system is essentially never in this state. In the examples shown in FIGS. 5 to 7, the majority of all states with Sk≈0 have little or no impact on the dynamics of the steady state model. As a result, these states can be ignored in the calculation of the steady state vector S without changing the result of the calculation significantly, and can be ignored without significantly changing the calculated value of Erec.


Based on this observation, an approximate algorithm can be derived that calculates Erec only for the steady states k where Sk>ε and ε is a small threshold value. This approximate algorithm uses a collapsed-state vector C in which all states k for Sk>ε are represented by individual vector elements Ck=Sk+L0 and all other states k for Sk≦ε are collapsed into a single state C0. It is assumed that Sk≦ε for k≦L0, where L0 is a threshold value of buffer occupancy. As a result, the collapsed-state vector C has only L−L0+1 entries Ck, for 0≦k≦L−L0.


The steady state vector S with L+1 entries can be represented approximately by the collapsed-state vector C with only L−L0+1 entries by redefining the transition matrix shown in equation 3 with the value L−L0 substituted for L. The transition probability between the states Ca and Cb, for 0≦a,b≦L−L0, is defined as Ta+L0,b+L0. This transition matrix describes exactly the dynamics of buffer occupancy if a, b>0 but it describes only approximately the dynamics of buffer occupancy if either a=0 or b=0. This approximation should not have any significant effect on the accuracy of the calculations for Ck, where 1≦k≦L−L0, if the threshold ε is chosen small enough because the collapsed state C0 is assumed to occur very infrequently with a probability of only εL0. Specifically, it is expected that the absolute difference |Ck−Ck+L0| is very small for 1≦k≦L−L0.


The collapsed state vector C may be calculated by applying singular value decomposition to either equation 62 or 63 and then normalizing the result using equation 52 with the vector C substituted for the vector π as described above. After calculating the vector C, an approximate value for Erec can be calculated from equation 71 by using the vector C rather than the vector S. The examples shown in FIGS. 5 to 7 suggest the value L0 can be expected to be near the value L, which reduces computational complexity from O(mkL3) to O(mk(L−L0)3). By substituting the value L−L0 for the buffer size L in Table I, it may be seen that the execution times of the exemplary implementation can be reduced by one or more orders of magnitude when L0 is sufficiently close to L. The value for L0 can be chosen to allow an implementation of the approximate algorithm to satisfy the real-time requirements of many multimedia applications.


The value L0 must be determined before the approximate algorithm can be used. Numerical simulations have shown that L0 can be chosen to be as small as L0=10 without significantly degrading the accuracy of the approximate algorithm whenever pA+pC>pD+μ, where μ=0.1. A set of values L0 that are appropriate for different values of μ can be pre-calculated for use with the approximate algorithm by using the exact value for Erec as calculated by equation 71 to determine what values of L0 allow the approximate algorithm to estimate Erec with acceptable levels of accuracy.


This collapsed-state approximation technique may be used to obtain an algorithm with reduced computational complexity for essentially any traffic model.


G. Applications

The techniques described above may be used to derive algorithms to implement a variety of applications in a packet communication system.


One application uses the algorithms described above to calculate the loss probability of a primary data packet after EC recovery given the parameters pA, pC, pD, L and the EC parameters (n,k).


One application determines adapts the EC parameters (n,k) to minimize the loss of primary data packets after EC recovery. One way this may be done is to first determine all pairs of parameter values (n,k) that are feasible for the communication system under consideration. Certain constraints imposed on the system such as communication path bandwidth and maximum allowable delay also impose constraints on the choice of the EC parameters (n,k). Limitations on bandwidth impose limitations on the ratio φ and limitations on delay impose limitations on the parameter n. The set of all feasible parameter values (n,k) can be determined by establishing the maximum acceptable amounts of delay and bandwidth and then identifying all pairs of the EC parameters (n,k) that satisfy these requirements. The algorithms derived above can be applied to the parameters pA, pC, pD, L and all or a subset of the feasible EC parameter values to calculate the associated loss probability. The EC parameter values (n,k) that achieve the lowest loss probability can be selected as an optimum set of parameters.


Another application determines an optimal rate for the data source 2 to send primary packets. In this application, values for the EC parameters (n,k) are chosen and the algorithms derived above are applied to different packet arrival rates pA to calculate the associated loss probability. In many cases, practical considerations impose limits on the rates that can be considered. The rate that achieves the lowest loss probability can be used to set the optimum sending rate for the data source.


Alternatively, the derived algorithms can be applied to a range of values for both the EC parameters (n,k) and the packet arrival rates to determine the settings that achieve the lowest loss probability.


Yet another application calculates pC, which is the probability of arrival of a competing packet, given the parameters pA, pD, L, the EC parameters (n,k), and the rate of losing primary data packets after EC recovery. The applications described above assume that values for the parameters pA, pC, pD and L are known. If the value for pC is not known, the value of pC can be obtained from the parameters pA, pD, ploss and L if no EC protection is provided, and it can be obtained from the parameters pA, n, k, pD, Eloss and L if EC protection is provided. An iterative process that calculates pC may be implemented in the data source 2, for example. This process can obtain the values for pA, n and k from the data source 2 and can obtain the values for pD and Ploss or Eloss from the receiver 20. The value for L is often known a priori but can be obtained from the packet processing device 10 if it is not otherwise known. The way in which the iteration may be performed is described in the following paragraphs. The value of pC that is calculated by this process can be used in other applications such as an input parameter to the algorithms described above.


If no EC protection is provided, the value of pC for a Bernoulli-traffic system can be determined from relations defined by equation 2 and equations 42 to 44. For a CBR-traffic system, the value can be determined from relations defined by equation 2 and the technique described above in connection with equation 53. For either type of system, the relations defined by these equations establish a monotonic one-to-one mapping between pC and Ploss. Using this mapping property, pC may be determined by an iterative binary-chop search that converges to the value of pC.


If EC protection is provided, the value of pC for a Bernoulli-traffic system can be determined from relations defined by equations 2 and 48. For a CBR-traffic system, the value can be determined from relations defined by equations 2 and 71. For either type of system, the relations defined by these equations establish a monotonic one-to-one mapping between pC and Erec. Using this mapping property, pC may be determined by an iterative binary-chop search that converges to the value of pC.


In many implementations, the feasible choices of n and k are limited by bandwidth and delay requirements. The algorithms described in the preceding paragraphs can be used to find the EC parameters (n,k) among all feasible choices of n and k that minimize the loss probability after EC recovery: The value for pC is determined as just described and then a search over all feasible values of n and k is performed to find the optimum values.


H. Implementation

Referring to FIG. 1, the communication paths 3, 5, 11, 21 and 22 may be implemented by essentially any technology and media such as electrical signals through metallic wires, optical signals through optical fiber, and radio-frequency (RF) emissions through space. The present invention may be used advantageously in communication systems like that suggested in FIG. 1 in which the communication path 11 is a wireless RF path and all other communication paths are electrical or optical paths.


The functions required to practice various aspects of the present invention can be performed by components that are implemented in a wide variety of ways including discrete logic components, integrated circuits, one or more ASICs and/or program-controlled processors. The manner in which these components are implemented is not important to the present invention.


Software implementations of the present invention may be conveyed by a variety of machine readable media such as baseband or modulated communication paths throughout the spectrum including from supersonic to ultraviolet frequencies, or storage media that convey information using essentially any recording technology including magnetic tape, cards or disk, optical cards or disc, and detectable markings on media including paper.

Claims
  • 1. A method for controlling a provision of packets in a communication system comprising: a first data source that provides a source signal conveying information arranged in a set of packets comprising a first number of data packets and a second number of error-correction packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal and applies an error correction process to these received packets to recover corrupted or missing information, wherein the method comprises: (a) receiving one or more signals conveying parameters representing the buffer size, the first and second numbers, an arrival probability that a packet from the first data source is received by the packet processing device during an interval of time, a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty, and an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time; (b) deriving from the parameters a measure of loss probability that information in a data packet is lost and not recovered by the error correction process, wherein the measure of the loss probability is derived by a process that accounts for losses caused by the buffer being full and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; and (c) adapting the first number or the second number in response to the measure of the loss probability.
  • 2. The method of claim 1 wherein the process represents the solution of the model in which packets in the source signal arrive at the processing device according to a deterministic process and packets arrive at a constant rate, and wherein the arrival probability is proportional to the constant rate.
  • 3. The method of claim 1 wherein: the arrival probability conforms to a first probability distribution of packets in the source signal arriving at the processing device according to a deterministic process, and the interference probability conforms to a second probability distribution of a competing packet arriving at the processing device according to a probabilistic process.
  • 4. The method of claim 3 wherein the process derives the measure of the loss probability with approximation by excluding those states of buffer occupancy that have a steady-state probability below a threshold.
  • 5. The method of claim 4 wherein the process has a computational complexity proportional to a product of a fourth number raised to the third power, the first number and a fifth number, wherein the forth number represents a count of those states of buffer occupancy having a steady-state probability above the threshold and wherein the fifth number is inversely proportional to the arrival probability.
  • 6. The method of claim 1 wherein: the arrival probability conforms to a first probability distribution of packets in the source signal arriving at the processing device according to a Bernoulli process, and the process derives the measure of the loss probability without approximation and has a computational complexity proportional to a product of the second number and a third number, wherein the third number is equal to a sum of the first number and the second number.
  • 7. The method of claim 1 wherein the process derives the measure of the loss probability with approximation by excluding those states of buffer occupancy that have a steady-state probability below a threshold.
  • 8. The method of claim 7 wherein the process has a computational complexity proportional to a product of a fourth number raised to the third power, the first number and a fifth number, wherein the forth number represents a count of those states of buffer occupancy having a steady-state probability above the threshold and wherein the fifth number is inversely proportional to the arrival probability.
  • 9. The method of claim 1 that derives the interference probability by applying a second process to information representing the buffer size, the first and second numbers, the arrival probability, the transmission probability and an initial loss probability.
  • 10. The method of claim 9 wherein the second process derives the measure of the interference probability with approximation by excluding those states of buffer occupancy that have a steady-state probability below a threshold.
  • 11. A method for controlling a provision of packets in a communication system comprising: a first data source that provides a source signal conveying information arragned in a set of packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal, wherein the method comprises: (a) receiving one or more signals conveying parameters representing the buffer size, an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time, and a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty; (b) deriving from the parameters a respective loss probability for each of a plurality of arrival probabilities, wherein each respective loss probability represents a probability that information in a data packet is lost and is derived by a process that accounts for losses caused by the buffer being full, wherein each arrival probability represents a probability that a packet from the first data source is received by the packet processing device during an interval of time, and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; (c) selecting the arrival probability from which a minimum loss probability in the plurality of loss probabilities is derived; and (d) adapting operation of the first data source such that the packet processing device receives packets in a manner that more closely reflects the selected arrival probability.
  • 12. The method of claim 11 wherein the process represents the solution of the model in which packets in the source signal arrive at the processing device according to a deterministic process and packets arrive at a constant rate, and wherein the arrival probability is proportional to the constant rate.
  • 13. The method of claim 11 wherein: the arrival probability conforms to a first probability distribution of packets in the source signal arriving at the processing device according to a deterministic process, and the interference probability conforms to a second probability distribution of a competing packet arriving at the processing device according to a probabilistic process.
  • 14. The method of claim 11 wherein: the arrival probability conforms to a first probability distribution of packets in the source signal arriving at the processing device according to a Bernoulli process, and the process derives the measure of the loss probability without approximation and has a computational complexity proportional to a product of the second number and a third number, wherein the third number is equal to a sum of the first number and the second number.
  • 15. The method of claim 11 wherein the process derives the measure of the loss probability with approximation by excluding those states of buffer occupancy that have a steady-state probability below a threshold.
  • 16. The method of claim 15 wherein the process has a computational complexity proportional to a product of a fourth number raised to the third power, the first number and a fifth number, wherein the forth number represents a count of those states of buffer occupancy having a steady-state probability above the threshold and wherein the fifth number is inversely proportional to the arrival probability.
  • 17. The method of claim 13 wherein the process derives the measure of the loss probability with approximation by excluding those states of buffer occupancy that have a steady-state probability below a threshold.
  • 18. The method of claim 17 wherein the process has a computational complexity proportional to a product of a fourth number raised to the third power, the first number and a fifth number, wherein the forth number represents a count of those states of buffer occupancy having a steady-state probability above the threshold and wherein the fifth number is inversely proportional to the arrival probability.
  • 19. A communication system comprising: a first data source that provides a source signal conveying information arranged in a set of packets comprising a first number of data packets and a second number of error-correction packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal and applies an error correction process to these received packets to recover corrupted or missing information, wherein one or more of the first data source, the packet processing device and the receiver have circuitry that is adapted to: (a) receive one or more signals conveying parameters representing the buffer size, the first and second numbers, an arrival probability that a packet from the first data source is received by the packet processing device during an interval of time, a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty, and an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time; (b) derive from the parameters a measure of loss probability that information in a data packet is lost and not recovered by the error correction process, wherein the measure of the loss probability is derived by a process that accounts for losses caused by the buffer being full and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; and (c) adapt the first number or the second number in response to the measure of the loss probability.
  • 20. A communication system comprising: a first data source that provides a source signal conveying information arragned in a set of packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal, wherein one or more of the first data source, the packet processing device and the receiver have circuitry that is adapted to: (a) receive one or more signals conveying parameters representing the buffer size, an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time, and a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty; (b) derive from the parameters a respective loss probability for each of a plurality of arrival probabilities, wherein each respective loss probability represents a probability that information in a data packet is lost and is derived by a process that accounts for losses caused by the buffer being full, wherein each arrival probability represents a probability that a packet from the first data source is received by the packet processing device during an interval of time, and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; (c) select the arrival probability from which a minimum loss probability in the plurality of loss probabilities is derived; and (d) adapt operation of the first data source such that the packet processing device receives packets in a manner that more closely reflects the selected arrival probability.
  • 21. A medium conveying a program of instructions that is executable by a device to perform a method for setting error correction parameters in a communication system comprising: a first data source that provides a source signal conveying information arranged in a set of packets comprising a first number of data packets and a second number of error-correction packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal and applies an error correction process to these received packets to recover corrupted or missing information, wherein the method comprises: (a) receiving one or more signals conveying parameters representing the buffer size, the first and second numbers, an arrival probability that a packet from the first data source is received by the packet processing device during an interval of time, a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty, and an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time; (b) deriving from the parameters a measure of loss probability that information in a data packet is lost and not recovered by the error correction process, wherein the measure of the loss probability is derived by a process that accounts for losses caused by the buffer being full and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; and (c) adapting the first number or the second number in response to the measure of the loss probability.
  • 22. A medium conveying a program of instructions that is executable by a device to perform a method for setting error correction parameters in a communication system comprising: a first data source that provides a source signal conveying information arragned in a set of packets, a packet processing device that receives the source signal, stores information for at least some of the packets in the set of packets in a buffer having a buffer size, and transmits an output signal comprising packets of information of which at least some was stored in the buffer, wherein information for at least some of the packets in the set of packets is omitted from the output signal due to losses caused by the buffer being full, and a receiver that receives at least some of the packets in the output signal, wherein the method comprises: (a) receiving one or more signals conveying parameters representing the buffer size, an interference probability that a competing packet from any competing data source is received by the packet processing device during the interval of time, and a transmission probability that the packet processing device successfully transmits a packet during the interval of time when the buffer is not empty; (b) deriving from the parameters a respective loss probability for each of a plurality of arrival probabilities, wherein each respective loss probability represents a probability that information in a data packet is lost and is derived by a process that accounts for losses caused by the buffer being full, wherein each arrival probability represents a probability that a packet from the first data source is received by the packet processing device during an interval of time, and wherein either: (1) the process has a computational complexity that is independent of the buffer size and the loss probability has a value from zero to one for all values of the arrival probability, the transmission probability and the interference probability from zero to one, or (2) the process represents a solution of a model in which packets in the source signal arrive at the packet processing device according to a deterministic process; (c) selecting the arrival probability from which a minimum loss probability in the plurality of loss probabilities is derived; and (d) adapting operation of the first data source such that the packet processing device receives packets in a manner that more closely reflects the selected arrival probability.