Don’t use classes to determine network part
- Use netmask variable and notation /xx for xx bits of network address
- Under CIDR /xx is OK for almost any xx
Implications of CIDR
Routing used initial bits of address to determine network
- Had to change to use netmask
- Routing protocols had to include net-mask
- People had to learn binary/hex better
- More efficient allocation of addresses fixes depletion, what about routing table explosion
CIDR Blocks
Suppose a site requests 100 class C ad-dresses
- But not 100, say you take 64 = 2**6
- Creates block of addresses with
< - - - - - - - > | < - - - - - - - - > < - - - >
constant 6 bits host
that vary
from 000000
to 111111
CIDR Block, cont.
64 consecutive network #’s
- But, don’t need 64 routing table entries
- Just list routing info as one entry with netmask 6 bits less.
<- - - - - - -> <- - - - - ->
constant 6 bits
bits in CIDR block
<- - - - - - - - - - - - - - - - ->
customer network length
<- - - - - - - - - ->
routing network length
CIDR Example
Allocate the 64 Class C networks:
1 9 2 . 1 3 5 . 0 . H
1 9 2 . 1 3 5 . 1 . H
1 9 2 . 1 3 5 . 2 . H
. . .
1 9 2 . 1 3 5 . 6 3 . H
as 192.135.0.0./18 and use the netmask
255.255.192.0
- Arithmetic gets messier if not on byte boundary and not starting with 0
Special IP addresses
Certain addresses are reserved or have special meanings
- 127.0.0.1 local host, loopback address
- 127.x.x.x. still local host
- host bits all =0 network address
- host bits all =1 broadcast address
0.0.0.0 this host on this network
Special Addresses Example
For our CIDR block
- 192.135.1.0.0/18 is net address exter-nally
- 192.135.1.0/24 is an internal class C
- 192.135.2.0/26 is an internal class C di-vided into 4 pieces (first piece)
- 192.135.2.64/26 is the second piece
- 192.135.2.127is the broadcast address of the second piece
Today’s IP Addresses
- Class A- rarely allocated
- Class B- very tight, trying to reclaim under-utilized ones
- Old ones allocated called the
- New ones allocated in CIDR blocks
- Everyone getting good at netmasks
- Everyone getting stingy at giving them out in large blocks
Allocation agencies have changed
IP Allocation
Was centrally done by internic to end users
- NIC replaced by ARIN who sells to ISPs
- ISPs sell/give to customers
- Sometimes many levels, not just 2 shown
- In Europe - RIPE, in Asia - APNIC
- How can customer change ISPs --renumber?
IP Allocation, cont.
Cost of renumbering huge
- Took SGI 2 years, several staff
- ISPs mostly say they won’t "give" ad-dresses
- Identified range of numbers for inter-nal use, called private networks
- Proxy machine converts to real #’s
- Called NAT - Network Address Trans-lation