SlideShare a Scribd company logo
1 of 20
CSS 432: Subnetting & CIDR 1
CSS432 Subnetting and CIDR
Textbook Ch 3.2.5
Instructor: Joe McCarthy
(based on Prof. Fukuda’s slides)
Global addressing
CSS 432: Subnetting & CIDR 2
 Properties
globally unique
hierarchical: network + host
 Dotted Decimal Notation
 Class A: 224 – 2 = 16,777,214 hosts
 1.0.0.1 – 126.255.255.254
 (0.0.0.0 – 0.255.255.255, 1.0.0.0, 126.255.255.255,
and 127.0.0.0 – 127.255.255.255 reserved)
 Class B: 216 – 2 = 65,534 hosts
 128.0.0.1 – 191.255.255.254
 Class C: 28 – 2 = 254 hosts
 192.0.0.1 – 223.255.255.254
Network Host
7 24
0
A:
Network Host
14 16
1 0
B:
Network Host
21 8
1 1 0
C:
CSS 432: Subnetting & CIDR 3
Internet Structure
 Autonomous System (AS):
 Administered independently of other AS
 Have a different routing protocol and metrics
 Classful Addressing: Do we really need to give an independent class A/B/C
network number to every single AS?
NSFNET backbone
Stanford
BARRNET
regional
Berkeley
PARC
NCAR
UA
UNM
Westnet
regional
UNL KU
ISU
MidNet
regional
CSS 432: Subnetting & CIDR 4
Scaling Issues in Routing
 Inefficient use of IP Address Space
 Class C with 2 hosts (2/254 = 0.78% efficient)
 Class B with 256 hosts (256/65534 = 0.39% efficient)
 IP address space gets consumed too quickly
 Too Many Networks
 Routing tables do not scale
 Route propagation protocols do not scale
 Router gets slower to scan a big forwarding table
Hierarchy
CSS 432: Subnetting & CIDR 5
Subnetting - Concept
 Problem: Internet identifies only classes
 Four networks each must receive an independent class of network number,
