TOC 
FecFrameV. Roca
Internet-DraftM. Cunche
Intended status: Standards TrackINRIA
Expires: September 5, 2009J. Lacan
 A. Bouabdallah
 ISAE/LAAS-CNRS
 K. Matsuzono
 Keio University
 March 04, 2009


Reed-Solomon Forward Error Correction (FEC) Schemes for FECFRAME
draft-roca-fecframe-rs-00

Status of this Memo

This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79. This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”

The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.

The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.

This Internet-Draft will expire on September 5, 2009.

Copyright Notice

Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.

Abstract

This document describes four fully-specified FEC schemes for Reed-Solomon codes that can be used to protect media streams along the lines defined by the FECFRAME framework. Reed-Solomon codes belong to the class of Maximum Distance Separable (MDS) codes which means they offer optimal protection against packet erasures. They are also systematic codes, which means that the source symbols are part of the encoding symbols. The price to pay is a limit on the maximum source block size, on the maximum number of encoding symbols, and a computational complexity higher than that of sparse parity check based FEC codes. However, this complexity remains compatible with software codecs.

The first scheme is for Reed-Solomon codes over GF(2^^m), with m in {2..16}, a global FEC encoding and arbitrary packet flows. The second scheme is for Reed-Solomon codes over GF(2^^m), with m in {2..16}, the general case FEC encoding, and arbitrary packet flows. The third (resp. fourth) scheme is similar to the first (resp. second) scheme, with the exception that it is for a single sequenced flow.



Table of Contents

1.  Introduction
2.  Terminology
3.  Definitions Notations and Abbreviations
    3.1.  Definitions
    3.2.  Notations
    3.3.  Abbreviations
4.  Common Procedures Related to the Source Block Creation
    4.1.  Problem Statement
    4.2.  Source Block Creation with the Global Encoding Scheme
    4.3.  Source Block Creation with the General Case Encoding Scheme
5.  Reed-Solomon FEC Global Encoding Scheme over GF(2^^m) for Arbitrary Packet Flows
    5.1.  Formats and Codes
        5.1.1.  FEC Framework Configuration Information
        5.1.2.  Explicit Source FEC Payload ID
        5.1.3.  Repair FEC Payload ID
    5.2.  Procedures
    5.3.  FEC Code Specification
6.  Reed-Solomon FEC General Case Encoding Scheme over GF(2^^m) for Arbitrary Packet Flows
    6.1.  Formats and Codes
        6.1.1.  FEC Framework Configuration Information
        6.1.2.  Explicit Source FEC Payload ID
        6.1.3.  Repair FEC Payload ID
    6.2.  Procedures
    6.3.  FEC Code Specification
7.  Reed-Solomon FEC Global Encoding Scheme over GF(2^^m) for a Single Sequenced Flow
8.  Reed-Solomon FEC General Case Encoding Scheme over GF(2^^m) for a Single Sequenced Flow
9.  Security Considerations
    9.1.  Problem Statement
    9.2.  Attacks Against the Data Flow
        9.2.1.  Access to Confidential Objects
        9.2.2.  Content Corruption
    9.3.  Attacks Against the FEC Parameters
10.  IANA Considerations
11.  Acknowledgments
12.  References
    12.1.  Normative References
    12.2.  Informative References
§  Authors' Addresses




 TOC 

1.  Introduction

The use of Forward Error Correction (FEC) codes is a classic solution to improve the reliability of unicast, multicast and broadcast Content Delivery Protocols (CDP) and applications [RFC3453] (Luby, M., Vicisano, L., Gemmell, J., Rizzo, L., Handley, M., and J. Crowcroft, “The Use of Forward Error Correction (FEC) in Reliable Multicast,” December 2002.). The [FECFRAME‑FRAMEWORK] (Watson, M., “Forward Error Correction (FEC) Framework,” October 2008.) document describes a generic framework to use FEC schemes with media delivery applications and in particular with real-time or streaming media applications based on the RTP real-time protocol. Similarly the [RFC5052] (Watson, M., Luby, M., and L. Vicisano, “Forward Error Correction (FEC) Building Block,” August 2007.) document describes a generic framework to use FEC schemes with with objects (e.g., files) delivery applications based on the ALC [RMT‑PI‑ALC] (Luby, M., Watson, M., and L. Vicisano, “Asynchronous Layered Coding (ALC) Protocol Instantiation,” November 2007.) and NORM [RMT‑PI‑NORM] (Adamson, B., Bormann, C., Handley, M., and J. Macker, “Negative-acknowledgment (NACK)-Oriented Reliable Multicast (NORM) Protocol,” May 2008.) reliable multicast transport protocols.

