Network Addressing
Network Addressing
1
The Internet needs addresses
• Addresses allow endpoints to identify, and hence talk to each other
• E.g., like people have names
• Two methods:
• Old: Classful addressing
• New: Classless addressing (also called classless
inter-domain routing, or CIDR)
Classful IPv4 addressing
Classful IPv4 addressing
Class 32 bits
network host
part part
11001000 00010111 00010000 00000000
200.23.16.0/23
CIDR
• An ISP can obtain a block of addresses 200.8.0.0/16
and partition this further to its customers
• Say an ISP has 200.8.0.0/16 address
(65K addresses).
200.8.0.0
• The ISP has customer who needs only
200.8.0.1
64 addresses starting from 200.8.4.128 200.8.4.128/26
…
• Then that block can be specified as 200.8.1.0
200.8.4.128/26 200.8.1.1
…
• 200.8.4.128/26 is “inside” 200.8.0.0/16
200.8.255.255
Netmask (or subnet mask)
• An alternative to denote the IP prefix length of an organization
• 32 bits: a 1-bit denotes a prefix bit position. 0 is the host part.
network host
part part
11001000 00010111 00010000 00000000
200.23.16.0/23
network part Host part
of mask of mask
11111111 11111111 11111110 00000000
Netmask: 255.255.254.0