SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
CIDR
Classless Inter-Domain Routing
2
Address Allocation Problem
• Exhaustion of the class B network address space
• The lack of a network class of size which is
appropriate for mid-sizes organization
– class C, with a max of 254 hosts, too small
– While class B, with a max of 65534 hosts, too
large
• Allocate block of class C instead and downside is
more routes entry in routing table
CIDR - Classless Interdomain Routing
• Goals:
– Restructure IP address assignments to increase efficiency
– Hierarchical routing aggregation to minimize route table
entries
Key Concept: The length of the network id (prefix) in IP
addresses is arbitrary/flexible and is defined by the
network hierarchy.
• Consequence:
– Routers use the IP address and the length of the prefix for
forwarding.
– All advertised IP addresses must include a prefix
CIDR Example
• CIDR notation of a network address:
192.0.2.0/18
• "18" says that the first 18 bits are the network part of the
address
• The network part is called the network prefix
• Example:
– Assume that a site requires an IP network domain that can support 1000 IP
host addresses
– With CIDR, the network is assigned a continuous block of 1024 = 210 (>1000)
addresses with a 32-10 = 22-bit long prefix
IPv6 vs. IPv4: Address Comparison
• IPv4 has a maximum of
232  4 billion addresses
• IPv6 has a maximum of
2128 = (232)4  4 billion x 4 billion x 4 billion x 4 billion
addresses
Notation of IPv6 addresses
• Convention: The 128-bit IPv6 address is written as
eight 16-bit integers (using hexadecimal digits for
each integer)
CEDF:BP76:3245:4464:FACE:2E50:3025:DF12
• Short notation:
• Abbreviations of leading zeroes:
CEDF:BP76:0000:0000:009E:0000:3025:DF12
 CEDF:BP76:0:0:9E :0:3025:DF12
• “:0000:0000” can be written as “::”
CEDF:BP76:0:0:FACE:0:3025:DF12  CEDF:BP76::FACE:0:3025:DF12
• IPv6 addresses derived from IPv4 addresses have different formats. Convention
allows to use IPv4 notation for the last 32 bits.
128.143.137.144 -> 0:0:0:0:0:ffff:808F:8990 or
128.143.137.144 -> 2002:808f:8990:0:0:0:0:0 (called 6to4 address)
IPv6 Provider-Based Addresses
• The first IPv6 addresses will be allocated to a provider-
based plan
• Type: Set to “010” for provider-based addresses
• Registry: identifies the agency that registered the
address
The following fields have a variable length (recommeded length in “()”)
• Provider: Id of Internet access provider (16 bits)
• Subscriber: Id of the organization at provider (24 bits)
• Subnetwork: Id of subnet within organization (32 bits)
• Interface: identifies an interface at a node (48 bits)
Registry
ID
Provider
ID
010
Subscriber
ID
Interface
ID
Subnetwork
ID
More on IPv6 Addresses
• The provider-based addresses have a similar
flavor as CIDR addresses
• IPv6 provides address formats for:
– Unicast – identifies a single interface
– Multicast – identifies a group. Datagrams sent to a
multicast address are sent to all members of the
group
– Anycast – identifies a group. Datagrams sent to an
anycast address are sent to one of the members in the
group.
10
Packet Forwarding
11
Hop-by-Hop Packet Forwarding
• Each router has a forwarding table
– Maps destination addresses…
– … to outgoing interfaces
• Upon receiving a packet
– Inspect the destination IP address in the header
– Index into the table
– Determine the outgoing interface
– Forward the packet out that interface
• Then, the next router in the path repeats
– And the packet travels along the path to the
destination
12
Separate Entry Per 24-bit Prefix
• If the router had an entry per 24-bit prefix
– Look only at the top 24 bits of the destination address
– Index into the table to determine the next-hop interface
host host host
LAN 1
...
host host host
LAN
...
router router router
WAN WAN
1.2.3.4 1.2.3.7 1.2.3.156 5.6.7.8 5.6.7.9 5.6.7.212
1.2.3.0/24
5.6.7.0/24
forwarding table
13
Separate Entry Classful Address
• If the router had an entry per classful prefix
– Mixture of Class A, B, and C addresses
– Depends on the first couple of bits of the destination
• Identify the mask automatically from the address
– First bit of 0: class A address (/8)
– First two bits of 10: class B address (/16)
– First three bits of 110: class C address (/24)
• Then, look in the forwarding table for the match
– E.g., 1.2.3.4 maps to 1.2.3.0/24
– Then, look up the entry for 1.2.3.0/24
– … to identify the outgoing interface
Longest Prefix Match Forwarding
• Forwarding tables in IP routers
– Maps each IP prefix to next-hop link(s)
• Destination-based forwarding
– Packet has a destination address
– Router identifies longest-matching prefix
– Cute algorithmic problem: very fast lookups
4.0.0.0/8
4.83.128.0/17
201.10.0.0/21
201.10.6.0/23
126.255.103.0/24
201.10.6.17
destination
forwarding table
Serial0/0.1
outgoing link
Ad

