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
|
<pre>Internet Engineering Task Force (IETF) C. Holmberg
Request for Comments: 7345 I. Sedlacek
Category: Standards Track Ericsson
ISSN: 2070-1721 G. Salgueiro
Cisco
August 2014
<span class="h1">UDP Transport Layer (UDPTL)</span>
<span class="h1">over Datagram Transport Layer Security (DTLS)</span>
Abstract
This document specifies how the UDP Transport Layer (UDPTL) protocol,
the predominant transport protocol for T.38 fax, can be transported
over the Datagram Transport Layer Security (DTLS) protocol, how the
usage of UDPTL over DTLS is indicated in the Session Description
Protocol (SDP), and how UDPTL over DTLS is negotiated in a session
established using the Session Initiation Protocol (SIP).
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/rfc7345">http://www.rfc-editor.org/info/rfc7345</a>.
Copyright Notice
Copyright (c) 2014 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.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Conventions .....................................................<a href="#page-5">5</a>
<a href="#section-3">3</a>. Secure Channel ..................................................<a href="#page-5">5</a>
<a href="#section-4">4</a>. SDP Offerer/Answerer Procedures .................................<a href="#page-6">6</a>
<a href="#section-4.1">4.1</a>. General ....................................................<a href="#page-6">6</a>
<a href="#section-4.2">4.2</a>. Generating the Initial Offer ...............................<a href="#page-7">7</a>
<a href="#section-4.3">4.3</a>. Generating the Answer ......................................<a href="#page-7">7</a>
<a href="#section-4.4">4.4</a>. Offerer Processing of the Answer ...........................<a href="#page-7">7</a>
<a href="#section-4.5">4.5</a>. Modifying the Session ......................................<a href="#page-7">7</a>
<a href="#section-5">5</a>. Miscellaneous Considerations ....................................<a href="#page-8">8</a>
<a href="#section-5.1">5.1</a>. Anonymous Calls ............................................<a href="#page-8">8</a>
<a href="#section-5.2">5.2</a>. NAT Traversal ..............................................<a href="#page-8">8</a>
<a href="#section-5.2.1">5.2.1</a>. ICE Usage ...........................................<a href="#page-8">8</a>
<a href="#section-5.2.2">5.2.2</a>. STUN Interaction ....................................<a href="#page-8">8</a>
<a href="#section-5.3">5.3</a>. Rekeying ...................................................<a href="#page-9">9</a>
<a href="#section-5.4">5.4</a>. Compatibility with UDPTL over UDP ..........................<a href="#page-9">9</a>
<a href="#section-6">6</a>. Security Considerations .........................................<a href="#page-9">9</a>
<a href="#section-7">7</a>. IANA Considerations ............................................<a href="#page-10">10</a>
<a href="#section-8">8</a>. Acknowledgments ................................................<a href="#page-10">10</a>
<a href="#section-9">9</a>. References .....................................................<a href="#page-11">11</a>
<a href="#section-9.1">9.1</a>. Normative References ......................................<a href="#page-11">11</a>
<a href="#section-9.2">9.2</a>. Informative References ....................................<a href="#page-12">12</a>
<a href="#appendix-A">Appendix A</a>. Examples .............................................<a href="#page-13">13</a>
<a href="#appendix-A.1">A.1</a>. General ...................................................<a href="#page-13">13</a>
<a href="#appendix-A.2">A.2</a>. Basic Message Flow ........................................<a href="#page-13">13</a>
A.3. Message Flow of T.38 Fax Replacing Audio Media Stream in
an Existing Audio-Only Session ............................<a href="#page-20">20</a>
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
While it is possible to transmit highly sensitive documents using
traditional telephony encryption devices, secure fax on the Public
Switched Telephone Network (PSTN) was never widely considered or
prioritized. This was mainly because of the challenges involved with
malevolent physical access to telephony equipment. As real-time
communications transition to IP networks, where information might
potentially be intercepted or spoofed, an appropriate level of
security for fax that offers integrity and confidentiality protection
is vital.
The overwhelmingly predominant fax transport protocol is UDPTL-based,
as described in Section 9.1 of [<a href="#ref-ITU.T38.2010">ITU.T38.2010</a>]. The protocol stack
for fax transport using UDPTL is shown in Figure 1.
+-----------------------------+
| Internet facsimile protocol |
+-----------------------------+
| UDPTL |
+-----------------------------+
| UDP |
+-----------------------------+
| IP |
+-----------------------------+
Figure 1: Protocol Stack for UDPTL over UDP
The following mechanisms are available for securing fax:
o Annex H of [<a href="#ref-ITU.T30.2005">ITU.T30.2005</a>] specifies an application-layer integrity
and confidentiality protection of fax that is independent of the
transport protocol and is based on the RSA algorithm for use with
the T.30 telephony protocol by Group 3 facsimile equipment (G3FE).
o [<a href="#ref-ITU.T38.2010">ITU.T38.2010</a>] specifies fax transport over RTP/SAVP, which
enables integrity and confidentiality protection of fax in IP
networks.
Both of these mechanisms have been available for many years and never
gained any significant adoption in the market. This has prompted an
effort to develop an approach, based on open standards, for securing
fax communications over an IP-based transport.
Telephony-based protocols like T.30 offer application-level security
options like the RSA-based approach detailed in Annex H of the T.30
specification [<a href="#ref-ITU.T30.2005">ITU.T30.2005</a>]. The problem is that it is very
sparingly implemented and not enforced at the transport level.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
It is worth noting that while T.38 over RTP offers a very viable
option for such standards-based IP security solution using Secure
Realtime Transport Protocol (SRTP), this fax-over-IP transport never
gained any traction in the marketplace and accounts for a negligible
percentage of fax-over-IP implementations.
Thus, security mechanisms offering integrity and confidentiality
protection should be limited to UDPTL-based fax transport, which is
the only broad-based fax-over-IP solution. The 3rd Generation
Partnership Project (3GPP) launched a study on how best to provide
secure fax in the IP Multimedia Subsystem (IMS) for UDPTL. Results
of the study confirmed that this security was best achieved by using
UDPTL over DTLS.
This document specifies fax transport using UDPTL over DTLS
[<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>], which enables integrity and confidentiality protection of
fax in IP networks. The protocol stack that enhances fax transport
to offer integrity and confidentiality using UDPTL over DTLS is shown
in Figure 2.
+-----------------------------+
| Internet facsimile protocol |
+-----------------------------+
| UDPTL |
+-----------------------------+
| DTLS |
+-----------------------------+
| UDP |
+-----------------------------+
| IP |
+-----------------------------+
Figure 2: Protocol Stack for UDPTL over DTLS over UDP
The primary motivations for the mechanism in this document are:
o The design of DTLS [<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>] is clearly defined and well
understood, and implementations are widely available.
o No DTLS extensions are required in order to enable UDPTL transport
over DTLS.
o Fax transport using UDPTL over DTLS only requires insertion of the
DTLS layer between the UDPTL layer and the UDP layer, as shown in
Figure 2. The UDPTL layer and the layers above the UDPTL layer
require no modifications.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
o UDPTL [<a href="#ref-ITU.T38.2010">ITU.T38.2010</a>] is by far the most widely deployed fax
transport protocol in IP networks.
o 3GPP and the IP fax community need a mechanism to transport UDPTL
over DTLS in order to provide secure fax in SIP-based networks
(including IMS).
This document specifies the transport of UDPTL over DTLS using the
DTLS record layer "application_data" packets [<a href="./rfc5246" title=""The Transport Layer Security (TLS) Protocol Version 1.2"">RFC5246</a>] [<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>].
Since the DTLS record layer "application_data" packet does not
indicate whether it carries UDPTL or some other protocol, the usage
of a dedicated DTLS association for transport of UDPTL needs to be
negotiated, e.g., using the Session Description Protocol (SDP)
[<a href="./rfc4566" title=""SDP: Session Description Protocol"">RFC4566</a>] and the SDP offer/answer mechanism [<a href="./rfc3264" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">RFC3264</a>].
Therefore, this document specifies a new <proto> value [<a href="./rfc4566" title=""SDP: Session Description Protocol"">RFC4566</a>] for
the SDP media description ("m=" line) [<a href="./rfc3264" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">RFC3264</a>], in order to indicate
UDPTL over DTLS in SDP messages [<a href="./rfc4566" title=""SDP: Session Description Protocol"">RFC4566</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Conventions</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="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>
[<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
DTLS uses the term "session" to refer to a long-lived set of keying
material that spans DTLS associations. In this document, in order to
be consistent with SIP/SDP usage of "session" terminology, we use
"session" to refer to a multimedia session and use the term "DTLS
session" to refer to the DTLS construct. We use the term "DTLS
association" to refer to a particular DTLS cipher suite and keying
material set that is associated with a single host/port quartet. The
same DTLS session can be used to establish the keying material for
multiple DTLS associations. For consistency with other SIP/SDP
usage, we use the term "connection" when what's being referred to is
a multimedia stream that is not specifically DTLS.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Secure Channel</span>
The UDPTL-over-DTLS media stream is negotiated using the SDP offer/
answer mechanism [<a href="./rfc3264" title=""An Offer/Answer Model with Session Description Protocol (SDP)"">RFC3264</a>]. See <a href="#section-4">Section 4</a> for more details.
DTLS is used as specified in [<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>]. Once the DTLS handshake is
successfully completed (in order to prevent facsimile data from being
transmitted insecurely), the UDPTL packets MUST be transported in
DTLS record layer "application_data" packets.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. SDP Offerer/Answerer Procedures</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. General</span>
An endpoint (i.e., both the offerer and the answerer) MUST create an
SDP media description ("m=" line) for each UDPTL-over-DTLS media
stream and MUST assign a UDP/TLS/UDPTL value (see Table 1) to the
"proto" field of the "m=" line.
The procedures in this section apply to an "m=" line associated with
a UDPTL-over-DTLS media stream.
In order to negotiate a UDPTL-over-DTLS media stream, the following
SDP attributes are used:
o The SDP attributes defined for UDPTL over UDP, as described in
[<a href="#ref-ITU.T38.2010">ITU.T38.2010</a>]; and
o The SDP attributes, defined in [<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>] and [<a href="./rfc4572" title=""Connection-Oriented Media Transport over the Transport Layer Security (TLS) Protocol in the Session Description Protocol (SDP)"">RFC4572</a>], as
described in this section.
The endpoint MUST NOT use the SDP "connection" attribute [<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>].
In order to negotiate the TLS roles for the UDPTL-over-DTLS transport
connection, the endpoint MUST use the SDP "setup" attribute
[<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>].
If the endpoint supports, and is willing to use, a cipher suite with
an associated certificate, the endpoint MUST include an SDP
"fingerprint" attribute [<a href="./rfc4572" title=""Connection-Oriented Media Transport over the Transport Layer Security (TLS) Protocol in the Session Description Protocol (SDP)"">RFC4572</a>]. The endpoint MUST support SHA-256
for generating and verifying the SDP "fingerprint" attribute value.
The use of SHA-256 is preferred. UDPTL over DTLS, at a minimum, MUST
support TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 and MUST support
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256. UDPTL over DTLS MUST prefer
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 and any other Perfect Forward
Secrecy (PFS) cipher suites over non-PFS cipher suites.
Implementations SHOULD disable TLS-level compression.
If a cipher suite with an associated certificate is selected during
the DTLS handshake, the certificate received during the DTLS
handshake MUST match the fingerprint received in the SDP
"fingerprint" attribute. If the fingerprint does not match the
hashed certificate, then the endpoint MUST tear down the media
session immediately. Note that it is permissible to wait until the
other side's fingerprint has been received before establishing the
connection; however, this may have undesirable latency effects.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Generating the Initial Offer</span>
The offerer SHOULD assign the SDP "setup" attribute with a value of
"actpass", unless the offerer insists on being either the sender or
receiver of the DTLS ClientHello message, in which case the offerer
can use either a value of "active" (the offerer will be the sender of
ClientHello) or "passive" (the offerer will be the receiver of
ClientHello). The offerer MUST NOT assign an SDP "setup" attribute
with a "holdconn" value.
If the offerer assigns the SDP "setup" attribute with a value of
"actpass" or "passive", the offerer MUST be prepared to receive a
DTLS ClientHello message before it receives the SDP answer.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Generating the Answer</span>
If the answerer accepts the offered UDPTL-over-DTLS transport
connection, in the associated SDP answer, the answerer MUST assign an
SDP "setup" attribute with a value of either "active" or "passive",
according to the procedures in [<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>]. The answerer MUST NOT
assign an SDP "setup" attribute with a value of "holdconn".
If the answerer assigns an SDP "setup" attribute with a value of
"active" value, the answerer MUST initiate a DTLS handshake by
sending a DTLS ClientHello message on the negotiated media stream,
towards the IP address and port of the offerer.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Offerer Processing of the Answer</span>
When the offerer receives an SDP answer, if the offerer ends up being
active it MUST initiate a DTLS handshake by sending a DTLS
ClientHello message on the negotiated media stream, towards the IP
address and port of the answerer.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Modifying the Session</span>
Once an offer/answer exchange has been completed, either endpoint MAY
send a new offer in order to modify the session. The endpoints can
reuse the existing DTLS association if the key fingerprint values and
transport parameters indicated by each endpoint are unchanged.
Otherwise, following the rules for the initial offer/answer exchange,
the endpoints can negotiate and create a new DTLS association and,
once created, delete the previous DTLS association, following the
same rules for the initial offer/answer exchange. Each endpoint
needs to be prepared to receive data on both the new and old DTLS
associations as long as both are alive.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Miscellaneous Considerations</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Anonymous Calls</span>
When making anonymous calls, a new self-signed certificate SHOULD be
used for each call, and attributes inside the certificate MUST NOT
contain information that allows either correlation or identification
of the user making anonymous calls. This is particularly important
for the "subjectAltName" and "commonName" attributes.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. NAT Traversal</span>
<span class="h4"><a class="selflink" id="section-5.2.1" href="#section-5.2.1">5.2.1</a>. ICE Usage</span>
When Interactive Connectivity Establishment (ICE) [<a href="./rfc5245" title=""Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols"">RFC5245</a>] is being
used, the ICE connectivity checks are performed before the DTLS
handshake begins. Note that if aggressive nomination mode is used,
multiple candidate pairs may be marked valid before ICE finally
converges on a single candidate pair. User Agents (UAs) MUST treat
all ICE candidate pairs associated with a single component as part of
the same DTLS association. Thus, there will be only one DTLS
handshake even if there are multiple valid candidate pairs. Note
that this may mean adjusting the endpoint IP addresses if the
selected candidate pair shifts, just as if the DTLS packets were an
ordinary media stream. In the case of an ICE restart, the DTLS
handshake procedure is repeated, and a new DTLS association is
created. Once the DTLS handshake is completed and the new DTLS
association has been created, the previous DTLS association is
deleted.
<span class="h4"><a class="selflink" id="section-5.2.2" href="#section-5.2.2">5.2.2</a>. STUN Interaction</span>
The UA MUST send the Session Traversal Utilities for NAT (STUN)
packets [<a href="./rfc5389" title=""Session Traversal Utilities for NAT (STUN)"">RFC5389</a>] directly over UDP, not over DTLS.
The UA MUST support the following mechanism for demultiplexing
packets arriving on the IP address and port associated with the DTLS
association:
o If the value of the first byte of the packet is 0 or 1, then the
packet is STUN.
o If the value of the first byte of the packet is between 20 and 63
(inclusive), the packet is DTLS.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Rekeying</span>
During rekeying, packets protected by the previous set of keys can
arrive after the DTLS handshake caused by rekeying has completed,
because packets can be reordered on the wire. To compensate for this
fact, receivers MUST maintain both sets of keys for some time in
order to be able to decrypt and verify older packets. The duration
of maintaining the previous set of keys after the finish of the DTLS
handshake is out of the scope of this document.
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Compatibility with UDPTL over UDP</span>
If a user requires fax to be transported securely using UDPTL over
DTLS, and if the remote user does not support UDPTL over DTLS, then a
fax media stream cannot be established.
If a user prefers fax to be transported securely using UDPTL over
DTLS but is willing to transport the fax insecurely in case the
remote user does not support UDPTL over DTLS, then the SDP Capability
Negotiation mechanism [<a href="./rfc5939" title=""Session Description Protocol (SDP) Capability Negotiation"">RFC5939</a>] can be used to offer both UDPTL over
DTLS and UDPTL over UDP. Alternatively, if the remote user rejects
an SDP offer for UDPTL over DTLS, a new SDP offer for a UDPTL-over-
UDP media stream can be sent.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Security Considerations</span>
Fax may be used to transmit a wide range of sensitive data, including
personal, corporate, and governmental information. It is therefore
critical to be able to protect against threats to the confidentiality
and integrity of the transmitted data.
The mechanism in this document provides integrity and confidentiality
protection for fax by specifying fax transport using UDPTL over DTLS
[<a href="./rfc6347" title=""Datagram Transport Layer Security Version 1.2"">RFC6347</a>].
DTLS media stream negotiated using SIP/SDP requires a mechanism to
ensure that the certificate received via DTLS was issued by the
remote party of the SIP session.
The standard DTLS strategy for authenticating the communicating
parties is to give the server (and optionally the client) a PKIX
[<a href="./rfc5280" title=""Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile"">RFC5280</a>] certificate. The client then verifies the certificate and
checks that the name in the certificate matches the server's domain
name. This works because there are a relatively small number of
servers and the cost for issuing and deploying PKIX certificates can
be justified. Issuing and deploying PKIX certificates to all clients
is not realistic in most deployment scenarios.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
The design described in this document is intended to leverage the
integrity protection of the SIP signaling, while not requiring
confidentiality. As long as each side of the connection can verify
the integrity of the SDP received from the other side, then the DTLS
handshake cannot be hijacked via a man-in-the-middle attack. This
integrity protection is easily provided by the caller to the callee
via the SIP Identity [<a href="./rfc4474" title=""Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)"">RFC4474</a>] mechanism. Other mechanisms, such as
the S/MIME mechanism [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] or perhaps future mechanisms yet to be
specified, could also serve this purpose.
While this mechanism can still be used without such integrity
mechanisms, the security provided is limited to defense against
passive attack by intermediaries. An active attack on the signaling
plus an active attack on the media plane can allow an attacker to
attack the connection (R-SIG-MEDIA in the notation of [<a href="./rfc5479" title=""Requirements and Analysis of Media Security Management Protocols"">RFC5479</a>]).
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. IANA Considerations</span>
This document updates the "Session Description Protocol (SDP)
Parameters" registry as specified in <a href="./rfc4566#section-8.2.2">Section 8.2.2 of [RFC4566]</a>.
Specifically, the values in Table 1 have been added to the SDP
"proto" field registry.
+-------+---------------+-----------+
| Type | SDP Name | Reference |
+-------+---------------+-----------+
| proto | UDP/TLS/UDPTL | [<a href="./rfc7345">RFC7345</a>] |
+-------+---------------+-----------+
Table 1: SDP "proto" Field Values
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Acknowledgments</span>
Special thanks to Peter Dawes, who provided comments on the initial
draft version of the document, and to Paul E. Jones, James Rafferty,
Albrecht Schwarz, Oscar Ohlsson, David Hanes, Adam Gensler, Ari
Keranen, Flemming Andreasen, John Mattsson, and Marc Petit-Huguenin,
who provided valuable feedback and input. Barry Leiba, Spencer
Dawkins, Pete Resnick, Kathleen Moriarty, and Stephen Farrell
provided valuable feedback during the IESG review. Thanks to Scott
Brim for performing the Gen-ART review. Thanks to Alissa Cooper for
her help as sponsoring Area Director.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. References</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. Normative References</span>
[<a id="ref-ITU.T30.2005">ITU.T30.2005</a>]
International Telecommunications Union, "Procedures for
document facsimile transmission in the general switched
telephone network", ITU-T Recommendation T.30, September
2005.
[<a id="ref-ITU.T38.2010">ITU.T38.2010</a>]
International Telecommunications Union, "Procedures for
real-time Group 3 facsimile communication over IP
networks", ITU-T Recommendation T.38, September 2010.
[<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-RFC3261">RFC3261</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>,
June 2002.
[<a id="ref-RFC3264">RFC3264</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-RFC4145">RFC4145</a>] Yon, D. and G. Camarillo, "TCP-Based Media Transport in
the Session Description Protocol (SDP)", <a href="./rfc4145">RFC 4145</a>,
September 2005.
[<a id="ref-RFC4474">RFC4474</a>] Peterson, J. and C. Jennings, "Enhancements for
Authenticated Identity Management in the Session
Initiation Protocol (SIP)", <a href="./rfc4474">RFC 4474</a>, August 2006.
[<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-RFC4572">RFC4572</a>] Lennox, J., "Connection-Oriented Media Transport over the
Transport Layer Security (TLS) Protocol in the Session
Description Protocol (SDP)", <a href="./rfc4572">RFC 4572</a>, July 2006.
[<a id="ref-RFC5245">RFC5245</a>] Rosenberg, J., "Interactive Connectivity Establishment
(ICE): A Protocol for Network Address Translator (NAT)
Traversal for Offer/Answer Protocols", <a href="./rfc5245">RFC 5245</a>, April
2010.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
[<a id="ref-RFC5280">RFC5280</a>] Cooper, D., Santesson, S., Farrell, S., Boeyen, S.,
Housley, R., and W. Polk, "Internet X.509 Public Key
Infrastructure Certificate and Certificate Revocation List
(CRL) Profile", <a href="./rfc5280">RFC 5280</a>, May 2008.
[<a id="ref-RFC5389">RFC5389</a>] Rosenberg, J., Mahy, R., Matthews, P., and D. Wing,
"Session Traversal Utilities for NAT (STUN)", <a href="./rfc5389">RFC 5389</a>,
October 2008.
[<a id="ref-RFC6347">RFC6347</a>] Rescorla, E. and N. Modadugu, "Datagram Transport Layer
Security Version 1.2", <a href="./rfc6347">RFC 6347</a>, January 2012.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-RFC5246">RFC5246</a>] Dierks, T. and E. Rescorla, "The Transport Layer Security
(TLS) Protocol Version 1.2", <a href="./rfc5246">RFC 5246</a>, August 2008.
[<a id="ref-RFC5479">RFC5479</a>] Wing, D., Fries, S., Tschofenig, H., and F. Audet,
"Requirements and Analysis of Media Security Management
Protocols", <a href="./rfc5479">RFC 5479</a>, April 2009.
[<a id="ref-RFC5939">RFC5939</a>] Andreasen, F., "Session Description Protocol (SDP)
Capability Negotiation", <a href="./rfc5939">RFC 5939</a>, September 2010.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Examples</span>
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. General</span>
Prior to establishing the session, both Alice and Bob generate self-
signed certificates that are used for a single session or, more
likely, reused for multiple sessions.
The SIP signaling from Alice to her proxy is transported over TLS to
ensure an integrity-protected channel between Alice and her identity
service. Alice's identity service asserts identity of Alice and
protects the SIP message, e.g., using SIP Identity. Transport
between proxies should also be protected, e.g., by use of TLS.
In order to simplify the flow, only one element is shown for Alice's
and Bob's proxies.
For the sake of brevity and simplicity, only the mandatory SDP T.38
attributes are shown.
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a>. Basic Message Flow</span>
Figure 3 shows an example message flow of session establishment for
T.38 fax securely transported using UDPTL over DTLS.
In this example flow, Alice acts as the passive endpoint of the DTLS
association, and Bob acts as the active endpoint of the DTLS
association.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Alice Proxies Bob
| (1) SIP INVITE | |
|----------------------->| |
| | (2) SIP INVITE |
| |----------------------->|
| | (3) DTLS ClientHello |
|<------------------------------------------------|
| (4) remaining messages of DTLS handshake |
|<----------------------------------------------->|
| | |
| | |
| | (5) SIP 200 OK |
| |<-----------------------|
| (6) SIP 200 OK | |
|<-----------------------| |
| (7) SIP ACK | |
|------------------------------------------------>|
| (8) T.38 message using UDPTL over DTLS |
|<----------------------------------------------->|
| | |
Figure 3: Basic Message Flow
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Message (1):
Figure 4 shows the initial INVITE request sent by Alice to Alice's
proxy. The initial INVITE request contains an SDP offer.
The "m=" line in the SDP offer indicates T.38 fax using UDPTL over
DTLS.
The SDP "setup" attribute with a value of "actpass" in the SDP
offer indicates that Alice has requested to be either the active
or passive endpoint.
The SDP "fingerprint" attribute in the SDP offer contains the
certificate fingerprint computed from Alice's self-signed
certificate.
INVITE sip:bob@example.com SIP/2.0
To: <sip:bob@example.com>
From: "Alice"<sip:alice@example.com>;tag=843c7b0b
Via: SIP/2.0/TLS ua1.example.com;branch=z9hG4bK-0e53sadfkasldkfj
Contact: <sip:alice@ua1.example.com>
Call-ID: 6076913b1c39c212@REVMTEpG
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: xxxx
Supported: from-change
v=0
o=- 1181923068 1181923196 IN IP4 ua1.example.com
s=-
c=IN IP4 ua1.example.com
t=0 0
m=image 6056 UDP/TLS/UDPTL t38
a=setup:actpass
a=fingerprint: SHA-1 \
4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 4: Message (1)
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Message (2):
Figure 5 shows the SIP INVITE request sent by Bob's proxy to Bob.
When received, Bob verifies the identity provided in the SIP
INVITE request.
INVITE sip:bob@ua2.example.com SIP/2.0
To: <sip:bob@example.com>
From: "Alice"<sip:alice@example.com>;tag=843c7b0b
Via: SIP/2.0/TLS proxy.example.com;branch=z9hG4bK-0e53sadfkasldk
Via: SIP/2.0/TLS ua1.example.com;branch=z9hG4bK-0e53sadfkasldkfj
Record-Route: <sip:proxy.example.com;lr>
Contact: <sip:alice@ua1.example.com>
Call-ID: 6076913b1c39c212@REVMTEpG
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE
Max-Forwards: 69
Content-Type: application/sdp
Content-Length: xxxx
Supported: from-change
v=0
o=- 1181923068 1181923196 IN IP4 ua1.example.com
s=-
c=IN IP4 ua1.example.com
t=0 0
m=image 6056 UDP/TLS/UDPTL t38
a=setup:actpass
a=fingerprint: SHA-1 \
4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 5: Message (2)
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Message (3):
Assuming that Alice's identity is valid, Bob sends a DTLS
ClientHello directly to Alice.
Message (4):
Alice and Bob exchange further messages of DTLS handshake
(HelloVerifyRequest, ClientHello, ServerHello, Certificate,
ServerKeyExchange, CertificateRequest, ServerHelloDone,
Certificate, ClientKeyExchange, CertificateVerify,
ChangeCipherSpec, and Finished).
When Bob receives the certificate of Alice via DTLS, Bob checks
whether the certificate fingerprint calculated from Alice's
certificate received via DTLS matches the certificate fingerprint
received in the a=fingerprint SDP attribute of Figure 5. In this
message flow, the check is successful; thus, session setup
continues.
Note that, unlike in this example, it is not necessary to wait for
the DTLS handshake to finish before the SDP answer is sent. If
Bob has sent the SIP 200 (OK) response and later detects that the
certificate fingerprints do not match, he will terminate the
session.
Message (5):
Figure 6 shows a SIP 200 (OK) response to the initial SIP INVITE
request, sent by Bob to Bob's proxy. The SIP 200 (OK) response
contains an SDP answer.
The "m=" line in the SDP answer indicates T.38 fax using UDPTL
over DTLS.
The SDP "setup" attribute with a value of "active" in the SDP
answer indicates that Bob has requested to be the active endpoint.
The SDP "fingerprint" attribute in the SDP answer contains the
certificate fingerprint computed from Bob's self-signed
certificate.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
SIP/2.0 200 OK
To: <sip:bob@example.com>;tag=6418913922105372816
From: "Alice" <sip:alice@example.com>;tag=843c7b0b
Via: SIP/2.0/TLS proxy.example.com:5061;branch=z9hG4bK-0e53sadfkasldk
Via: SIP/2.0/TLS ua1.example.com;branch=z9hG4bK-0e53sadfkasldkfj
Record-Route: <sip:proxy.example.com;lr>
Call-ID: 6076913b1c39c212@REVMTEpG
CSeq: 1 INVITE
Contact: <sip:bob@ua2.example.com>
Content-Type: application/sdp
Content-Length: xxxx
Supported: from-change
v=0
o=- 8965454521 2105372818 IN IP4 ua2.example.com
s=-
c=IN IP4 ua2.example.com
t=0 0
m=image 12000 UDP/TLS/UDPTL t38
a=setup:active
a=fingerprint: SHA-1 \
FF:FF:FF:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 6: Message (5)
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Message (6):
Figure 7 shows a SIP 200 (OK) response to the initial SIP INVITE
request, sent by Alice's proxy to Alice. Alice checks if the
certificate fingerprint calculated from the Bob's certificate
received via DTLS is the same as the certificate fingerprint
received in the a=fingerprint SDP attribute of Figure 7. In this
message flow, the check is successful; thus, the session setup
continues.
SIP/2.0 200 OK
To: <sip:bob@example.com>;tag=6418913922105372816
From: "Alice" <sip:alice@example.com>;tag=843c7b0b
Via: SIP/2.0/TLS ua1.example.com;branch=z9hG4bK-0e53sadfkasldkfj
Record-Route: <sip:proxy.example.com;lr>
Call-ID: 6076913b1c39c212@REVMTEpG
CSeq: 1 INVITE
Contact: <sip:bob@ua2.example.com>
Content-Type: application/sdp
Content-Length: xxxx
Supported: from-change
v=0
o=- 8965454521 2105372818 IN IP4 ua2.example.com
s=-
c=IN IP4 ua2.example.com
t=0 0
m=image 12000 UDP/TLS/UDPTL t38
a=setup:active
a=fingerprint: SHA-1 \
FF:FF:FF:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 7: Message (6)
Message (7):
Alice sends the SIP ACK request to Bob.
Message (8):
At this point, Bob and Alice can exchange T.38 fax securely
transported using UDPTL over DTLS.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
<span class="h3"><a class="selflink" id="appendix-A.3" href="#appendix-A.3">A.3</a>. Message Flow of T.38 Fax Replacing Audio Media Stream in an</span>
Existing Audio-Only Session
Traditionally, most sessions with non-secure transport of T.38 fax,
transported using UDPTL, are established by modifying an ongoing
audio session into a fax session. Figure 8 shows an example message
flow of modifying an existing audio session into a session with T.38
fax securely transported using UDPTL over DTLS.
In this example flow, Alice acts as the passive endpoint of the DTLS
association, and Bob acts as the active endpoint of the DTLS
association.
Alice Proxies Bob
| | |
| (1) Audio-only session initiation |
|<-----------------------+----------------------->|
| | |
| (2) SIP re-INVITE | |
|------------------------------------------------>|
| | (3) DTLS ClientHello |
|<------------------------------------------------|
| (4) remaining messages of DTLS handshake |
|<----------------------------------------------->|
| | |
| | |
| | (5) SIP 200 OK |
|<------------------------------------------------|
| (6) SIP ACK | |
|------------------------------------------------>|
| (7) T.38 message using UDPTL over DTLS |
|<----------------------------------------------->|
| | |
Figure 8: Message Flow of T.38 Fax Replacing Audio Media Stream in an
Existing Audio-Only Session
Message (1):
Session establishment of audio-only session. The proxies decide
not to record-route.
Message (2):
Alice sends SIP re-INVITE request. The SDP offer included in the
SIP re-INVITE request is shown in Figure 9.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
The first "m=" line in the SDP offer indicates audio media stream
being removed. The second "m=" line in the SDP offer indicates
T.38 fax using UDPTL over DTLS being added.
The SDP "setup" attribute with a value of "actpass" in the SDP
offer indicates that Alice has requested to be either the active
or passive endpoint.
The SDP "fingerprint" attribute in the SDP offer contains the
certificate fingerprint computed from Alice's self-signed
certificate.
v=0
o=- 2465353433 3524244442 IN IP4 ua1.example.com
s=-
c=IN IP4 ua1.example.com
t=0 0
m=audio 0 UDP/TLS/RTP/SAVP 0
m=image 46056 UDP/TLS/UDPTL t38
a=setup:actpass
a=fingerprint: SHA-1 \
4A:AD:B9:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 9: SDP Offer of Message (2)
Message (3):
Bob sends a DTLS ClientHello directly to Alice.
Message (4):
Alice and Bob exchange further messages of DTLS handshake
(HelloVerifyRequest, ClientHello, ServerHello, Certificate,
ServerKeyExchange, CertificateRequest, ServerHelloDone,
Certificate, ClientKeyExchange, CertificateVerify,
ChangeCipherSpec, and Finished).
When Bob receives the certificate of Alice via DTLS, Bob checks
whether the certificate fingerprint calculated from Alice's
certificate received via DTLS matches the certificate fingerprint
received in the SDP "fingerprint" attribute of Figure 9. In this
message flow, the check is successful; thus, session setup
continues.
<span class="grey">Holmberg, 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="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Message (5):
Bob sends a SIP 200 (OK) response to the SIP re-INVITE request.
The SIP 200 (OK) response contains an SDP answer shown in
Figure 10.
The first "m=" line in the SDP offer indicates audio media stream
being removed. The second "m=" line in the SDP answer indicates
T.38 fax using UDPTL over DTLS being added.
The SDP "setup" attribute with a value of "active" in the SDP
answer indicates that Bob has requested to be the active endpoint.
The SDP "fingerprint" attribute in the SDP answer contains the
certificate fingerprint computed from Bob's self-signed
certificate.
v=0
o=- 4423478999 5424222292 IN IP4 ua2.example.com
s=-
c=IN IP4 ua2.example.com
t=0 0
m=audio 0 UDP/TLS/RTP/SAVP 0
m=image 32000 UDP/TLS/UDPTL t38
a=setup:active
a=fingerprint: SHA-1 \
FF:FF:FF:B1:3F:82:18:3B:54:02:12:DF:3E:5D:49:6B:19:E5:7C:AB
a=T38FaxRateManagement:transferredTCF
Figure 10: SDP Answer of Message (5)
Message (6):
Alice sends the SIP ACK request to Bob.
Message (7):
At this point, Bob and Alice can exchange T.38 fax securely
transported using UDPTL over DTLS.
<span class="grey">Holmberg, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc7345">RFC 7345</a> UDPTL over DTLS August 2014</span>
Authors' Addresses
Christer Holmberg
Ericsson
Hirsalantie 11
Jorvas 02420
Finland
EMail: christer.holmberg@ericsson.com
Ivo Sedlacek
Ericsson
Sokolovska 79
Praha 18600
Czech Republic
EMail: ivo.sedlacek@ericsson.com
Gonzalo Salgueiro
Cisco Systems, Inc.
7200-12 Kit Creek Road
Research Triangle Park, NC 27709
US
EMail: gsalguei@cisco.com
Holmberg, et al. Standards Track [Page 23]
</pre>
|