Lect 2-Intro To Subnetting
Lect 2-Intro To Subnetting
Problem: Organizations
have multiple networks University
which are independently UniversityNetwork
Network
managed Engineering Medical
Solution 1: Allocate one or School School
more addresses 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
* There are different ways of subnetting. Commonly used netmasks for university
networks with /16 prefix (Class B) are 255.255.255.0 and 255.255.0.0
Advantages of Subnetting
IP backbone routers have one routing table entry for each network
address:
With subnetting, a backbone router only needs to know one entry
for each network
This is acceptable for Class A and Class B networks
27 = 128 Class A networks
214 = 16,384 Class B networks
But this is not acceptable for Class C networks
221 = 2,097,152 Class C networks
In 1993, the size of the routing tables started to outgrow the capacity
of routers
Consequence: The Class-based assignment of IP addresses had to
be abandoned
CIDR Example
Example:
Assume that an ISP owns the address block 128.0.64.0/18, which
represents 16,384 (214) IP addresses
Suppose a client requires 800 host addresses
With classful addresses: need to assign a class B address (and
waste ~64,700 addresses= 216 -800) .
With CIDR: Assign a /22 block, e.g., 128.0.64.0/22, and allocate a block
of 1,024 (210) IP addresses.
CIDR and Routing Information
Company X :
206.0.68.0/22
ISP X owns:
206.0.64.0/18
204.188.0.0/15
209.88.232.0/21
Internet
Backbone ISP y :
209.88.237.0/24
Organization z1 : Organization z2 :
209.88.237.192/26 209.88.237.0/26
CIDR and Routing Information
ISP y sends everything which matches
Backbone routers do not know the prefix:
anything about Company X, ISP 209.88.237.192/26 to Organizations z1
Y, or Organizations z1, z2. 209.88.237.0/26 to Organizations z2
Company X :
206.0.68.0/22
ISP X does not know about ISP X owns:
Organizations z1, z2. 206.0.64.0/18
204.188.0.0/15
209.88.232.0/21
Internet
ISP X sends everything which
Backbone
matches the prefix: ISP y :
206.0.68.0/22 to Company X,
209.88.237.0/24 to ISP y 209.88.237.0/24
Belongs to:
Cable & Wireless USA 207.0.0.0 - 207.3.255.255
11001111 00000000 00000000 00000000