-
Notifications
You must be signed in to change notification settings - Fork 0
/
IPFF-Addressing-RFC-draft.txt
482 lines (337 loc) · 18 KB
/
IPFF-Addressing-RFC-draft.txt
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
A. Eromenko
Category: Proposed Standard December 2015
IP Version 5 Addressing Architecture
aka Internet Protocol "Five Fields" (IP-FF; draft)
Copyright Notice
Copyright (C) Alexey Eromenko (2015), based on the work of
The Internet Society (2006).
Abstract
This specification defines the addressing architecture of the IP
Version 5 (IPFF) protocol. The document includes the IPFF addressing
model, text representations of IPFF addresses, definition of IPFF
unicast addresses, anycast addresses, and multicast addresses.
Table of Contents
1. Introduction ....................................................2
2. IPFF Addressing .................................................2
2.1. Addressing Model ...........................................3
2.2. Text Representation of Addresses ...........................4
2.3. Text Representation of Address Prefixes ....................5
2.4. Address Type Identification ................................6
2.5. Unicast Addresses ..........................................6
2.5.1. Private addresses ...................................7
2.5.1. AutoIP addresses ....................................8
2.5.3. The Unspecified Address .............................9
2.5.4. The Loopback Address ................................9
2.5.5. Global Unicast Addresses ............................9
2.6. Anycast Addresses .........................................12
2.6.1. Required Anycast Address ...........................12
2.7. Multicast Addresses .......................................13
2.7.1. Pre-Defined Multicast Addresses ....................15
2.8. A Node's Required Addresses ...............................17
2.9. Non-contiguous wildcard masks..............................
2.10. Not all subnets are born equal............................
3. Routing and Invalid Addresses...................................
4. Acknowledgements ...............................................18
1. Introduction
This specification defines the addressing architecture of the IP
Version 5 protocol. It includes the basic formats for the various
types of IPFF addresses (unicast, anycast, and multicast).
2. IPFF Addressing
The main benefit of IPFF, is that it looks familiar to all,
whom ever used IPv4, just with an extra field. So "five fields".
Examples:
192.168.510.971.11
10.0.0.0.1
382.201.769.25.133
IPFF addresses are 50-bit identifiers for interfaces and sets of
interfaces (where "interface" is as defined in Section 2 of [IPFF]).
Each field is 10-bits wide, but due to human-memory constraits,
values are limited to "999" per field.
Why go to the great length of dis-guard perfectly useable bits?
Why not up to 1023.1023.1023.1023.1023, as 10-bit fields imply?
Bits in IPFF are a bit under-utilized.
Well, IP-FF was designed with humans in mind.
Limit of three-digits allows for easy readability, comparison,
memorization and visualizing network topology in human memory,
just like in IPv4, unlike IPv6.
This is a small sacrifice of total address range with
a huge human benefit.
And in modern computing devices are typically represented by 64-bit
unsigned integer, pre-padded with 14-bits of zeroes.
There are three types of addresses:
Unicast: An identifier for a single interface. A packet sent to a
unicast address is delivered to the interface identified
by that address.
Anycast: An identifier for a set of interfaces (typically
belonging to different nodes). A packet sent to an
anycast address is delivered to one of the interfaces
identified by that address (the "nearest" one, according
to the routing protocols' measure of distance).
Multicast: An identifier for a set of interfaces (typically
belonging to different nodes). A packet sent to a
multicast address is delivered to all interfaces
identified by that address.
Like in IPv6, there are no broadcast addresses in IPFF, their function
being superseded by multicast addresses.
Unlike IPv6, the use of IGMP is optional; That is a system can
join a Multicast group, but not send any message about it.
In IPFF, all zeros and all ones are legal values for any field,
unless specifically excluded. Specifically, prefixes may contain, or
end with, zero-valued fields.
2.1. Addressing Model
IPFF addresses of all types are assigned to interfaces, not nodes.
An IPFF unicast address refers to a single interface. Since each
interface belongs to a single node, any of that node's interfaces'
unicast addresses may be used as an identifier for the node.
A single interface may also have multiple IPFF addresses of any type
(unicast, anycast, and multicast), but typically has only one
primary unicast address.
Currently, IPFF continues the IPv4 model in that a subnet prefix is
associated with one link. Multiple subnet prefixes may be assigned
to the same link, one per IP address.
2.2. Text Representation of Addresses
There are two conventional forms for representing IPFF addresses as
text strings:
1. The preferred form is x.x.x.x.x, where the 'x's are one to
three decimal digits.
2. Special case: shortening
In order to make writing addresses containing zero fields
easier, a special syntax is available to compress the zeros.
The use of ".." indicates fields of 10 bits of zeros.
For example, the following addresses
0.0.0.0.1 the loopback address
0.0.0.0.0 the unspecified address
may be represented as
..1 the loopback address
..0 the unspecified address
Note, that this shortened form is allowed only for loopback and
unspecified addresses, as a unicast & multicast are unlikely to have
too many zeroes to warrant a special case.
2.3. Text Representation of Address Prefixes
The text representation of IPFF address prefixes is similar to the
way IPv4 address prefixes are written in Classless Inter-Domain
Routing (CIDR) notation [CIDR]. An IPFF address prefix is
represented by the notation:
IPFF-address/prefix-length
where
IPFF-address is an IPFF address in any of the notations listed
in Section 2.2.
prefix-length is a decimal value specifying how many of the
leftmost contiguous bits of the address comprise
the prefix. 40 is default, if not specified.
That means, 4 fields for the network portion, and
one field of 10-bits for the hosts.
This is an equivalent of an IPv4 subnet mask.
Examples:
192.168.510.971.11/30
10.0.0.0.1 (implies /40)
382.201.769.25.133/34
2.4. Address Type Identification
The type of an IPFF address is identified by the high-order bits of
the address, as follows:
Address type Binary prefix IPFF notation Section
------------ ------------- ------------- -------
Unspecified 00...0 (50 bits) ..0/50 2.5.2
Loopback 00...1 (50 bits) ..1/50 2.5.3
Multicast 01100011 000001001 99.9../20 2.7
Unicast (everything else)
Anycast addresses are taken from the unicast address spaces (of any
scope) and are not syntactically distinguishable from unicast
addresses.
2.5. Unicast Addresses
IPFF unicast addresses are aggregatable with prefixes of arbitrary
bit-length, similar to IPv6 and IPv4 addresses under Classless
Inter-Domain Routing.
2.5.1. Private addresses
Similarly to IPv4 private addresses defined in RFC-1918, IPFF has
several:
10.0.0.0.0 - 10.999.999.999.999 (10.x.x.x.x/10 prefix)
172.16.0.0.0 - 172.31.999.999.999 (172.16-31.x.x.x/16 prefix)
192.168.0.0.0 - 192.168.999.999.999 (192.168.x.x.x/20 prefix)
Those were chosen to be visually similar to their IPv4 counterparts,
mainly to simplify migration from current IPv4 networks.
Those address ranges must not be routed on the Internet, but
they can be routed inside an organization.
Private addresses are intended for Enterprises that are either not
connected to the Internet, or for hosts that are hidden nehind a
NAT (Network Address Translation) device, typically a router.
An enterprise that decides to use IP addresses out of the address
space defined in this document can do so without any coordination
with IANA or an Internet registry. The address space can thus be used
by many enterprises. Addresses within this private address space will
only be unique within the enterprise, or the set of enterprises which
choose to cooperate over this space so they may communicate with each
other in their own private internet.
2.5.2. AutoIP / link-local unicast addresses
In addition, for Auto IP (aka Zeroconf aka Stateless DHCP aka
optional link-local addresses), another range was defined:
0.169.254.x.x/30
This address ranges should not be routed on the Internet, and
not inside an organization.
Those are considered unique only in a layer-2 broadcast domain, link
scope, therefore should not pass a router without a network address
translation.
Because link-local addresses are not required in IPFF, and not
recommended, the procedure of getting or generating them is not
described in this document. The packet originating from those
addresses should have a TTL value of 1.
2.5.3. The Unspecified Address
The address 0.0.0.0.0 is called the unspecified address. It
must never be assigned to any node. It indicates the absence of an
address. One example of its use is in the Source Address field of
any IPFF packets sent by an initializing host before it has learned
its own address.
The unspecified address must not be used as the destination address
of IPFF packets or in IPFF Routing headers. An IPFF packet with a
source address of unspecified must never be forwarded by an IPFF
router.
2.5.4. The Loopback Address
The unicast address 0.0.0.0.1/50 is called the loopback address.
Can be shortened to ..1 on input.
It may be used by a node to send an IPFF packet to itself. It must
not be assigned to any physical interface.
The loopback address must not be used as the source address in IPFF
packets that are sent outside of a single node. An IPFF packet with
a destination address of loopback must never be sent outside of a
single node and must never be forwarded by an IPFF router. A packet
received on an interface with a destination address of loopback must
be dropped.
2.5.5. Global Unicast Addresses
The can be anything that is not reserved for other purposes.
That is from 0.0.0.0.0 up to 999.999.999.999.999 but
excluding unspecified, loopback, multicast range, private IPs and
auto IPs.
Packets received with addresses above "999" in any one field should
be dropped.
2.6. Anycast Addresses
An IPFF anycast address is an address that is assigned to more than
one different node, with the
property that a packet sent to an anycast address is routed to the
"nearest" interface having that address, according to the routing
protocols' measure of distance.
Anycast addresses are allocated from the unicast address space, using
any of the defined unicast address formats. Thus, anycast addresses
are syntactically indistinguishable from unicast addresses.
The Router's job is to make sense of them, and route traffic to the
nearest node.
2.7. Multicast Addresses
An IPFF multicast address is an identifier for a group of interfaces
(typically on different nodes). An interface may belong to any
number of multicast groups.
They start with 99.9.x.x.x/20
In IPFF, we have three types of Multicast Addresses:
Private Multicast addresses,
Link-Local Multicast addresses,
and Public Multicast addresses.
Link-local Multicast address range defined:
99.9.0.0.x/40
Private Multicast address range defined:
99.9.0.1.x/40
...and the big different between them is "IGMP".
Link-local multicast addresses are logically in-between
traditional multicast, that advertises itself by IGMP,
and broadcast that does not.
It means, that services, that nodes listening on Link-local
Multicast addresses *DO NOT* advertise that they have joined
Multicast group X, but nodes listening on Private Multicast
addresses *DO* advertise via IGMP.
Link-local Multicast address listeners also called
"silent multicast listeners".
"Silent listeners" compared to traditional Multicast:
Benefit is two fold: simple IPFF implementations are possible,
as IGMP implementation is not needed, and if you want to receive
only a few packets, you really don't need to
flood whole network by IGMP advertisements.
So on the operating system level, a listener is still required
join a "Multicast group", but no advertisement is sent.
"Silent listeners" compared to traditional broadcasts:
...nodes still get Layer 2 flooding / broadcasts, but using different
IP addresses and different layer 2 addresses, nodes can filter
unnecessary traffic at layer 2 (by a node's Ethernet controller,
for example), instead of by TCP layer.
Ethernet examples are part of the [LARA] spec.
2.7.1. Pre-Defined Multicast Addresses
The following well-known multicast addresses are pre-defined.
Use of these group IDs for any other scope values, with the T flag
equal to 0, is not allowed.
Reserved Multicast Addresses:
99.9.0.1.1 = DHCP Servers
99.9.0.0.1 = DHCP Clients
DHCP clients are "Silent listeners". They can be minimal embedded
devices, and don't have to implement the full IGMP protocol.
DHCP servers, on the other hand, are using traditional multicast,
and must group-subscribe to this address by IGMP advertisements.
2.8. A Node's Required Addresses
Only few:
Loopback address. 0.0.0.0.1
At least one Unicast address, plus prefix (similar to subnet mask).
That's it !
Beyond required addresses, here are some RECOMMENDED addresses:
-DNS address
-Default Gateway
-Backup Default Gateway
2.9. Non-contiguous wildcard masks
Some firewall vendors allow for Non-contiguous masks in IPv4, and
the same tradition can be kept with IPFF, but only for traffic
filtering purposes.
Wildcard mask is somewhat similar to the IPv4 subnet mask, but in
reverse. 1-bits are for *host portion*, while 0-bits are for *network
portion*. A Non-contiguous IPFF wildcard mask may look like:
0.0.1018.517.1023
All connectivity and routing-related decisions must use a prefix
notation, and thus be contiguous.
NOTE: While quad-digits per field (like .1023) are prohibited from
IPFF addresses, they are okay for the purpose of Wildcard masks.
2.10. Not all subnets are born equal
Let's take a /45 prefix, for example.
It means that I want to divide my 5th field into 32 subnets
with 32 hosts each.
10.0.0.0.0/45 subnet will have 32 hosts. (up to .31)
10.0.0.0.32/45 subnet will have 32 hosts. (up to .63)
...
But what about the last subnet ?
10.0.0.0.992/45 subnet should have 32 hosts...
But it can't ! Why ?
Theoretically, it should have up to .1023 but the limit is .999,
This implies that some subnets may be not full, or not usable.
So this last subnet will have only 8 hosts ! (up to .999)
The limit was introduced to conserve *human* memory, which is more
precious than computer memory nowadays... So we, humans, need
to remember only three digits per field, instead of four.
3. Routing and Invalid Addresses
Routing should be done in full 50-bit addresses, but if any field is
bigger than 3 decimal digits "999", this traffic is invalid and must
be silently dropped. No ICMP message needs to be sent.
Access-level routers (those speaking to client-side equipment),
power-grid-connected end-nodes (clients & servers) and firewalls
MUST validate each field separately, and drop invalid traffic.
Mobile devices and embedded devices MAY enforce this rule.
Core Routers are not required to check this, for efficiency reasons.
Optimization hints: for session-oriented protocols, such as
TCP, it should be enforced only during session creation (SYN packet).
4. Acknowledgements
The author would like to thank all previous IPv4 and IPv6 developers
for their hard work, and benefit for humanity.
This document is based is RFC-4291 and RFC-1918.
Authors' Contacts
Alexey Eromenko
Israel
Skype: Fenix_NBK_
EMail: [email protected]
Based on the hard work of "Stephen E. Deering" and "Robert M. Hinden",
from IPv6 project, as well as all previous TCP/IP developers from DARPA.
Full Copyright Statement
Copyright (C) The Internet Society (2006).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
ENGINEERING TASK FORCE DISCLAIM 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 provided by the IETF
Administrative Support Activity (IASA).