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
|
<pre>Network Working Group M. Blanchet
Request for Comments: 3531 Viagenie
Category:Informational April 2003
<span class="h1">A Flexible Method for Managing the Assignment of Bits</span>
<span class="h1">of an IPv6 Address Block</span>
Status of this Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2003). All Rights Reserved.
Abstract
This document proposes a method to manage the assignment of bits of
an IPv6 address block or range. When an organisation needs to make
an address plan for its subnets or when an ISP needs to make an
address plan for its customers, this method enables the organisation
to postpone the final decision on the number of bits to partition in
the address space they have. It does it by keeping the bits around
the borders of the partition to be free as long as possible. This
scheme is applicable to any bits addressing scheme using bits with
partitions in the space, but its first intended use is for IPv6. It
is a generalization of <a href="./rfc1219">RFC 1219</a> and can be used for IPv6 assignments.
Table of Contents
<a href="#section-1">1</a>. Rationale . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-2">2</a>. Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-2">2</a>
<a href="#section-3">3</a>. Description of the Algorithm . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.1">3.1</a> Leftmost . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.2">3.2</a> Rightmost . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-3.3">3.3</a> Centermost . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-4">4</a>. Example . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-5">5</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-6">6</a>. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
Author's Address . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
Full Copyright Statement . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<span class="grey">Blanchet Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Rationale</span>
IPv6 addresses have a flexible structure for address assignments.
This enables registries, internet service providers, network
designers and others to assign address ranges to organizations and
networks based on different criteria, like size of networks,
estimated growth rate, etc. Often, the initial assignment doesn't
scale well because a small network becomes larger than expected,
needing more addresses. But then, the assignment authority cannot
allocate contiguous addresses because they were already assigned to
another network.
<a href="./rfc1219">RFC 1219</a> [<a href="#ref-1" title=""On the assignment of subnet numbers"">1</a>] describes an allocation scheme for IPv4 where address
space is kept unallocated between the leftmost bits of the subnet
part and the rightmost bits of the host part of the address. This
enables the network designer to change the subnet mask without
renumbering, for the central bits not allocated.
This work generalizes the previous scheme by extending the algorithm
so it can be applied on any part of an IP address, which are assigned
by any assignment authority level (registries, ISPs of any level,
organizations, ...). It can be used for both IPv4 and IPv6.
This document does not provide any recommendation to registries on
how to assign address ranges to their customers.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Scheme</span>
We define parts of the IP address as p1, p2 , p3, ... pN in order,
so that an IP address is composed of these parts contiguously.
Boundaries between each part are based on the prefix assigned by the
next level authority. Part p1 is the leftmost part probably assigned
to a registry, Part p2 can be allocated to a large internet service
provider or to a national registry. Part p3 can be allocated to a
large customer or a smaller provider, etc. Each part can be of
different length. We define l(pX) the length of part X.
+------+------+------+------+------+------+
| p1 | p2 | p3 | p4 | ... | pN |
+------+------+------+------+------+------+
<------- ipv6 or ipv4 address ------------>
The algorithm for allocating addresses is as follows: a) for the
leftmost part (p1), assign addresses using the leftmost bits first b)
for the rightmost part (pN), assign addresses using the rightmost
bits first c) for all other parts (center parts), predefine an
arbitrary boundary (prefix) and then assign addresses using the
center bits first of the part being assigned.
<span class="grey">Blanchet Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
This algorithm grows assigned bits in such way that it keeps
unassigned bits near the boundary of the parts. This means that the
prefix between any two parts can be changed forward or backward,
later on, up to the assigned bits.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Description of the Algorithm</span>
This section describes the assignment of leftmost bits, rightmost
bits and centermost bits.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a> Leftmost</span>
p1 will be assigned in order as follows:
Order Assignment
1 00000000
2 10000000
3 01000000
4 11000000
5 00100000
6 10100000
7 01100000
8 11100000
9 00010000
...
This is actually a mirror of binary counting.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a> Rightmost</span>
pN (the last part) will be assigned in order as follows:
Order Assignment
1 00000000
2 00000001
3 00000010
4 00000011
5 00000100
6 00000101
7 00000110
8 00000111
9 00001000
...
<span class="grey">Blanchet Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a> Centermost</span>
pX (where 1 < X < N) will be assigned in order as follows: (for
example, with a 8 bit predefined length l(pX)=8))
Order Assignment
1 00000000
2 00001000
3 00010000
4 00011000
5 00000100
6 00001100
7 00010100
8 00011100
9 00100000
...
The bits are assigned using the following algorithm:
1. The first round is to select only the middle bit (and if there is
an even number of bits pick the bit following the center)
2. Create all combinations using the selected bits that haven't yet
been created.
3. Start a new round by adding one more bit to the set. In even
rounds add the preceding bit to the set. In odd rounds add the
subsequent bit to the set.
4. Repeat 2 and 3 until there are no more bits to consider.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Example</span>
As an example, a provider P1 has been assigned the 3ffe:0b00/24
prefix and wants to assign prefixes to its connected networks. It
anticipates in the foreseeable future a maximum of 256 customers
consuming 8 bits. One of these customers, named C2, anticipates a
maximum of 1024 customer's assignments under it, consuming 10 other
bits.
<span class="grey">Blanchet Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
The assignment will be as follows, not showing the first 24 leftmost
bits (3ffe:0b00/24: 00111111 11111110 00001011):
P1 assigns address space to its customers using leftmost bits:
10000000 : assigned to C1
01000000 : assigned to C2
11000000 : assigned to C3
00100000 : assigned to C4
...
C2 assigns address space to its customers (C2C1, C2C2, ...) using
centermost bits:
0000010000 : assigned to C2C1
0000100000 : assigned to C2C2
0000110000 : assigned to C2C3
...
Customers of C2 can use centermost bits for maximum flexibility and
then the last aggregators (should be a network in a site) will be
assigned using rightmost bits.
Putting all bits together for C2C3:
P1 |C2 |C2C3
00111111 11111110 00001011 01000000 00001100 00
<-------> <------>
growing bits
By using this method, P1 will be able to expand the number of
customers and the customers will be able to modify their first
assumptions about the size of their own customers, until the
"reserved" bits are assigned.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
Address assignment doesn't seem to have any specific security
consideration.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgements</span>
Thanks to Steve Deering, Bob Hinden, Thomas Narten, Erik Nordmark,
Florent Parent and Jocelyn Picard for their very useful comments on
this work.
<span class="grey">Blanchet Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
References
[<a id="ref-1">1</a>] Tsuchiya, P., "On the assignment of subnet numbers", <a href="./rfc1219">RFC 1219</a>,
April 1991.
[<a id="ref-2">2</a>] Bradner, S., "The Internet Standards Process -- Revision 3", <a href="https://www.rfc-editor.org/bcp/bcp9">BCP</a>
<a href="https://www.rfc-editor.org/bcp/bcp9">9</a>, <a href="./rfc2026">RFC 2026</a>, October 1996.
Author's Address
Marc Blanchet
Viagenie
2875 boul. Laurier, bureau 300
Sainte-Foy, QC G1V 2M2
Canada
Phone: +1 418 656 9254
EMail: Marc.Blanchet@viagenie.qc.ca
URI: <a href="http://www.viagenie.qc.ca/">http://www.viagenie.qc.ca/</a>
<span class="grey">Blanchet Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3531">RFC 3531</a> Bits Assignment of an IPv6 Address Block April 2003</span>
Full Copyright Statement
Copyright (C) The Internet Society (2003). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is 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.
Blanchet Informational [Page 7]
</pre>
|