For instance, the [RFC5053] (Luby, M., Shokrollahi, A., Watson, M., and T. Stockhammer, “Raptor Forward Error Correction Scheme,” June 2007.) and [RFC5170] (Roca, V., Neumann, C., and D. Furodet, “Low Density Parity Check (LDPC) Forward Error Correction,” June 2008.) FEC schemes introduce erasure codes based on sparse parity check matrices for object delivery protocols like ALC and NORM. These codes are efficient in terms of processing but not optimal in terms of erasure recovery capabilities when dealing with "small" objects.

The Reed-Solomon FEC codes described in this document belong to the class of Maximum Distance Separable (MDS) codes that are optimal in terms of erasure recovery capability. It means that a receiver can recover the k source symbols from any set of exactly k encoding symbols. However they are limited in terms of maximum source block size and number of encoding symbols. Since the real-time constraints of media delivery applications usually limit the maximum source block size, this is not considered to be a major issue in the context of the FEC Framework for many (but not necessarily all) use-cases. Additionally, if the encoding/decoding complexity is higher with Reed-Solomon codes than it is with [RFC5053] (Luby, M., Shokrollahi, A., Watson, M., and T. Stockhammer, “Raptor Forward Error Correction Scheme,” June 2007.) or [RFC5170] (Roca, V., Neumann, C., and D. Furodet, “Low Density Parity Check (LDPC) Forward Error Correction,” June 2008.) codes, it remains reasonable for most use-cases, even in case of a software codec.

Many applications dealing with reliable content transmission or content storage already rely on packet-based Reed-Solomon codes. In particular, many of them use the Reed-Solomon codec of Luigi Rizzo [RS‑codec] (Rizzo, L., “Reed-Solomon FEC codec (revised version of July 2nd, 1998), available at http://info.iet.unipi.it/~luigi/vdm98/vdm980702.tgz and mirrored at http://planete-bcast.inrialpes.fr/,” July 1998.) [Rizzo97] (Rizzo, L., “Effective Erasure Codes for Reliable Computer Communication Protocols,” April 1997.). The goal of the present document is to specify Reed-Solomon schemes that are compatible with this codec.

The [RMT‑BB‑FEC‑RS] (Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” November 2007.) document introduced such Reed-Solomon codes, and the FEC schemes are compatible with the [RFC5052] (Watson, M., Luby, M., and L. Vicisano, “Forward Error Correction (FEC) Building Block,” August 2007.) framework. The present document inherits from [RMT‑BB‑FEC‑RS] (Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” November 2007.) the specification of the core Reed-Solomon codes based on Vandermonde matrices, and specifies FEC schemes that are compatible with the [FECFRAME‑FRAMEWORK] (Watson, M., “Forward Error Correction (FEC) Framework,” October 2008.) framework. Therefore this document specifies only the information specific to the FECFRAME context and refers to [RMT‑BB‑FEC‑RS] (Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” November 2007.) for the core specifications of the codes.

The present document introduces:

Distinguishing FEC schemes with a global FEC encoding and FEC schemes with the general case FEC encoding derives from the small block nature of Reed-Solomon codes over GF(2^^^8), the default value. With the general case encoding, protecting a single source data payload block can require to perform several independent FEC encodings, over different sub-blocks. A dedicated interleaving solution is then used to assign the various symbols of a given source packet to the sub-blocks in an optimal way, so as to guaranty the highest possible erasure recovery capabilities.



 TOC 

2.  Terminology

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” .).



 TOC 

3.  Definitions Notations and Abbreviations



 TOC 

3.1.  Definitions