Recommended

PPTX
Internet Protocol version 6
Rekha Yadav
 
PPT
IP Addressing
Kishore Kumar
 
PPT
Ipv4 vs Ipv6 comparison
Shailesh Pachori
 
PPTX
IPv4 and IPv6
saurav kumar mourya
 
PPT
Classless addressing
Iqra Abbas
 
PPTX
Internetworking
Raghu nath
 
PPT
Chapter 19: Logical Addressing
Shafaan Khaliq Bhatti
 
PPTX
Ipv4 and Ipv6
Rishav Bhurtel
 
PPTX
MAC & IP addresses
NetProtocol Xpert
 
PPT
Address resolution protocol
asimnawaz54
 
PPT
Distance vector routing
Siddique Ibrahim
 
PPTX
Application Layer
Dr Shashikant Athawale
 
PDF
Introduction to TCP/IP
Michael Lamont
 
PPTX
Dhcp
Tapan Khilar
 
PPTX
IPV6 ADDRESS
Jothi Lakshmi
 
PPTX
Ipv4 presentation
shakeel khan
 
PPTX
IP Address - IPv4 & IPv6
Adeel Rasheed
 
PPTX
Basics of IP Addressing
Kushal Sheth
 
PPT
Ports & sockets
myrajendra
 
PPTX
Subnet Masks
swascher
 
PPT
Internet control message protocol
asimnawaz54
 
PPTX
Tcp IP Model
Ankur Kumar
 
PPT
IP addressing
tameemyousaf
 
PPT
Ip addressing
sid1322
 
PPTX
IPv4
Dhiraj Mishra
 
PPTX
Mac addresses(media access control)
Ismail Mukiibi
 
PPT
Ppt of socket
Amandeep Kaur
 
PPTX
Sub Netting
Lilesh Pathe
 
PPT
Module3
Naresh Gotad
 
PPT
IP and CIDR ipv6 addressing.ppt
AkkiKumar26
 

More Related Content

What's hot (20)

PPTX
MAC & IP addresses
NetProtocol Xpert
 
PPT
Address resolution protocol
asimnawaz54
 
PPT
Distance vector routing
Siddique Ibrahim
 
PPTX
Application Layer
Dr Shashikant Athawale
 
PDF
Introduction to TCP/IP
Michael Lamont
 
PPTX
Dhcp
Tapan Khilar
 
PPTX
IPV6 ADDRESS
Jothi Lakshmi
 
PPTX
Ipv4 presentation
shakeel khan
 
PPTX
IP Address - IPv4 & IPv6
Adeel Rasheed
 
PPTX
Basics of IP Addressing
Kushal Sheth
 
PPT
Ports & sockets
myrajendra
 
PPTX
Subnet Masks
swascher
 
PPT
Internet control message protocol
asimnawaz54
 
PPTX
Tcp IP Model
Ankur Kumar
 
PPT
IP addressing
tameemyousaf
 
PPT
Ip addressing
sid1322
 
PPTX
IPv4
Dhiraj Mishra
 
PPTX
Mac addresses(media access control)
Ismail Mukiibi
 
PPT
Ppt of socket
Amandeep Kaur
 
PPTX
Sub Netting
Lilesh Pathe
 
MAC & IP addresses
NetProtocol Xpert
 
Address resolution protocol
asimnawaz54
 
Distance vector routing
Siddique Ibrahim
 
Application Layer
Dr Shashikant Athawale
 
Introduction to TCP/IP
Michael Lamont
 
IPV6 ADDRESS
Jothi Lakshmi
 
Ipv4 presentation
shakeel khan
 
IP Address - IPv4 & IPv6
Adeel Rasheed
 
Basics of IP Addressing
Kushal Sheth
 
Ports & sockets
myrajendra
 
Subnet Masks
swascher
 
Internet control message protocol
asimnawaz54
 
Tcp IP Model
Ankur Kumar
 
IP addressing
tameemyousaf
 
Ip addressing
sid1322
 
Mac addresses(media access control)
Ismail Mukiibi
 
Ppt of socket
Amandeep Kaur
 
Sub Netting
Lilesh Pathe
 

Similar to Classless inter domain routing (20)

PPT
Module3
Naresh Gotad
 
PPT
IP and CIDR ipv6 addressing.ppt
AkkiKumar26
 
