SlideShare a Scribd company logo
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 1
The Routing Table: A
Closer Look
Routing Protocols and
Concepts – Chapter 8
ITE PC v4.0
Chapter 1 2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Objectives
 Describe the various route types found in the routing
table structure
 Describe the routing table lookup process.
 Describe routing behavior in routed networks.
ITE PC v4.0
Chapter 1 3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Introduction
 Chapter Focus
-Structure of the routing table
-Lookup process of the routing table
-Classless and classful routing behaviors
ITE PC v4.0
Chapter 1 4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Lab Topology
 3 router setup
-R1 and R2 share a common 172.16.0.0/16 network with
172.16.0.0/24 subnets.
-R2 and R3 are connected by the 192.168.1.0/24 network.
-R3 also has a 172.16.4.0/24 subnet, which is disconnected, or
discontiguous, from the 172.16.0.0 network that R1 and R2
share.
ITE PC v4.0
Chapter 1 5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Routing table entries come from the following sources
-Directly connected networks
-Static routes
-Dynamic routing protocols
ITE PC v4.0
Chapter 1 6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Level 1 Routes
 As soon as the no shutdown command is issued the
route is added to routing table
ITE PC v4.0
Chapter 1 7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Cisco IP routing table
is a hierarchical
structure
-The reason for this is
to speed up lookup
process
ITE PC v4.0
Chapter 1 8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Level 1 Routes
-Have a subnet mask equal to or less than the
classful mask of the network address.
 Level 1 route can function as
-Default route
-Supernet route
-Network route
ITE PC v4.0
Chapter 1 9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Level 1 Routes
-Ultimate Route
Includes either:
-A next-hop address
OR
-An exit interface
ITE PC v4.0
Chapter 1 10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
 Parent and Child
Routes
-A parent route is a
level 1 route
-A parent route does
not contain any next-
hop IP address or exit
interface information
Routing Table Structure
ITE PC v4.0
Chapter 1 11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Automatic creation of
parent routes
-Occurs any time a
subnet is added to the
routing table
 Child routes
-Child routes are level
2 routes
-Child routes are a
subnet of a classful
network address
ITE PC v4.0
Chapter 1 12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Level 2 child routes contain route source & the network
address of the route
 Level 2 child routes are also considered ultimate
routes
Reason: they contain the next hop address
&/or exit interface
ITE PC v4.0
Chapter 1 13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Both child routes have the same subnet mask
-This means the parent route maintains the /24 mask
ITE PC v4.0
Chapter 1 14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Diagram illustrates 2 child networks belonging to the
parent route 172.16.0.0 / 24
ITE PC v4.0
Chapter 1 15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 In classless networks, child routes do not have to share
the same subnet mask
ITE PC v4.0
Chapter 1 16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Network
Type
Parent route’s
Classful mask is
Displayed
Term
variably
subnetted
is seen in parent
route in routing
table
Includes the
# of different
masks of
child routes
Subnet mask
included
with each
child route
entry
Class-
ful
No No No No
Class-
less
Yes Yes Yes Yes
 Parent & Child Routes: Classless Networks
ITE PC v4.0
Chapter 1 17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
 Parent & Child Routes: Classless Networks
ITE PC v4.0
Chapter 1 18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 The Route Lookup Process
 Examine level 1 routes
-If best match a level 1 ultimate route and is not a parent
route this route is used to forward packet
 Router examines level 2 (child) routes
-If there is a match with level 2 child route then
that subnet is used to forward packet
-If no match then
determine routing behavior type
 Router determines classful or classless routing behavior