This document uses the same terms and definitions as those specified in [RFC5052] (Watson, M., Luby, M., and L. Vicisano, “Forward Error Correction (FEC) Building Block,” August 2007.). Additionally, it uses the following definitions:

Source symbol: unit of data used during the encoding process.

Encoding symbol: unit of data generated by the encoding process. With systematic codes, source symbols are part of the encoding symbols.

Repair symbol: encoding symbol that is not a source symbol.

Code rate: the k/n ratio, i.e., the ratio between the number of source symbols and the number of encoding symbols. The code rate belongs to a ]0; 1] interval. A code rate close to 1 indicates that a small number of repair symbols have been produced during the encoding process.

Systematic code: FEC code in which the source symbols are part of the encoding symbols. The Reed-Solomon codes introduced in this document are systematic.

Source block: a block of k source symbols that are considered together for the encoding.

Source Packet: a data packet containing only source symbols.

Repair Packet: a data packet containing only repair symbols.

Packet Erasure Channel: a communication path where packets are either dropped (e.g., by a congested router, or because the number of transmission errors exceeds the correction capabilities of the physical layer codes) or received. When a packet is received, it is assumed that this packet is not corrupted.

Source Data Flow: a flow of data payloads coming from an application (e.g., using an RTP encapsulation), and to which FEC protection is applied.

Source Data Payload: a unit of data that belongs to a source data flow.

Source Data Payload Block: a set of source data payloads that are considered together by the FECFRAME instance. This is the set of symbols over which FEC encoding will be performed, either in a global way, or separately, over each sub-block.

Sub-Block: a block of k source symbols, in the general case FEC encoding scheme. FEC encoding is performed independently over each sub-block.



 TOC 

3.2.  Notations

This document uses the following notations:

k denotes the number of source symbols in a source block.

max_k denotes the maximum number of source symbols for any source block.

n_r denotes the number of repair symbols generated for a source block.

n denotes the encoding block length, i.e., the number of encoding symbols generated for a source block. Therefore: n = k + n_r.

B denotes the number of source data payloads per source block.

max_B denotes the maximum number of source data payloads for any source block.

E denotes the encoding symbol length in bytes.

S denotes the symbol size in units of m-bit elements. When m = 8, then S and E are equal.

m defines the length of the elements in the finite field, in bits. In this document, m belongs to {2..16}.

q defines the number of elements in the finite field. We have: q = 2^^m in this specification.

CR denotes the "code rate", i.e., the k/n ratio.

a^^b denotes a raised to the power b.



 TOC 

3.3.  Abbreviations

This document uses the following abbreviations:

ESI stands for Encoding Symbol ID.

FFCI stands for FEC Framework Configuration Information.

RS stands for Reed-Solomon.

MDS stands for Maximum Distance Separable code.

GF(q) denotes a finite field (also known as Galois Field) with q elements. We assume that q = 2^^m in this document.



 TOC 

4.  Common Procedures Related to the Source Block Creation

This section introduces the procedures that are used during the source block creation, and that are common to all the FEC schemes introduced in this document.



 TOC 

4.1.  Problem Statement

Several aspects must be considered, that impact the source block creation:

We now detail each of these aspects.

