Exploration_Routing_Chapter_8.ppt
-
Upload
raul-barrios-h -
Category
Documents
-
view
7 -
download
0
Transcript of Exploration_Routing_Chapter_8.ppt
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
1/28
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
ITE PC v4.0
Chapter 1 1
The Routing Table: A
Closer Look
Routing Protocols andConceptsChapter 8
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
2/28ITE PC v4.0
Chapter 1 2 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
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
3/28ITE PC v4.0
Chapter 1 3 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
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
4/28ITE PC v4.0
Chapter 1 4 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Level 1 Routes
As soon as the no shutdown command is issued theroute is added to routing table
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
5/28ITE PC v4.0
Chapter 1 5 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Cisco IP routing tableis a hierarchicalstructure
-The reason for this isto speed up lookupprocess
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
6/28ITE PC v4.0
Chapter 1 6 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
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
7/28ITE PC v4.0
Chapter 1 7 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
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
8/28ITE PC v4.0
Chapter 1 8 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Parent and ChildRoutes
-A parent routeis alevel 1route
-A parent routedoesnot containany next-hop IP address orexitinterface information
Routing Table Structure
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
9/28ITE PC v4.0
Chapter 1 9 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Automatic creation of parentroutes
-Occurs any time a subnet isadded to the routing table
Child routes
-Child routes are level 2routes
-Child routes are asubnet of a classfulnetwork address
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
10/28ITE PC v4.0
Chapter 1 10 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Level 2 child routes contain route source & the networkaddress of the route
Level 2 child routesarealso considered ultimate routes
Reason: they contain the next hop address &/or exitinterface
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
11/28ITE PC v4.0
Chapter 1 11 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Structure
Parent & Child Routes: Classless Networks
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
12/28ITE PC v4.0
Chapter 1 12 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 parentroute this route is used to forward packet
Router examines level 2 (child) routes
-If there is a match with level 2 child route thenthat 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 anddefault routes
-If there exists a level 1 supernet or default route match
then Packet is forwarded. If not packet is dropped
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
13/28ITE PC v4.0
Chapter 1 13 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 matchis the one that has the most number of leftmost bitsmatching between the destination IP address and the
route in the routing table.
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
14/28ITE PC v4.0
Chapter 1 14 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.
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
15/28
ITE PC v4.0
Chapter 1 15 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Table Lookup Process
Finding a match between packets destination IP addressand the next route in the routing table
-The figure shows a match between the destination IP of192.168.1.0 and the level one IP of 192.168.1.0 / 24then packet forwarded out s0/0/0
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
16/28
ITE PC v4.0
Chapter 1 16 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 childroutes
-First router examines parent routes for a match
-If a match exists then:
Child routes are examinedChild route chosen is the one with thelongest match
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
17/28
ITE PC v4.0
Chapter 1 17 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior Classful & classless routing protocols
Influence how routing table ispopulated
Classful & classless routing behaviors
Determines how routing table is searchedafter it is filled
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
18/28
ITE PC v4.0
Chapter 1 18 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior Classful Routing
Behavior: no ipclassless
What happens if there isnot a matchwith any
level 2 child routes of theparent?
-Router must determine ifthe routing behavior isclassless or classful
-If router is utilizingclassful routing behavior
then
-Lookup process isterminated and packet
is dropped
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
19/28
ITE PC v4.0
Chapter 1 19 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
Classful Routing BehaviorSearch Process
The reason why the router will not search beyond thechild routes
Originally networks were all classful
This meant an organization could subnet amajor network address and enlighten all theorganizations routers about the subnetting
Therefore, if the subnet was not in therouting table, the subnet did not exist andpacket was dropped
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
20/28
ITE PC v4.0
Chapter 1 20 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
ip Classless
Beginning with IOS 11.3, ip classless was configuredby default
Classless routing behaviorworks for
-Discontiguous networks
And
-CIDR supernets
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
21/28
ITE PC v4.0
Chapter 1 21 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 behaviorin effect then
Search level 1 routesSupernet routes Checked first
-If a match exists then forward packet
Default routes Checked second
If there is no match or no default route thenthe
Packet is dropped
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
22/28
ITE PC v4.0
Chapter 1 22 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
Classless Routing BehaviorSearch Process Router begins search process by finding a match between
destination IP and parent route
After finding the above mentioned match, then there is asearch of the child route
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
23/28
ITE PC v4.0
Chapter 1 23 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
Classless Routing BehaviorSearch Process If no match is found in child routesof previous slide then
Router continues to search the routing table for a matchthat may have fewer bits in the match
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
24/28
ITE PC v4.0
Chapter 1 24 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Routing Behavior
Classfulvs. ClasslessRouting Behavior
-It is recommended to use classless routingbehavior
Reason: so supernet and default routes canbe used whenever needed
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
25/28
ITE PC v4.0
Chapter 1 25 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
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
26/28
ITE PC v4.0
Chapter 1 26 2007 Cisco Systems, Inc. All rights reserved. Cisco Public
SummaryRouting table lookup process
Begins with examining level 1 routesfor best match with packets 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 areexamined
Level 2 route examination
If a match between destination IP and child route found then Packetforwarded -Else
If Router is using classful routing behavior then Packet isdropped -Else
If router is using classless routing behavior then
Router searches Level 1 supernet & default routesfor a match
If a match is found then Packet if forwarded -Else
Packet is dropped
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
27/28
ITE PC v4.0
Chapter 1 27 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 lookbeyond child routes for a lessermatch
Classless routing behavior
-Indicated by the use of the ip classless command
-Router will look beyond child routes for a lesser match
-
5/22/2018 Exploration_Routing_Chapter_8.ppt
28/28