-If classful then
packet is dropped
-If classless then router searches level one supernet and
default routes
-If there exists a level 1 supernet or default route match
then Packet is forwarded. If not packet is dropped
ITE PC v4.0
Chapter 1 19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 Longest Match: Level 1 Network Routes
–Best match is also known as the longest match
–The best match is the one that has the most number of left
most bits matching between the destination IP address and the
route in the routing table.
ITE PC v4.0
Chapter 1 20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 Finding the subnet mask
used to determine the
longest match
Scenario:
–PC1 pings 192.168.1.2
–Router examines level 1
route for best match
–There exist a match
between192.168.1.2 &
192.168.1.0 / 24
–Router forwards packets out
s0/0/0
ITE PC v4.0
Chapter 1 21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 The process of matching
-1st there must be a match made between the
parent route & destination IP
-If a match is made then an attempt at finding a
match between the destination IP and the child route
is made.
ITE PC v4.0
Chapter 1 22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 Finding a match between packet’s destination IP address
and the next route in the routing table
-The figure shows a match between the destination IP of
192.168.1.0 and the level one IP of 192.168.1.0 / 24
then packet forwarded out s0/0/0
ITE PC v4.0
Chapter 1 23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 Level 1 Parent & Level 2 Child Routes
 Before level 2 child routes are examined
-There must be a match between classful level one
parent route and destination IP address.
ITE PC v4.0
Chapter 1 24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 After the match with parent route has been made Level 2 child
routes will be examined for a match
-Route lookup process searches for child
routes with a match with destination IP
ITE PC v4.0
Chapter 1 25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 How a router finds a match with one of the level 2 child
routes
-First router examines parent routes for a match
-If a match exists then:
Child routes are examined
Child route chosen is the one with the
longest match
ITE PC v4.0
Chapter 1 26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
 Example: Route Lookup
Process with VLSM
-The use of VLSM does not
change the lookup process
-If there is a match between
destination IP address and the
level 1 parent route then
-Level 2 child routes will be
searched
ITE PC v4.0
Chapter 1 27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classful & classless routing protocols
Influence how routing table is populated
 Classful & classless routing behaviors
Determines how routing table is searched after it is
filled
ITE PC v4.0
Chapter 1 28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classful Routing
Behavior: no ip
classless
 What happens if there is
not a match with any
level 2 child routes of the
parent?
-Router must determine if
the routing behavior is
classless or classful
-If router is utilizing classful
routing behavior then
-Lookup process is
terminated and
packet is dropped
ITE PC v4.0
Chapter 1 29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classful Routing Behavior – Search Process
 An example of when classful routing behavior is in effect and
why the router drops the Packet
-The destination’s subnet mask is a /24 and none of the child
routes left most bits match the first 24 bits. This means packet
is dropped
ITE PC v4.0
Chapter 1 30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classful Routing Behavior – Search Process
 The reason why the router will not search beyond the
child routes
Originally networks were all classful
This meant an organization could subnet a
major network address and “enlighten” all the
organization’s routers about the subnetting
Therefore, if the subnet was not in the
routing table, the subnet did not exist and
packet was dropped
ITE PC v4.0
Chapter 1 31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 ip Classless
 Beginning with IOS 11.3, ip classless was configured by
default
 Classless routing behavior works for
-Discontiguous networks
And
-CIDR supernets
ITE PC v4.0
Chapter 1 32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classless Routing Behavior: ip classless
 Route lookup process when ip classless is in use
-If classless routing behavior in effect then
Search level 1 routes
Supernet routes Checked first
-If a match exists then forward packet
Default routes Checked second
If there is no match or no default
route then the
Packet is dropped
ITE PC v4.0
Chapter 1 33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classless Routing Behavior – Search Process
 Router begins search process by finding a match between
destination IP and parent route
After finding the above mentioned match, then
there is a search of the child route
ITE PC v4.0
Chapter 1 34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classless Routing Behavior – Search Process
 If no match is found in child routes of previous slide then
Router continues to search the routing table for a
match that may have fewer bits in the match
ITE PC v4.0
Chapter 1 35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
 Classful vs. Classless Routing Behavior
-It is recommended to use classless routing
behavior
Reason: so supernet and default routes can
be used whenever needed
ITE PC v4.0
Chapter 1 36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
Content/structure of a routing table
 Routing table entries
-Directly connected networks
-Static route
-Dynamic routing protocols
 Routing tables are hierarchical
-Level 1 route
Have a subnet mask that is less than or equal to
classful subnet mask for the network address
-Level 2 route
These are subnets of a network address
ITE PC v4.0
Chapter 1 37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
Routing table lookup process
 Begins with examining level 1 routes for best match with packet’s destination IP
 If the best match = an ultimate route then