PPT
module03-ipaddr.ppt
ImXaib
 
PPT
module03-ipaddr ipv6 addressing in net.ppt
ubaidullah75790
 
PPT
this is a presentationon ip and cidr.ppt
BlackHat41
 
PPT
IP Address
Sameer Alam
 
PPT
IPV6.ppt
byuvashreeitITDept
 
PPTX
Ramakant tyagi presentation on ip addressing
Bharat Sanchar Nigam Limited
 
DOCX
Subnet Design
Bibhu Prasad Sahu
 
PPTX
NP - Unit 2 - Internet Addressing, ARP and RARP
hamsa nandhini
 
PPTX
Ipv4 & ipv6
urooj ehsan
 
PPT
Basics on IPV4 & IPv6 with comparison.ppt
Mugabo4
 
PPTX
network-addressing.pptx
FidaBaloch8
 
PPTX
Network layer. IP Addressing Part 1.pptx
MujtabaVlogs
 
PPTX
Network.pptx
SAMANTHACARDOSO13
 
PPTX
Network.pptx
Chrysler Kayce
 
PPTX
Network.pptx
ShivRaj Shekhawat
 
PPTX
Network
wacasr12
 
PPT
Basics on theory how to handle IPV4 & IPv6.ppt
SamPascal1
 
PPTX
IPv4- Internet Protocol version 4
praveenps17
 
Module3
Naresh Gotad
 
IP and CIDR ipv6 addressing.ppt
AkkiKumar26
 
module03-ipaddr.ppt
ImXaib
 
module03-ipaddr ipv6 addressing in net.ppt
ubaidullah75790
 
this is a presentationon ip and cidr.ppt
BlackHat41
 
IP Address
Sameer Alam
 
Ramakant tyagi presentation on ip addressing
Bharat Sanchar Nigam Limited
 
Subnet Design
Bibhu Prasad Sahu
 
NP - Unit 2 - Internet Addressing, ARP and RARP
hamsa nandhini
 
Ipv4 & ipv6
urooj ehsan
 
Basics on IPV4 & IPv6 with comparison.ppt
Mugabo4
 
network-addressing.pptx
FidaBaloch8
 
Network layer. IP Addressing Part 1.pptx
MujtabaVlogs
 
Network.pptx
SAMANTHACARDOSO13
 
Network.pptx
Chrysler Kayce
 
Network.pptx
ShivRaj Shekhawat
 
Network
wacasr12
 
Basics on theory how to handle IPV4 & IPv6.ppt
SamPascal1
 
IPv4- Internet Protocol version 4
praveenps17
 
Ad

Recently uploaded (20)

PPTX
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
PDF
Rapid Prototyping for XR: Lecture 3 - Video and Paper Prototyping
Mark Billinghurst
 
PDF
Complete guidance book of Asp.Net Web API
Shabista Imam
 
PDF
Validating a Citizen Observatories enabling Platform by completing a Citizen ...
Diego López-de-Ipiña González-de-Artaza
 
PPT
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
PDF
International Journal of Advanced Information Technology (IJAIT)
ijait
 
PDF
Complete University of Calculus :: 2nd edition
Shabista Imam
 
PPTX
Structural Wonderers_new and ancient.pptx
nikopapa113
 
PPTX
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
PPTX
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
PDF
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
PDF
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
PPTX
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
PPT
20CE404-Soil Mechanics - Slide Share PPT
saravananr808639
 
PPTX
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
PDF
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
PDF
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
PPTX
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 
PDF
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
Rapid Prototyping for XR: Lecture 3 - Video and Paper Prototyping
Mark Billinghurst
 
Complete guidance book of Asp.Net Web API
Shabista Imam
 
Validating a Citizen Observatories enabling Platform by completing a Citizen ...
Diego López-de-Ipiña González-de-Artaza
 
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
International Journal of Advanced Information Technology (IJAIT)
ijait
 
Complete University of Calculus :: 2nd edition
Shabista Imam
 
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
 
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
Rapid Prototyping for XR: Lecture 2 - Low Fidelity Prototyping.
Mark Billinghurst
 
NEW Strengthened Senior High School Gen Math.pptx
DaryllWhere
 
20CE404-Soil Mechanics - Slide Share PPT
saravananr808639
 
Deep Learning for Natural Language Processing_FDP on 16 June 2025 MITS.pptx
resming1
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
Data Structures Module 3 Binary Trees Binary Search Trees Tree Traversals AVL...
resming1
 
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
Ad

