Lesson12 IPAddress
Lesson12 IPAddress
IP Addresses
• Structure of an IP address
• Subnetting
• CIDR
• IPv6 address
1
Problems with Classful IP Addresses
• The original classful IP address had the following
problems:
Problem 1. Too few net ids for large networks
• Class A has 27 = 128 net ids
• Class B has 214 = 16,384 net ids
• => Class A and Class B net ids are overkill
Problem 2. Class A and Class B addresses is not appropriate
for large networks
• Class A has 224 = 16,777,216 host ids for each net id
• Class B has 216 = 65,536 host ids for each net id
• => Millions of Class A and Class B addresses are wasted.
• Solution #1: use Subnetting
2
Problems with Classful IP Addresses
Problem 3. Inflexible. Suppose that a company is granted a
site address in Class C and requires 2,000 host ids.
• Class C has 28 = 256 host ids
• => the number of host ids / addresses in class C is smaller than
the required number.
3
Problems with Classful IP Addresses
Problem 4: Exploding Routing Tables: Routing on the
Internet needs to access a net id for each network
address. By 1993, the tables size is overkill the capacity of
routers.
• Ex: Class C has 221 = 2,097,152 => too many net ids
4
Problems with Classful IP Addresses
Problem 5. The number of IP addresses is going to outgrow
the 32-bit space.
• Solution #3: IP Version 6
5
Subnetting
• Problem: Organizations
need to manage multiple University Network
networks independently
• Solution 1: Allocate an address Engineering Medical
for each network School School
• Difficult to manage
• From the outside of the Library
organization, each
network must have an
identifiable address.
• Solution 2: use subnetting
6
Basic Idea of Subnetting
• Divide the host number part into a subnet number and a
host number to have a 3-layer hierarchy
• Notes:
• The organization can freely assign / design subnet
• The organization can treat subnets as separate networks internally
• Subnet structure is just visible inside the organization 7
Subnet Masks
• Extended network prefix (subnet mask) is used by routers and hosts to
identify the start of the host numbers
*The organization can freely assign / design subnet. Commonly used netmasks with 255.255.255.0 (24 bits
prefix)
8
Example of a Subnetting Plan
The organization can freely assign / design subnet Design subnet mask with 25 bits
Subnet 1
Subnet 4
Subnetwork: 128.49.1.0/24
Subnet 2
Subnet 128.49.3.0/24