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
|
<pre>Internet Engineering Task Force (IETF) N. Swamy
Request for Comments: 6842 Samsung India
Updates: <a href="./rfc2131">2131</a> G. Halwasia
Category: Standards Track P. Jhingran
ISSN: 2070-1721 Cisco Systems
January 2013
<span class="h1">Client Identifier Option in DHCP Server Replies</span>
Abstract
This document updates <a href="./rfc2131">RFC 2131</a> "Dynamic Host Configuration Protocol"
by addressing the issues arising from that document's specification
that the server MUST NOT return the 'client identifier' option to the
client.
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/rfc6842">http://www.rfc-editor.org/info/rfc6842</a>.
Copyright Notice
Copyright (c) 2013 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">Swamy, 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="./rfc6842">RFC 6842</a> Client Identifier Option January 2013</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Requirements Language ......................................<a href="#page-2">2</a>
<a href="#section-2">2</a>. Problem Statement ...............................................<a href="#page-2">2</a>
<a href="#section-3">3</a>. Modification to <a href="./rfc2131">RFC 2131</a> ........................................<a href="#page-3">3</a>
<a href="#section-4">4</a>. Security Considerations .........................................<a href="#page-4">4</a>
<a href="#section-5">5</a>. Acknowledgments .................................................<a href="#page-4">4</a>
<a href="#section-6">6</a>. Normative References ............................................<a href="#page-4">4</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The Dynamic Host Configuration Protocol (DHCP) defined in [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>]
provides configuration parameters to hosts on an IP-based network.
DHCP is built on a client-server model, where designated DHCP servers
allocate network addresses and deliver configuration parameters to
dynamically configured hosts.
The changes to [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] defined in this document clarify the use of
the 'client identifier' option by the DHCP servers. The
clarification addresses the issues (as mentioned in Problem
Statement) arising out of the point specified by [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] that the
server MUST NOT return the 'client identifier' option to the client.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Requirements Language</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" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Problem Statement</span>
[<a id="ref-RFC2131">RFC2131</a>] specifies that a combination of 'client identifier' or
'chaddr' and assigned network address constitute a unique identifier
for the client's lease and are used by both the client and server to
identify a lease referred in any DHCP messages. [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] also
specifies that the server MUST NOT return the 'client identifier'
option in DHCPOFFER and DHCPACK messages. Furthermore, DHCP relay
agents and servers implementing [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>] MAY drop the DHCP packets
in the absence of both the 'client identifier' and 'chaddr' option.
In some cases, a client may not have a valid hardware address to
populate the 'chaddr' field and may set the field to all zeroes. One
such example is when DHCP is used to assign an IP address to a mobile
phone or a tablet and where the 'chaddr' field is set to zero in DHCP
request packets. In such cases, the client usually sets the 'client
<span class="grey">Swamy, 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="./rfc6842">RFC 6842</a> Client Identifier Option January 2013</span>
identifier' option field (to a value as permitted in [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>]), and
both the client and server use this field to uniquely identify the
client with in a subnet.
Note that due to aforementioned recommendations in [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>], valid
downstream DHCP packets (DHCPOFFER, DHCPACK, and DHCPNAK) from the
server MAY get dropped at the DHCP relay agent in the absence of the
'client identifier' option when the 'chaddr' field is set to zero.
The problem may get aggravated when a client receives a response from
the server without 'client identifier' and with the 'chaddr' value
set to zero, as it cannot guarantee that the response is intended for
it. This is due to the fact that even though the 'xid' field is
present to map responses with requests, this field alone cannot
guarantee that a particular response is for a particular client, as
'xid' values generated by multiple clients within a subnet need not
be unique.
Lack of the 'client identifier' option in DHCP reply messages also
affects the scenario where multiple DHCP clients may be running on
the same host sharing the same 'chaddr'.
This document attempts to address these problems faced by the DHCP
relay agent and client by proposing modification to DHCP server
behavior. The solution specified in this document is in line with
DHCPv6 [<a href="./rfc3315" title=""Dynamic Host Configuration Protocol for IPv6 (DHCPv6)"">RFC3315</a>] where the server always includes the Client
Identifier option in the Reply messages.
The requirement for DHCP servers not to return the 'client
identifier' option was made purely to conserve the limited space in
the packet. It is possible, though unlikely, that clients will drop
packets that contain this formerly unexpected option. There are no
known client implementations that will drop packets, but the benefit
provided by this change outweighs any small risk of such behavior.
More harm is being done by not having the 'client identifier' option
present than might be done by adding it now.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Modification to <a href="./rfc2131">RFC 2131</a></span>
If the 'client identifier' option is present in a message received
from a client, the server MUST return the 'client identifier' option,
unaltered, in its response message.
The following table is extracted from <a href="./rfc2131#section-4.3.1">Section 4.3.1 of [RFC2131]</a> and
relevant fields are modified accordingly to overcome the problems
mentioned in this document.
<span class="grey">Swamy, 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="./rfc6842">RFC 6842</a> Client Identifier Option January 2013</span>
Option DHCPOFFER DHCPACK DHCPNAK
------ --------- ------- -------
Client identifier (if MUST MUST MUST
sent by client)
Client identifier (if MUST NOT MUST NOT MUST NOT
not sent by client)
When a client receives a DHCP message containing a 'client
identifier' option, the client MUST compare that client identifier to
the one it is configured to send. If the two client identifiers do
not match, the client MUST silently discard the message.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Security Considerations</span>
This specification does not add any new security considerations other
than the ones already mentioned in [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>]. It is worth noting
that DHCP clients routinely connect to different IP networks managed
by different network providers. DHCP clients have no a priori
knowledge of which network they are connecting to. Consequently, the
client identifier will, by definition, be routinely shared with
network operators and could be used in ways that violate the user's
privacy. This is a problem that existed in [<a href="./rfc2131" title=""Dynamic Host Configuration Protocol"">RFC2131</a>]. This document
does nothing to address this problem.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Acknowledgments</span>
The authors would like to thank Bernie Volz, Ted Lemon, Barr Hibbs,
Richard Johnson, Barry Leiba, Stephen Farrell, and Adrian Farrel for
insightful discussions and review.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</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-RFC2131">RFC2131</a>] Droms, R., "Dynamic Host Configuration Protocol",
<a href="./rfc2131">RFC 2131</a>, March 1997.
[<a id="ref-RFC3315">RFC3315</a>] Droms, R., Bound, J., Volz, B., Lemon, T., Perkins, C.,
and M. Carney, "Dynamic Host Configuration Protocol for
IPv6 (DHCPv6)", <a href="./rfc3315">RFC 3315</a>, July 2003.
<span class="grey">Swamy, 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="./rfc6842">RFC 6842</a> Client Identifier Option January 2013</span>
Authors' Addresses
Narasimha Swamy Nelakuditi
Samsung India
Block-B, Bagmane Lakeview,
66/1, Bagmane Tech Park,
Byrasandra, C.V. Raman Nagar, Bangalore, 560093
India
Phone: +91 80 4181 9999
EMail: nn.swamy@samsung.com
Gaurav Halwasia
Cisco Systems
SEZ Unit, Cessna Business Park
Sarjapur Marathalli Outer Ring Road
Bangalore, 560103
India
Phone: +91 80 4426 1321
EMail: ghalwasi@cisco.com
Prashant Jhingran
Cisco Systems
SEZ Unit, Cessna Business Park
Sarjapur Marathalli Outer Ring Road
Bangalore, 560103
India
Phone: +91 80 4426 1800
EMail: pjhingra@cisco.com
Swamy, et al. Standards Track [Page 5]
</pre>
|