Classless inter domain routing

  • 2. 2 Address Allocation Problem • Exhaustion of the class B network address space • The lack of a network class of size which is appropriate for mid-sizes organization – class C, with a max of 254 hosts, too small – While class B, with a max of 65534 hosts, too large • Allocate block of class C instead and downside is more routes entry in routing table
  • 3. CIDR - Classless Interdomain Routing • Goals: – Restructure IP address assignments to increase efficiency – Hierarchical routing aggregation to minimize route table entries Key Concept: The length of the network id (prefix) in IP addresses is arbitrary/flexible and is defined by the network hierarchy. • Consequence: – Routers use the IP address and the length of the prefix for forwarding. – All advertised IP addresses must include a prefix
  • 4. CIDR Example • CIDR notation of a network address: 192.0.2.0/18 • "18" says that the first 18 bits are the network part of the address • The network part is called the network prefix • Example: – Assume that a site requires an IP network domain that can support 1000 IP host addresses – With CIDR, the network is assigned a continuous block of 1024 = 210 (>1000) addresses with a 32-10 = 22-bit long prefix
  • 5. IPv6 vs. IPv4: Address Comparison • IPv4 has a maximum of 232  4 billion addresses • IPv6 has a maximum of 2128 = (232)4  4 billion x 4 billion x 4 billion x 4 billion addresses
  • 6. Notation of IPv6 addresses • Convention: The 128-bit IPv6 address is written as eight 16-bit integers (using hexadecimal digits for each integer) CEDF:BP76:3245:4464:FACE:2E50:3025:DF12 • Short notation: • Abbreviations of leading zeroes: CEDF:BP76:0000:0000:009E:0000:3025:DF12  CEDF:BP76:0:0:9E :0:3025:DF12 • “:0000:0000” can be written as “::” CEDF:BP76:0:0:FACE:0:3025:DF12  CEDF:BP76::FACE:0:3025:DF12 • IPv6 addresses derived from IPv4 addresses have different formats. Convention allows to use IPv4 notation for the last 32 bits. 128.143.137.144 -> 0:0:0:0:0:ffff:808F:8990 or 128.143.137.144 -> 2002:808f:8990:0:0:0:0:0 (called 6to4 address)
  • 7. IPv6 Provider-Based Addresses • The first IPv6 addresses will be allocated to a provider- based plan • Type: Set to “010” for provider-based addresses • Registry: identifies the agency that registered the address The following fields have a variable length (recommeded length in “()”) • Provider: Id of Internet access provider (16 bits) • Subscriber: Id of the organization at provider (24 bits) • Subnetwork: Id of subnet within organization (32 bits) • Interface: identifies an interface at a node (48 bits) Registry ID Provider ID 010 Subscriber ID Interface ID Subnetwork ID
  • 8. More on IPv6 Addresses • The provider-based addresses have a similar flavor as CIDR addresses • IPv6 provides address formats for: – Unicast – identifies a single interface – Multicast – identifies a group. Datagrams sent to a multicast address are sent to all members of the group – Anycast – identifies a group. Datagrams sent to an anycast address are sent to one of the members in the group.
  • 10. 11 Hop-by-Hop Packet Forwarding • Each router has a forwarding table – Maps destination addresses… – … to outgoing interfaces • Upon receiving a packet – Inspect the destination IP address in the header – Index into the table – Determine the outgoing interface – Forward the packet out that interface • Then, the next router in the path repeats – And the packet travels along the path to the destination
  • 11. 12 Separate Entry Per 24-bit Prefix • If the router had an entry per 24-bit prefix – Look only at the top 24 bits of the destination address – Index into the table to determine the next-hop interface host host host LAN 1 ... host host host LAN ... router router router WAN WAN 1.2.3.4 1.2.3.7 1.2.3.156 5.6.7.8 5.6.7.9 5.6.7.212 1.2.3.0/24 5.6.7.0/24 forwarding table
  • 12. 13 Separate Entry Classful Address • If the router had an entry per classful prefix – Mixture of Class A, B, and C addresses – Depends on the first couple of bits of the destination • Identify the mask automatically from the address – First bit of 0: class A address (/8) – First two bits of 10: class B address (/16) – First three bits of 110: class C address (/24) • Then, look in the forwarding table for the match – E.g., 1.2.3.4 maps to 1.2.3.0/24 – Then, look up the entry for 1.2.3.0/24 – … to identify the outgoing interface
  • 13. Longest Prefix Match Forwarding • Forwarding tables in IP routers – Maps each IP prefix to next-hop link(s) • Destination-based forwarding – Packet has a destination address – Router identifies longest-matching prefix – Cute algorithmic problem: very fast lookups 4.0.0.0/8 4.83.128.0/17 201.10.0.0/21 201.10.6.0/23 126.255.103.0/24 201.10.6.17 destination forwarding table Serial0/0.1 outgoing link