RFC 3319
Dynamic Host Configuration Protocol (DHCPv6) Options for Session Initiation Protocol (SIP) Servers
RFC 3319 π DHCPv6 Options for SIP Servers β¨
Okay bestie, so this is RFC 3319 π, from the Network Working Group, dated July 2003 π¦. It's on the Standards Track π₯, written by Henning Schulzrinne of Columbia University and Bernie Volz of Ericsson π«Ά. The header doesn't list anything it obsoletes or updates, so it's standing on its own π .
Status of This Memo πΈ
Okay, so this one is an Internet standards track protocol for the Internet community, and it's asking for discussion and suggestions for improvements π¬. If you want the current standardization state and status, check the current edition of the "Internet Official Protocol Standards" (STD 1) π. Distribution of this memo is unlimited π.
Copyright Notice π
Copyright (C) The Internet Society (2003). All Rights Reserved. π
Abstract β¨
So basically, this doc defines a Dynamic Host Configuration Protocol version 6 (DHCPv6) option π. The option holds a list of domain names or IPv6 addresses that can be mapped to one or more Session Initiation Protocol (SIP) outbound proxy servers π‘. It's just one of the many ways a SIP client can find the address of a local SIP server, and it's giving main character energy π.
1. Terminology π§
This doc uses the DHCP terminology defined in [1] π.
A SIP server is defined in RFC 3261 [2] π . This server MUST be an outbound proxy server, as defined in [3] π₯. In this doc, a SIP server means the host that the outbound SIP proxy server is running on π .
A SIP client is also defined in RFC 3261 [2] β¨. The client can be a user agent client or the client portion of a proxy server π¦. In this doc, a SIP client means the host the SIP client is running on π.
In this document, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in BCP 14, RFC 2119 [4]. Those key words are the rules-of-the-game words, so they stay in caps exactly where they apply π.
2. Introduction π
Okay so SIP [2] is an application-layer control protocol π. It can set up, change, and end multimedia sessions or calls πΆ. A SIP system has a bunch of logical parts: user agents, proxy servers, redirect servers, and registrars π§©. User agents MAY contain SIP clients, proxy servers always do π .
This doc specifies two DHCPv6 options [1] that let SIP clients find a local SIP server to use for all outbound SIP requests, which is called an outbound proxy server πΈ. (SIP clients MAY contact the address identified in the SIP URL directly, without involving a local SIP server. But in some situations, like when firewalls are present, or with local dialing plans, local emergency and other services need to be provided, so SIP clients need to use a local server for outbound requests π¨.) This is one of many possible ways to locate the outbound SIP server, and manual configuration is another example π«Ά.
3. SIP Server DHCPv6 Option π
This doc defines two DHCPv6 options that describe a local outbound SIP proxy π¦. One carries a list of domain names (Section 3.1), and the other carries a list of 128-bit (binary) IPv6 addresses (Section 3.2) π.
Since DHCPv6 doesn't have a shortage of option codes, the encoding byte found in the IPv4 DHCP option for SIP servers [6] gets skipped π. That makes the option shorter and easier to parse, keeps the numeric addresses nicely word-aligned, and lets the client request either the numeric or the domain name option using the "option request option" β¨.
An implementation of this spec MUST support both options π₯.
3.1. SIP Servers Domain Name List π
The option length is followed by a sequence of labels, encoded according to Section 3.1 of RFC 1035 [5]. Here's the quote from RFC 1035, copied word for word π§Ύ:
"Domain names in messages are expressed in terms of a sequence of labels. Each label is represented as a one octet length field followed by that number of octets. Since every domain name ends with the null label of the root, a domain name is terminated by a length byte of zero. The high order two bits of every length octet must be zero, and the remaining six bits of the length field limit the label to 63 octets or less. To simplify implementations, the total length of a domain name (i.e., label octets and label length octets) is restricted to 255 octets or less." RFC 1035 encoding was chosen to accommodate future internationalized domain name mechanisms.
The option MAY contain multiple domain names, but these SHOULD refer to different NAPTR records, rather than different A records π. The client MUST try the records in the order listed, applying the mechanism described in Section 4.1 of RFC 3263 [3] to each one π. The client only resolves the next domain name if the attempt to contact the first one failed, or yielded no common transport protocols between client and server, or denoted a domain administratively prohibited by client policy π ββοΈ. Domain names MUST be listed in order of preference π.
Using multiple domain names doesn't replace NAPTR or SRV records π . It just lets one DHCP server point to outbound proxy servers run by multiple providers πΈ.
The DHCPv6 option has the format shown in Fig. 1 π§.
option-code:OPTION_SIP_SERVER_D (21)option-length: the length of theSIP Server Domain Name Listfield in octets. It's variable π.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPTION_SIP_SERVER_D | option-length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SIP Server Domain Name List |
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1: DHCPv6 option for SIP Server Domain Name List πΌοΈ
SIP Server Domain Name List: the domain names of the SIP outbound proxy servers for the client to use. The domain names are encoded as specified in Section 8 ("Representation and use of domain names") of the DHCPv6 specification [1] π.
3.2. SIP Servers IPv6 Address List π¦
This option lists the IPv6 addresses of the SIP outbound proxy servers that are available to the client π. Servers MUST be listed in order of preference β¨.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OPTION_SIP_SERVER_A | option-len |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| SIP server (IP address) |
| |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
| SIP server (IP address) |
| |
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
option-code:OPTION_SIP_SERVER_A (22)π’option-length: the length of theoptionsfield in octets. It MUST be a multiple of 16 π . (Yes, the spec really says MUST be a multiple of 16, so the 16-byte IPv6 addresses line up π₯.)
Oops, I need to be honest here: the original spec uses "option-length" in this bullet but writes "must be a multiple of 16" in lowercase and then says "options" field. I've kept the wording exactly as the original has it, and the 16-byte rule is what matters π.
SIP server: the IPv6 address of a SIP server for the client to use. The servers are listed in order of preference for use by the client πΈ.
12. Full Copyright Statement β¨
Copyright (C) The Internet Society (2003). All Rights Reserved. π
okay so, the Internet Society basically says you're allowed to copy this doc and share it with anyone, no cap π«Ά. You can even make derivative works that comment on it, explain it, or help people implement it, and you can publish and distribute those too, in whole or in part, with no restrictions of any kind. The one hard rule is that the copyright notice and this paragraph have to stay on every copy and every derivative work π.
Here's the catch: the document itself can't be changed in any way π ββοΈ. You can't remove the copyright notice or the references to the Internet Society or other Internet organizations. There are two exceptions, though. The first is if you're developing Internet standards, in which case you follow the copyright procedures in the Internet Standards process. The second is if you need to translate it into a language other than English π. We love a multilingual icon π .
The permissions above are perpetual, which means they will never be revoked by the Internet Society or its successors or assigns π¦. Forever and ever, bestie π.
Disclaimer: This document and the information in it are provided on an "AS IS" basis, and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. π
Acknowledgement π
Funding for the RFC Editor function is currently provided by the Internet Society π«Ά. Big thank you to them for keeping the lights on for all these RFCs. We love a supportive sponsor πΈ.
π¦ where this page comes from
- ietf: rfc3319 2003-07
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms