1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229
|
<pre>Internet Engineering Task Force (IETF) M. Watson
Request for Comments: 6681 Netflix
Category: Standards Track T. Stockhammer
ISSN: 2070-1721 Nomor Research
M. Luby
Qualcomm Incorporated
August 2012
<span class="h1">Raptor Forward Error Correction (FEC) Schemes for FECFRAME</span>
Abstract
This document describes Fully-Specified Forward Error Correction
(FEC) Schemes for the Raptor and RaptorQ codes and their application
to reliable delivery of media streams in the context of the FEC
Framework. The Raptor and RaptorQ codes are systematic codes, where
a number of repair symbols are generated from a set of source symbols
and sent in one or more repair flows in addition to the source
symbols that are sent to the receiver(s) within a source flow. The
Raptor and RaptorQ codes offer close to optimal protection against
arbitrary packet losses at a low computational complexity. Six FEC
Schemes are defined: two for the protection of arbitrary packet
flows, two that are optimized for small source blocks, and two for
the protection of a single flow that already contains a sequence
number. Repair data may be sent over arbitrary datagram transport
(e.g., UDP) or using RTP.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by
the Internet Engineering Steering Group (IESG). Further
information on Internet Standards is available in <a href="./rfc5741#section-2">Section 2 of
RFC 5741</a>.
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6681">http://www.rfc-editor.org/info/rfc6681</a>.
<span class="grey">Watson, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
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.
<span class="grey">Watson, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-4">4</a>
<a href="#section-2">2</a>. Document Outline ................................................<a href="#page-5">5</a>
<a href="#section-3">3</a>. Requirements Notation ...........................................<a href="#page-5">5</a>
<a href="#section-4">4</a>. Definitions and Abbreviations ...................................<a href="#page-5">5</a>
<a href="#section-4.1">4.1</a>. Definitions ................................................<a href="#page-6">6</a>
<a href="#section-4.2">4.2</a>. Abbreviations ..............................................<a href="#page-6">6</a>
<a href="#section-5">5</a>. General Procedures for Raptor FEC Schemes .......................<a href="#page-6">6</a>
<a href="#section-6">6</a>. Raptor FEC Schemes for Arbitrary Packet Flows ...................<a href="#page-8">8</a>
<a href="#section-6.1">6.1</a>. Introduction ...............................................<a href="#page-8">8</a>
<a href="#section-6.2">6.2</a>. Formats and Codes ..........................................<a href="#page-8">8</a>
<a href="#section-6.2.1">6.2.1</a>. FEC Framework Configuration Information .............<a href="#page-8">8</a>
<a href="#section-6.2.2">6.2.2</a>. Source FEC Payload ID ...............................<a href="#page-9">9</a>
<a href="#section-6.2.3">6.2.3</a>. Repair FEC Payload ID ..............................<a href="#page-10">10</a>
<a href="#section-6.3">6.3</a>. Procedures ................................................<a href="#page-11">11</a>
<a href="#section-6.3.1">6.3.1</a>. Source Symbol Construction .........................<a href="#page-11">11</a>
<a href="#section-6.3.2">6.3.2</a>. Repair Packet Construction .........................<a href="#page-12">12</a>
<a href="#section-6.4">6.4</a>. FEC Code Specification ....................................<a href="#page-12">12</a>
<a href="#section-7">7</a>. Optimized Raptor FEC Scheme for Arbitrary Packet Flows .........<a href="#page-12">12</a>
<a href="#section-7.1">7.1</a>. Introduction ..............................................<a href="#page-12">12</a>
<a href="#section-7.2">7.2</a>. Formats and Codes .........................................<a href="#page-13">13</a>
<a href="#section-7.2.1">7.2.1</a>. FEC Framework Configuration Information ............<a href="#page-13">13</a>
<a href="#section-7.2.2">7.2.2</a>. Source FEC Payload ID ..............................<a href="#page-13">13</a>
<a href="#section-7.2.3">7.2.3</a>. Repair FEC Payload ID ..............................<a href="#page-13">13</a>
<a href="#section-7.3">7.3</a>. Procedures ................................................<a href="#page-13">13</a>
<a href="#section-7.3.1">7.3.1</a>. Source Symbol Construction .........................<a href="#page-13">13</a>
<a href="#section-7.3.2">7.3.2</a>. Repair Packet Construction .........................<a href="#page-14">14</a>
<a href="#section-7.4">7.4</a>. FEC Code Specification ....................................<a href="#page-14">14</a>
<a href="#section-8">8</a>. Raptor FEC Scheme for a Single Sequenced Flow ..................<a href="#page-15">15</a>
<a href="#section-8.1">8.1</a>. Formats and Codes .........................................<a href="#page-15">15</a>
<a href="#section-8.1.1">8.1.1</a>. FEC Framework Configuration Information ............<a href="#page-15">15</a>
<a href="#section-8.1.2">8.1.2</a>. Source FEC Payload ID ..............................<a href="#page-15">15</a>
<a href="#section-8.1.3">8.1.3</a>. Repair FEC Payload ID ..............................<a href="#page-15">15</a>
<a href="#section-8.2">8.2</a>. Procedures ................................................<a href="#page-16">16</a>
<a href="#section-8.2.1">8.2.1</a>. Source Symbol Construction .........................<a href="#page-16">16</a>
8.2.2. Derivation of Source FEC Packet
Identification Information .........................<a href="#page-17">17</a>
<a href="#section-8.2.3">8.2.3</a>. Repair Packet Construction .........................<a href="#page-18">18</a>
<a href="#section-8.2.4">8.2.4</a>. Procedures for RTP Source Flows ....................<a href="#page-18">18</a>
<a href="#section-8.3">8.3</a>. FEC Code Specification ....................................<a href="#page-18">18</a>
<a href="#section-9">9</a>. Security Considerations ........................................<a href="#page-18">18</a>
<a href="#section-10">10</a>. Session Description Protocol (SDP) Signaling ..................<a href="#page-19">19</a>
<a href="#section-11">11</a>. Congestion Control Considerations .............................<a href="#page-19">19</a>
<a href="#section-12">12</a>. IANA Considerations ...........................................<a href="#page-19">19</a>
<a href="#section-12.1">12.1</a>. Registration of FEC Scheme IDs ...........................<a href="#page-19">19</a>
<a href="#section-13">13</a>. Acknowledgements ..............................................<a href="#page-20">20</a>
<a href="#section-14">14</a>. References ....................................................<a href="#page-21">21</a>
<span class="grey">Watson, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The "Forward Error Correction (FEC) Framework" [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>] describes a
general framework for the use of Forward Error Correction in
association with arbitrary packet flows. Modeled after the FEC
Building Block developed by the IETF Reliable Multicast Transport
working group [<a href="./rfc5052" title=""Forward Error Correction (FEC) Building Block"">RFC5052</a>], the FEC Framework defines the concept of FEC
Schemes that provide specific Forward Error Correction Schemes. This
document describes six FEC Schemes that make use of the Raptor and
RaptorQ FEC codes as defined in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] and [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>].
The FEC protection mechanism is independent of the type of source
data that can be an arbitrary sequence of packets, for example audio
or video data. In general, the operation of the protection mechanism
is as follows:
o The sender determines a set of source packets (a source block) to
be protected together based on the FEC Framework Configuration
Information.
o The sender arranges the source packets into a set of source
symbols, each of which is the same size.
o The sender applies the Raptor/RaptorQ protection operation on the
source symbols to generate the required number of repair symbols.
o The sender packetizes the repair symbols and sends the repair
packet(s) and the source packets to the receiver(s). Per the FEC
Framework requirements, the sender MUST transmit the source and
repair packets in different source and repair flows, or in the
case Real-time Transport Protocol (RTP) transport is used for
repair packets, in different RTP streams.
o At the receiver side, if all of the source packets are
successfully received, there is no need for FEC recovery and the
repair packets are discarded. However, if there are missing
source packets, the repair packets can be used to recover the
missing information.
The operation of the FEC mechanism requires that the receiver is able
to identify the relationships between received source packets and
repair packets, in particular, which source packets are missing. In
many cases, data already exists in the source packets that can be
used to refer to source packets and to identify which packets are
missing. In this case, we assume it is possible to derive a
"sequence number" directly or indirectly from the source packets, and
this sequence number can be used within the FEC Scheme. This case is
referred to as a "single sequenced flow". In this case, the FEC
<span class="grey">Watson, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Source Payload ID defined in [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>] is empty and the source
packets are not modified by the application of FEC, with obvious
backwards compatibility advantages.
Otherwise, it is necessary to add data to the source packets for FEC
purposes in the form of a non-empty FEC Source Payload ID. This is
referred to as the "arbitrary packet flow" case. This document
defines six FEC Schemes, two for the case of a single sequenced flow
and four for the case of arbitrary packet flows.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Document Outline</span>
This document is organized as follows:
o <a href="#section-5">Section 5</a> defines general procedures applicable to the use of the
Raptor and RaptorQ codes in the context of the FEC Framework.
o <a href="#section-6">Section 6</a> defines a FEC Scheme for the case of arbitrary source
flows and follows the format defined for FEC Schemes in [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>].
When used with Raptor codes, this scheme is equivalent to that
defined in 3GPP TS 26.346, "Multimedia Broadcast/Multicast Service
(MBMS); Protocols and codecs" [<a href="#ref-MBMSTS" title=""Multimedia Broadcast/Multicast Service (MBMS); Protocols and codecs"">MBMSTS</a>].
o <a href="#section-7">Section 7</a> defines a FEC Scheme similar to that defined in <a href="#section-6">Section</a>
<a href="#section-6">6</a> but with optimizations for the case where only limited source
block sizes are required. When used with Raptor codes, this
scheme is equivalent to that defined in ETSI TS 102.034, "Digital
Video Broadcasting (DVB); Transport of MPEG-2 Based DVB Services
over IP Based Networks" [<a href="#ref-DVBTS" title=""Digital Video Broadcasting (DVB); Transport of MPEG-2 Based DVB Services over IP Based Networks"">DVBTS</a>] for arbitrary packet flows.
o <a href="#section-8">Section 8</a> defines a FEC Scheme for the case of a single flow,
which is already provided with a source packet sequence number.
When used with Raptor codes, this scheme is equivalent to that
defined in [<a href="#ref-DVBTS" title=""Digital Video Broadcasting (DVB); Transport of MPEG-2 Based DVB Services over IP Based Networks"">DVBTS</a>] for the case of a single sequenced flow.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Requirements Notation</span>
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 [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Definitions and Abbreviations</span>
The definitions, notations, and abbreviations commonly used in this
document are summarized in this section.
<span class="grey">Watson, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Definitions</span>
The FEC-specific terminology used in this document is defined in
[<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>]. In this document, as in [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>], the first letter of
each FEC-specific term is capitalized along with the new terms
defined here:
Symbol: A unit of data. Its size, in octets, is referred to as the
symbol size.
FEC Framework Configuration Information: Information that controls
the operation of the FEC Framework. Each FEC Framework instance
has its own configuration information.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Abbreviations</span>
This document uses abbreviations that apply to the FEC Framework in
general as defined in [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>]. In addition, this document uses the
following abbreviations
FSSI: FEC-Scheme-Specific Information.
ADU: Application Data Unit
ADUI: Application Data Unit Information.
SPI: Source Packet Information.
MSBL: Maximum Source Block Length
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. General Procedures for Raptor FEC Schemes</span>
This section specifies general procedures that apply to all Raptor
and RaptorQ FEC Schemes, specifically the construction of source
symbols from a set of source transport payloads.
For any field defined in this document, the octets are ordered in
network byte order.
As described in [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>], for each Application Data Unit (ADU) in a
source block, the FEC Scheme is provided with:
o A description of the source data flow with which the ADU is
associated and an integer identifier associated with that flow.
o The ADU itself.
o The length of the ADU.
<span class="grey">Watson, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
For each ADU, we define the Application Data Unit Information (ADUI)
as follows:
Let
o n be the number of ADUs in the source block.
o T be the source symbol size in octets. Note: this information is
provided by the FEC Scheme as defined below.
o i the index to the (i+1)-th ADU to be added to the source block,
0 <= i < n.
o f[i] denote the integer identifier associated with the source data
flow from which the i-th ADU was taken.
o F[i] denote a single octet representing the value of f[i].
o l[i] be a length indication associated with the i-th ADU -- the
nature of the length indication is defined by the FEC Scheme.
o L[i] denote two octets representing the value of l[i] in network
byte order (high order octet first) of the i-th ADU.
o R[i] denote the number of octets in the (i+1)-th ADU.
o s[i] be the smallest integer such that s[i]*T >= (l[i]+3). Note:
s[i] is the length of SPI[i] in units of symbols of size T octets.
o P[i] denote s[i]*T-(l[i]+3) zero octets. Note: P[i] are padding
octets to align the start of each UDP packet with the start of a
symbol.
o ADUI[i] be the concatenation of F[i], L[i], R[i], and P[i].
Then, a source data block is constructed by concatenating ADUI[i] for
i = 0, 1, 2, ... n-1. The source data block size, S, is then given
by sum {s[i]*T, i=0, ..., n-1}. Symbols are allocated integer
encoding symbol IDs (ESI) consecutively starting from zero within the
source block. Each ADU is associated with the ESI of the first
symbol containing SPI for that packet. Thus, the encoding symbol ID
value associated with the j-th source packet, ESI[j], is given by
ESI[j] = 0, for j=0 and ESI[j] = sum{s[i], i=0,...,(j-1)}, for
0 < j < n.
Source blocks are identified by integer Source Block Numbers. This
specification does not specify how Source Block Numbers are allocated
to the source blocks. The Source FEC Packet Identification
<span class="grey">Watson, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Information consists of the identity of the source block and the
encoding symbol ID associated with the packet.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Raptor FEC Schemes for Arbitrary Packet Flows</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Introduction</span>
This section specifies a FEC Scheme for the application of the Raptor
and RaptorQ codes to arbitrary packet flows. This scheme is
recommended in scenarios where maximal generality is required.
When used with the Raptor codes specified in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>], this scheme
is equivalent to that specified in [<a href="#ref-MBMSTS" title=""Multimedia Broadcast/Multicast Service (MBMS); Protocols and codecs"">MBMSTS</a>].
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Formats and Codes</span>
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. FEC Framework Configuration Information</span>
<span class="h5"><a class="selflink" id="section-6.2.1.1" href="#section-6.2.1.1">6.2.1.1</a>. FEC Scheme ID</span>
The value of the FEC Scheme ID for the Fully-Specified FEC scheme
defined in this section is 1 when [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] is used and 2 when
[<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] is used, as assigned by IANA.
<span class="h5"><a class="selflink" id="section-6.2.1.2" href="#section-6.2.1.2">6.2.1.2</a>. Scheme-Specific Elements</span>
The scheme-specific elements of the FEC Framework Configuration
information for this scheme are as follows:
MSBL: The maximum source block length. A non-negative integer less
than 8192 for FEC Scheme 1 and less than 56403 for FEC Scheme 2,
in units of symbols. The field type is unsigned integer.
T: The encoding symbol size. A non-negative integer less than 65536,
in units of octets. The field type is unsigned integer.
P: The payload ID format indicator. The P bit shall be set to zero
to indicate payload ID format A or to one to indicate payload ID
format B. The field type is unsigned integer.
<span class="grey">Watson, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
An encoding format for the encoding symbol size, MSBL and payload ID
format indicator is defined below.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Symbol Size (T) | MSBL |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|P| Reserved |
+-+-+-+-+-+-+-+-+
Figure 1: FEC-Scheme-Specific Information
The P bit shall be set to zero to indicate Payload ID format A or to
one to indicate Payload ID format B. The last octet of FEC-Scheme-
Specific Information SHOULD be omitted, indicating that Payload ID
format A is in use. The payload ID format indicator defines which of
the Source FEC Payload ID and Repair FEC Payload ID formats defined
below shall be used. Payload ID format B SHALL NOT be used for FEC
Scheme 1. The two formats enable different use cases. Format A is
appropriate in case the stream has many typically smaller source
blocks, and format B is applicable if the stream has fewer large
source blocks, each with many encoding symbols.
<span class="h4"><a class="selflink" id="section-6.2.2" href="#section-6.2.2">6.2.2</a>. Source FEC Payload ID</span>
This scheme makes use of an Explicit Source FEC Payload ID, which is
appended to the end of the source packets. Two formats are defined
for the Source FEC Payload ID, format A and format B. The format
that is used is signaled as part of the FEC Framework Configuration
Information.
The Source FEC Payload ID for format A is provided in Figure 2.
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 (SBN) | Encoding Symbol ID (ESI) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 2: Source FEC Payload ID - Format A
Source Block Number (SBN), (16 bits): Identifier for the source block
that the source data within the packet relates. The field type is
unsigned integer.
Encoding Symbol ID (ESI), (16 bits): The starting symbol index of the
source packet in the source block. The field type is unsigned
integer.
<span class="grey">Watson, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
The Source FEC Payload ID for format B is provided in Figure 3.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SBN | Encoding Symbol ID (ESI) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: Source FEC Payload ID - Format B
Source Block Number (SBN), (8 bits): Identifier for the source block
that the source data within the packet relates. The field type is
unsigned integer.
Encoding Symbol ID (ESI), (24 bits): The starting symbol index of the
source packet in the source block. The field type is unsigned
integer.
<span class="h4"><a class="selflink" id="section-6.2.3" href="#section-6.2.3">6.2.3</a>. Repair FEC Payload ID</span>
Two formats for the Repair FEC Payload ID, format A and format B, are
defined below.
The Repair FEC Payload ID for format A is provided in Figure 4.
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 (SBN) | Encoding Symbol ID (ESI) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Block Length (SBL) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 4: Repair FEC Payload ID - Format A
Source Block Number (SBN), (16 bits): Identifier for the source block
that the repair symbols within the packet relate. For format A,
it is of size 16 bits. The field type is unsigned integer.
Encoding Symbol ID (ESI), (16 bits): Identifier for the encoding
symbols within the packet. The field type is unsigned integer.
Source Block Length (SBL), (16 bits): The number of source symbols in
the source block. The field type is unsigned integer.
<span class="grey">Watson, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
The Repair FEC Payload ID for format B is provided in Figure 5.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SBN | Encoding Symbol ID (ESI) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Block Length (SBL) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 5: Repair FEC Payload ID - Format B
Source Block Number (SBN), (8 bits): Identifier for the source block
that the repair symbols within the packet relate. For format B,
it is of size 8 bits. The field type is unsigned integer.
Encoding Symbol ID (ESI), (24 bits): Identifier for the encoding
symbols within the packet. The field type is unsigned integer.
Source Block Length (SBL), (16 bits): The number of source symbols in
the source block. The field type is unsigned integer.
The interpretation of the Source Block Number, encoding symbol ID,
and Source Block Length is defined by the FEC Code Specification in
[<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] for FEC Scheme 1 and [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] for FEC Scheme 2.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Procedures</span>
<span class="h4"><a class="selflink" id="section-6.3.1" href="#section-6.3.1">6.3.1</a>. Source Symbol Construction</span>
FEC Scheme 1 and FEC Scheme 2 use the procedures defined in <a href="#section-5">Section 5</a>
to construct a set of source symbols to which the FEC Code can be
applied. The sender MUST allocate Source Block Numbers to source
blocks sequentially, wrapping around to zero after Source Block
Number 65535 (format A) or 255 (format B).
During the construction of the source block:
o the length indication, l[i], included in the Source Packet
Information for each packet shall be the transport payload length,
i.e., the length of the ADU.
o the value of s[i] in the construction of the Source Packet
Information for each packet shall be the smallest integer such
that s[i]*T >= (l[i]+3).
<span class="grey">Watson, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h4"><a class="selflink" id="section-6.3.2" href="#section-6.3.2">6.3.2</a>. Repair Packet Construction</span>
For FEC Scheme 1 [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>], the ESI value placed into a repair packet
is calculated as specified in <a href="./rfc5053#section-5.3.2">Section 5.3.2 of [RFC5053]</a>.
For FEC Scheme 2 [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>], the ESI value placed into a repair packet
is calculated as specified in <a href="./rfc6330#section-4.4.2">Section 4.4.2 of [RFC6330]</a>.
In both cases, K is identical to SBL.
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. FEC Code Specification</span>
The FEC encoder defined in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] SHALL be used for FEC Scheme 1
and the FEC encoder defined in [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] SHALL be used for FEC Scheme
2. For both FEC Scheme 1 and FEC Scheme 2, the source symbols passed
to the FEC encoder SHALL consist of the source symbols constructed
according to <a href="#section-6.3.1">Section 6.3.1</a>. Thus, the value of the parameter K used
by the FEC encoder (equal to the Source Block Length) may vary
amongst the blocks of the stream but SHALL NOT exceed the Maximum
Source Block Length signaled in the FEC-Scheme-Specific Information.
The symbol size, T, to be used for source block construction and the
repair symbol construction is equal to the encoding symbol size
signaled in the FEC-Scheme-Specific Information.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Optimized Raptor FEC Scheme for Arbitrary Packet Flows</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Introduction</span>
This section specifies a slightly modified version of the FEC Scheme
specified in <a href="#section-6">Section 6</a> that is applicable to scenarios in which only
relatively small block sizes will be used. These modifications admit
substantial optimizations to both sender and receiver
implementations.
In outline, the modifications are:
o All source blocks within a stream are encoded using the same
source block size. Code shortening is used to encode blocks of
different sizes. This is achieved by padding every block to the
required size using zero symbols before encoding. The zero
symbols are then discarded after decoding. The source block size
to be used for a stream is signaled in the Maximum Source Block
Length (MSBL) field of the scheme-specific information. The
extended source block is constructed by adding zero or more
padding symbols such that the total number of symbols, MSBL, is
one of the values listed in <a href="#section-7.4">Section 7.4</a>. Each padding symbol
consists of T octets where the value of each octet is zero. MSBL
<span class="grey">Watson, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
MUST be selected as the smallest value of the possible values in
<a href="#section-7.4">Section 7.4</a> that is greater than or equal to K.
o The possible choices of the MSBL for a stream is restricted to a
small specified set. This allows explicit operation sequences for
encoding and decoding the restricted set of source block lengths
to be pre-calculated and embedded in software or hardware.
When used with the Raptor codes specified in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>], this scheme
is equivalent to that specified in [<a href="#ref-DVBTS" title=""Digital Video Broadcasting (DVB); Transport of MPEG-2 Based DVB Services over IP Based Networks"">DVBTS</a>] for arbitrary packet
flows.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Formats and Codes</span>
<span class="h4"><a class="selflink" id="section-7.2.1" href="#section-7.2.1">7.2.1</a>. FEC Framework Configuration Information</span>
<span class="h5"><a class="selflink" id="section-7.2.1.1" href="#section-7.2.1.1">7.2.1.1</a>. FEC Scheme ID</span>
The value of the FEC Scheme ID for the Fully-Specified FEC scheme
defined in this section is 3 when [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] is used and 4 when
[<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] is used, as assigned by IANA.
<span class="h5"><a class="selflink" id="section-7.2.1.2" href="#section-7.2.1.2">7.2.1.2</a>. FEC-Scheme-Specific Information</span>
The elements for FEC Scheme 3 are the same as specified for FEC
Scheme 1, and the elements specified for FEC Scheme 4 are the same as
specified for FEC 2, as specified in <a href="#section-6.2.1.2">Section 6.2.1.2</a>, except that the
MSBL value is as defined in <a href="#section-7.4">Section 7.4</a>.
<span class="h4"><a class="selflink" id="section-7.2.2" href="#section-7.2.2">7.2.2</a>. Source FEC Payload ID</span>
The elements for FEC Scheme 3 are the same as specified for FEC
Scheme 1, and the elements specified for FEC Scheme 4 are the same as
specified for FEC 2, as specified in <a href="#section-6.2.2">Section 6.2.2</a>.
<span class="h4"><a class="selflink" id="section-7.2.3" href="#section-7.2.3">7.2.3</a>. Repair FEC Payload ID</span>
The elements for FEC Scheme 3 are the same as specified for FEC
Scheme 1, and the elements specified for FEC Scheme 4 are the same as
specified for FEC 2, as specified in <a href="#section-6.2.3">Section 6.2.3</a>.
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Procedures</span>
<span class="h4"><a class="selflink" id="section-7.3.1" href="#section-7.3.1">7.3.1</a>. Source Symbol Construction</span>
See <a href="#section-6.3.1">Section 6.3.1</a>.
<span class="grey">Watson, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h4"><a class="selflink" id="section-7.3.2" href="#section-7.3.2">7.3.2</a>. Repair Packet Construction</span>
The number of repair symbols contained within a repair packet is
computed from the packet length. The ESI value placed into a repair
packet is calculated as X + MSBL - SBL, where X would be the ESI
value of the repair packet if the ESI were calculated as specified in
<a href="./rfc5053#section-5.3.2">Section 5.3.2 of [RFC5053]</a> for FEC Scheme 3 and as specified in
<a href="./rfc6330#section-4.4.2">Section 4.4.2 of [RFC6330]</a> for FEC Scheme 4, where K=SBL. The value
of SBL SHALL be, at most, the value of MSBL.
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. FEC Code Specification</span>
The FEC encoder defined in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] SHALL be used for FEC Scheme 3
and the FEC encoder defined in [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] SHALL be used for FEC Scheme
4. The source symbols passed to the FEC encoder SHALL consist of the
source symbols constructed according to <a href="#section-6.3.1">Section 6.3.1</a> extended with
zero or more padding symbols. The extension SHALL be such that the
total number of symbols in the source block is equal to the MSBL
signaled in the FEC-Scheme-Specific Information. Thus, the value of
the parameter K used by the FEC encoder is equal to the MSBL for all
blocks of the stream. Padding symbols shall consist entirely of
octets set to the value zero. The symbol size, T, to be used for the
source block construction and the repair symbol construction, is
equal to the encoding symbol size signaled in the FEC-Scheme-Specific
Information.
For FEC Scheme 3, the parameter T SHALL be set such that the number
of source symbols in any source block is, at most, 8192. The MSBL
parameter, and hence the number of symbols used in the FEC Encoding
and Decoding operations, SHALL be set to one of the following values:
101, 120, 148, 164, 212, 237, 297, 371, 450, 560, 680, 842, 1031,
1139, 1281
For FEC Scheme 4, the parameter T SHALL be set such that the number
of source symbols in any source block is less than 56403. The MSBL
parameter SHALL be set to one of the supported values for K' defined
in <a href="./rfc6330#section-5.6">Section 5.6 of [RFC6330]</a>.
<span class="grey">Watson, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Raptor FEC Scheme for a Single Sequenced Flow</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Formats and Codes</span>
<span class="h4"><a class="selflink" id="section-8.1.1" href="#section-8.1.1">8.1.1</a>. FEC Framework Configuration Information</span>
<span class="h5"><a class="selflink" id="section-8.1.1.1" href="#section-8.1.1.1">8.1.1.1</a>. FEC Scheme ID</span>
The value of the FEC Scheme ID for the Fully-Specified FEC scheme
defined in this section is 5 when [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] is used and 6 when
[<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>] is used, as assigned by IANA.
<span class="h5"><a class="selflink" id="section-8.1.1.2" href="#section-8.1.1.2">8.1.1.2</a>. Scheme-Specific Elements</span>
The elements for FEC Scheme 5 are the same as specified for FEC
Scheme 1, and the elements specified for FEC Scheme 6 are the same as
specified for FEC 2, as specified in <a href="#section-6.2.1.2">Section 6.2.1.2</a>.
<span class="h4"><a class="selflink" id="section-8.1.2" href="#section-8.1.2">8.1.2</a>. Source FEC Payload ID</span>
The Source FEC Payload ID field is not used by this FEC Scheme.
Source packets are not modified by this FEC Scheme.
<span class="h4"><a class="selflink" id="section-8.1.3" href="#section-8.1.3">8.1.3</a>. Repair FEC Payload ID</span>
Two formats for the Repair FEC Payload ID are defined, format A and
format B.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Initial Sequence Number | Source Block Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Encoding Symbol ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 6: Repair FEC Payload ID - Format A
Initial Sequence Number (Flow i ISN), (16 bits): This field specifies
the lowest 16 bits of the sequence number of the first packet to
be included in this sub-block. If the sequence numbers are
shorter than 16 bits, then the received Sequence Number SHALL be
logically padded with zero bits to become 16 bits in length,
respectively. The field type is unsigned integer.
Source Block Length (SBL), (16 bits): This field specifies the length
of the source block in symbols. The field type is unsigned
integer.
<span class="grey">Watson, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Encoding Symbol ID (ESI), (16 bits): This field indicates which
repair symbols are contained within this repair packet. The ESI
provided is the ESI of the first repair symbol in the packet. The
field type is unsigned integer.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Initial Sequence Number | Source Block Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Encoding Symbol ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 7: Repair FEC Payload ID - Format B
Initial Sequence Number (Flow i ISN), (16 bits): This field specifies
the lowest 16 bits of the sequence number in the first packet to
be included in this sub-block. If the sequence numbers are
shorter than 16 bits, then the received Sequence Number SHALL be
logically padded with zero bits to become 16 bits in length,
respectively. The field type is unsigned integer.
Source Block Length (SBL), (16 bits): This field specifies the length
of the source block in symbols. The field type is unsigned
integer.
Encoding Symbol ID (ESI); (24 bits): This field indicates which
repair symbols are contained within this repair packet. The ESI
provided is the ESI of the first repair symbol in the packet. The
field type is unsigned integer.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Procedures</span>
<span class="h4"><a class="selflink" id="section-8.2.1" href="#section-8.2.1">8.2.1</a>. Source Symbol Construction</span>
FEC Scheme 5 and FEC Scheme 6 use the procedures defined in <a href="#section-5">Section 5</a>
to construct a set of source symbols to which the FEC code can be
applied.
During the construction of the source block:
o the length indication, l[i], included in the Source Packet
Information for each packet shall be dependent on the protocol
carried within the transport payload. Rules for RTP are specified
below.
<span class="grey">Watson, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
o the value of s[i] in the construction of the Source Packet
Information for each packet shall be the smallest integer such
that s[i]*T >= (l[i]+3)
<span class="h4"><a class="selflink" id="section-8.2.2" href="#section-8.2.2">8.2.2</a>. Derivation of Source FEC Packet Identification Information</span>
The Source FEC Packet Identification Information for a source packet
is derived from the sequence number of the packet and information
received in any repair FEC packet belonging to this source block.
Source blocks are identified by the sequence number of the first
source packet in the block. This information is signaled in all
repair FEC packets associated with the source block in the Initial
Sequence Number field.
The length of the Source Packet Information (in octets) for source
packets within a source block is equal to the length of the payload
containing encoding symbols of the repair packets (i.e., not
including the Repair FEC Payload ID) for that block, which MUST be
the same for all repair packets. The Application Data Unit
Information Length (ADUIL) in symbols is equal to this length divided
by the encoding symbol size (which is signaled in the FEC Framework
Configuration Information). The set of source packets included in
the source block is determined by the Initial Sequence Number (ISN)
and Source Block Length (SBL) as follows:
Let,
o I be the Initial Sequence Number of the source block
o LP be the Source Packet Information Length in symbols
o LB be the Source Block Length in symbols
Then, source packets with sequence numbers from I to I +(LB/LP)-1
inclusive are included in the source block. The Source Block Length,
LB, MUST be chosen such that it is at least as large as the largest
Source Packet Information Length LP.
Note that if no FEC repair packets are received, then no FEC decoding
is possible, and it is unnecessary for the receiver to identify the
Source FEC Packet Identification Information for the source packets.
The encoding symbol ID for a packet is derived from the following
information:
o The sequence number, Ns, of the packet
o The Source Packet Information Length for the source block, LP
<span class="grey">Watson, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
o The Initial Sequence Number of the source block, I
Then, the encoding symbol ID for the packet with sequence number Ns
is determined by the following formula:
ESI = ( Ns - I ) * LP
Note that all repair packets associated to a given source block MUST
contain the same Source Block Length and Initial Sequence Number.
Note also that the source packet flow processed by the FEC encoder
MUST have consecutive sequence numbers. In case the incoming source
packet flow has a gap in the sequence numbers, then implementors
SHOULD insert an ADU in the source block that complies to the format
of the source packet flow, but is ignored at the application with
high probability. For additional guidelines, refer to <a href="./rfc6363#section-10.2">[RFC6363],
Section 10.2</a>, paragraph 5.
<span class="h4"><a class="selflink" id="section-8.2.3" href="#section-8.2.3">8.2.3</a>. Repair Packet Construction</span>
See <a href="#section-7.3.2">Section 7.3.2</a>
<span class="h4"><a class="selflink" id="section-8.2.4" href="#section-8.2.4">8.2.4</a>. Procedures for RTP Source Flows</span>
In the specific case of RTP source packet flows, the RTP Sequence
Number field SHALL be used as the sequence number in the procedures
described above. The length indication included in the Application
Data Unit Information SHALL be the RTP payload length plus the length
of the contributing sources (CSRCs), if any, the RTP Header
Extension, if present, and the RTP padding octets, if any. Note that
this length is always equal to the UDP payload length of the packet
minus 12.
<span class="h3"><a class="selflink" id="section-8.3" href="#section-8.3">8.3</a>. FEC Code Specification</span>
The elements for FEC Scheme 5 are the same as specified for FEC
Scheme 3, and the elements specified for FEC Scheme 6 are the same as
specified for FEC 4, as specified in <a href="#section-7.4">Section 7.4</a>.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
For the general security considerations related to the use of FEC,
refer to [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>]. Also consider relevant security considerations
in [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] and [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>]. No security vulnerabilities specific to
this document have been identified.
<span class="grey">Watson, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Session Description Protocol (SDP) Signaling</span>
This section provides an SDP [<a href="./rfc4566" title=""SDP: Session Description Protocol"">RFC4566</a>] example. The syntax follows
the definition in [<a href="./rfc6364" title=""Session Description Protocol Elements for the Forward Error Correction (FEC) Framework"">RFC6364</a>]. Assume we have one source video stream
(mid:S1) and one FEC repair stream (mid:R1). We form one FEC group
with the "a=group:FEC-FR S1 R1" line. The source and repair streams
are sent to the same port on different multicast groups. The repair
window is set to 200 ms.
v=0
o=ali 1122334455 1122334466 IN IP4 fec.example.com
s=Raptor FEC Example
t=0 0
a=group:FEC-FR S1 R1
m=video 30000 RTP/AVP 100
c=IN IP4 233.252.0.1/127
a=rtpmap:100 MP2T/90000
a=fec-source-flow: id=0
a=mid:S1
m=application 30000 UDP/FEC
c=IN IP4 233.252.0.2/127
a=fec-repair-flow: encoding-id=6; fssi=Kmax:8192,T:128,P:A
a=repair-window:200ms
a=mid:R1
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Congestion Control Considerations</span>
For the general congestion control considerations related to the use
of FEC, refer to [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>].
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. IANA Considerations</span>
<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>. Registration of FEC Scheme IDs</span>
The value of FEC Scheme IDs is subject to IANA registration. For
general guidelines on IANA considerations as they apply to this
document, refer to [<a href="./rfc6363" title=""Forward Error Correction (FEC) Framework"">RFC6363</a>].
This document registers six values in the "FEC Framework (FECFRAME)
FEC Encoding IDs" registry (<a href="http://www.iana.org/assignments/rmt-fec-parameters/">http://www.iana.org/assignments/</a>
<a href="http://www.iana.org/assignments/rmt-fec-parameters/">rmt-fec-parameters/</a>) as provided in Table 1. Each value refers to a
Fully-Specified FEC scheme.
<span class="grey">Watson, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
+----------+---------------------+----------------------------------+
| FEC | FEC Scheme | Reference |
| Encoding | Description | |
| ID | | |
+----------+---------------------+----------------------------------+
| 1 | Raptor FEC Scheme | <a href="#section-6">Section 6</a> in this document using |
| | for Arbitrary | [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>] |
| | Packet Flows | |
+----------+---------------------+----------------------------------+
| 2 | RaptorQ FEC Scheme | <a href="#section-6">Section 6</a> in this document using |
| | for Arbitrary | [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>]. |
| | Packet Flows | |
+----------+---------------------+----------------------------------+
| 3 | Raptor FEC Scheme | <a href="#section-7">Section 7</a> in this document using |
| | Optimized for | Raptor [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>]. |
| | Arbitrary Packet | |
| | Flows | |
+----------+---------------------+----------------------------------+
| 4 | RaptorQ FEC Scheme | <a href="#section-7">Section 7</a> in this document |
| | Optimized for | using RaptorQ [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>]. |
| | Arbitrary Packet | |
| | Flows | |
+----------+---------------------+----------------------------------+
| 5 | Raptor FEC Scheme | <a href="#section-8">Section 8</a> in this document using |
| | for a Single | Raptor [<a href="./rfc5053" title=""Raptor Forward Error Correction Scheme for Object Delivery"">RFC5053</a>]. |
| | Sequence Flow | |
+----------+---------------------+----------------------------------+
| 6 | RaptorQ FEC Scheme | <a href="#section-8">Section 8</a> in this document using |
| | for a Single | RaptorQ [<a href="./rfc6330" title=""RaptorQ Forward Error Correction Scheme for Object Delivery"">RFC6330</a>]. |
| | Sequence Flow | |
+----------+---------------------+----------------------------------+
Table 1: FEC Framework (FECFRAME) FEC Encoding IDs
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Acknowledgements</span>
Thanks are due to Ali C. Begen and David Harrington for thorough
review of earlier draft versions of this document.
<span class="grey">Watson, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. References</span>
<span class="h3"><a class="selflink" id="section-14.1" href="#section-14.1">14.1</a>. Normative References</span>
[<a id="ref-RFC6363">RFC6363</a>] Watson, M., Begen, A., and V. Roca, "Forward Error
Correction (FEC) Framework", <a href="./rfc6363">RFC 6363</a>, October 2011.
[<a id="ref-RFC5053">RFC5053</a>] Luby, M., Shokrollahi, A., Watson, M., and T. Stockhammer,
"Raptor Forward Error Correction Scheme for Object
Delivery", <a href="./rfc5053">RFC 5053</a>, October 2007.
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-RFC6330">RFC6330</a>] Luby, M., Shokrollahi, A., Watson, M., Stockhammer, T.,
and L. Minder, "RaptorQ Forward Error Correction Scheme
for Object Delivery", <a href="./rfc6330">RFC 6330</a>, August 2011.
<span class="h3"><a class="selflink" id="section-14.2" href="#section-14.2">14.2</a>. Informative References</span>
[<a id="ref-RFC5052">RFC5052</a>] Watson, M., Luby, M., and L. Vicisano, "Forward Error
Correction (FEC) Building Block", <a href="./rfc5052">RFC 5052</a>, August 2007.
[<a id="ref-RFC4566">RFC4566</a>] Handley, M., Jacobson, V., and C. Perkins, "SDP: Session
Description Protocol", <a href="./rfc4566">RFC 4566</a>, July 2006.
[<a id="ref-RFC6364">RFC6364</a>] Begen, A., "Session Description Protocol Elements for the
Forward Error Correction (FEC) Framework", <a href="./rfc6364">RFC 6364</a>,
October 2011.
[<a id="ref-DVBTS">DVBTS</a>] ETSI, "Digital Video Broadcasting (DVB); Transport of
MPEG-2 Based DVB Services over IP Based Networks", ETSI TS
102 034, March 2009.
[<a id="ref-MBMSTS">MBMSTS</a>] 3GPP, "Multimedia Broadcast/Multicast Service (MBMS);
Protocols and codecs", 3GPP TS 26.346, April 2005.
<span class="grey">Watson, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc6681">RFC 6681</a> Raptor FEC Scheme August 2012</span>
Authors' Addresses
Mark Watson
Netflix
100 Winchester Circle
Los Gatos, CA 95032
United States
EMail: watsonm@netflix.com
Thomas Stockhammer
Nomor Research
Brecherspitzstrasse 8
Munich 81541
Germany
EMail: stockhammer@nomor.de
Michael Luby
Qualcomm Research Berkeley
2030 Addison Street
Berkeley, CA 94704
United States
EMail: luby@qualcomm.com
Watson, et al. Standards Track [Page 22]
</pre>
|