I Net Address
I Net Address
IP Addresses
• Structure of an IP address
• Classful IP addresses
• Limitations and problems with classful IP addresses
• Subnetting
• CIDR
• IP Version 6 addresses
IP Addresses
32 bits
version header Type of Service/TOS Total Length (in bytes)
(4 bits) length (8 bits) (16 bits)
flags
Identification (16 bits) Fragment Offset (13 bits)
(3 bits)
TTL Time-to-Live Protocol
Header Checksum (16 bits)
(8 bits) (8 bits)
Ethernet frame
IP Addresses
32 bits
0x4 0x5 0x00 4410
128.143.137.144
128.143.71.21
Ethernet frame
What is an IP Address?
• An IP address:
- is a 32 bit long identifier
- encodes a network number (network prefix)
and a host number
Network prefix and host number
• Example:
10000000 10001111 10001001 10010000
1st Byte 2nd Byte 3rd Byte 4th Byte
= 128 = 143 = 137 = 144
128.143.137.144
Example
• Example: ellington.cs.virginia.edu
128.143 137.144
bit # 0 1 7 8 31
Class A 0
Network Prefix Host Number
8 bits 24 bits
bit # 0 1 2 15 16 31
bit # 0 1 2 3 23 24 31
Other problems:
– Too few network addresses for large networks
• Class A and Class B addresses were gone
– Limited flexibility for network addresses:
• Class A and B addresses are overkill (>64,000 addresses)
• Class C address is insufficient (requires 40 Class C addresses)
CIDR - Classless Interdomain Routing
• Goals:
– New interpretation of the IP address space
– Restructure IP address assignments to increase efficiency
– Permits route aggregation to minimize route table entries
• CIDR notation can replace the use of subnetmasks (but is more general)
– IP address 128.143.137.144 and subnetmask 255.255.255.0 becomes
128.143.137.144/24
• Problem: Organizations
have multiple networks
University Network
which are independently
managed Engineering Medical
– Solution 1: Allocate a School School
separate network address for
each network
• Difficult to manage Library
• From the outside of the
organization, each network
must be addressable.
– Solution 2: Add another
level of hierarchy to the
Subnetting
IP addressing structure
Basic Idea of Subnetting
• Split the host number portion of an IP address into a
subnet number and a (smaller) host number.
• Result is a 3-layer hierarchy
128.143 137.144
1111111111111111 1111111100000000
subnetmask
Advantages of Subnetting
• IP Version 6
– Is the successor to the currently used IPv4
– Specification completed in 1994
– Makes improvements to IPv4 (no revolutionary changes)