(which exhausts IP addresses and floods network #s)
 Subnet: collects networks belonging to the same AS and give a single class of
network number, which is then divided into subnet numbers internally.
Simple IP networks A collection of subnets
40 nodes: Class C
200 nodes: Class C
256 nodes: Class B
Internet
IAS
128.96.36.1-200
BBUS
128.96.35.1-40
EDU
128.96.34.1 - 30
CSS
128.97.0.1 – 128.97.1.2
30 nodes: Class C
40 nodes
Subnet: 128.97.2.0
200 nodes
Subnet: 128.97.3.0
256 nodes
Subnet: 128.97.4.0
Internet
IAS
128.97.3.1-200
BBUS
128.97.2.1-30
EDU
128.97.1.1-30
CSS
128.97.4.1 – 128.97.5.2
30 nodes
Subnet: 128.97.1.0
Class B: 128.97.0.0
CSS 432: Subnetting & CIDR 6
Subnetting – How to Address
 Subnet masks define variable partition of host part
 Subnets visible only within site
Network number Host number
Class B address
Subnet mask (255.255.255.0)
Subnetted address
111111111111111111111111 00000000
Network number Host ID
Subnet ID
127.97.0.1 – 127.97.255.254
127.97.8.254/24
Subnet ID
# of bits in subnet mask
CSS 432: Subnetting & CIDR 7
Subnetting – How to Address
#bits Subnetwork Mask #subnets in Class B #subnets in Class C # of hosts
16 255.255.0.0 1 - 65534
17 255.255.128.0 - - 32766
18 255.255.192.0 2 - 16382
19 255.255.224.0 6 - 8190
20 255.255.240.0 14 - 4094
21 255.255.248.0 30 - 2046
22 255.255.252.0 62 - 1022
23 255.255.254.0 126 - 510
24 255.255.255.0 254 1 254
25 255.255.255.128 510 0 126
26 255.255.255.192 1022 2 62
27 255.255.255.224 2046 6 30
28 255.255.255.240 4094 14 14
29 255.255.255.248 8190 30 6
30 255.255.255.252 16382 62 2
31 255.255.255.254 32766 126 -
32 255.255.255.255 65534 254 -
Note: subnet all 0’s and all 1’s are not recommended
Routing with simple IP
CSS 432: Subnetting & CIDR 8
[Note: NetworkNum values
would typically be
more like 128.96.34]
CSS 432: Subnetting & CIDR 9
Routing with subnetting
IP address & subnet mask = subnet number
Example: 128.96.34.15 & 255.255.255.128
10000000.01100000.00100010.00001111 &
11111111.11111111.11111111.10000000
-----------------------------------
10000000.01100000.00100010.00000000
= 128.96.34.0
Forwarding Table for R1
CSS 432: Subnetting & CIDR 10
Forwarding Algorithm
D = destination IP address
for each entry (SubnetNum, SubnetMask, NextHop)
D1 = SubnetMask & D
if D1 == SubnetNum
if NextHop is an interface
deliver datagram directly to destination
else
deliver datagram to NextHop (a router)
 Use a default router if nothing matches
 Not necessary for all 1s in subnet mask to be contiguous
 But highly recommended
 Can put multiple subnets on one physical network
 Ex. Two or more departments want to have their own subnet and to
allocate IP addresses in it while sharing just one physical network
 Subnets not visible from the rest of the Internet
CSS 432: Subnetting & CIDR 11
Supernetting
 Subnetting
 Purpose: divide a large class of network numbers into sub
network numbers → helps assign addresses efficiently
 Problem: an AS with more than 255 hosts still needs class B
 Supernetting
 Solution: assign block of contiguous network numbers to an
institution.
 Ex. Assign two class C network numbers instead of one class B
network.
 Side effect: The information that routers store and exchange
increases dramatically
 Ex. If an AS has 16 class C network numbers, every Internet
router needs 16 entries for this AS.
CIDR: Classless Inter-Domain Routing
CSS 432: Subnetting & CIDR 12
CIDR
 Basic concept of supernetting using class C:
 Represent blocks with a single pair
 (first_class_C_network_address, count)
 Example: (192.5.48.0, 3)
 Points to a sequence of blocks:
192.5.48.0, 192.5.49.0 and 192.5.50.0
 In practice
 No restriction to class C nor use of count
 Restrict block sizes to powers of 2
 Use a bit mask (CIDR mask) to identify block size
 Ex. An AS assigned a block of 2048 (211) contiguous addresses starting at
128.211.168.0 is a collection of 8 (23) class C networks (with 28 addresses each)
 Lowest 128.211.168.0 10000000 11010011 10101000 00000000
 Highest 128.211.175.255 10000000 11010011 10101111 11111111
 CIDR mask (32 – 11 = 21 bits) 11111111 11111111 11111000 00000000
 Address Notation: 128.211.168.0/21
CSS 432: Subnetting & CIDR 13
Classless Addressing Examples
 CIDR allows to aggregate routes repeatedly
 Then, what if there is a router capable of forwarding packets both to the regional
network and to the corporation Z?
 Prefix Next Hop
 192.4.0.0/18 the regional network
 192.4.48.0/20 corporation Z
 To which of those two should we forward a packet destined to 192.4.48.3?
 Use Principle of Longest Match
Regional network
Corporation Y
11000000 00000100 0001
192.4.16.0/20
Corporation X
11000000 00000100 0000
192.4.0.0/20
Internet
backbone
Border gateway
11000000 00000100 00
192.4.0.0/18
Corporation Z
11000000 00000100 0011
192.4.48.0/20
CSS 432: Subnetting & CIDR 14
http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
CSS 432: Subnetting & CIDR 15
http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
CSS 432: Subnetting & CIDR 16
 Reviews
 Subnetting: How to address and forwarding algorithm
 Supernetting: CIDR, principle of longest match, and
classless lookup
 Exercises in Chapter 3
 Ex. 55 (Subnetting)
 Ex. 68 (CIDR)
 Ex. 72 (CIDR)
 Ex. 74 (CIDR)
Ex 55 (Subnetting)
 Suppose a router has built up the routing table shown in Figure 3.18. The
router can deliver packets directly over interfaces 0 and 1, or it can forward
packets to routers R2, R3 or R4. Describe what the router does with a
packet addressed to each of the following destinations:
 (a) 128.96.39.10
 (b) 128.96.40.12
 (c) 128.96.40.151
 (d) 192.4.153.17
 (e) 192.4.153.90
CSS 432: Subnetting & CIDR 17
SubnetNumber SubnetMask NextHop
128.96.39.0 255.255.255.128 Interface 0
128.96.39.128 255.255.255.128 Interface 1
128.96.40.0 255.255.255.128 R2
192.4.153.0 255.255.255.192 R3
(default) 0.0.0.0 R4
Ex 68 (CIDR)
 An organization has been assigned the prefix 212.1.1/24
(Class C) and wants to form subnets for four departments,
with hosts as follows:
A: 75 hosts
B: 35 hosts
C: 20 hosts
D: 18 hosts
There are 148 hosts in all.
 (a) Give a possible arrangement of subnet masks to make this
possible
 (b) Suggest what the organization might do if department D
grows to 32 hosts
CSS 432: Subnetting & CIDR 18
Ex 72
 Table 3.20 is a routing table using CIDR. Address bytes are in
hexadecimal. The notation “/12” in “C4.50.0.0/12” denotes a
netmask with 12 leading 1 bits: FEF0.0.0. Note that the last 3
entries cover every address and thus serve in lieu of a default
route. State to what next hop the following will be delivered:
 (a) C4.5E.13.87
 (b) C4.5E.22.09
 (c) C3.41.80.02
 (d) 5E.43.91.12
 (e) C4.6D.31.2E
 (f) C4.6B.31.2E
CSS 432: Subnetting & CIDR 19
Net/MaskLength NextHop
C4.50.0.0/12 A
C4.5E.10.0/20 B
C4.60.0.0/12 C
C4.68.0.0/14 D
80.0.0.0/1 E
40.0.0.0/2 F
00.0.0.0/2 G
Ex 74
 An ISP that has authority to assign addresses from a /16 prefix (an old Class B address) is
working with a new company to allocate it a portion of address space based on CIDR. The
new company needs IP addresses for machines in 3 divisions of its corporate network:
Engineering, Marketing and Sales. These divisions plan to grow as follows:
 Engineering has 5 machines as of the start of year 1 and intends to add 1 machine every week
 Marketing will never need more than 16 machines
 Sales needs 1 machine for every 2 clients
 As of the start of year 1, the company has no clients, but the sales model indicates that, by
the start of year 2, the company will have 6 clients and each week thereafter
 will get one new client with probability 60%,
 will lose one client with probability 20%, or
 will maintain the same number with probability 20%
 (a) What address range would be required to support the company’s growth plans for at
least 7 years if Marketing uses all 16 of its addresses and the Sales and Engineering plans
behave as expected?
 (b) How long would this address assignment last? At the time when the company runs out
of address space, how would the addresses be assigned to the three groups?
 (c) If, instead of using CIDR addressing, it was necessary to use old-style classful
addresses, what options would the new company have in terms of getting address space?
CSS 432: Subnetting & CIDR 20

More Related Content

Similar to 03_cidr.ppt

Ccna 2 chapter 6 v4.0 answers 2011
Ccna 2 chapter 6 v4.0 answers 2011Ccna 2 chapter 6 v4.0 answers 2011
Ccna 2 chapter 6 v4.0 answers 2011Dân Chơi
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting PresentationTouhidul Fahim
 
Cisco discovery drs ent module 5 - v.4 in english.
Cisco discovery   drs ent module 5 - v.4 in english.Cisco discovery   drs ent module 5 - v.4 in english.
Cisco discovery drs ent module 5 - v.4 in english.igede tirtanata
 
Cisco discovery drs ent module 4 - v.4 in english.
Cisco discovery   drs ent module 4 - v.4 in english.Cisco discovery   drs ent module 4 - v.4 in english.
Cisco discovery drs ent module 4 - v.4 in english.igede tirtanata
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basicstmavroidis
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basicsMahmmoud Mahdi
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING AYESHA JAVED
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
Subnetting class
Subnetting classSubnetting class
Subnetting classFTC
 
IPv4 Addressing Architecture
IPv4 Addressing ArchitectureIPv4 Addressing Architecture
IPv4 Addressing ArchitectureShreehari Dhat
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2kurtmctaggart
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccnarobertoxe
 

Similar to 03_cidr.ppt (20)

Subnetting
SubnettingSubnetting
Subnetting
 
Ccna 2 chapter 6 v4.0 answers 2011
Ccna 2 chapter 6 v4.0 answers 2011Ccna 2 chapter 6 v4.0 answers 2011
Ccna 2 chapter 6 v4.0 answers 2011
 
TCP IP Addressing
TCP IP AddressingTCP IP Addressing
TCP IP Addressing
 
Subnetting Presentation
Subnetting PresentationSubnetting Presentation
Subnetting Presentation
 
Cisco discovery drs ent module 5 - v.4 in english.
Cisco discovery   drs ent module 5 - v.4 in english.Cisco discovery   drs ent module 5 - v.4 in english.
Cisco discovery drs ent module 5 - v.4 in english.
 
Cisco discovery drs ent module 4 - v.4 in english.
Cisco discovery   drs ent module 4 - v.4 in english.Cisco discovery   drs ent module 4 - v.4 in english.
Cisco discovery drs ent module 4 - v.4 in english.
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
Lesson 2: Subnetting basics
Lesson 2: Subnetting basicsLesson 2: Subnetting basics
Lesson 2: Subnetting basics
 
IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING IP NETWORKING AND IP SUBNET MASKING
IP NETWORKING AND IP SUBNET MASKING
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
Subnetting class
Subnetting classSubnetting class
Subnetting class
 
IPv4 Addressing Architecture
IPv4 Addressing ArchitectureIPv4 Addressing Architecture
IPv4 Addressing Architecture
 
Network.pptx
Network.pptxNetwork.pptx
Network.pptx
 
Network.pptx
Network.pptxNetwork.pptx
Network.pptx
 
Network
NetworkNetwork
Network
 
How IP address works
How IP address worksHow IP address works
How IP address works
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2
 
Module3
Module3Module3
Module3
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 
Chapter3ccna
Chapter3ccnaChapter3ccna
Chapter3ccna
 

More from Jayaprasanna4

Human computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfHuman computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfJayaprasanna4
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptJayaprasanna4
 
HUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptHUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptJayaprasanna4
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.pptJayaprasanna4
 
World wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageWorld wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageJayaprasanna4
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.pptJayaprasanna4
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.pptJayaprasanna4
 
Lecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptLecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptJayaprasanna4
 
connecting LANs.pptx
connecting LANs.pptxconnecting LANs.pptx
connecting LANs.pptxJayaprasanna4
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.pptJayaprasanna4
 
connecting devices.ppt
connecting devices.pptconnecting devices.ppt
connecting devices.pptJayaprasanna4
 

More from Jayaprasanna4 (20)

Human computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdfHuman computer Interaction ch1-the human.pdf
Human computer Interaction ch1-the human.pdf
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.ppt
 
HUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.pptHUman computer Interaction Socio-organizational Issues.ppt
HUman computer Interaction Socio-organizational Issues.ppt
 
human computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppthuman computer Interaction cognitive models.ppt
human computer Interaction cognitive models.ppt
 
World wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup LanguageWorld wide web and Hyper Text Markup Language
World wide web and Hyper Text Markup Language
 
CI-Monte-Carlo.ppt
CI-Monte-Carlo.pptCI-Monte-Carlo.ppt
CI-Monte-Carlo.ppt
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.ppt
 
Cost effort.ppt
Cost effort.pptCost effort.ppt
Cost effort.ppt
 
Activity planning.ppt
Activity planning.pptActivity planning.ppt
Activity planning.ppt
 
unit-1.ppt
unit-1.pptunit-1.ppt
unit-1.ppt
 
BGP.ppt
BGP.pptBGP.ppt
BGP.ppt
 
Lecture 19- Multicasting.ppt
Lecture 19- Multicasting.pptLecture 19- Multicasting.ppt
Lecture 19- Multicasting.ppt
 
line coding.ppt
line coding.pptline coding.ppt
line coding.ppt
 
error detection.ppt
error detection.ppterror detection.ppt
error detection.ppt
 
connecting LANs.pptx
connecting LANs.pptxconnecting LANs.pptx
connecting LANs.pptx
 
CS1302 06NOV.pdf
CS1302 06NOV.pdfCS1302 06NOV.pdf
CS1302 06NOV.pdf
 
session and cookies.ppt
session and cookies.pptsession and cookies.ppt
session and cookies.ppt
 
JDBC.ppt
JDBC.pptJDBC.ppt
JDBC.ppt
 
connecting devices.ppt
connecting devices.pptconnecting devices.ppt
connecting devices.ppt
 
ARP.ppt
ARP.pptARP.ppt
ARP.ppt
 

Recently uploaded

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 

Recently uploaded (20)

young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 

03_cidr.ppt

  • 1. CSS 432: Subnetting & CIDR 1 CSS432 Subnetting and CIDR Textbook Ch 3.2.5 Instructor: Joe McCarthy (based on Prof. Fukuda’s slides)
  • 2. Global addressing CSS 432: Subnetting & CIDR 2  Properties globally unique hierarchical: network + host  Dotted Decimal Notation  Class A: 224 – 2 = 16,777,214 hosts  1.0.0.1 – 126.255.255.254  (0.0.0.0 – 0.255.255.255, 1.0.0.0, 126.255.255.255, and 127.0.0.0 – 127.255.255.255 reserved)  Class B: 216 – 2 = 65,534 hosts  128.0.0.1 – 191.255.255.254  Class C: 28 – 2 = 254 hosts  192.0.0.1 – 223.255.255.254 Network Host 7 24 0 A: Network Host 14 16 1 0 B: Network Host 21 8 1 1 0 C:
  • 3. CSS 432: Subnetting & CIDR 3 Internet Structure  Autonomous System (AS):  Administered independently of other AS  Have a different routing protocol and metrics  Classful Addressing: Do we really need to give an independent class A/B/C network number to every single AS? NSFNET backbone Stanford BARRNET regional Berkeley PARC NCAR UA UNM Westnet regional UNL KU ISU MidNet regional
  • 4. CSS 432: Subnetting & CIDR 4 Scaling Issues in Routing  Inefficient use of IP Address Space  Class C with 2 hosts (2/254 = 0.78% efficient)  Class B with 256 hosts (256/65534 = 0.39% efficient)  IP address space gets consumed too quickly  Too Many Networks  Routing tables do not scale  Route propagation protocols do not scale  Router gets slower to scan a big forwarding table Hierarchy
  • 5. CSS 432: Subnetting & CIDR 5 Subnetting - Concept  Problem: Internet identifies only classes  Four networks each must receive an independent class of network number, (which exhausts IP addresses and floods network #s)  Subnet: collects networks belonging to the same AS and give a single class of network number, which is then divided into subnet numbers internally. Simple IP networks A collection of subnets 40 nodes: Class C 200 nodes: Class C 256 nodes: Class B Internet IAS 128.96.36.1-200 BBUS 128.96.35.1-40 EDU 128.96.34.1 - 30 CSS 128.97.0.1 – 128.97.1.2 30 nodes: Class C 40 nodes Subnet: 128.97.2.0 200 nodes Subnet: 128.97.3.0 256 nodes Subnet: 128.97.4.0 Internet IAS 128.97.3.1-200 BBUS 128.97.2.1-30 EDU 128.97.1.1-30 CSS 128.97.4.1 – 128.97.5.2 30 nodes Subnet: 128.97.1.0 Class B: 128.97.0.0
  • 6. CSS 432: Subnetting & CIDR 6 Subnetting – How to Address  Subnet masks define variable partition of host part  Subnets visible only within site Network number Host number Class B address Subnet mask (255.255.255.0) Subnetted address 111111111111111111111111 00000000 Network number Host ID Subnet ID 127.97.0.1 – 127.97.255.254 127.97.8.254/24 Subnet ID # of bits in subnet mask
  • 7. CSS 432: Subnetting & CIDR 7 Subnetting – How to Address #bits Subnetwork Mask #subnets in Class B #subnets in Class C # of hosts 16 255.255.0.0 1 - 65534 17 255.255.128.0 - - 32766 18 255.255.192.0 2 - 16382 19 255.255.224.0 6 - 8190 20 255.255.240.0 14 - 4094 21 255.255.248.0 30 - 2046 22 255.255.252.0 62 - 1022 23 255.255.254.0 126 - 510 24 255.255.255.0 254 1 254 25 255.255.255.128 510 0 126 26 255.255.255.192 1022 2 62 27 255.255.255.224 2046 6 30 28 255.255.255.240 4094 14 14 29 255.255.255.248 8190 30 6 30 255.255.255.252 16382 62 2 31 255.255.255.254 32766 126 - 32 255.255.255.255 65534 254 - Note: subnet all 0’s and all 1’s are not recommended
  • 8. Routing with simple IP CSS 432: Subnetting & CIDR 8 [Note: NetworkNum values would typically be more like 128.96.34]
  • 9. CSS 432: Subnetting & CIDR 9 Routing with subnetting IP address & subnet mask = subnet number Example: 128.96.34.15 & 255.255.255.128 10000000.01100000.00100010.00001111 & 11111111.11111111.11111111.10000000 ----------------------------------- 10000000.01100000.00100010.00000000 = 128.96.34.0 Forwarding Table for R1
  • 10. CSS 432: Subnetting & CIDR 10 Forwarding Algorithm D = destination IP address for each entry (SubnetNum, SubnetMask, NextHop) D1 = SubnetMask & D if D1 == SubnetNum if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (a router)  Use a default router if nothing matches  Not necessary for all 1s in subnet mask to be contiguous  But highly recommended  Can put multiple subnets on one physical network  Ex. Two or more departments want to have their own subnet and to allocate IP addresses in it while sharing just one physical network  Subnets not visible from the rest of the Internet
  • 11. CSS 432: Subnetting & CIDR 11 Supernetting  Subnetting  Purpose: divide a large class of network numbers into sub network numbers → helps assign addresses efficiently  Problem: an AS with more than 255 hosts still needs class B  Supernetting  Solution: assign block of contiguous network numbers to an institution.  Ex. Assign two class C network numbers instead of one class B network.  Side effect: The information that routers store and exchange increases dramatically  Ex. If an AS has 16 class C network numbers, every Internet router needs 16 entries for this AS. CIDR: Classless Inter-Domain Routing
  • 12. CSS 432: Subnetting & CIDR 12 CIDR  Basic concept of supernetting using class C:  Represent blocks with a single pair  (first_class_C_network_address, count)  Example: (192.5.48.0, 3)  Points to a sequence of blocks: 192.5.48.0, 192.5.49.0 and 192.5.50.0  In practice  No restriction to class C nor use of count  Restrict block sizes to powers of 2  Use a bit mask (CIDR mask) to identify block size  Ex. An AS assigned a block of 2048 (211) contiguous addresses starting at 128.211.168.0 is a collection of 8 (23) class C networks (with 28 addresses each)  Lowest 128.211.168.0 10000000 11010011 10101000 00000000  Highest 128.211.175.255 10000000 11010011 10101111 11111111  CIDR mask (32 – 11 = 21 bits) 11111111 11111111 11111000 00000000  Address Notation: 128.211.168.0/21
  • 13. CSS 432: Subnetting & CIDR 13 Classless Addressing Examples  CIDR allows to aggregate routes repeatedly  Then, what if there is a router capable of forwarding packets both to the regional network and to the corporation Z?  Prefix Next Hop  192.4.0.0/18 the regional network  192.4.48.0/20 corporation Z  To which of those two should we forward a packet destined to 192.4.48.3?  Use Principle of Longest Match Regional network Corporation Y 11000000 00000100 0001 192.4.16.0/20 Corporation X 11000000 00000100 0000 192.4.0.0/20 Internet backbone Border gateway 11000000 00000100 00 192.4.0.0/18 Corporation Z 11000000 00000100 0011 192.4.48.0/20
  • 14. CSS 432: Subnetting & CIDR 14 http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
  • 15. CSS 432: Subnetting & CIDR 15 http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
  • 16. CSS 432: Subnetting & CIDR 16  Reviews  Subnetting: How to address and forwarding algorithm  Supernetting: CIDR, principle of longest match, and classless lookup  Exercises in Chapter 3  Ex. 55 (Subnetting)  Ex. 68 (CIDR)  Ex. 72 (CIDR)  Ex. 74 (CIDR)
  • 17. Ex 55 (Subnetting)  Suppose a router has built up the routing table shown in Figure 3.18. The router can deliver packets directly over interfaces 0 and 1, or it can forward packets to routers R2, R3 or R4. Describe what the router does with a packet addressed to each of the following destinations:  (a) 128.96.39.10  (b) 128.96.40.12  (c) 128.96.40.151  (d) 192.4.153.17  (e) 192.4.153.90 CSS 432: Subnetting & CIDR 17 SubnetNumber SubnetMask NextHop 128.96.39.0 255.255.255.128 Interface 0 128.96.39.128 255.255.255.128 Interface 1 128.96.40.0 255.255.255.128 R2 192.4.153.0 255.255.255.192 R3 (default) 0.0.0.0 R4
  • 18. Ex 68 (CIDR)  An organization has been assigned the prefix 212.1.1/24 (Class C) and wants to form subnets for four departments, with hosts as follows: A: 75 hosts B: 35 hosts C: 20 hosts D: 18 hosts There are 148 hosts in all.  (a) Give a possible arrangement of subnet masks to make this possible  (b) Suggest what the organization might do if department D grows to 32 hosts CSS 432: Subnetting & CIDR 18
  • 19. Ex 72  Table 3.20 is a routing table using CIDR. Address bytes are in hexadecimal. The notation “/12” in “C4.50.0.0/12” denotes a netmask with 12 leading 1 bits: FEF0.0.0. Note that the last 3 entries cover every address and thus serve in lieu of a default route. State to what next hop the following will be delivered:  (a) C4.5E.13.87  (b) C4.5E.22.09  (c) C3.41.80.02  (d) 5E.43.91.12  (e) C4.6D.31.2E  (f) C4.6B.31.2E CSS 432: Subnetting & CIDR 19 Net/MaskLength NextHop C4.50.0.0/12 A C4.5E.10.0/20 B C4.60.0.0/12 C C4.68.0.0/14 D 80.0.0.0/1 E 40.0.0.0/2 F 00.0.0.0/2 G
  • 20. Ex 74  An ISP that has authority to assign addresses from a /16 prefix (an old Class B address) is working with a new company to allocate it a portion of address space based on CIDR. The new company needs IP addresses for machines in 3 divisions of its corporate network: Engineering, Marketing and Sales. These divisions plan to grow as follows:  Engineering has 5 machines as of the start of year 1 and intends to add 1 machine every week  Marketing will never need more than 16 machines  Sales needs 1 machine for every 2 clients  As of the start of year 1, the company has no clients, but the sales model indicates that, by the start of year 2, the company will have 6 clients and each week thereafter  will get one new client with probability 60%,  will lose one client with probability 20%, or  will maintain the same number with probability 20%  (a) What address range would be required to support the company’s growth plans for at least 7 years if Marketing uses all 16 of its addresses and the Sales and Engineering plans behave as expected?  (b) How long would this address assignment last? At the time when the company runs out of address space, how would the addresses be assigned to the three groups?  (c) If, instead of using CIDR addressing, it was necessary to use old-style classful addresses, what options would the new company have in terms of getting address space? CSS 432: Subnetting & CIDR 20