-Packet is forwarded -Else-
-Parent route is examined
If parent route & destination IP match then Level 2 (child)
routes are examined
Level 2 route examination
 If a match between destination IP and child route found then
Packet forwarded -Else
 If Router is using classful routing behavior then
Packet is dropped -Else
 If router is using classless routing behavior then
Router searches Level 1 supernet & default routes for a
match
 If a match is found then Packet if forwarded -Else
 Packet is dropped
ITE PC v4.0
Chapter 1 38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Summary
 Routing behaviors
-This refers to how a routing table is searched
 Classful routing behavior
-Indicated by the use of the no ip classless command
-Router will not look beyond child routes for a lesser
match
 Classless routing behavior
-Indicated by the use of the ip classless command
-Router will look beyond child routes for a lesser match
ITE PC v4.0
Chapter 1 39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

More Related Content

PPT
CCNA Exploration 2 - Chapter 11
PPT
Exploration routing chapter_10
PPT
Exploration routing chapter_11
PPT
Exploration routing chapter_8
PPT
CCNA Exploration 2 - Chapter 5
PPT
Exploration routing chapter_3
PPT
CCNA Exploration 2 - Chapter 10
PPT
Exploration routing chapter_9
CCNA Exploration 2 - Chapter 11
Exploration routing chapter_10
Exploration routing chapter_11
Exploration routing chapter_8
CCNA Exploration 2 - Chapter 5
Exploration routing chapter_3
CCNA Exploration 2 - Chapter 10
Exploration routing chapter_9

What's hot (20)

PPT
CCNA Exploration 2 - Chapter 6
PPT
CCNA Exploration 2 - Chapter 4
PPT
CCNA Exploration 2 - Chapter 2
PPT
Exploration routing chapter_6
PPT
Exploration routing chapter_4
PPT
Exploration routing chapter_2
PPT
CCNA Exploration 2 - Chapter 9
PPT
Exploration routing chapter_5
PPT
Exploration routing chapter 10 & 11
PPT
CCNA Exploration 2 - Chapter 3
PPT
Exploration routing chapter 4
PPT
CCNA Exploration 4 - Chapter 8
PPTX
CCNA2 Verson6 Chapter3
PPTX
CCNA 2 Routing and Switching v5.0 Chapter 6
PPTX
CCNA3 Verson6 Chapter9
PPTX
CCNA3 Verson6 Chapter7
PPT
CCNA Exploration 3 - Chapter 6
PPT
Exploration Routing Chapter 7
PPTX
CCNP ROUTE V7 CH7
PPTX
CCNA3 Verson6 Chapter5
CCNA Exploration 2 - Chapter 6
CCNA Exploration 2 - Chapter 4
CCNA Exploration 2 - Chapter 2
Exploration routing chapter_6
Exploration routing chapter_4
Exploration routing chapter_2
CCNA Exploration 2 - Chapter 9
Exploration routing chapter_5
Exploration routing chapter 10 & 11
CCNA Exploration 2 - Chapter 3
Exploration routing chapter 4
CCNA Exploration 4 - Chapter 8
CCNA2 Verson6 Chapter3
CCNA 2 Routing and Switching v5.0 Chapter 6
CCNA3 Verson6 Chapter9
CCNA3 Verson6 Chapter7
CCNA Exploration 3 - Chapter 6
Exploration Routing Chapter 7
CCNP ROUTE V7 CH7
CCNA3 Verson6 Chapter5
Ad

Similar to CCNA Exploration 2 - Chapter 8 (20)

