Presentation 1
Presentation 1
• * 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
• With subnetting, IP addresses use a 3-layer hierarchy:
»Network
»Subnet
»Host
• Improves efficiency of IP addresses by not consuming an entire
Class B or Class C address for each physical network/
• Reduces router complexity. Since external routers do not know
about subnetting, the complexity of routing tables at external
routers is reduced.
• Example:
• Assume that an ISP owns the address block 206.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) or four individual Class Cs (and introducing 4 new routes into the global
Internet routing tables)
• With CIDR: Assign a /22 block, e.g., 206.0.68.0/22, and allocated a block of 1,024
(210) IP addresses.
CIDR and Routing Information
Company X :
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
Backbone routers do not know
anything about Company X, ISP Y,
or Organizations z1, z2.
Company X :
Belongs to:
City of Charlottesville, VA: 207.2.88.0 - 207.2.92.255
Belongs to:
Cable & Wireless USA 207.0.0.0 - 207.3.255.255
Prefix Interface
128.143.128.0/17 interface #1
Routing table
• Without CIDR, a
router must
maintain individual
routing table
entries for these
class B networks.
Steps:
1. Count the number of left-most matching bits, /13 (255.248.0.0)
2. Add all zeros after the last matching bit:
172.24.0.0 = 10101100 00011000 00000000 00000000
Supernetting Example
• Company XYZ needs to address 400 hosts.
• Its ISP gives them two contiguous Class C addresses:
–207.21.54.0/24
–207.21.55.0/24
• Company XYZ can use a prefix of 207.21.54.0 /23 to supernet these two
contiguous networks. (Yielding 510 hosts)
• 207.21.54.0 /23
–207.21.54.0/24
–207.21.55.0/24
23 bits in common
Supernetting Example
• With the ISP acting as the addressing authority for a CIDR block of addresses, the ISP’s
customer networks, which include XYZ, can be advertised among Internet routers as a
single supernet.