In its most general form the FECFRAME framework and the RS FEC schemes are meant to protect a set of independent flows. Since the flows have no relationship to one another, the source data payloads of each flow will potentially vary significantly. Even in the special case of a single flow, the source data payload sizes may largely vary (e.g., the various frames of a "Group of Pictures (GOP) of an H.264 flow can have different sizes). This diversity must be addressed by the source block creation procedure since the RS FEC scheme requires a constant encoding symbol size (E parameter).

The finite field size parameter, m, defines the number of non zero elements in this field which is equal to: q - 1 = 2^^m - 1. This q - 1 value is also the theoretical maximum number of encoding symbols that can be produced for a source block. For instance, when m = 8 (default) there is a maximum of 2^^8 - 1 = 255 encoding symbols. So: k < = n < = 255. Given the target FEC code rate (e.g., provided by the developer when starting the FECFRAME framework, and taking into account the (known or estimated) packet loss rate), the sender calculates:

max_k = floor((2^^m - 1) * CR)

This max_k value leaves enough room for the sender to produce the desired number of repair symbols.

The source flows can have real-time constraints. It means that the maximum number of source transport payloads of a source block, which directly impacts the decoding delay, must not exceed a certain threshold. It is the role of the developer, who knows the flow real-time features, to define an appropriate upper bound to the source data payload block size, max_B.

Another aspect is the appropriate way of performing FEC encoding over the source data payload block. Depending of the actual situation, two schemes are feasible:

These two encoding schemes are introduced in the following sections.



 TOC 

4.2.  Source Block Creation with the Global Encoding Scheme

With the global encoding scheme, the source data payload block is encoded as a single source block. There are a total of B < = max_B source data payloads. For the source data payload i, with 0 < = i < = B-1, 3 bytes are prepended (Figure 1 (Source block creation with the global encoding scheme, for code rate 1/2 (equal number of source and repair symbols, 7 in this example).)):

Zero padding is also added, in field Pad[i], if needed, for alignment purposes on symbol boundaries. This can happen at most once per source data payload. Thanks to this padding, a symbol will never straddle several source data payloads, nor several source packets.



  Enc Symbol Len (E)    Enc Symbol Len (E)    Enc Symbol Len (E)
< ------------------ >< ------------------ >< ------------------ >
+----+----+-----------------------+--------+
|F[0]|L[0]|          R[0]         | Pad[1] |
+----+----+----------+------------+--------+
|F[1]|L[1]|   R[1]   |
+----+----+----------+--------------------------------------+----+
|F[2]|L[2]|                      R[2]                       |P[2]|
+----+----+----------+--------------------------------------+----+
|F[3]|L[3]| R[3] | P3|
+----+----+------+---+
\_______________________________  _______________________________/
                                \/
                       global FEC encoding

+--------------------+
|      Repair 4      |
+--------------------+
|      Repair 5      |
+--------------------+
|      Repair 6      |
+--------------------+
|      Repair 7      |
+--------------------+
 Figure 1: Source block creation with the global encoding scheme, for code rate 1/2 (equal number of source and repair symbols, 7 in this example). 

Note that neither the initial 3 bytes nor the optional padding is sent over the network. However, they are considered when performing FEC encoding, which means that a receiver who lost a certain UDP datagram (if UDP is used) will be able to recover both the source data payload and the initial 3 bytes, as long as FEC decoding succeeds.



 TOC 

4.3.  Source Block Creation with the General Case Encoding Scheme

With the general case encoding scheme, the source data payload block is potentially split into several sub-blocks. Each sub-block leads to a different FEC encoding and the appropriate number of repair symbols are generated, for each sub-block, as specified by the target code rate. This constraint comes from the fact that the number of source symbols in the source data payload block exceeds the max_k value (Section 4.1 (Problem Statement)). In this section we define an interleaving approach to distribute the source symbols of the various packets to sub-blocks in order to guaranty the best possible erasure protection. Note that this solution is preferable to the alternative approach consisting in considering smaller source data payload blocks, from an erasure recovery capability point of view. Note also that the source block creation with the global encoding scheme (Section 4.2 (Source Block Creation with the Global Encoding Scheme)) can also be regarded as a special case, with a single sub-block.

For the source data payload i, with 0 < = i < = B-1, 3 bytes are prepended and an optional zero padding appended, as in Section 4.2 (Source Block Creation with the Global Encoding Scheme).

Let:

s[i] be the number of size of the source data payload i, along with the F[i], L[i], and Pad[i] fields, in units of symbols.

k_tot be the total number of symbols in this source data payload block. In other words, k_tot is the sum of all s[i], with 0 < = i < = B-1.

NSB be the number of sub-blocks for this source data payload block. NSB = Ceil(k_tot / max_k).

Here we assume that k_tot > = max_k (the case where it is equal corresponds to Section 4.2 (Source Block Creation with the Global Encoding Scheme)). The key point here is that maximum erasure recover capabilities require that the source symbols coming from a certain source packet be spread over the largest possible number of sub-blocks. Thereby, the loss of a single source packet will trigger a single symbol erasure on the corresponding sub-blocks, instead of deeply impacting a single sub-block which might compromise FEC decoding. This requirement leads to the definition of an appropriate interleaving scheme.

Let us consider the example of Figure 2 (Source block creation with the general case encoding scheme example (the source data payloads are assumed to be already split in symbols and the F[], L[] and Pad[] fields are not represented).).



           +----------+
src pkt 0: | symb 0.0 |
           +----------+

           +----------+
src pkt 1: | symb 1.0 |
           +----------+

           +----------+----------+
src pkt 2: | symb 2.0 | symb 2.1 |
           +----------+----------+

           +----------+----------+
src pkt 3: | symb 3.0 | symb 3.1 |
           +----------+----------+

           +----------+----------+----------+
src pkt 4: | symb 4.0 | symb 4.1 | symb 4.2 |
           +----------+----------+----------+
 Figure 2: Source block creation with the general case encoding scheme example (the source data payloads are assumed to be already split in symbols and the F[], L[] and Pad[] fields are not represented). 

The source data payload block consists of five packets (B = 5), whose size (in unit of symbols) is respectively 1, 1, 2, 2, and 3 symbols. Therefore k_tot = 9 symbols. If max_k = 3 symbols, then NSB = Ceil(9/3) = 3 sub-blocks. A good interleaving consists in creating the following sub-blocks: SB0 = {2.0; 3.0; 4.0}, SB1 = {2.1; 3.1; 4.1}, and SB2 = {0.0; 1.0; 2.0}. If the source packet 4 is lost during transmission, then it leads to a single symbol loss in the three sub-blocks, which will easily be recovered after FEC decoding.

----- Editor's note: The exact optimal interleaving algorithm is TBD. -----

Here also, neither the initial 3 bytes nor the optional padding is sent over the network. However, they are considered when performing FEC encoding, which means that a receiver who lost a certain UDP datagram (if UDP is used) will be able to recover both the source data payload and the initial 3 bytes, as long as FEC decoding succeeds.



 TOC 

5.  Reed-Solomon FEC Global Encoding Scheme over GF(2^^m) for Arbitrary Packet Flows



 TOC 

5.1.  Formats and Codes



 TOC 

5.1.1.  FEC Framework Configuration Information

The FEC Framework Configuration Information (or FFCI) includes information that MUST be communicated between the sender and receiver(s) for the FEC scheme to operate. It includes both mandatory elements and scheme-specific elements, as detailed below.



 TOC 

5.1.1.1.  Mandatory Information

When SDP is used to communicate the FFCI, this FEC Encoding ID is carried in the 'encoding-id' parameter.



 TOC 

5.1.1.2.  FEC Scheme-Specific Information

The FEC Scheme Specific Information (FSSI) includes elements that are specific to the present FEC scheme. More precisely:

The encoding format is the following 3 octet field:



 0                   1                   2
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Encoding Symbol Length (E)  |       m       |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 Figure 3: FSSI encoding format. 

These elements are required both by the sender (RS encoder) and the receiver(s) (RS decoder). When SDP is used to communicate the FFCI, this FEC Encoding ID is carried in the 'fssi' parameter as an opaque octet string.



 TOC 

5.1.2.  Explicit Source FEC Payload ID

A source packet MUST contain an Explicit Source FEC Payload ID that is appended to the end of the packet as illustrated in Figure 4 (Structure of a source packet with the Explicit Source FEC Payload ID.). It contains the original source data payload, and therefore it can span several source symbols.



+--------------------------------+
|           IP Header            |
+--------------------------------+
|        Transport Header        |
+--------------------------------+
|       Source Data Payload      |
+--------------------------------+
| Explicit Source FEC Payload ID |
+--------------------------------+
 Figure 4: Structure of a source packet with the Explicit Source FEC Payload ID. 

More precisely, the Explicit Source FEC Payload ID is composed of the Source Block Number and the Encoding Symbol ID. The length of these two fields depends on the m parameter (which is transmitted separately in the FFCI, see below):



 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      Source Block Number (32-8=24 bits)       | Enc. Symb. ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 Figure 5: Source FEC Payload ID encoding format for m = 8 (default). 



 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Source Block Nb (16 bits)   |   Enc. Symbol ID (16 bits)    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 Figure 6: Source FEC Payload ID encoding format for m = 16. 

The format of the FEC Payload ID for m = 8 and m = 16 is illustrated in Figure 5 (Source FEC Payload ID encoding format for m = 8 (default).) and Figure 6 (Source FEC Payload ID encoding format for m = 16.) respectively.



 TOC 

5.1.3.  Repair FEC Payload ID

A repair packet MUST contain a Repair FEC Payload ID that is prepended to the repair symbol(s) as illustrated in Figure 7 (Structure of a repair packet with the Repair FEC Payload ID.). There can be several repair symbols per repair packet.



+--------------------------------+
|           IP Header            |
+--------------------------------+
|        Transport Header        |
+--------------------------------+
|      Repair FEC Payload ID     |
+--------------------------------+
|         Repair Symbol          |
+--------------------------------+
 Figure 7: Structure of a repair packet with the Repair FEC Payload ID. 

More precisely, the Repair FEC Payload ID is composed of the Source Block Number, the Encoding Symbol ID and the Source Block Length. The length of these fields depends on the parameter m (which is transmitted separately in the FFCI, see below):



 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|       Source Block Number (32-8=24 bits)      | Enc. Symb. ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Source Block Length (SBL)   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


 Figure 8: Source FEC Payload ID encoding format for m = 8 (default). 



 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Source Block Nb (16 bits)   |   Enc. Symbol ID (16 bits)    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Source Block Length (SBL)   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 Figure 9: Source FEC Payload ID encoding format for m = 16. 

The format of the FEC Payload ID for m = 8 and m = 16 is illustrated in Figure 8 (Source FEC Payload ID encoding format for m = 8 (default).) and Figure 9 (Source FEC Payload ID encoding format for m = 16.) respectively.



 TOC 

5.2.  Procedures

The source block creation procedures are specified in Section 4.2 (Source Block Creation with the Global Encoding Scheme). More precisely:



 TOC 

5.3.  FEC Code Specification

The present document inherits from [RMT‑BB‑FEC‑RS] (Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” November 2007.) the specification of the core Reed-Solomon codes based on Vandermonde matrices.



 TOC 

6.  Reed-Solomon FEC General Case Encoding Scheme over GF(2^^m) for Arbitrary Packet Flows



 TOC 

6.1.  Formats and Codes



 TOC 

6.1.1.  FEC Framework Configuration Information

The FEC Framework Configuration Information (or FFCI) includes information that MUST be communicated between the sender and receiver(s) for the FEC scheme to operate. It include both mandatory elements and scheme-specific elements, as detailed below.



 TOC 

6.1.1.1.  Mandatory Information

When SDP is used to communicate the FFCI, this FEC Encoding ID is carried in the 'encoding-id' parameter.



 TOC 

6.1.1.2.  FEC Scheme-Specific Information

TBD



 TOC 

6.1.2.  Explicit Source FEC Payload ID

A source packet MUST contain an Explicit Source FEC Payload ID that is appended to the end of the packet as illustrated in Figure 4 (Structure of a source packet with the Explicit Source FEC Payload ID.).

TBD



 TOC 

6.1.3.  Repair FEC Payload ID

A repair packet MUST contain a Repair FEC Payload ID that is prepended to the repair symbol(s) as illustrated in Figure 7 (Structure of a repair packet with the Repair FEC Payload ID.).

TBD



 TOC 

6.2.  Procedures

The source block creation procedures are specified in Section 4.3 (Source Block Creation with the General Case Encoding Scheme). More precisely:



 TOC 

6.3.  FEC Code Specification

The present document inherits from [RMT‑BB‑FEC‑RS] (Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” November 2007.) the specification of the core Reed-Solomon codes based on Vandermonde matrices.



 TOC 

7.  Reed-Solomon FEC Global Encoding Scheme over GF(2^^m) for a Single Sequenced Flow

TBD



 TOC 

8.  Reed-Solomon FEC General Case Encoding Scheme over GF(2^^m) for a Single Sequenced Flow

TBD



 TOC 

9.  Security Considerations

----- Editor's note: Section To Be Updated... -----



 TOC 

9.1.  Problem Statement

A content delivery system is potentially subject to many attacks: some of them target the network (e.g., to compromise the routing infrastructure, by compromising the congestion control component), others target the Content Delivery Protocol (CDP) (e.g., to compromise its normal behavior), and finally some attacks target the content itself. Since this document focuses on a FEC building block independently of any particular CDP (even if ALC and NORM are two natural candidates), this section only discusses the additional threats that an arbitrary CDP may be exposed to when using this building block.

More specifically, several kinds of attacks exist:

These attacks can be launched either against the data flow itself (e.g. by sending forged symbols) or against the FEC parameters that are sent either in-band (e.g., in an EXT_FTI or FDT Instance) or out-of-band (e.g., in a session description).



 TOC 

9.2.  Attacks Against the Data Flow

First of all, let us consider the attacks against the data flow.



 TOC 

9.2.1.  Access to Confidential Objects

Access control to the object being transmitted is typically provided by means of encryption. This encryption can be done over the whole object (e.g., by the content provider, before the FEC encoding process), or be done on a packet per packet basis (e.g., when IPSec/ESP is used [RFC4303] (Kent, S., “IP Encapsulating Security Payload (ESP),” December 2005.)). If access control is a concern, it is RECOMMENDED that one of these solutions be used. Even if we mention these attacks here, they are not related nor facilitated by the use of FEC.



 TOC 

9.2.2.  Content Corruption

Protection against corruptions (e.g., after sending forged packets) is achieved by means of a content integrity verification/sender authentication scheme. This service can be provided at the object level, but in that case a receiver has no way to identify which symbol(s) is(are) corrupted if the object is detected as corrupted. This service can also be provided at the packet level. In this case, after removing all forged packets, the object may be in some case recovered. Several techniques can provide this source authentication/content integrity service:

Techniques relying on public key cryptography (digital signatures and TESLA during the bootstrap process, when used) require that public keys be securely associated to the entities. This can be achieved by a Public Key Infrastructure (PKI), or by a PGP Web of Trust, or by pre-distributing the public keys of each group member.

Techniques relying on symmetric key cryptography (group MAC) require that a secret key be shared by all group members. This can be achieved by means of a group key management protocol, or simply by pre-distributing the secret key (but this manual solution has many limitations).

It is up to the developer and deployer, who know the security requirements and features of the target application area, to define which solution is the most appropriate. Nonetheless, in case there is any concern of the threat of object corruption, it is RECOMMENDED that at least one of these techniques be used.



 TOC 

9.3.  Attacks Against the FEC Parameters

Let us now consider attacks against the FEC parameters (or FEC OTI). The FEC OTI can either be sent in-band (i.e., in an EXT_FTI or in an FDT Instance containing FEC OTI for the object) or out-of-band (e.g., in a session description). Attacks on these FEC parameters can prevent the decoding of the associated object: for instance modifying the B parameter will lead to a different block partitioning at a receiver thereby compromising decoding; or setting the m parameter to 16 instead of 8 with FEC Encoding ID 2 will increase the processing load while compromising decoding.

It is therefore RECOMMENDED that security measures be taken to guarantee the FEC OTI integrity. To that purpose, the packets carrying the FEC parameters sent in-band in an EXT_FTI header extension SHOULD be protected by one of the per-packet techniques described above: digital signature, group MAC, or TESLA. When FEC OTI is contained in an FDT Instance, this object SHOULD be protected, for instance by digitally signing it with XML digital signatures [RFC3275] (Eastlake, D., Reagle, J., and D. Solo, “(Extensible Markup Language) XML-Signature Syntax and Processing,” March 2002.). Finally, when FEC OTI is sent out-of-band (e.g., in a session description) this latter SHOULD be protected, for instance by digitally signing it.

The same considerations concerning the key management aspects apply here also.



 TOC 

10.  IANA Considerations

Values of FEC Encoding IDs and FEC Instance IDs are subject to IANA registration.

TBD



 TOC 

11.  Acknowledgments

The authors want to thank Hitoshi Asaeda for his valuable comments.



 TOC 

12.  References



 TOC 

12.1. Normative References

[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” RFC 2119.
[RFC5052] Watson, M., Luby, M., and L. Vicisano, “Forward Error Correction (FEC) Building Block,” RFC 5052, August 2007.
[RMT-BB-FEC-RS] Lacan, J., Roca, V., Peltotalo, J., and S. Peltotalo, “Reed-Solomon Forward Error Correction (FEC) Schemes,” Work in Progress, November 2007.
[FECFRAME-FRAMEWORK] Watson, M., “Forward Error Correction (FEC) Framework,” Work in Progress, October 2008.


 TOC 

12.2. Informative References

[RFC3453] Luby, M., Vicisano, L., Gemmell, J., Rizzo, L., Handley, M., and J. Crowcroft, “The Use of Forward Error Correction (FEC) in Reliable Multicast,” RFC 3453, December 2002.
[RS-codec] Rizzo, L., “Reed-Solomon FEC codec (revised version of July 2nd, 1998), available at http://info.iet.unipi.it/~luigi/vdm98/vdm980702.tgz and mirrored at http://planete-bcast.inrialpes.fr/,” July 1998.
[Rizzo97] Rizzo, L., “Effective Erasure Codes for Reliable Computer Communication Protocols,” ACM SIGCOMM Computer Communication Review Vol.27, No.2, pp.24-36, April 1997.
[RFC5170] Roca, V., Neumann, C., and D. Furodet, “Low Density Parity Check (LDPC) Forward Error Correction,” RFC 5170, June 2008.
[RFC5053] Luby, M., Shokrollahi, A., Watson, M., and T. Stockhammer, “Raptor Forward Error Correction Scheme,” RFC 5053, June 2007.
[RMT-PI-ALC] Luby, M., Watson, M., and L. Vicisano, “Asynchronous Layered Coding (ALC) Protocol Instantiation,” Work in Progress, November 2007.
[RMT-PI-NORM] Adamson, B., Bormann, C., Handley, M., and J. Macker, “Negative-acknowledgment (NACK)-Oriented Reliable Multicast (NORM) Protocol,” Work in Progress, May 2008.
[RFC3447] Jonsson, J. and B. Kaliski, “Public-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1,” RFC 3447, February 2003 (TXT).
[RFC4303] Kent, S., “IP Encapsulating Security Payload (ESP),” RFC 4303, December 2005 (TXT).
[RFC2104] HMAC: Keyed-Hashing for Message Authentication,” RFC 2104, February 1997.
[RFC4082] Timed Efficient Stream Loss-Tolerant Authentication (TESLA): Multicast Source Authentication Transform Introduction,” RFC 4082, June 2005.
[RFC3275] Eastlake, D., Reagle, J., and D. Solo, “(Extensible Markup Language) XML-Signature Syntax and Processing,” RFC 3275, March 2002 (TXT).


 TOC 

Authors' Addresses

  Vincent Roca
  INRIA
  655, av. de l'Europe
  Inovallee; Montbonnot
  ST ISMIER cedex 38334
  France
Email:  vincent.roca@inria.fr
URI:  http://planete.inrialpes.fr/people/roca/
  
  Mathieu Cunche
  INRIA
  655, av. de l'Europe
  Inovallee; Montbonnot
  ST ISMIER cedex 38334
  France
Email:  mathieu.cunche@inria.fr
URI:  http://planete.inrialpes.fr/people/cunche/
  
  Jerome Lacan
  ISAE/LAAS-CNRS
  1, place Emile Blouin
  Toulouse 31056
  France
Email:  jerome.lacan@isae.fr
URI:  http://dmi.ensica.fr/auteur.php3?id_auteur=5
  
  Amine Bouabdallah
  ISAE/LAAS-CNRS
  1, place Emile Blouin
  Toulouse 31056
  France
Email:  Amine.Bouabdallah@isae.fr
URI:  http://dmi.ensica.fr/
  
  Kazuhisa Matsuzono
  Keio University
  Graduate School of Media and Governance
  5322 Endo
  Fujisawa, Kanagawa 252-8520
  Japan
Email:  kazuhisa@sfc.wide.ad.jp