Network Working Group G. Camarillo
Request for Comments: 4091 Ericsson
Category: Standards Track J. Rosenberg
Cisco Systems
June 2005
The Alternative Network Address Types (ANAT) Semantics
for the Session Description Protocol (SDP) Grouping Framework
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2005).
Abstract
This document defines the Alternative Network Address Types (ANAT)
semantics for the Session Description Protocol (SDP) grouping
framework. The ANAT semantics allow alternative types of network
addresses to establish a particular media stream.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1. Scope and Relation with Interactive Connectivity
Establishment. . . . . . . . . . . . . . . . . . . . . . 2
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 3
3. ANAT Semantics . . . . . . . . . . . . . . . . . . . . . . . . 3
4. Preference . . . . . . . . . . . . . . . . . . . . . . . . . . 3
5. Offer/Answer and ANAT . . . . . . . . . . . . . . . . . . . . 3
6. Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
7. Security Considerations . . . . . . . . . . . . . . . . . . . 4
8. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 5
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 5
9.1. Normative References . . . . . . . . . . . . . . . . . . 5
9.2. Informational References . . . . . . . . . . . . . . . . 5
1. Introduction
A Session Description Protocol (SDP) [2] session description contains
the media parameters to be used in establishing a number of media
streams. For a particular media stream, an SDP session description
contains, among other parameters, the network addresses and the codec
to be used in transferring media. SDP allows for a set of codecs per
media stream, but only one network address.
The ability to offer a set of network addresses to establish a media
stream is useful in environments with both IPv4-only hosts and
IPv6-only hosts, for instance.
This document defines the Alternative Network Address Types (ANAT)
semantics for the SDP grouping framework [4]. The ANAT semantics
allow for the expression of alternative network addresses (e.g.,
different IP versions) for a particular media stream.
1.1. Scope and Relation with Interactive Connectivity Establishment
The ANAT semantics are intended to address scenarios that involve
different network address types (e.g., different IP versions). They
are not intended to provide alternative transport addresses with the
same network type. Systems that need to provide different transport
addresses with the same network type should use the SDP format
defined in ICE (Interactive Connectivity Establishment) [6] instead.
ICE is used by systems that cannot determine their own transport
address as seen from the remote end, but that can provide several
possible alternatives. ICE encodes the address that is most likely
to be valid in an 'm' line, and the rest of addresses as a= lines
after that 'm' line. This way, systems that do not support ICE
simply ignore the a= lines and only use the address in the 'm' line.
This achieves good backward compatibility.
We have chosen to group 'm' lines with different IP versions at the
'm' level (ANAT semantics) rather than at the a= level (ICE format)
in order to keep the IPv6 syntax free from ICE parameters used for
legacy (IPv4) NATs (Network Address Translators). This yields a
syntax much closer to vanilla SDP, where IPv6 addresses are defined
in their own 'm' line, rather than in parameters belonging to a
different 'm' line.
Additionally, ICE only allows us to provide a single primary address
when the peer does not support ICE. The ANAT semantics avoid
relegating certain types of addresses (e.g., IPv6 addresses) to only
be a secondary alternate to another address type (e.g., IPv4
addresses).
Furthermore, the separation between ANAT and ICE helps systems that
support IPv4 and IPv6 but that do not need to support ICE (e.g., a
multicast server).
2. Terminology
In this document, the key words "MUST", "MUST NOT", "REQUIRED",
"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT
RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as
described in BCP 14, RFC 2119 [1] and indicate requirement levels for
compliant implementations.
3. ANAT Semantics
We define a new "semantics" attribute within the SDP grouping
framework [4]: ANAT (Alternative Network Address Types).
Media lines grouped using ANAT semantics provide alternative network
addresses of different types for a single logical media stream. The
entity creating a session description with an ANAT group MUST be
ready to receive (or send) media over any of the grouped 'm' lines.
The ANAT semantics MUST NOT be used to group media streams whose
network addresses are of the same type.
4. Preference
The entity generating a session description may have an order of
preference for the alternative network address types offered. The
identifiers of the media streams MUST be listed in order of
preference in the group line. For example, in the session
description in Section 6, the 'm' line with mid=1 has a higher
preference than the 'm' line with mid=2.
5. Offer/Answer and ANAT
An offerer using SIP [3] to send its offer SHOULD place the sdp-anat
option-tag [5] in a Require header field.
An answerer receiving a session description that uses the ANAT
semantics SHOULD use the address with the highest priority it
understands and set the ports of the rest of the 'm' lines of the
group to zero.
6. Example
The session description below contains an IPv4 address and an IPv6
address grouped using ANAT. The format corresponding to the mapping
of ICE into SDP [6] can be used in both 'm' lines to provide
additional addresses.
v=0
o=bob 280744730 28977631 IN IP4 host.example.com
s=
t=0 0
a=group:ANAT 1 2
m=audio 25000 RTP/AVP 0
c=IN IP6 2001:DB8::1
a=
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073