PPT
Routing Protocols
PPT
Exploration routing chapter_1
PDF
Link state protocols.ppt
PDF
Cisco Router Basic Configuration
PPT
CCNA Exploration 2 - Chapter 1
PDF
Week3 part 2
PPT
Distance Vector Routing Protocols.ppt
PPT
Routing Protocols and Concepts – Chapter 2
PPTX
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 3
PPT
Static Routing
PDF
Exploration_Routing_Chapter_1 ppt for learning Networking
PPT
OSI Network Layer
PPTX
Networking
PPTX
Cisco chapter
PPT
CCNA Exploration 1 - Chapter 5
PPT
Chapter 1 Overview - Introduction to Routing and Packet Forwarding
PPT
ch2 day 1 -Communicating over the Network---2.ppt
PPT
Routing Protocols and Concepts – Chapter 3
PPT
Network troubeshooting knowlege and guide
Routing Protocols
Exploration routing chapter_1
Link state protocols.ppt
Cisco Router Basic Configuration
CCNA Exploration 2 - Chapter 1
Week3 part 2
Distance Vector Routing Protocols.ppt
Routing Protocols and Concepts – Chapter 2
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 3
Static Routing
Exploration_Routing_Chapter_1 ppt for learning Networking
OSI Network Layer
Networking
Cisco chapter
CCNA Exploration 1 - Chapter 5
Chapter 1 Overview - Introduction to Routing and Packet Forwarding
ch2 day 1 -Communicating over the Network---2.ppt
Routing Protocols and Concepts – Chapter 3
Network troubeshooting knowlege and guide
Ad

More from Irsandi Hasan (20)

PPTX
CCNA v6.0 ITN - Chapter 11
PPTX
CCNA v6.0 ITN - Chapter 10
PPTX
CCNA v6.0 ITN - Chapter 09
PPTX
CCNA v6.0 ITN - Chapter 08
PPTX
CCNA v6.0 ITN - Chapter 07
PPTX
CCNA v6.0 ITN - Chapter 06
PPTX
CCNA v6.0 ITN - Chapter 05
PPTX
CCNA v6.0 ITN - Chapter 04
PPTX
CCNA v6.0 ITN - Chapter 03
PPTX
CCNA v6.0 ITN - Chapter 02
PPTX
CCNA v6.0 ITN - Chapter 01
PPTX
VMware vShield - Overview
PPTX
CCNA RS_NB - Chapter 11
PPTX
CCNA RS_NB - Chapter 10
PPTX
CCNA RS_NB - Chapter 9
PPTX
CCNA RS_NB - Chapter 8
PPTX
CCNA RS_NB - Chapter 7
PPTX
CCNA RS_NB - Chapter 6
PPTX
CCNA RS_NB - Chapter 5
PPTX
CCNA RS_NB - Chapter 4
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 09
CCNA v6.0 ITN - Chapter 08
CCNA v6.0 ITN - Chapter 07
CCNA v6.0 ITN - Chapter 06
CCNA v6.0 ITN - Chapter 05
CCNA v6.0 ITN - Chapter 04
CCNA v6.0 ITN - Chapter 03
CCNA v6.0 ITN - Chapter 02
CCNA v6.0 ITN - Chapter 01
VMware vShield - Overview
CCNA RS_NB - Chapter 11
CCNA RS_NB - Chapter 10
CCNA RS_NB - Chapter 9
CCNA RS_NB - Chapter 8
CCNA RS_NB - Chapter 7
CCNA RS_NB - Chapter 6
CCNA RS_NB - Chapter 5
CCNA RS_NB - Chapter 4

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Cloud computing and distributed systems.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectroscopy.pptx food analysis technology
Cloud computing and distributed systems.
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy

