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 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789
|
<pre>Network Working Group S. Ahmadi
Request for Comments: 4348 January 2006
Category: Standards Track
<span class="h1">Real-Time Transport Protocol (RTP) Payload Format for the</span>
<span class="h1">Variable-Rate Multimode Wideband (VMR-WB) Audio Codec</span>
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2006).
Abstract
This document specifies a real-time transport protocol (RTP) payload
format to be used for the Variable-Rate Multimode Wideband (VMR-WB)
speech codec. The payload format is designed to be able to
interoperate with existing VMR-WB transport formats on non-IP
networks. A media type registration is included for VMR-WB RTP
payload format.
VMR-WB is a variable-rate multimode wideband speech codec that has a
number of operating modes, one of which is interoperable with AMR-WB
(i.e., <a href="./rfc3267">RFC 3267</a>) audio codec at certain rates. Therefore, provisions
have been made in this document to facilitate and simplify data
packet exchange between VMR-WB and AMR-WB in the interoperable mode
with no transcoding function involved.
<span class="grey">Ahmadi Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions and Acronyms ........................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. The Variable-Rate Multimode Wideband (VMR-WB) Speech Codec ......<a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. Narrowband Speech Processing ...............................<a href="#page-5">5</a>
<a href="#section-3.2">3.2</a>. Continuous vs. Discontinuous Transmission ..................<a href="#page-6">6</a>
<a href="#section-3.3">3.3</a>. Support for Multi-Channel Session ..........................<a href="#page-6">6</a>
<a href="#section-4">4</a>. Robustness against Packet Loss ..................................<a href="#page-7">7</a>
<a href="#section-4.1">4.1</a>. Forward Error Correction (FEC) .............................<a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Frame Interleaving and Multi-Frame Encapsulation ...........<a href="#page-8">8</a>
<a href="#section-5">5</a>. VMR-WB Voice over IP Scenarios ..................................<a href="#page-9">9</a>
<a href="#section-5.1">5.1</a>. IP Terminal to IP Terminal .................................<a href="#page-9">9</a>
<a href="#section-5.2">5.2</a>. GW to IP Terminal .........................................<a href="#page-10">10</a>
<a href="#section-5.3">5.3</a>. GW to GW (between VMR-WB- and AMR-WB-Enabled Terminals) ...<a href="#page-10">10</a>
<a href="#section-5.4">5.4</a>. GW to GW (between Two VMR-WB-Enabled Terminals) ...........<a href="#page-11">11</a>
<a href="#section-6">6</a>. VMR-WB RTP Payload Formats .....................................<a href="#page-12">12</a>
<a href="#section-6.1">6.1</a>. RTP Header Usage ..........................................<a href="#page-13">13</a>
<a href="#section-6.2">6.2</a>. Header-Free Payload Format ................................<a href="#page-14">14</a>
<a href="#section-6.3">6.3</a>. Octet-Aligned Payload Format ..............................<a href="#page-15">15</a>
<a href="#section-6.3.1">6.3.1</a>. Payload Structure ..................................<a href="#page-15">15</a>
<a href="#section-6.3.2">6.3.2</a>. The Payload Header .................................<a href="#page-15">15</a>
<a href="#section-6.3.3">6.3.3</a>. The Payload Table of Contents ......................<a href="#page-18">18</a>
<a href="#section-6.3.4">6.3.4</a>. Speech Data ........................................<a href="#page-20">20</a>
6.3.5. Payload Example: Basic Single Channel
Payload Carrying Multiple Frames ...................<a href="#page-21">21</a>
<a href="#section-6.4">6.4</a>. Implementation Considerations .............................<a href="#page-22">22</a>
6.4.1. Decoding Validation and Provision for Lost
or Late Packets ....................................<a href="#page-22">22</a>
<a href="#section-7">7</a>. Congestion Control .............................................<a href="#page-23">23</a>
<a href="#section-8">8</a>. Security Considerations ........................................<a href="#page-23">23</a>
<a href="#section-8.1">8.1</a>. Confidentiality ...........................................<a href="#page-24">24</a>
<a href="#section-8.2">8.2</a>. Authentication and Integrity ..............................<a href="#page-24">24</a>
<a href="#section-9">9</a>. Payload Format Parameters ......................................<a href="#page-24">24</a>
<a href="#section-9.1">9.1</a>. VMR-WB RTP Payload MIME Registration ......................<a href="#page-25">25</a>
<a href="#section-9.2">9.2</a>. Mapping MIME Parameters into SDP ..........................<a href="#page-27">27</a>
<a href="#section-9.3">9.3</a>. Offer-Answer Model Considerations .........................<a href="#page-28">28</a>
<a href="#section-10">10</a>. IANA Considerations ...........................................<a href="#page-29">29</a>
<a href="#section-11">11</a>. Acknowledgements ..............................................<a href="#page-29">29</a>
<a href="#section-12">12</a>. References ....................................................<a href="#page-30">30</a>
<a href="#section-12.1">12.1</a>. Normative References .....................................<a href="#page-30">30</a>
<a href="#section-12.2">12.2</a>. Informative References ...................................<a href="#page-30">30</a>
<span class="grey">Ahmadi Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document specifies the payload format for packetization of VMR-
WB-encoded speech signals into the Real-time Transport Protocol (RTP)
[<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>]. The VMR-WB payload formats support transmission of single and
multiple channels, frame interleaving, multiple frames per payload,
header-free payload, the use of mode switching, and interoperation
with existing VMR-WB transport formats on non-IP networks, as
described in <a href="#section-3">Section 3</a>.
The payload format is described in <a href="#section-6">Section 6</a>. The VMR-WB file format
(i.e., for transport of VMR-WB speech data in storage mode
applications such as email) is specified in [<a href="#ref-7" title=""3GPP2 File Formats for Multimedia Services"">7</a>]. In <a href="#section-9">Section 9</a>, a
media type registration for VMR-WB RTP payload format is provided.
Since VMR-WB is interoperable with AMR-WB at certain rates, an
attempt has been made throughout this document to maximize the
similarities with <a href="./rfc3267">RFC 3267</a> while optimizing the payload format for
the non-interoperable modes of the VMR-WB codec.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions and Acronyms</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">RFC2119</a> [<a href="#ref-2" title=""Key words for use in RFCs to Indicate Requirement Levels"">2</a>].
The following acronyms are used in this document:
3GPP - The Third Generation Partnership Project
3GPP2 - The Third Generation Partnership Project 2
CDMA - Code Division Multiple Access
WCDMA - Wideband Code Division Multiple Access
GSM - Global System for Mobile Communications
AMR-WB - Adaptive Multi-Rate Wideband Codec
VMR-WB - Variable-Rate Multimode Wideband Codec
CMR - Codec Mode Request
GW - Gateway
DTX - Discontinuous Transmission
FEC - Forward Error Correction
SID - Silence Descriptor
TrFO - Transcoder-Free Operation
UDP - User Datagram Protocol
RTP - Real-Time Transport Protocol
RTCP - RTP Control Protocol
MIME - Multipurpose Internet Mail Extension
SDP - Session Description Protocol
VoIP - Voice-over-IP
<span class="grey">Ahmadi Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
The term "interoperable mode" in this document refers to VMR-WB mode
3, which is interoperable with AMR-WB codec modes 0, 1, and 2.
The term "non-interoperable modes" in this document refers to VMR-WB
modes 0, 1, and 2.
The term "frame-block" is used in this document to describe the
time-synchronized set of speech frames in a multi-channel VMR-WB
session. In particular, in an N-channel session, a frame-block will
contain N speech frames, one from each of the channels, and all N
speech frames represent exactly the same time period.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The Variable-Rate Multimode Wideband (VMR-WB) Speech Codec</span>
VMR-WB is the wideband speech-coding standard developed by Third
Generation Partnership Project 2 (3GPP2) for encoding/decoding
wideband/narrowband speech content in multimedia services in 3G CDMA
cellular systems [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>]. VMR-WB is a source-controlled variable-rate
multimode wideband speech codec. It has a number of operating modes,
where each mode is a tradeoff between voice quality and average data
rate. The operating mode in VMR-WB (as shown in Table 2) is chosen
based on the traffic condition of the network and the desired quality
of service. The desired average data rate (ADR) in each mode is
obtained by encoding speech frames at permissible rates (as shown in
Tables 1 and 3) compliant with CDMA2000 system, depending on the
instantaneous characteristics of input speech and the maximum and
minimum rate constraints imposed by the network operator.
While VMR-WB is a native CDMA codec complying with all CDMA system
requirements, it is further interoperable with AMR-WB [<a href="#ref-4" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">4</a>,<a href="#ref-12" title=""AMR Wideband Speech Codec; Source Controlled Rate operation"">12</a>] at
12.65, 8.85, and 6.60 kbps. This is due to the fact that VMR-WB and
AMR-WB share the same core technology. This feature enables
Transcoder-Free (TrFO) interconnections between VMR-WB and AMR-WB
across different wireless/wireline systems (e.g., GSM/WCDMA and
CDMA2000) without use of unnecessary complex media format conversion.
Note that the concept of mode in VMR-WB is different from that of
AMR-WB where each fixed-rate AMR-WB codec mode is adapted to
prevailing channel conditions by a tradeoff between the total number
of source-coding and channel-coding bits.
VMR-WB is able to transition between various modes with no
degradation in voice quality that is attributable to the mode
switching itself. The operating mode of the VMR-WB encoder may be
switched seamlessly without prior knowledge of the decoder. Any
non-interoperable mode (i.e., VMR-WB modes 0, 1, or 2) can be chosen
depending on the traffic conditions (e.g., network congestion) and
the desired quality of service.
<span class="grey">Ahmadi Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
While in the interoperable mode (i.e., VMR-WB mode 3), mode switching
between VMR-WB modes is not allowed because there is only one AMR-WB
interoperable mode in VMR-WB. Since the AMR-WB codec may request a
mode change, depending on channel conditions, in-band data included
in VMR-WB frame structure (see Section 8 of [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>] for more details) is
used during an interoperable interconnection to switch between VMR-WB
frame types 0, 1, and 2 in VMR-WB mode 3 (corresponding to AMR-WB
codec modes 0, 1, or 2).
As mentioned earlier, VMR-WB is compliant with CDMA2000 system with
the permissible encoding rates shown in Table 1.
+---------------------------+-----------------+---------------+
| Frame Type | Bits per Packet | Encoding Rate |
| | (Frame Size) | (kbps) |
+---------------------------+-----------------+---------------+
| Full-Rate | 266 | 13.3 |
| Half-Rate | 124 | 6.2 |
| Quarter-Rate | 54 | 2.7 |
| Eighth-Rate | 20 | 1.0 |
| Blank | 0 | 0 |
| Erasure | 0 | 0 |
+---------------------------+-----------------+---------------+
Table 1: CDMA2000 system permissible frame types and their
associated encoding rates
VMR-WB is robust to high percentage of frame loss and frames with
corrupted rate information. The reception of an Erasure
(SPEECH_LOST) frame type at decoder invokes the built-in frame error
concealment mechanism. The built-in frame error concealment
mechanism in VMR-WB conceals the effect of lost frames by exploiting
in-band data and the information available in the previous frames.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Narrowband Speech Processing</span>
VMR-WB has the capability to operate with either 16000-Hz or 8000-Hz
sampled input/output speech signals in all modes of operation [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>].
The VMR-WB decoder does not require a priori knowledge about the
sampling rate of the original media (i.e., speech/audio signals
sampled at 8 or 16 kHz) at the input of the encoder. The VMR-WB
decoder, by default, generates 16000-Hz wideband output regardless of
the encoder input sampling frequency. Depending on the application,
the decoder can be configured to generate 8000-Hz output, as well.
<span class="grey">Ahmadi Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Therefore, while this specification defines a 16000-Hz RTP clock rate
for VMR-WB codec, the injection and processing of 8000-Hz narrowband
media during a session is also allowed; however, a 16000-Hz RTP clock
rate MUST always be used.
The choice of VMR-WB output sampling frequency depends on the
implementation and the audio acoustic capabilities of the receiving
side.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Continuous vs. Discontinuous Transmission</span>
The circuit-switched operation of VMR-WB within a CDMA network
requires continuous transmission of the speech data during a
conversation. The intrinsic source-controlled variable-rate feature
of the CDMA speech codecs is required for optimal operation of the
CDMA system and interference control. However, VMR-WB has the
capability to operate in a discontinuous transmission mode for some
packet-switched applications over IP networks (e.g., VoIP), where the
number of transmitted bits and packets during silence period are
reduced to a minimum. The VMR-WB DTX operation is similar to that of
AMR-WB [<a href="#ref-4" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">4</a>,<a href="#ref-12" title=""AMR Wideband Speech Codec; Source Controlled Rate operation"">12</a>].
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Support for Multi-Channel Session</span>
The octet-aligned RTP payload format defined in this document
supports multi-channel audio content (e.g., a stereophonic speech
session). Although VMR-WB codec itself does not support encoding of
multi-channel audio content into a single bit stream, it can be used
to encode and decode each of the individual channels separately.
To transport the separately encoded multi-channel content, the speech
frames for all channels that are framed and encoded for the same 20
ms periods are logically collected in a frame-block.
At the session setup, out-of-band signaling must be used to indicate
the number of channels in the session and the order of the speech
frames from different channels in each frame-block. When using SDP
for signaling (see <a href="#section-9.2">Section 9.2</a> for more details), the number of
channels is specified in the rtpmap attribute, and the order of
channels carried in each frame-block is implied by the number of
channels as specified in Section 4.1 in [<a href="#ref-6" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">6</a>].
<span class="grey">Ahmadi Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Robustness against Packet Loss</span>
The octet-aligned payload format described in this document (see
<a href="#section-6">Section 6</a> for more details) supports several features, including
forward error correction (FEC) and frame interleaving, in order to
increase robustness against lost packets.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Forward Error Correction (FEC)</span>
The simple scheme of repetition of previously sent data is one way of
achieving FEC. Another possible scheme, which is more bandwidth
efficient, is to use payload-external FEC; e.g., <a href="./rfc2733">RFC2733</a> [<a href="#ref-8" title=""An RTP Payload Format for Generic Forward Error Correction"">8</a>], which
generates extra packets containing repair data.
The repetition method involves the simple retransmission of
previously transmitted frame-blocks together with the current frame-
block(s). This is done by using a sliding window to group the speech
frame-blocks to send in each payload. Figure 1 illustrates an
example.
In this example, each frame-block is retransmitted one time in the
following RTP payload packet. Here, f(n-2)..f(n+4) denotes a
sequence of speech frame-blocks, and p(n-1)..p(n+4) a sequence of
payload packets.
--+--------+--------+--------+--------+--------+--------+--------+--
| f(n-2) | f(n-1) | f(n) | f(n+1) | f(n+2) | f(n+3) | f(n+4) |
--+--------+--------+--------+--------+--------+--------+--------+--
<---- p(n-1) ---->
<----- p(n) ----->
<---- p(n+1) ---->
<---- p(n+2) ---->
<---- p(n+3) ---->
<---- p(n+4) ---->
Figure 1: An example of redundant transmission
The use of this approach does not require signaling at the session
setup. In other words, the speech sender can choose to use this
scheme without consulting the receiver. This is because a packet
containing redundant frames will not look different from a packet
with only new frames. The receiver may receive multiple copies or
versions of a frame for a certain timestamp if no packet is lost. If
multiple versions of the same speech frame are received, it is
RECOMMENDED that the highest rate be used by the speech decoder.
<span class="grey">Ahmadi Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
This redundancy scheme provides the same functionality as that
described in <a href="./rfc2198">RFC 2198</a>, "RTP Payload for Redundant Audio Data" [<a href="#ref-10" title=""RTP Payload for Redundant Audio Data"">10</a>].
In most cases, the mechanism in this payload format is more efficient
and simpler than requiring both endpoints to support <a href="./rfc2198">RFC 2198</a>. If
the spread in time required between the primary and redundant
encodings is larger than 5 frame times, the bandwidth overhead of <a href="./rfc2198">RFC</a>
<a href="./rfc2198">2198</a> will be lower.
The sender is responsible for selecting an appropriate amount of
redundancy based on feedback about the channel (e.g., in RTCP
receiver reports) or network traffic. A sender SHOULD NOT base
selection of FEC on the CMR, as this parameter most probably was set
based on non-IP information. The sender is also responsible for
avoiding congestion, which may be aggravated by redundant
transmission (see <a href="#section-7">Section 7</a>).
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Frame Interleaving and Multi-Frame Encapsulation</span>
To decrease protocol overhead, the octet-aligned payload format,
described in <a href="#section-6">Section 6</a>, allows several speech frame-blocks to be
encapsulated into a single RTP packet. One of the drawbacks of this
approach is that in case of packet loss several consecutive speech
frame-blocks are lost, which usually causes clearly audible
distortion in the reconstructed speech.
Interleaving of frame-blocks can improve the speech quality in such
cases by distributing the consecutive losses into a series of single
frame-block losses. However, interleaving and bundling several
frame-blocks per payload will also increase end-to-end delay and is
therefore not appropriate for all types of applications. Streaming
applications will most likely be able to exploit interleaving to
improve speech quality in lossy transmission conditions.
The octet-aligned payload format supports the use of frame
interleaving as an option. For the encoder (speech sender) to use
frame interleaving in its outbound RTP packets for a given session,
the decoder (speech receiver) needs to indicate its support via out-
of-band means (see <a href="#section-9">Section 9</a>).
<span class="grey">Ahmadi Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. VMR-WB Voice over IP Scenarios</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. IP Terminal to IP Terminal</span>
The primary scenario for this payload format is IP end-to-end between
two terminals incorporating VMR-WB codec, as shown in Figure 2.
Nevertheless, this scenario can be generalized to an interoperable
interconnection between VMR-WB-enabled and AMR-WB-enabled IP
terminals using the offer-answer model described in <a href="#section-9.3">Section 9.3</a>.
This payload format is expected to be useful for both conversational
and streaming services.
+----------+ +----------+
| | | |
| TERMINAL |<----------------------->| TERMINAL |
| | VMR-WB/RTP/UDP/IP | |
+----------+ +----------+
(or AMR-WB/RTP/UDP/IP)
Figure 2: IP terminal to IP terminal
A conversational service puts requirements on the payload format.
Low delay is a very important factor, i.e., fewer speech frame-blocks
per payload packet. Low overhead is also required when the payload
format traverses across low bandwidth links, especially if the
frequency of packets will be high.
Streaming service has less strict real-time requirements and
therefore can use a larger number of frame-blocks per packet than
conversational service. This reduces the overhead from IP, UDP, and
RTP headers. However, including several frame-blocks per packet
makes the transmission more vulnerable to packet loss, so
interleaving may be used to reduce the effect of packet loss on
speech quality. A streaming server handling a large number of
clients also needs a payload format that requires as few resources as
possible when doing packetization.
For VMR-WB-enabled IP terminals at both ends, depending on the
implementation, all modes of the VMR-WB codec can be used in this
scenario. Also, both header-free and octet-aligned payload formats
(see <a href="#section-6">Section 6</a> for details) can be utilized. For the interoperable
interconnection between VMR-WB and AMR-WB, only VMR-WB mode 3 is
used, and all restrictions described in <a href="#section-9.3">Section 9.3</a> apply.
<span class="grey">Ahmadi Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. GW to IP Terminal</span>
Another scenario occurs when VMR-WB-encoded speech will be
transmitted from a non-IP system (e.g., 3GPP2/CDMA2000 network) to an
IP terminal, and/or vice versa, as depicted in Figure 3.
VMR-WB over
3GPP2/CDMA2000 network
+------+ +----------+
| | | |
<-------------->| GW |<---------------------->| TERMINAL |
| | VMR-WB/RTP/UDP/IP | |
+------+ +----------+
|
| IP network
|
Figure 3: GW to VoIP terminal scenario
VMR-WB's capability to switch seamlessly between operational modes is
exploited in CDMA (non-IP) networks to optimize speech quality for a
given traffic condition. To preserve this functionality in scenarios
including a gateway to an IP network using the octet-aligned payload
format, a codec mode request (CMR) field is considered. The gateway
will be responsible for forwarding the CMR between the non-IP and IP
parts in both directions. The IP terminal SHOULD follow the CMR
forwarded by the gateway to optimize speech quality going to the
non-IP decoder. The mode control algorithm in the gateway SHOULD
accommodate the delay imposed by the IP network on the response to
CMR by the IP terminal.
The IP terminal SHOULD NOT set the CMR (see <a href="#section-6.3.2">Section 6.3.2</a>), but the
gateway can set the CMR value on frames going toward the encoder in
the non-IP part to optimize speech quality from that encoder to the
gateway and to perform congestion control on the IP network.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. GW to GW (between VMR-WB- and AMR-WB-Enabled Terminals)</span>
A third likely scenario is that RTP/UDP/IP is used as transport
between two non-IP systems, i.e., IP is originated and terminated in
gateways on both sides of the IP transport, as illustrated in Figure
4. This is the most likely scenario for an interoperable
interconnection between 3GPP/(GSM-WCDMA)/AMR-WB and
3GPP2/CDMA2000/VMR-WB-enabled mobile stations. In this scenario, the
VMR-WB-enabled terminal also declares itself capable of AMR-WB with
restricted mode set as described in <a href="#section-9.3">Section 9.3</a>. The CMR value may be
set in packets received by the gateways on the IP network side. The
gateway should forward to the non-IP side a CMR value that is the
<span class="grey">Ahmadi Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
minimum of three values: (1) the CMR value it receives on the IP
side; (2) a CMR value it may choose for congestion control of
transmission on the IP side; and (3) the CMR value based on its
estimate of reception quality on the non-IP side. The details of the
traffic control algorithm are left to the implementation.
VMR-WB over AMR-WB over
3GPP2/CDMA2000 network 3GPP/(GSM-WCDMA) network
+------+ +------+
(AMR-WB Payload) | | AMR-WB/RTP/UDP/IP| |(AMR-WB Payload)
<---------------->| GW |<---------------->| GW |<--------------->
| | | |
+------+ +------+
| IP network |
| |
Figure 4: GW to GW scenario (AMR-WB <-> VMR-WB
interoperable interconnection)
During and upon initiation of an interoperable interconnection
between VMR-WB and AMR-WB, only VMR-WB mode 3 can be used. There are
three Frame Types (i.e., FT=0, 1, or 2; see Table 3) within this mode
that are compatible with AMR-WB codec modes 0, 1, and 2,
respectively. If the AMR-WB codec is engaged in an interoperable
interconnection with VMR-WB, the active AMR-WB codec mode set needs
to be limited to 0, 1, and 2.
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. GW to GW (between Two VMR-WB-Enabled Terminals)</span>
The fourth example VoIP scenario is composed of a RTP/UDP/IP
transport between two non-IP systems; i.e., IP is originated and
terminated in gateways on both sides of the IP transport, as
illustrated in Figure 5. This is the most likely scenario for
Mobile-Station-to-Mobile-Station (MS-to-MS) Transcoder-Free (TrFO)
interconnection between two 3GPP2/CDMA2000 terminals that both use
VMR-WB codec.
<span class="grey">Ahmadi Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
VMR-WB over VMR-WB over
3GPP2/CDMA2000 network 3GPP2/CDMA2000 network
+------+ +------+
| | | |
<------------>| GW |<----------------->| GW |<------------>
| | VMR-WB/RTP/UDP/IP | |
+------+ +------+
| IP network |
| |
Figure 5: GW to GW scenario (a CDMA2000 MS-to-MS VoIP scenario)
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. VMR-WB RTP Payload Formats</span>
For a given session, the payload format can be either header free or
octet aligned, depending on the mode of operation that is established
for the session via out-of-band means and the application.
The header-free payload format is designed for maximum bandwidth
efficiency, simplicity, and low latency. Only one codec data frame
can be sent in each header-free payload format packet. None of the
payload header fields or table of contents (ToC) entries is present
(the same consideration is also made in [<a href="#ref-11" title=""RTP Payload Format for Enhanced Variable Rate Codecs (EVRC) and Selectable Mode Vocoders (SMV)"">11</a>]).
In the octet-aligned payload format, all the fields in a payload,
including payload header, table of contents entries, and speech
frames themselves, are individually aligned to octet boundaries to
make implementations efficient.
Note that octet alignment of a field or payload means that the last
octet is padded with zeroes in the least significant bits to fill the
octet. Also note that this padding is separate from padding
indicated by the P bit in the RTP header.
Between the two payload formats, only the octet-aligned format has
the capability to use the interleaving to make the speech transport
robust to packet loss.
The VMR-WB octet-aligned payload format in the interoperable mode is
identical to that of AMR-WB (i.e., <a href="./rfc3267">RFC 3267</a>).
<span class="grey">Ahmadi Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. RTP Header Usage</span>
The format of the RTP header is specified in [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>]. This payload
format uses the fields of the header in a manner consistent with that
specification.
The RTP timestamp corresponds to the sampling instant of the first
sample encoded for the first frame-block in the packet. The
timestamp clock frequency is the same as the default sampling
frequency (i.e., 16 kHz), so the timestamp unit is in samples.
The duration of one speech frame-block is 20 ms for VMR-WB. For
normal wideband operation of VMR-WB, the input/output media sampling
frequency is 16 kHz, corresponding to 320 samples per frame from each
channel. Thus, the timestamp is increased by 320 for VMR-WB for each
consecutive frame-block.
The VMR-WB codec is capable of processing speech/audio signals
sampled at 8 kHz. By default, the VMR-WB decoder output sampling
frequency is 16 kHz. Depending on the application, the decoder can
be configured to generate 8-kHz output sampling frequency, as well.
Since the VMR-WB RTP payload formats for the 8- and 16-kHz sampled
media are identical and the VMR-WB decoder does not need a priori
knowledge about the encoder input sampling frequency, a fixed RTP
clock rate of 16000 Hz is defined for VMR-WB codec. This would allow
injection or processing of 8-kHz sampled speech/audio media without
having to change the RTP clock rate during a session. Note that the
timestamp is incremented by 320 per frame-block for 8-kHz sampled
media, as well.
A packet may contain multiple frame-blocks of encoded speech or
comfort noise parameters. If interleaving is employed, the frame-
blocks encapsulated into a payload are picked according to the
interleaving rules defined in <a href="#section-6.3.2">Section 6.3.2</a>. Otherwise, each packet
covers a period of one or more contiguous 20-ms frame-block
intervals. In case the data from all the channels for a particular
frame-block in the period is missing (for example, at a gateway from
some other transport format), it is possible to indicate that no data
is present for that frame-block instead of breaking a multi-frame-
block packet into two, as explained in <a href="#section-6.3.2">Section 6.3.2</a>.
No matter which payload format is used, the RTP payload is always
made an integral number of octets long by padding with zero bits if
necessary. If additional padding is required to bring the payload
length to a larger multiple of octets or for some other purpose, then
the P bit in the RTP header MAY be set, and padding appended, as
specified in [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>].
<span class="grey">Ahmadi Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
The RTP header marker bit (M) SHALL be always set to 0 if the VMR-WB
codec operates in continuous transmission. When operating in
discontinuous transmission (DTX), the RTP header marker bit SHALL be
set to 1 if the first frame-block carried in the packet contains a
speech frame, which is the first in a talkspurt. For all other
packets, the marker bit SHALL be set to zero (M=0).
The assignment of an RTP payload type for this payload format is
outside the scope of this document and will not be specified here.
It is expected that the RTP profile under which this payload format
is being used will assign a payload type for this encoding or specify
that the payload type is to be bound dynamically (see <a href="#section-9">Section 9</a>).
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Header-Free Payload Format</span>
The header-free payload format is designed for maximum bandwidth
efficiency, simplicity, and minimum delay. Only one speech data
frame presents in each header-free payload format packet. None of
the payload header fields or ToC entries is present. The encoding
rate for the speech frame can be determined from the length of the
speech data frame, since there is only one speech data frame in each
header-free payload format.
The use of the RTP header fields for header-free payload format is
the same as the corresponding one for the octet-aligned payload
format. The detailed bit mapping of speech data packets permissible
for this payload format is described in Section 8 of [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>]. Since the
header-free payload format is not compatible with AMR-WB RTP payload,
only non-interoperable modes of VMR-WB SHALL be used with this
payload format. That is, FT=0, 1, 2, and 9 SHALL NOT be used with
header-free payload format.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| RTP Header [<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] |
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
| |
+ ONLY one speech data frame +-+-+-+-+-+-+-+-+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Note that the mode of operation, using this payload format, is
decided by the transmitting (encoder) site. The default mode of
operation for VMR-WB encoder is mode 0 [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>]. The mode change request
MAY also be sent through non-RTP means, which is out of the scope of
this specification.
<span class="grey">Ahmadi Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Octet-Aligned Payload Format</span>
<span class="h4"><a class="selflink" id="section-6.3.1" href="#section-6.3.1">6.3.1</a>. Payload Structure</span>
The complete payload consists of a payload header, a payload table of
contents, and speech data representing one or more speech frame-
blocks. The following diagram shows the general payload format
layout:
+----------------+-------------------+----------------
| Payload header | Table of contents | Speech data ...
+----------------+-------------------+----------------
<span class="h4"><a class="selflink" id="section-6.3.2" href="#section-6.3.2">6.3.2</a>. The Payload Header</span>
In octet-aligned payload format, the payload header consists of a
4-bit CMR, 4 reserved bits, and, optionally, an 8-bit interleaving
header, as shown below.
0 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+- - - - - - - -
| CMR |R|R|R|R| ILL | ILP |
+-+-+-+-+-+-+-+-+- - - - - - - -
CMR (4 bits): This indicates a codec mode request sent to the speech
encoder at the site of the receiver of this payload. CMR value 15
indicates that no mode request is present, and other unused values
are reserved for future use.
The value of the CMR field is set according to the following table:
+-------+----------------------------------------------------------+
| CMR | VMR-WB Operating Modes |
+-------+----------------------------------------------------------+
| 0 | VMR-WB mode 3 (AMR-WB interoperable mode at 6.60 kbps) |
| 1 | VMR-WB mode 3 (AMR-WB interoperable mode at 8.85 kbps) |
| 2 | VMR-WB mode 3 (AMR-WB interoperable mode at 12.65 kbps) |
| 3 | VMR-WB mode 2 |
| 4 | VMR-WB mode 1 |
| 5 | VMR-WB mode 0 |
| 6 | VMR-WB mode 2 with maximum half-rate encoding |
| 7-14 | (reserved) |
| 15 | No Preference (no mode request is present) |
+-------+----------------------------------------------------------+
Table 2: List of valid CMR values and their associated VMR-WB
operating modes
<span class="grey">Ahmadi Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
R: This is a reserved bit that MUST be set to zero. The receiver
MUST ignore all R bits.
ILL (4 bits, unsigned integer): This is an OPTIONAL field that is
present only if interleaving is signaled out-of-band for the session.
ILL=L indicates to the receiver that the interleaving length is L+1,
in number of frame-blocks.
ILP (4 bits, unsigned integer): This is an OPTIONAL field that is
present only if interleaving is signaled. ILP MUST take a value
between 0 and ILL, inclusive, indicating the interleaving index for
frame-blocks in this payload in the interleave group. If the value
of ILP is found greater than ILL, the payload SHOULD be discarded.
ILL and ILP fields MUST be present in each packet in a session if
interleaving is signaled for the session.
The mode request received in the CMR field is valid until the next
CMR is received, i.e., until a newly received CMR value overrides the
previous one. Therefore, if a terminal continuously wishes to
receive frames in the same mode, x, it needs to set CMR=x for all its
outbound payloads, and if a terminal has no preference in which mode
to receive, it SHOULD set CMR=15 in all its outbound payloads.
If a payload is received with a CMR value that is not valid, the CMR
MUST be ignored by the receiver.
In a multi-channel session, CMR SHOULD be interpreted by the receiver
of the payload as the desired encoding mode for all the channels in
the session, if the network allows.
There are two factors that affect the VMR-WB mode selection: (i) the
performance of any CDMA link connected via a gateway (e.g., in a GW
to IP terminal scenario), and (ii) the congestion state of an IP
network. The CDMA link performance is signaled via the CMR field,
which is not used by IP-only end-points. The IP network state is
monitored using, for example, RTCP. A sender needs to select the
operating mode to satisfy both these constraints (see <a href="#section-7">Section 7</a>).
The encoder SHOULD follow a received mode request, but MAY change to
a different mode if the network necessitates it, for example, to
control congestion.
The CMR field MUST be set to 15 for packets sent to a multicast
group. The encoder in the speech sender SHOULD ignore mode requests
when sending speech to a multicast session but MAY use RTCP feedback
information as a hint that a mode change is needed.
<span class="grey">Ahmadi Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
If interleaving option is utilized, interleaving MUST be performed on
a frame-block basis, as opposed to a frame basis, in a multi-channel
session.
The following example illustrates the arrangement of speech frame-
blocks in an interleave group during an interleave session. Here we
assume ILL=L for the interleave group that starts at speech frame-
block n. We also assume that the first payload packet of the
interleave group is s and the number of speech frame-blocks carried
in each payload is N. Then we will have
Payload s (the first packet of this interleave group):
ILL=L, ILP=0,
Carry frame-blocks: n, n+(L+1), n+2*(L+1),..., n+(N-1)*(L+1)
Payload s+1 (the second packet of this interleave group):
ILL=L, ILP=1,
Carry frame-blocks: n+1, n+1+(L+1), n+1+2*(L+1),..., n+1+
(N-1)*(L+1)
...
Payload s+L (the last packet of this interleave group):
ILL=L, ILP=L,
Carry frame-blocks: n+L, n+L+(L+1), n+L+2*(L+1), ..., n+L+
(N-1)*(L+1)
The next interleave group will start at frame-block n+N*(L+1). There
will be no interleaving effect unless the number of frame-blocks per
packet (N) is at least 2. Moreover, the number of frame-blocks per
payload (N) and the value of ILL MUST NOT be changed inside an
interleave group. In other words, all payloads in an interleave
group MUST have the same ILL and MUST contain the same number of
speech frame-blocks.
The sender of the payload MUST only apply interleaving if the
receiver has signaled its use through out-of-band means. Since
interleaving will increase buffering requirements at the receiver,
the receiver uses MIME parameter "interleaving=I" to set the maximum
number of frame-blocks allowed in an interleaving group to I.
When performing interleaving, the sender MUST use a proper number of
frame-blocks per payload (N) and ILL so that the resulting size of an
interleave group is less than or equal to I, i.e., N*(L+1)<=I.
The following example shows the ToC of three consecutive packets,
each carrying 3 frame-blocks, in an interleaved two-channel session.
<span class="grey">Ahmadi Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Here, the two channels are left (L) and right (R), with L coming
before R, and the interleaving length is 3 (i.e., ILL=2). This makes
the interleave group 9 frame-blocks large.
Packet #1
---------
ILL=2, ILP=0:
+----+----+----+----+----+----+
| 1L | 1R | 4L | 4R | 7L | 7R |
+----+----+----+----+----+----+
|<------->|<------->|<------->|
Frame Frame Frame
Block 1 Block 4 Block 7
Packet #2
---------
ILL=2, ILP=1:
+----+----+----+----+----+----+
| 2L | 2R | 5L | 5R | 8L | 8R |
+----+----+----+----+----+----+
|<------->|<------->|<------->|
Frame Frame Frame
Block 2 Block 5 Block 8
Packet #3
---------
ILL=2, ILP=2:
+----+----+----+----+----+----+
| 3L | 3R | 6L | 6R | 9L | 9R |
+----+----+----+----+----+----+
|<------->|<------->|<------->|
Frame Frame Frame
Block 3 Block 6 Block 9
<span class="h4"><a class="selflink" id="section-6.3.3" href="#section-6.3.3">6.3.3</a>. The Payload Table of Contents</span>
The table of contents (ToC) in octet-aligned payload format consists
of a list of ToC entries where each entry corresponds to a speech
frame carried in the payload, i.e., when interleaving is used, the
frame-blocks in the ToC will almost never be placed consecutive in
time. Instead, the presence and order of the frame-blocks in a
packet will follow the pattern described in 6.3.2.
<span class="grey">Ahmadi Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
+---------------------+
| list of ToC entries |
+---------------------+
A ToC entry for the octet-aligned payload format is as follows:
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|F| FT |Q|P|P|
+-+-+-+-+-+-+-+-+
The table of contents (ToC) consists of a list of ToC entries, each
representing a speech frame.
F (1 bit): If set to 1, indicates that this frame is followed by
another speech frame in this payload; if set to 0,
indicates that this frame is the last frame in this
payload.
FT (4 bits): Frame type index whose value is chosen according to
Table 3.
During the interoperable mode, FT=14 (SPEECH_LOST) and
FT=15 (NO_DATA) are used to indicate frames that are
either lost or not being transmitted in this payload,
respectively. FT=14 or 15 MAY be used in the non-
interoperable modes to indicate frame erasure or blank
frame, respectively (see Section 2.1 of [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>]).
If a payload with an invalid FT value is received, the
payload MUST be discarded. Note that for ToC entries
with FT=14 or 15, there will be no corresponding speech
frame in the payload.
Depending on the application and the mode of operation
of VMR-WB, any combination of the permissible frame
types (FT) shown in Table 3 MAY be used.
Q (1 bit): Frame quality indicator. If set to 0, indicates that
the corresponding frame is corrupted. During the
interoperable mode, the receiver side (with AMR-WB
codec) should set the RX_TYPE to either SPEECH_BAD or
SID_BAD depending on the frame type (FT), if Q=0. The
VMR-WB encoder always sets Q bit to 1. The VMR-WB
decoder may ignore the Q bit.
P bits: Padding bits MUST be set to zero and MUST be ignored by
a receiver.
<span class="grey">Ahmadi Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
+----+--------------------------------------------+-----------------+
| FT | Encoding Rate |Frame Size (Bits)|
+----+--------------------------------------------+-----------------+
| 0 | Interoperable Full-Rate (AMR-WB 6.60 kbps) | 132 |
| 1 | Interoperable Full-Rate (AMR-WB 8.85 kbps) | 177 |
| 2 | Interoperable Full-Rate (AMR-WB 12.65 kbps)| 253 |
| 3 | Full-Rate 13.3 kbps | 266 |
| 4 | Half-Rate 6.2 kbps | 124 |
| 5 | Quarter-Rate 2.7 kbps | 54 |
| 6 | Eighth-Rate 1.0 kbps | 20 |
| 7 | (reserved) | - |
| 8 | (reserved) | - |
| 9 | CNG (AMR-WB SID) | 40 |
| 10 | (reserved) | - |
| 11 | (reserved) | - |
| 12 | (reserved) | - |
| 13 | (reserved) | - |
| 14 | Erasure (AMR-WB SPEECH_LOST) | 0 |
| 15 | Blank (AMR-WB NO_DATA) | 0 |
+----+--------------------------------------------+-----------------+
Table 3: VMR-WB payload frame types for real-time transport
For multi-channel sessions, the ToC entries of all frames from a
frame-block are placed in the ToC in consecutive order. Therefore,
with N channels and K speech frame-blocks in a packet, there MUST be
N*K entries in the ToC, and the first N entries will be from the
first frame-block, the second N entries will be from the second
frame-block, and so on.
<span class="h4"><a class="selflink" id="section-6.3.4" href="#section-6.3.4">6.3.4</a>. Speech Data</span>
Speech data of a payload contains one or more speech frames as
described in the ToC of the payload.
Each speech frame represents 20 ms of speech encoded in one of the
available encoding rates depending on the operation mode. The length
of the speech frame is defined by the frame type in the FT field,
with the following considerations:
- The last octet of each speech frame MUST be padded with zeroes at
the end if not all bits in the octet are used. In other words,
each speech frame MUST be octet-aligned.
- When multiple speech frames are present in the speech data, the
speech frames MUST be arranged one whole frame after another.
<span class="grey">Ahmadi Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
The order and numbering notation of the speech data bits are as
specified in the VMR-WB standard specification [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>].
The payload begins with the payload header of one octet, or two if
frame interleaving is selected. The payload header is followed by
the table of contents consisting of a list of one-octet ToC entries.
The speech data follows the table of contents. For the purpose of
packetization, all the octets comprising a speech frame are appended
to the payload as a unit. The speech frames are packed in the same
order as their corresponding ToC entries are arranged in the ToC
list, with the exception that if a given frame has a ToC entry with
FT=14 or 15, there will be no data octets present for that frame.
<span class="h4"><a class="selflink" id="section-6.3.5" href="#section-6.3.5">6.3.5</a>. Payload Example: Basic Single Channel Payload Carrying Multiple</span>
<span class="h4"> Frames</span>
The following diagram shows an octet-aligned payload format from a
single channel session that carries two VMR-WB Full-Rate frames
(FT=3). In the payload, a codec mode request is sent (e.g., CMR=4),
requesting that the encoder at the receiver's side use VMR-WB mode 1.
No interleaving is used. Note that in the example below the last
octet in both speech frames is padded with zeros to make them octet
aligned.
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| CMR=4 |R|R|R|R|1|FT#1=3 |Q|P|P|0|FT#2=3 |Q|P|P| f1(0..7) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| f1(8..15) | f1(16..23) | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| r |P|P|P|P|P|P| f2(0..7) | f2(8..15) | f2(16..23) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | l |P|P|P|P|P|P|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
r= f1(264,265)
l= f2(264,265)
<span class="grey">Ahmadi Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Implementation Considerations</span>
An application implementing this payload format MUST understand all
the payload parameters. Any mapping of the parameters to a signaling
protocol MUST support all parameters. Therefore, an implementation
of this payload format in an application using SDP is required to
understand all the payload parameters in their SDP-mapped form. This
requirement ensures that an implementation always can decide whether
it is capable of communicating.
To enable efficient interoperable interconnection with AMR-WB and to
ensure that a VMR-WB terminal appropriately declares itself as a
AMR-WB-capable terminal (see <a href="#section-9.3">Section 9.3</a>), it is also RECOMMENDED
that a VMR-WB RTP payload implementation understand relevant AMR-WB
signaling.
To further ensure interoperability between various implementations of
VMR-WB, implementations SHALL support both header-free and octet-
aligned payload formats. Support of interleaving is optional.
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. Decoding Validation and Provision for Lost or Late Packets</span>
When processing a received payload packet, if the receiver finds that
the calculated payload length, based on the information of the
session and the values found in the payload header fields, does not
match the size of the received packet, the receiver SHOULD discard
the packet to avoid potential degradation of speech quality and to
invoke the VMR-WB built-in frame error concealment mechanism.
Therefore, invalid packets SHALL be treated as lost packets.
Late packets (i.e., the unavailability of a packet when it is needed
for decoding at the receiver) should be treated as lost packets.
Furthermore, if the late packet is part of an interleave group,
depending upon the availability of the other packets in that
interleave group, decoding must be resumed from the next available
frame (sequential order). In other words, the unavailability of a
packet in an interleave group at a certain time should not invalidate
the other packets within that interleave group that may arrive later.
<span class="grey">Ahmadi Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Congestion Control</span>
The general congestion control considerations for transporting RTP
data apply to VMR-WB speech over RTP as well. However, the multimode
capability of VMR-WB speech codec may provide an advantage over other
payload formats for controlling congestion since the bandwidth demand
can be adjusted by selecting a different operating mode.
Another parameter that may impact the bandwidth demand for VMR-WB is
the number of frame-blocks that are encapsulated in each RTP payload.
Packing more frame-blocks in each RTP payload can reduce the number
of packets sent and hence the overhead from RTP/UDP/IP headers, at
the expense of increased delay.
If forward error correction (FEC) is used to alleviate the packet
loss, the amount of redundancy added by FEC will need to be regulated
so that the use of FEC itself does not cause a congestion problem.
Congestion control for RTP SHALL be used in accordance with <a href="./rfc3550">RFC 3550</a>
[<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] and any applicable RTP profile, for example, <a href="./rfc3551">RFC 3551</a> [<a href="#ref-6" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">6</a>]. This
means that congestion control is required for any transmission over
unmanaged best-effort networks.
Congestion on the IP network is managed by the IP sender. Feedback
about congestion SHOULD be provided to that IP sender through RTCP or
other means, and then the sender can choose to avoid congestion using
the most appropriate mechanism. That may include selecting an
appropriate operating mode, but also includes adjusting the level of
redundancy or number of frames per packet.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Security Considerations</span>
RTP packets using the payload format defined in this specification
are subject to the general security considerations discussed in RTP
[<a href="#ref-3" title=""RTP: A Transport Protocol for Real-Time Applications"">3</a>] and any applicable profile such as AVP [<a href="#ref-9" title=""The Secure Real-time Transport Protocol (SRTP)"">9</a>] or SAVP [<a href="#ref-10" title=""RTP Payload for Redundant Audio Data"">10</a>].
As this format transports encoded audio, the main security issues
include confidentiality, integrity protection, and data origin
authentication of the audio itself. The payload format itself does
not have any built-in security mechanisms. Any suitable external
mechanisms, such as SRTP [<a href="#ref-10" title=""RTP Payload for Redundant Audio Data"">10</a>], MAY be used.
This payload format and the VMR-WB decoder do not exhibit any
significant non-uniformity in the receiver-side computational
complexity for packet processing; thus, they are unlikely to pose a
denial-of-service threat due to the receipt of pathological data.
<span class="grey">Ahmadi Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Confidentiality</span>
In order to ensure confidentiality of the encoded audio, all audio
data bits MUST be encrypted. There is less need to encrypt the
payload header or the table of contents since they only carry
information about the frame type. This information could also be
useful to a third party, for example, for quality monitoring.
The use of interleaving in conjunction with encryption can have a
negative impact on the confidentiality for a short period of time.
Consider the following packets (in brackets) containing frame numbers
as indicated: {10, 14, 18}, {13, 17, 21}, {16, 20, 24} (a typical
continuous diagonal interleaving pattern). The originator wishes to
deny some participants the ability to hear material starting at time
16. Simply changing the key on the packet with the timestamp at or
after 16, and denying the new key to those participants, does not
achieve this; frames 17, 18, and 21 have been supplied in prior
packets under the prior key, and error concealment may make the audio
intelligible at least as far as frame 18 or 19, and possibly further.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Authentication and Integrity</span>
To authenticate the sender of the speech, an external mechanism MUST
be used. It is RECOMMENDED that such a mechanism protects both the
complete RTP header and the payload (speech and data bits).
Data tampering by a man-in-the-middle attacker could replace audio
content and also result in erroneous depacketization/decoding that
could lower the audio quality. For example, tampering with the CMR
field may result in speech of a different quality than desired.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Payload Format Parameters</span>
This section defines the parameters that may be used to select
optional features in the VMR-WB RTP payload formats.
The parameters are defined here as part of the MIME subtype
registration for the VMR-WB speech codec. A mapping of the
parameters into the Session Description Protocol (SDP) [<a href="#ref-5" title=""SDP: Session Description Protocol"">5</a>] is also
provided for those applications that use SDP. In control protocols
that do not use MIME or SDP, the media type parameters must be mapped
to the appropriate format used with that control protocol.
<span class="grey">Ahmadi Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. VMR-WB RTP Payload MIME Registration</span>
The MIME subtype for the Variable-Rate Multimode Wideband (VMR-WB)
audio codec is allocated from the IETF tree since VMR-WB is expected
to be a widely used speech codec in multimedia streaming and
messaging as well as in VoIP applications. This MIME registration
only covers real-time transfers via RTP.
Note, the receiver MUST ignore any unspecified parameter and use the
default values instead. Also note that if no input parameters are
defined, the default values will be used.
Media Type name: audio
Media subtype name: VMR-WB
Required parameters: none
Furthermore, if the interleaving parameter is present, the parameter
"octet-align=1" MUST also be present.
OPTIONAL parameters:
mode-set: Requested VMR-WB operating mode set. Restricts
the active operating modes to a subset of all
modes. Possible values are a comma-separated
list of integer values. Currently, this list
includes modes 0, 1, 2, and 3 [<a href="#ref-1" title=""Source-Controlled Variable-Rate Multimode Wideband Speech Codec (VMR-WB) Service Option 62 for Spread Spectrum Systems"">1</a>], but MAY be
extended in the future. If such mode-set is
specified during session initiation, the encoder
MUST NOT use modes outside of the subset. If not
present, all operating modes in the set 0 to 3 are
allowed for the session.
channels: The number of audio channels. The possible
values and their respective channel order
is specified in Section 4.1 in [<a href="#ref-6" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">6</a>]. If
omitted, it has the default value of 1.
octet-align: RTP payload format; permissible values are 0 and
1. If 1, octet-aligned payload format SHALL be
used. If 0 or if not present, header-free payload
format is employed (default).
maxptime: See <a href="./rfc3267">RFC 3267</a> [<a href="#ref-4" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">4</a>]
<span class="grey">Ahmadi Standards Track [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
interleaving: Indicates that frame-block level
interleaving SHALL be used for the session.
Its value defines the maximum number of
frame-blocks allowed in an interleaving
group (see <a href="#section-6.3.1">Section 6.3.1</a>). If this
parameter is not present, interleaving
SHALL NOT be used. The presence of this
parameter also implies automatically that
octet-aligned operation SHALL be used.
ptime: See <a href="./rfc2327">RFC2327</a> [<a href="#ref-5" title=""SDP: Session Description Protocol"">5</a>]. It SHALL be at least one
frame size for VMR-WB.
dtx: Permissible values are 0 and 1. The default
is 0 (i.e., No DTX) where VMR-WB normally
operates as a continuous variable-rate
codec. If dtx=1, the VMR-WB codec will
operate in discontinuous transmission mode
where silence descriptor (SID) frames are
sent by the VMR-WB encoder during silence
intervals with an adjustable update
frequency. The selection of the SID update-rate
depends on the implementation and
other network considerations that are
beyond the scope of this specification.
Encoding considerations:
This type is only defined for transfer of VMR-WB-encoded data
via RTP (<a href="./rfc3550">RFC 3550</a>) using the payload formats specified in
<a href="./rfc4348#section-6">Section 6 of RFC 4348</a>.
Security considerations:
See <a href="./rfc4348#section-8">Section 8 of RFC 4348</a>.
Public specification:
The VMR-WB speech codec is specified in
3GPP2 specifications C.S0052-0 version 1.0.
Transfer methods are specified in <a href="./rfc4348">RFC 4348</a>.
Additional information:
Person & email address to contact for further information:
Sassan Ahmadi, Ph.D. sassan.ahmadi@ieee.org
<span class="grey">Ahmadi Standards Track [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Intended usage: COMMON.
It is expected that many VoIP, multimedia messaging and
streaming applications (as well as mobile applications)
will use this type.
Author/Change controller:
IETF Audio/Video Transport working group delegated from the IESG
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Mapping MIME Parameters into SDP</span>
The information carried in the MIME media type specification has a
specific mapping to fields in the Session Description Protocol (SDP)
[<a href="#ref-5" title=""SDP: Session Description Protocol"">5</a>], which is commonly used to describe RTP sessions. When SDP is
used to specify sessions employing the VMR-WB codec, the mapping is
as follows:
- The media type ("audio") goes in SDP "m=" as the media name.
- The media subtype (payload format name) goes in SDP "a=rtpmap"
as the encoding name. The RTP clock rate in "a=rtpmap" MUST be
16000 for VMR-WB.
- The parameter "channels" (number of channels) MUST be either
explicitly set to N or omitted, implying a default value of 1.
The values of N that are allowed is specified in Section 4.1 in
[<a href="#ref-6" title=""RTP Profile for Audio and Video Conferences with Minimal Control"">6</a>]. The parameter "channels", if present, is specified
subsequent to the MIME subtype and RTP clock rate as an encoding
parameter in the "a=rtpmap" attribute.
- The parameters "ptime" and "maxptime" go in the SDP "a=ptime"
and
"a=maxptime" attributes, respectively.
- Any remaining parameters go in the SDP "a=fmtp" attribute by
copying them directly from the MIME media type string as a
semicolon-separated list of parameter=value pairs.
Some examples of SDP session descriptions utilizing VMR-WB encodings
follow.
Example of usage of VMR-WB in a possible VoIP scenario (wideband
audio):
m=audio 49120 RTP/AVP 98
a=rtpmap:98 VMR-WB/16000
a=fmtp:98 octet-align=1
<span class="grey">Ahmadi Standards Track [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Example of usage of VMR-WB in a possible streaming scenario (two
channel stereo):
m=audio 49120 RTP/AVP 99
a=rtpmap:99 VMR-WB/16000/2
a=fmtp:99 octet-align=1; interleaving=30
a=maxptime:100
<span class="h3"><a class="selflink" id="section-9.3" href="#section-9.3">9.3</a>. Offer-Answer Model Considerations</span>
To achieve good interoperability for the VMR-WB RTP payload in an
Offer-Answer negotiation usage in SDP [<a href="#ref-13" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">13</a>], the following
considerations are made:
- The rate, channel, and payload configuration parameters (octet-
align and interleaving) SHALL be used symmetrically, i.e., offer
and answer must use the same values. The maximum size of the
interleaving buffer is, however, declarative, and each agent
specifies the value it supports to receive for recvonly and
sendrecv streams. For sendonly streams, the value indicates what
the agent desires to use.
- To maintain interoperability among all implementations of VMR-WB
that may or may not support all the codec's modes of operation, the
operational modes that are supported by an implementation MAY be
identified at session initiation. The mode-set parameter is
declarative, and only operating modes that have been indicated to
be supported by both ends SHALL be used. If the answerer is not
supporting any of the operating modes provided in the offer, the
complete payload type declaration SHOULD be rejected by removing it
from the answer.
- The remaining parameters are all declarative; i.e., for sendonly
streams they provide parameters that the agent desires to use,
while for recvonly and sendrecv streams they declare the parameters
that it accepts to receive. The dtx parameter is used to indicate
DTX support and capability, while the media sender is only
RECOMMENDED to send using the DTX in these cases. If DTX is not
supported by the media sender, it will send media without DTX; this
will not affect interoperability only the resource consumption.
- Both header-free and octet-aligned payload format configurations
MAY be offered by a VMR-WB enabled terminal. However, for an
interoperable interconnection with AMR-WB, only octet-aligned
- The parameters "maxptime" and "ptime" should in most cases not
affect the interoperability; however, the setting of the parameters
can affect the performance of the application.
<span class="grey">Ahmadi Standards Track [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
- To maintain interoperability with AMR-WB in cases where negotiation
is possible using the VMR-WB interoperable mode, a VMR-WB-enabled
terminal SHOULD also declare itself capable of AMR-WB with limited
mode set (i.e., only AMR-WB codec modes 0, 1, and 2 are allowed)
and of octet-align mode of operation.
Example:
m=audio 49120 RTP/AVP 98 99
a=rtpmap:98 VMR-WB/16000
a=rtpmap:99 AMR-WB/16000
a=fmtp:99 octet-align=1; mode-set=0,1,2
An example of offer-answer exchange for the VoIP scenario described
in <a href="#section-5.3">Section 5.3</a> is as follows:
CDMA2000 terminal -> WCDMA terminal Offer:
m=audio 49120 RTP/AVP 98 97
a=rtpmap:98 VMR-WB/16000
a=fmtp:98 octet-align=1
a=rtpmap:97 AMR-WB/16000
a=fmtp:97 mode-set=0,1,2; octet-align=1
WCDMA terminal -> CDMA2000 terminal Answer:
m=audio 49120 RTP/AVP 97
a=rtpmap:97 AMR-WB/16000
a=fmtp:97 mode-set=0,1,2; octet-align=1;
For declarative use of SDP such as in SAP [<a href="#ref-14" title=""Session Announcement Protocol"">14</a>] and RTSP [<a href="#ref-15" title=""Real Time Streaming Protocol (RTSP)"">15</a>], all
parameters are declarative and provide the parameters that SHALL be
used when receiving and/or sending the configured stream.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. IANA Considerations</span>
The IANA has registered one new MIME subtype (audio/VMR-WB); see
<a href="#section-9">Section 9</a>.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Acknowledgements</span>
The author would like to thank Redwan Salami of VoiceAge Corporation,
Ari Lakaniemi of Nokia Inc., and IETF/AVT chairs Colin Perkins and
Magnus Westerlund for their technical comments to improve this
document.
Also, the author would like to acknowledge that some parts of <a href="./rfc3267">RFC</a>
<a href="./rfc3267">3267</a> [<a href="#ref-4" title=""Real- Time Transport Protocol (RTP) Payload Format and File Storage Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate Wideband (AMR-WB) Audio Codecs"">4</a>] and <a href="./rfc3558">RFC 3558</a> [<a href="#ref-11" title=""RTP Payload Format for Enhanced Variable Rate Codecs (EVRC) and Selectable Mode Vocoders (SMV)"">11</a>] have been used in this document.
<span class="grey">Ahmadi Standards Track [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. References</span>
<span class="h3"><a class="selflink" id="section-12.1" href="#section-12.1">12.1</a>. Normative References</span>
[<a id="ref-1">1</a>] 3GPP2 C.S0052-0 v1.0 "Source-Controlled Variable-Rate Multimode
Wideband Speech Codec (VMR-WB) Service Option 62 for Spread
Spectrum Systems", 3GPP2 Technical Specification, July 2004.
[<a id="ref-2">2</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-3">3</a>] Schulzrinne, H., Casner, S., Frederick, R., and V. Jacobson,
"RTP: A Transport Protocol for Real-Time Applications", STD 64,
<a href="./rfc3550">RFC 3550</a>, July 2003.
[<a id="ref-4">4</a>] Sjoberg, J., Westerlund, M., Lakaniemi, A., and Q. Xie, "Real-
Time Transport Protocol (RTP) Payload Format and File Storage
Format for the Adaptive Multi-Rate (AMR) and Adaptive Multi-Rate
Wideband (AMR-WB) Audio Codecs", <a href="./rfc3267">RFC 3267</a>, June 2002.
[<a id="ref-5">5</a>] Handley, M. and V. Jacobson, "SDP: Session Description
Protocol", <a href="./rfc2327">RFC 2327</a>, April 1998.
[<a id="ref-6">6</a>] Schulzrinne, H. and S. Casner, "RTP Profile for Audio and Video
Conferences with Minimal Control", STD 65, <a href="./rfc3551">RFC 3551</a>, July 2003.
<span class="h3"><a class="selflink" id="section-12.2" href="#section-12.2">12.2</a>. Informative References</span>
[<a id="ref-7">7</a>] 3GPP2 C.S0050-A v1.0 "3GPP2 File Formats for Multimedia
Services", 3GPP2 Technical Specification, September 2005.
[<a id="ref-8">8</a>] Rosenberg, J. and H. Schulzrinne, "An RTP Payload Format for
Generic Forward Error Correction", <a href="./rfc2733">RFC 2733</a>, December 1999.
[<a id="ref-9">9</a>] Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K.
Norrman, "The Secure Real-time Transport Protocol (SRTP)", <a href="./rfc3711">RFC</a>
<a href="./rfc3711">3711</a>, March 2004.
[<a id="ref-10">10</a>] Perkins, C., Kouvelas, I., Hodson, O., Hardman, V., Handley, M.,
Bolot, J., Vega-Garcia, A., and S. Fosse-Parisis, "RTP Payload
for Redundant Audio Data", <a href="./rfc2198">RFC 2198</a>, September 1997.
[<a id="ref-11">11</a>] Li, A., "RTP Payload Format for Enhanced Variable Rate Codecs
(EVRC) and Selectable Mode Vocoders (SMV)", <a href="./rfc3558">RFC 3558</a>, July 2003.
[<a id="ref-12">12</a>] 3GPP TS 26.193 "AMR Wideband Speech Codec; Source Controlled
Rate operation", version 5.0.0 (2001-03), 3rd Generation
Partnership Project (3GPP).
<span class="grey">Ahmadi Standards Track [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
[<a id="ref-13">13</a>] Rosenberg, J. and H. Schulzrinne, "An Offer/Answer Model with
Session Description Protocol (SDP)", <a href="./rfc3264">RFC 3264</a>, June 2002.
[<a id="ref-14">14</a>] Handley, M., Perkins, C., and E. Whelan, "Session Announcement
Protocol", <a href="./rfc2974">RFC 2974</a>, October 2000.
[<a id="ref-15">15</a>] Schulzrinne, H., Rao, A., and R. Lanphier, "Real Time Streaming
Protocol (RTSP)", <a href="./rfc2326">RFC 2326</a>, April 1998.
Any 3GPP2 document can be downloaded from the 3GPP2 web server,
"<a href="http://www.3gpp2.org/">http://www.3gpp2.org/</a>", see specifications.
Author's Address
Dr. Sassan Ahmadi
EMail: sassan.ahmadi@ieee.org
<span class="grey">Ahmadi Standards Track [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc4348">RFC 4348</a> VMR-WB RTP Payload Format January 2006</span>
Full Copyright Statement
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a>, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is provided by the IETF
Administrative Support Activity (IASA).
Ahmadi Standards Track [Page 32]
</pre>
|