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
|
<pre>Internet Engineering Task Force (IETF) F. Andreasen
Request for Comments: 5898 Cisco Systems
Category: Standards Track G. Camarillo
ISSN: 2070-1721 Ericsson
D. Oran
D. Wing
Cisco Systems
July 2010
<span class="h1">Connectivity Preconditions for Session Description Protocol (SDP)</span>
<span class="h1">Media Streams</span>
Abstract
This document defines a new connectivity precondition for the Session
Description Protocol (SDP) precondition framework. A connectivity
precondition can be used to delay session establishment or
modification until media stream connectivity has been successfully
verified. The method of verification may vary depending on the type
of transport used for the media. For unreliable datagram transports
such as UDP, verification involves probing the stream with data or
control packets. For reliable connection-oriented transports such as
TCP, verification can be achieved simply by successful connection
establishment or by probing the connection with data or control
packets, depending on the situation.
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/rfc5898">http://www.rfc-editor.org/info/rfc5898</a>.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-2">2</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3">3</a>. Connectivity Precondition Definition . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. Operational Semantics . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-3.3">3.3</a>. Status Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3.4">3.4</a>. Direction Tag . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3.5">3.5</a>. Precondition Strength . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-4">4</a>. Verifying Connectivity . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4.1">4.1</a>. Correlation of Dialog to Media Stream . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Explicit Connectivity Verification Mechanisms . . . . . . <a href="#page-7">7</a>
4.3. Verifying Connectivity for Connection-Oriented
Transports . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5">5</a>. Connectivity and Other Precondition Types . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-6">6</a>. Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-7">7</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-8">8</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-9">9</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-9.1">9.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-9.2">9.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The concept of a Session Description Protocol (SDP) [<a href="./rfc4566" title=""SDP: Session Description Protocol"">RFC4566</a>]
precondition in the Session Initiation Protocol (SIP) [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] is
defined in <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] (updated by <a href="./rfc4032">RFC 4032</a> [<a href="./rfc4032" title=""Update to the Session Initiation Protocol (SIP) Preconditions Framework"">RFC4032</a>]). A
precondition is a condition that has to be satisfied for a given
media stream in order for session establishment or modification to
proceed. When the precondition is not met, session progress is
delayed until the precondition is satisfied or the session
establishment fails. For example, <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] defines the
Quality of Service precondition, which is used to ensure availability
of network resources prior to establishing a session (i.e., prior to
starting to alert the callee).
SIP sessions are typically established in order to set up one or more
media streams. Even though a media stream may be negotiated
successfully through an SDP offer-answer exchange, the actual media
stream itself may fail. For example, when there is one or more
Network Address Translators (NATs) or firewalls in the media path,
the media stream may not be received by the far end. In cases where
the media is carried over a connection-oriented transport such as TCP
[<a href="./rfc0793" title=""Transmission Control Protocol"">RFC0793</a>], the connection-establishment procedures may fail. The
connectivity precondition defined in this document ensures that
session progress is delayed until media stream connectivity has been
verified.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
The connectivity precondition type defined in this document follows
the guidelines provided in <a href="./rfc4032">RFC 4032</a> [<a href="./rfc4032" title=""Update to the Session Initiation Protocol (SIP) Preconditions Framework"">RFC4032</a>] to extend the SIP
preconditions framework.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</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">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Connectivity Precondition Definition</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Syntax</span>
The connectivity precondition type is defined by the string "conn",
and hence we modify the grammar found in <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] and <a href="./rfc5027">RFC</a>
<a href="./rfc5027">5027</a> [<a href="./rfc5027" title=""Security Preconditions for Session Description Protocol (SDP) Media Streams"">RFC5027</a>] as follows:
precondition-type = "conn" / "sec" / "qos" / token
This precondition tag is registered with the IANA in <a href="#section-8">Section 8</a>.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Operational Semantics</span>
According to <a href="./rfc4032">RFC 4032</a> [<a href="./rfc4032" title=""Update to the Session Initiation Protocol (SIP) Preconditions Framework"">RFC4032</a>], documents defining new precondition
types need to describe the behavior of UAs (User Agents) from the
moment session establishment is suspended due to a set of
preconditions, until it is resumed when these preconditions are met.
An entity that wishes to delay session establishment or modification
until media stream connectivity has been established uses this
precondition-type in an offer. When a mandatory connectivity
precondition is received in an offer, session establishment or
modification is delayed until the connectivity precondition has been
met (i.e., until media stream connectivity has been established in
the desired direction or directions). The delay of session
establishment defined here implies that alerting of the called party
does not occur until the precondition has been satisfied.
Packets may be both sent and received on the media streams in
question. However, such packets SHOULD be limited to packets that
are necessary to verify connectivity between the two endpoints
involved on the media stream. That is, the underlying media stream
SHOULD NOT be cut through. For example, Interactive Connectivity
Establishment (ICE) connectivity checks [<a href="./rfc5245" title=""Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols"">RFC5245</a>] and TCP SYN, SYN-
ACK, and ACK packets can be exchanged on media streams that support
them as a way of verifying connectivity.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
Some media streams are described by a single 'm' line but,
nevertheless, involve multiple addresses. For example, <a href="./rfc5109">RFC 5109</a>
[<a href="./rfc5109" title=""RTP Payload Format for Generic Forward Error Correction"">RFC5109</a>] specifies how to send FEC (Forward Error Correction)
information as a separate stream (the address for the FEC stream is
provided in an 'a=fmtp' line). When a media stream consists of
multiple destination addresses, connectivity to all of them MUST be
verified in order for the precondition to be met. In the case of RTP
media streams [<a href="./rfc3550" title=""RTP: A Transport Protocol for Real-Time Applications"">RFC3550</a>] that use RTCP, connectivity MUST be verified
for both RTP and RTCP; the RTCP transmission interval rules MUST
still be adhered to.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Status Type</span>
<a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] defines support for two kinds of status types --
namely, segmented and end-to-end. The connectivity precondition-type
defined here MUST be used with the end-to-end status type; use of the
segmented status type is undefined.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Direction Tag</span>
The direction attributes defined in <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] are
interpreted as follows:
o send: the party that generated the session description is sending
packets on the media stream to the other party, and the other
party has received at least one of those packets. That is, there
is connectivity in the forward (sending) direction.
o recv: the other party is sending packets on the media stream to
the party that generated the session description, and this party
has received at least one of those packets. That is, there is
connectivity in the backwards (receiving) direction.
o sendrecv: both the send and recv conditions hold.
Note that a "send" connectivity precondition from the offerer's point
of view corresponds to a "recv" connectivity precondition from the
answerer's point of view, and vice versa. If media stream
connectivity in both directions is required before session
establishment or modification continues, the desired status needs to
be set to "sendrecv".
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. Precondition Strength</span>
Connectivity preconditions may have a strength-tag of either
"mandatory" or "optional".
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
When a mandatory connectivity precondition is offered and the
answerer cannot satisfy the connectivity precondition (e.g., because
the offer does not include parameters that enable connectivity to be
verified without media cut through) the offer MUST be rejected as
described in <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>].
When an optional connectivity precondition is offered, the answerer
MUST generate its answer SDP as soon as possible. Since session
progress is not delayed in this case, it is not known whether the
associated media streams will have connectivity. If the answerer
wants to delay session progress until connectivity has been verified,
the answerer MUST increase the strength of the connectivity
precondition by using a strength-tag of "mandatory" in the answer.
Note that use of a mandatory precondition requires the presence of a
SIP "Require" header with the option tag "precondition". Any SIP UA
that does not support a mandatory precondition will reject such
requests. To get around this issue, an optional connectivity
precondition and the SIP "Supported" header with the option tag
"precondition" can be used instead.
Offers with connectivity preconditions in re-INVITEs or UPDATEs
follow the rules given in <a href="./rfc3312#section-6">Section 6 of RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>]. That is:
Both user agents SHOULD continue using the old session parameters
until all the mandatory preconditions are met. At that moment,
the user agents can begin using the new session parameters.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Verifying Connectivity</span>
Media stream connectivity is ascertained by use of a connectivity
verification mechanism between the media endpoints. A connectivity
verification mechanism may be an explicit mechanism, such as ICE
[<a href="./rfc5245" title=""Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols"">RFC5245</a>] or ICE TCP [<a href="#ref-ICE-TCP" title=""TCP Candidates with Interactive Connectivity Establishment (ICE)"">ICE-TCP</a>], or it may be an implicit mechanism,
such as TCP. Explicit mechanisms provide specifications for when
connectivity between two endpoints using an offer/answer exchange is
ascertained, whereas implicit mechanisms do not. The verification
mechanism is negotiated as part of the normal offer/answer exchange;
however, it is not identified explicitly. More than one mechanism
may be negotiated, but the offerer and answerer need not use the
same. The following rules guide which connectivity verification
mechanism to use:
o If an explicit connectivity verification mechanism (e.g., ICE) is
negotiated, the precondition is met when the mechanism verifies
connectivity successfully.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
o Otherwise, if a connection-oriented transport (e.g., TCP) is
negotiated, the precondition is met when the connection is
established.
o Otherwise, if an implicit verification mechanism is provided by
the transport itself or the media stream data using the transport,
the precondition is met when the mechanism verifies connectivity
successfully.
o Otherwise, connectivity cannot be verified reliably, and the
connectivity precondition will never be satisfied if requested.
This document does not mandate any particular connectivity
verification mechanism; however, in the following, we provide
additional considerations for verification mechanisms.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Correlation of Dialog to Media Stream</span>
SIP and SDP do not provide any inherent capabilities for associating
an incoming media stream packet with a particular dialog. Thus, when
an offerer is trying to ascertain connectivity, and an incoming media
stream packet is received, the offerer may not know which dialog had
its "recv" connectivity verified. Explicit connectivity verification
mechanisms therefore typically provide a means to correlate the media
stream, whose connectivity is being verified, with a particular SIP
dialog. However, some connectivity verification mechanisms may not
provide such a correlation. In the absence of a mechanism for the
correlation of dialog to media stream (e.g., ICE), a UAS (User Agent
Server) MUST NOT require the offerer to confirm a connectivity
precondition.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Explicit Connectivity Verification Mechanisms</span>
Explicit connectivity verification mechanisms typically use probe
traffic with some sort of feedback to inform the sender whether
reception was successful. Below we provide two examples of such
mechanisms, and how they are used with connectivity preconditions:
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>] provides one
or more candidate addresses in signaling between the offerer and the
answerer and then uses STUN (Simple Traversal of the UDP Protocol
through NAT) Binding Requests to determine which pairs of candidate
addresses have connectivity. Each STUN Binding Request contains a
password that is communicated in the SDP as well; this enables
correlation between STUN Binding Requests and candidate addresses for
a particular media stream. It also provides correlation with a
particular SIP dialog.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
ICE implementations may be either full or lite (see [<a href="./rfc5245" title=""Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols"">RFC5245</a>]). Full
implementations generate and respond to STUN Binding Requests,
whereas lite implementations only respond to them. With ICE, one
side is a controlling agent, and the other side is a controlled
agent. A full implementation can take on either role, whereas a lite
implementation can only be a controlled agent. The controlling agent
decides which valid candidate to use and informs the controlled agent
of it by identifying the pair as the nominated pair. This leads to
the following connectivity precondition rules:
o A full implementation ascertains both "send" and "recv"
connectivity when it operates as a STUN client and has sent a STUN
Binding Request that resulted in a successful check for all the
components of the media stream (as defined further in ICE).
o A full or a lite implementation ascertains "recv" connectivity
when it operates as a STUN server and has received a STUN Binding
Request that resulted in a successful response for all the
components of the media stream (as defined further in ICE).
o A lite implementation ascertains "send" and "recv" connectivity
when the controlling agent has informed it of the nominated pair
for all the components of the media stream.
A simpler and slightly more delay-prone alternative to the above
rules is for all ICE implementations to ascertain "send" and "recv"
connectivity for a media stream when the ICE state for that media
stream has moved to Completed.
Note that there is never a need for the answerer to request
confirmation of the connectivity precondition when using ICE: the
answerer can determine the status locally. Also note, that when ICE
is used to verify connectivity preconditions, the precondition is not
satisfied until connectivity has been verified for all the component
transport addresses used by the media stream. For example, with an
RTP-based media stream where RTCP is not suppressed, connectivity
MUST be ascertained for both RTP and RTCP. Finally, it should be
noted, that although connectivity has been ascertained, a new offer/
answer exchange may be required before media can flow (per ICE).
The above are merely examples of explicit connectivity verification
mechanisms. Other techniques can be used as well. It is however
RECOMMENDED that ICE be supported by entities that support
connectivity preconditions. Use of ICE has the benefit of working
for all media streams (not just RTP) as well as facilitating NAT and
firewall traversal, which may otherwise interfere with connectivity.
Furthermore, the ICE recommendation provides a baseline to ensure
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
that all entities that require probe traffic to support the
connectivity preconditions have a common way of ascertaining
connectivity.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Verifying Connectivity for Connection-Oriented Transports</span>
Connection-oriented transport protocols generally provide an implicit
connectivity verification mechanism. Connection establishment
involves sending traffic in both directions thereby verifying
connectivity at the transport-protocol level. When a three-way (or
more) handshake for connection establishment succeeds, bi-directional
communication is confirmed and both the "send" and "recv"
preconditions are satisfied whether requested or not. In the case of
TCP for example, once the TCP three-way handshake has completed (SYN,
SYN-ACK, ACK), the TCP connection is established and data can be sent
and received by either party (i.e., both a send and a receive
connectivity precondition has been satisfied). SCTP (Stream Control
Transmission Protocol) [<a href="./rfc4960" title=""Stream Control Transmission Protocol"">RFC4960</a>] connections have similar semantics
as TCP and SHOULD be treated the same.
When a connection-oriented transport is part of an offer, it may be
passive, active, or active/passive [<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>]. When it is passive,
the offerer expects the answerer to initiate the connection
establishment, and when it is active, the offerer wants to initiate
the connection establishment. When it is active/passive, the
answerer decides. As noted earlier, lack of a media-stream-to-dialog
correlation mechanism can make it difficult to guarantee with whom
connectivity has been ascertained. When the offerer takes on the
passive role, the offerer will not necessarily know which SIP dialog
originated an incoming connection request. If the offerer instead is
active, this problem is avoided.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Connectivity and Other Precondition Types</span>
The role of a connectivity precondition is to ascertain media stream
connectivity before establishing or modifying a session. The
underlying intent is for the two parties to be able to exchange media
packets successfully. However, connectivity by itself may not fully
satisfy this. Quality of Service, for example, may be required for
the media stream; this can be addressed by use of the "qos"
precondition defined in <a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>]. Similarly, successful
security parameter negotiation may be another prerequisite; this can
be addressed by use of the "sec" precondition defined in <a href="./rfc5027">RFC 5027</a>
[<a href="./rfc5027" title=""Security Preconditions for Session Description Protocol (SDP) Media Streams"">RFC5027</a>].
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples</span>
The first example uses the connectivity precondition with TCP in the
context of a session involving a wireless access medium. Both UAs
use a radio access network that does not allow them to send any data
(not even a TCP SYN) until a radio bearer has been set up for the
connection. Figure 1 shows the message flow of this example (the
required PRACK transaction has been omitted for clarity -- see
[<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] for details):
A B
| INVITE |
| a=curr:conn e2e none |
| a=des:conn mandatory e2e sendrecv |
| a=setup:holdconn |
|----------------------------------->|
| |
| 183 Session Progress |
| a=curr:conn e2e none |
| a=des:conn mandatory e2e sendrecv |
| a=setup:holdconn |
|<-----------------------------------|
| |
| UPDATE |
| a=curr:conn e2e none |
| a=des:conn mandatory e2e sendrecv |
A's radio | a=setup:actpass |
bearer is +----------------------------------->|
up | |
| 200 OK |
| a=curr:conn e2e none |
| a=des:conn mandatory e2e sendrecv |
| a=setup:active |
|<-----------------------------------|
| |
| |
| |
| | B's radio
|<---TCP Connection Establishment--->+ bearer is up
| | B sends TCP SYN
| |
| |
| 180 Ringing | TCP connection
|<-----------------------------------+ is up
| | B alerts the user
| |
Figure 1: Message Flow with Two Types of Preconditions
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
A sends an INVITE requesting connection-establishment preconditions.
The setup attribute in the offer is set to holdconn [<a href="./rfc4145" title=""TCP-Based Media Transport in the Session Description Protocol (SDP)"">RFC4145</a>] because
A cannot send or receive any data before setting up a radio bearer
for the connection.
B agrees to use the connectivity precondition by sending a 183
(Session Progress) response. The setup attribute in the answer is
also set to holdconn because B, like A, cannot send or receive any
data before setting up a radio bearer for the connection.
When A's radio bearer is ready, A sends an UPDATE to B with a setup
attribute with a value of actpass. This attribute indicates that A
can perform an active or a passive TCP open. A is letting B choose
which endpoint will initiate the connection.
Since B's radio bearer is not ready yet, B chooses to be the one
initiating the connection and indicates this with a setup attribute
with a value of active. At a later point, when B's radio bearer is
ready, B initiates the TCP connection towards A.
Once the TCP connection is established successfully, B knows the
"sendrecv" precondition is satisfied, and B proceeds with the session
(i.e., alerts the Callee), and sends a 180 (Ringing) response.
The second example shows a basic SIP session establishment using SDP
connectivity preconditions and ICE (the required PRACK transaction
and some SDP details have been omitted for clarity). The offerer (A)
is a full ICE implementation whereas the answerer (B) is a lite ICE
implementation. The message flow for this scenario is shown in
Figure 2 below.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
A B
| |
|-------------(1) INVITE SDP1--------------->|
| |
|<------(2) 183 Session Progress SDP2--------|
| |
|~~~~~ Connectivity check to B ~~~~~~~~~~~~~>|
|<~~~~ Connectivity to B OK ~~~~~~~~~~~~~~~~~|
| |
|-------------(3) UPDATE SDP3--------------->|
| |
|<--------(4) 200 OK (UPDATE) SDP4-----------|
| |
|<-------------(5) 180 Ringing---------------|
| |
| |
Figure 2: Connectivity Precondition with ICE Connectivity Checks
SDP1: A includes a mandatory end-to-end connectivity precondition
with a desired status of "sendrecv"; this will ensure media stream
connectivity in both directions before continuing with the session
setup. Since media stream connectivity in either direction is
unknown at this point, the current status is set to "none". A's
local status table (see [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>]) for the connectivity precondition
is as follows:
Direction | Current | Desired Strength | Confirm
-----------+----------+------------------+----------
send | no | mandatory | no
recv | no | mandatory | no
and the resulting offer SDP is:
a=ice-pwd:asd88fgpdd777uzjYhagZg
a=ice-ufrag:8hhY
m=audio 20000 RTP/AVP 0
c=IN IP4 192.0.2.1
a=rtcp:20001
a=curr:conn e2e none
a=des:conn mandatory e2e sendrecv
a=candidate:1 1 UDP 2130706431 192.0.2.1 20000 typ host
SDP2: When B receives the offer, B sees the mandatory sendrecv
connectivity precondition. B is a lite ICE implementation and hence
B can only ascertain "recv" connectivity (from B's point of view)
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
from A; thus, B wants A to inform it about connectivity in the other
direction ("send" from B's point of view). B's local status table
therefore looks as follows:
Direction | Current | Desired Strength | Confirm
-----------+----------+------------------+----------
send | no | mandatory | no
recv | no | mandatory | no
Since B is a lite ICE implementation and B wants to ask A for
confirmation about the "send" (from B's point of view) connectivity
precondition, the resulting answer SDP becomes:
a=ice-lite
a=ice-pwd:qrCA8800133321zF9AIj98
a=ice-ufrag:H92p
m=audio 30000 RTP/AVP 0
c=IN IP4 192.0.2.4
a=rtcp:30001
a=curr:conn e2e none
a=des:conn mandatory e2e sendrecv
a=conf:conn e2e send
a=candidate:1 1 UDP 2130706431 192.0.2.4 30000 typ host
Since the "send" and the "recv" connectivity precondition (from B's
point of view) are still not satisfied, session establishment remains
suspended.
SDP3: When A receives the answer SDP, A notes that B is a lite ICE
implementation and that confirmation was requested for B's "send"
connectivity precondition, which is the "recv" precondition from A's
point of view. A performs a successful send and recv connectivity
check to B by sending an ICE connectivity check to B and receiving
the corresponding response. A's local status table becomes:
Direction | Current | Desired Strength | Confirm
-----------+----------+------------------+----------
send | yes | mandatory | no
recv | yes | mandatory | yes
whereas B's local status table becomes:
Direction | Current | Desired Strength | Confirm
-----------+----------+------------------+----------
send | no | mandatory | no
recv | yes | mandatory | no
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
Since B asked for confirmation about the "recv" connectivity (from
A's point of view), A now sends an UPDATE (5) to B to confirm the
connectivity from A to B:
a=ice-pwd:asd88fgpdd777uzjYhagZg
a=ice-ufrag:8hhY
m=audio 20000 RTP/AVP 0
c=IN IP4 192.0.2.1
a=rtcp:20001
a=curr:conn e2e sendrecv
a=des:conn mandatory e2e sendrecv
a=candidate:1 1 UDP 2130706431 192.0.2.1 20000 typ host
B knows it has recv connectivity (verified by ICE as well as A's
UPDATE) and send connectivity (confirmed by A's UPDATE) at this
point. B's local status table becomes:
Direction | Current | Desired Strength | Confirm
-----------+----------+------------------+----------
send | yes | mandatory | no
recv | yes | mandatory | no
and the session can continue.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
General security considerations for preconditions are discussed in
<a href="./rfc3312">RFC 3312</a> [<a href="./rfc3312" title=""Integration of Resource Management and Session Initiation Protocol (SIP)"">RFC3312</a>] and <a href="./rfc4032">RFC 4032</a> [<a href="./rfc4032" title=""Update to the Session Initiation Protocol (SIP) Preconditions Framework"">RFC4032</a>]. As discussed in <a href="./rfc4032">RFC 4032</a>
[<a href="./rfc4032" title=""Update to the Session Initiation Protocol (SIP) Preconditions Framework"">RFC4032</a>], it is strongly RECOMMENDED that S/MIME [<a href="./rfc3853" title=""S/MIME Advanced Encryption Standard (AES) Requirement for the Session Initiation Protocol (SIP)"">RFC3853</a>] integrity
protection be applied to the SDP session descriptions. When the user
agent provides identity services (rather than the proxy server), the
SIP identity mechanism specified in <a href="./rfc4474">RFC 4474</a> [<a href="./rfc4474" title=""Enhancements for Authenticated Identity Management in the Session Initiation Protocol (SIP)"">RFC4474</a>] provides an
alternative end-to-end integrity protection. Additionally, the
following security issues relate specifically to connectivity
preconditions.
Connectivity preconditions rely on mechanisms beyond SDP, such as TCP
[<a href="./rfc0793" title=""Transmission Control Protocol"">RFC0793</a>] connection establishment or ICE connectivity checks
[<a href="./rfc5245" title=""Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols"">RFC5245</a>], to establish and verify connectivity between an offerer
and an answerer. An attacker that prevents those mechanisms from
succeeding (e.g., by keeping ICE connectivity checks from arriving at
their destination) can prevent media sessions from being established.
While this attack relates to connectivity preconditions, it is
actually an attack against the connection-establishment mechanisms
used by the endpoints. This attack can be performed in the presence
or in the absence of connectivity preconditions. In their presence,
the whole session setup will be disrupted. In their absence, only
the establishment of the particular stream under attack will be
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
disrupted. This specification does not provide any mechanism against
attackers able to block traffic between the endpoints involved in the
session because such an attacker will always be able to launch DoS
(Denial-of-Service) attacks.
Instead of blocking the connectivity checks, the attacker can
generate forged connectivity checks that would cause the endpoints to
assume that there was connectivity when there was actually no
connectivity. This attack would result in the user experience being
poor because the session would be established without all the media
streams being ready. The same attack can be used, regardless of
whether or not connectivity preconditions are used, to attempt to
hijack a connection. The forged connectivity checks would trick the
endpoints into sending media to the wrong direction. To prevent
these attacks, it is RECOMMENDED that the mechanisms used to check
connectivity are adequately secured by message authentication and
integrity protection. For example, <a href="./rfc5245#section-2.5">Section 2.5 of [RFC5245]</a>
discusses how message integrity and data origin authentication are
implemented in ICE connectivity checks.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. IANA Considerations</span>
IANA has registered a new precondition type under the Precondition
Types used with SIP subregistry, which is located under the Session
Initiation Protocol (SIP) Parameters registry.
Precondition-Type Description Reference
----------------- ----------------------------------- ---------
conn Connectivity precondition [<a href="./rfc5898">RFC5898</a>]
<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-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-RFC3312">RFC3312</a>] Camarillo, G., Marshall, W., and J. Rosenberg,
"Integration of Resource Management and Session Initiation
Protocol (SIP)", <a href="./rfc3312">RFC 3312</a>, October 2002.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
[<a id="ref-RFC3853">RFC3853</a>] Peterson, J., "S/MIME Advanced Encryption Standard (AES)
Requirement for the Session Initiation Protocol (SIP)",
<a href="./rfc3853">RFC 3853</a>, July 2004.
[<a id="ref-RFC4032">RFC4032</a>] Camarillo, G. and P. Kyzivat, "Update to the Session
Initiation Protocol (SIP) Preconditions Framework",
<a href="./rfc4032">RFC 4032</a>, March 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-RFC5027">RFC5027</a>] Andreasen, F. and D. Wing, "Security Preconditions for
Session Description Protocol (SDP) Media Streams",
<a href="./rfc5027">RFC 5027</a>, October 2007.
[<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="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Informative References</span>
[<a id="ref-RFC0793">RFC0793</a>] Postel, J., "Transmission Control Protocol", STD 7,
<a href="./rfc793">RFC 793</a>, September 1981.
[<a id="ref-RFC3550">RFC3550</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-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-RFC4960">RFC4960</a>] Stewart, R., "Stream Control Transmission Protocol",
<a href="./rfc4960">RFC 4960</a>, September 2007.
[<a id="ref-RFC5109">RFC5109</a>] Li, A., "RTP Payload Format for Generic Forward Error
Correction", <a href="./rfc5109">RFC 5109</a>, December 2007.
[<a id="ref-ICE-TCP">ICE-TCP</a>] Perreault, S., Ed. and J. Rosenberg, "TCP Candidates with
Interactive Connectivity Establishment (ICE)", Work
in Progress, October 2009.
<span class="grey">Andreasen, 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="./rfc5898">RFC 5898</a> Connectivity Precondition July 2010</span>
Authors' Addresses
Flemming Andreasen
Cisco Systems, Inc.
499 Thornall Street, 8th Floor
Edison, NJ 08837
USA
EMail: fandreas@cisco.com
Gonzalo Camarillo
Ericsson
Hirsalantie 11
Jorvas 02420
Finland
EMail: Gonzalo.Camarillo@ericsson.com
David Oran
Cisco Systems, Inc.
7 Ladyslipper Lane
Acton, MA 01720
USA
EMail: oran@cisco.com
Dan Wing
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, CA 95134
USA
EMail: dwing@cisco.com
Andreasen, et al. Standards Track [Page 17]
</pre>
|