CCNA Exploration 2 - Chapter 8

  • 1. © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public ITE PC v4.0 Chapter 1 1 The Routing Table: A Closer Look Routing Protocols and Concepts – Chapter 8
  • 2. ITE PC v4.0 Chapter 1 2© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Objectives  Describe the various route types found in the routing table structure  Describe the routing table lookup process.  Describe routing behavior in routed networks.
  • 3. ITE PC v4.0 Chapter 1 3© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Introduction  Chapter Focus -Structure of the routing table -Lookup process of the routing table -Classless and classful routing behaviors
  • 4. ITE PC v4.0 Chapter 1 4© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Lab Topology  3 router setup -R1 and R2 share a common 172.16.0.0/16 network with 172.16.0.0/24 subnets. -R2 and R3 are connected by the 192.168.1.0/24 network. -R3 also has a 172.16.4.0/24 subnet, which is disconnected, or discontiguous, from the 172.16.0.0 network that R1 and R2 share.
  • 5. ITE PC v4.0 Chapter 1 5© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Routing table entries come from the following sources -Directly connected networks -Static routes -Dynamic routing protocols
  • 6. ITE PC v4.0 Chapter 1 6© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Level 1 Routes  As soon as the no shutdown command is issued the route is added to routing table
  • 7. ITE PC v4.0 Chapter 1 7© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Cisco IP routing table is a hierarchical structure -The reason for this is to speed up lookup process
  • 8. ITE PC v4.0 Chapter 1 8© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Level 1 Routes -Have a subnet mask equal to or less than the classful mask of the network address.  Level 1 route can function as -Default route -Supernet route -Network route
  • 9. ITE PC v4.0 Chapter 1 9© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Level 1 Routes -Ultimate Route Includes either: -A next-hop address OR -An exit interface
  • 10. ITE PC v4.0 Chapter 1 10© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public  Parent and Child Routes -A parent route is a level 1 route -A parent route does not contain any next- hop IP address or exit interface information Routing Table Structure
  • 11. ITE PC v4.0 Chapter 1 11© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Automatic creation of parent routes -Occurs any time a subnet is added to the routing table  Child routes -Child routes are level 2 routes -Child routes are a subnet of a classful network address
  • 12. ITE PC v4.0 Chapter 1 12© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Level 2 child routes contain route source & the network address of the route  Level 2 child routes are also considered ultimate routes Reason: they contain the next hop address &/or exit interface
  • 13. ITE PC v4.0 Chapter 1 13© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Both child routes have the same subnet mask -This means the parent route maintains the /24 mask
  • 14. ITE PC v4.0 Chapter 1 14© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Diagram illustrates 2 child networks belonging to the parent route 172.16.0.0 / 24
  • 15. ITE PC v4.0 Chapter 1 15© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  In classless networks, child routes do not have to share the same subnet mask
  • 16. ITE PC v4.0 Chapter 1 16© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure Network Type Parent route’s Classful mask is Displayed Term variably subnetted is seen in parent route in routing table Includes the # of different masks of child routes Subnet mask included with each child route entry Class- ful No No No No Class- less Yes Yes Yes Yes  Parent & Child Routes: Classless Networks
  • 17. ITE PC v4.0 Chapter 1 17© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Structure  Parent & Child Routes: Classless Networks
  • 18. ITE PC v4.0 Chapter 1 18© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  The Route Lookup Process  Examine level 1 routes -If best match a level 1 ultimate route and is not a parent route this route is used to forward packet  Router examines level 2 (child) routes -If there is a match with level 2 child route then that subnet is used to forward packet -If no match then determine routing behavior type  Router determines classful or classless routing behavior -If classful then packet is dropped -If classless then router searches level one supernet and default routes -If there exists a level 1 supernet or default route match then Packet is forwarded. If not packet is dropped
  • 19. ITE PC v4.0 Chapter 1 19© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  Longest Match: Level 1 Network Routes –Best match is also known as the longest match –The best match is the one that has the most number of left most bits matching between the destination IP address and the route in the routing table.
  • 20. ITE PC v4.0 Chapter 1 20© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  Finding the subnet mask used to determine the longest match Scenario: –PC1 pings 192.168.1.2 –Router examines level 1 route for best match –There exist a match between192.168.1.2 & 192.168.1.0 / 24 –Router forwards packets out s0/0/0
  • 21. ITE PC v4.0 Chapter 1 21© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  The process of matching -1st there must be a match made between the parent route & destination IP -If a match is made then an attempt at finding a match between the destination IP and the child route is made.
  • 22. ITE PC v4.0 Chapter 1 22© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  Finding a match between packet’s destination IP address and the next route in the routing table -The figure shows a match between the destination IP of 192.168.1.0 and the level one IP of 192.168.1.0 / 24 then packet forwarded out s0/0/0
  • 23. ITE PC v4.0 Chapter 1 23© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  Level 1 Parent & Level 2 Child Routes  Before level 2 child routes are examined -There must be a match between classful level one parent route and destination IP address.
  • 24. ITE PC v4.0 Chapter 1 24© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  After the match with parent route has been made Level 2 child routes will be examined for a match -Route lookup process searches for child routes with a match with destination IP
  • 25. ITE PC v4.0 Chapter 1 25© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  How a router finds a match with one of the level 2 child routes -First router examines parent routes for a match -If a match exists then: Child routes are examined Child route chosen is the one with the longest match
  • 26. ITE PC v4.0 Chapter 1 26© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Table Lookup Process  Example: Route Lookup Process with VLSM -The use of VLSM does not change the lookup process -If there is a match between destination IP address and the level 1 parent route then -Level 2 child routes will be searched
  • 27. ITE PC v4.0 Chapter 1 27© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classful & classless routing protocols Influence how routing table is populated  Classful & classless routing behaviors Determines how routing table is searched after it is filled
  • 28. ITE PC v4.0 Chapter 1 28© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classful Routing Behavior: no ip classless  What happens if there is not a match with any level 2 child routes of the parent? -Router must determine if the routing behavior is classless or classful -If router is utilizing classful routing behavior then -Lookup process is terminated and packet is dropped
  • 29. ITE PC v4.0 Chapter 1 29© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classful Routing Behavior – Search Process  An example of when classful routing behavior is in effect and why the router drops the Packet -The destination’s subnet mask is a /24 and none of the child routes left most bits match the first 24 bits. This means packet is dropped
  • 30. ITE PC v4.0 Chapter 1 30© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classful Routing Behavior – Search Process  The reason why the router will not search beyond the child routes Originally networks were all classful This meant an organization could subnet a major network address and “enlighten” all the organization’s routers about the subnetting Therefore, if the subnet was not in the routing table, the subnet did not exist and packet was dropped
  • 31. ITE PC v4.0 Chapter 1 31© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  ip Classless  Beginning with IOS 11.3, ip classless was configured by default  Classless routing behavior works for -Discontiguous networks And -CIDR supernets
  • 32. ITE PC v4.0 Chapter 1 32© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classless Routing Behavior: ip classless  Route lookup process when ip classless is in use -If classless routing behavior in effect then Search level 1 routes Supernet routes Checked first -If a match exists then forward packet Default routes Checked second If there is no match or no default route then the Packet is dropped
  • 33. ITE PC v4.0 Chapter 1 33© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classless Routing Behavior – Search Process  Router begins search process by finding a match between destination IP and parent route After finding the above mentioned match, then there is a search of the child route
  • 34. ITE PC v4.0 Chapter 1 34© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classless Routing Behavior – Search Process  If no match is found in child routes of previous slide then Router continues to search the routing table for a match that may have fewer bits in the match
  • 35. ITE PC v4.0 Chapter 1 35© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Routing Behavior  Classful vs. Classless Routing Behavior -It is recommended to use classless routing behavior Reason: so supernet and default routes can be used whenever needed
  • 36. ITE PC v4.0 Chapter 1 36© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary Content/structure of a routing table  Routing table entries -Directly connected networks -Static route -Dynamic routing protocols  Routing tables are hierarchical -Level 1 route Have a subnet mask that is less than or equal to classful subnet mask for the network address -Level 2 route These are subnets of a network address
  • 37. ITE PC v4.0 Chapter 1 37© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary Routing table lookup process  Begins with examining level 1 routes for best match with packet’s destination IP  If the best match = an ultimate route then -Packet is forwarded -Else- -Parent route is examined If parent route & destination IP match then Level 2 (child) routes are examined Level 2 route examination  If a match between destination IP and child route found then Packet forwarded -Else  If Router is using classful routing behavior then Packet is dropped -Else  If router is using classless routing behavior then Router searches Level 1 supernet & default routes for a match  If a match is found then Packet if forwarded -Else  Packet is dropped
  • 38. ITE PC v4.0 Chapter 1 38© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public Summary  Routing behaviors -This refers to how a routing table is searched  Classful routing behavior -Indicated by the use of the no ip classless command -Router will not look beyond child routes for a lesser match  Classless routing behavior -Indicated by the use of the ip classless command -Router will look beyond child routes for a lesser match
  • 39. ITE PC v4.0 Chapter 1 39© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public