Published on

Published in: Education, Technology, Sports
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. Chapter 8THE ROUTING TABLE: A CLOSER LOOK Reporters: Norly A. Estopa Namerto C. Medura Andy D. Ando Junrey F. Layao
  2. 2. THE ROUTING TABLE: A CLOSER LOOKObjectives: - Describe the various route types found in the routing table - Describe the routing table look-up process - Describe the routing behavior in routed networks - Determine the parent route and child route
  3. 3. This chapter analyzes the lookup process of the routingtable. Discuss classful routing behavior, as well as classless routingbehavior, which uses the no ip classless and ip classless commands. Also, will take a closer look at the routing table. This chapterfocuses on the structure of Ciscos IP routing table. Examine theformat of the routing table and learn about level 1 and level 2 routes.
  4. 4. Routing Table EntriesThe sample routing table in thefigure consists of route entries fromthe following sources:Directly connected networksStatic routesDynamic routing protocolsThe source of the route does notaffect the structure of the routingtable. The figure shows a samplerouting table with directlyconnected, static, and dynamicroutes. Notice that the Note: The routing table hierarchy in Cisco IOS was172.16.0.0/24 subnets have a originally implemented with the classful routingcombination of all three types of scheme. Although the routing table incorporates bothrouting sources. classful and classless addressing, the overall structure is still built around this classful scheme.
  5. 5. Level 1 Routes Routers R1 and R3 already have their interfaces configured with the appropriateIP addresses and subnet masks. We will now configure the interfaces for R2 and use debugip routing to view the routing table process that is used to add these entries. The figure shows what happens as the Serial 0/0/1 interface for R2 is configuredwith the address. As soon as no shutdown is entered, the output fromdebug ip routing shows that this route has been added to the routing table.
  6. 6. Level 1 RoutesA level 1 route can function as a:Default route - A default route is a static route with the address route - A supernet route is a network address with a mask less than the classful mask.Network route - A network route is a route that has a subnet mask equal to that of the classful mask. A network route can also be a parent route. Parent C is directly connected, routes will be discussed in the Serial0/0/1 next section.
  7. 7. Ultimate RouteThe level 1 route192.168.1.0/24 can be furtherdefined as an ultimate route.An ultimate route is a routethat includes: - either a next-hop IP address (another path) - and/or an exit interfaceThe directly connectednetwork is alevel 1 network route becauseit has a subnet mask that is the C is directly connected,same as its classful mask. This Serial0/0/1same route is also an ultimateroute because it contains the We will see in the next topic that level 2exit interface Serial 0/0/1. routes are also ultimate routes.
  8. 8. Parent and Child Routes : Classful NetworksWhen the subnet was added to the routing table, another route,, was also added. The first entry,, does not contain any next-hop IP address or exit interface information. This route is known as a level 1 parentroute.
  9. 9. A level 1 parent route is anetwork route that does notcontain a next-hop IP addressor exit interface for anynetwork. is subnetted, 1 subnetsA level 2 route is a route that is asubnet of a classful networkaddressC is directly connected, FastEthernet0/0
  10. 10. Level 1 Parent RouteThis parent route contains the followinginformation: - The classful network address forour subnet. Remember, the Cisco IP routingtable is structured in a classful manner./24 - The subnet mask for all of the childroutes. If the child routes have variable lengthsubnet masks (VLSM), the subnet mask will beexcluded from the parent route and includedwith the individual child routes. This will beshown in a later subnetted, 1 subnet - This part of the routespecifies that this is a parent route and in thiscase has one child route, that is, 1 subnet.
  11. 11. Level 2 Child RouteThe second entry,, is the actualroute for our directly connected network. Thisis a level 2 route, also known as a child route,and contains the following information:C - The route code for directly connectednetwork. - The specific route directly connected - Along with the routecode of C, this specifies that this is a directlyconnected network with an administrativedistance of 0.FastEthernet0/0 - The exit interface forforwarding packets that match this specificroute entry.
  12. 12. The level 2 child route is the specific routeentry for the 172,16.3.0/24 subnet. Noticethat the subnet mask is not included withthe subnet, the level 2 child route. Thesubnet mask for this child route (subnet) isthe /24 mask included in its parent route, 2 child routes contain the routesource and the network address of theroute.Level 2 child routes are also consideredultimate routes because they will containthe next-hop IP address and/or exitinterface.
  13. 13. Parent and Child Routes : Classful Networks The parent route contains the following information: - The parent route, the classful network address associated with all child routes. /16 - The classful subnet mask of the parent route. variably subnetted - States that the 3 subnets, 2 masks - Indicates the number of child routes are variably subnetted subnets and the number of different subnet and that there are multiple masks masks for the child routes under this parent for this classful network. route.
  14. 14. Parent and Child Routes : Classful Networks Using one of the child routes as an example, we can see the following information: C - The route code for a directly connected network. - The specific route entry. /30 - The subnet mask for this specific route. is directly connected - Along with the Serial0/0/0 - The exit interface for forwarding route code of C, specifies that this is a packets that match this specific route entry. directly connected network with an administrative distance of 0.
  15. 15. Steps in the Route Look up process The Route Lookup Process Follow these steps in the figure to see the route lookup process. Dont worry about fully understanding the steps right now. You will better understand this process when we examine a few examples in the following sections.
  16. 16. Steps in the Route Look up process Step 1. The router examines level 1 routes, including network routes and supernet routes, for the best match with the destination address of the IP packet.
  17. 17. Steps in the Route Look up process Step 1a. If the best match is a level 1 ultimate route - a classful network, supernet, or default route - this route is used to forward the packet.
  18. 18. Steps in the Route Look up process Step 1b. If the best match is a level 1 parent route, proceed to Step 2.
  19. 19. Steps in the Route Look up process Step 2. The router examines child routes (the subnet routes) of the parent route for a best match.
  20. 20. Steps in the Route Look up process Step 2a. If there is a match with a level 2 child route, that subnet will be used to forward the packet.
  21. 21. Steps in the Route Look up process Step 2b. If there is not a match with any of the level 2 child routes, proceed to Step 3.
  22. 22. Steps in the Route Look up process Step 3. Is the router implementing classful or classless routing behavior?
  23. 23. Steps in the Route Look up process Step 3a. Classful routing behavior: If classful routing behavior is in effect, terminate the lookup process and drop the packet.
  24. 24. Steps in the Route Look up process Step 3b. Classless routing behavior: If classless routing behavior is in effect, continue searching level 1 supernet routes in the routing table for a match, including the default route, if there is one.
  25. 25. Steps in the Route Look up process Step 4. If there is now a lesser match with a level 1 supernet or default routes, the router uses that route to forward the packet.
  26. 26. Steps in the Route Look up process Step 5. If there is not a match with any route in the routing table, the router drops the packet.
  27. 27. Steps in the Route Look up process Note: A route referencing only a next-hop IP address and not an exit interface must be resolved to a route with an exit interface. A recursive lookup is performed on the next-hop IP address until the route is resolved to an exit interface.
  28. 28. Longest Match :Level 1 Network RoutesThe best match orlongest match is theroute in the routingtable that has themost number of left-most matching bitswith the destinationIP address of the The route with the most number of equivalent left-mostpacket. bits, or the longest match, is always the preferred route.
  29. 29. Step 1-there is a match between thedestination IP address andthe level 1 ultimate route of192.168.1.0/24.Step 1a - R [120/1] via172.16.2.2, 00:00:25, Serial0/0/0
  30. 30. Level 1 Ultimate RouteThe subnet mask that is used todetermine the longest match is notalways obvious. Lets examine thisconcept in more detail, using severalexamples.
  31. 31. The is a parent route of three subnets or child routes.Before a child route is examined for a match, there must be at least amatch between the destination IP address of the packet and the classfuladdress of the parent route, or
  32. 32. Note: Remember that the route lookup process will need to do arecursive lookup on any route that references only a next-hop IPaddress and not an exit interface. For a review of recursive lookups,refer to Chapter 2, "Static Routing."
  33. 33. Routing Table Lookup ProcessAs shown in the figure, a parent route does not include a next-hop address or an exit interface but is only a "header" for its level 2 child routes, the subnets.The subnet mask for the child routes - /24 in the figure - is displayed in the parent route,, for subnets that use the same subnet mask.Before any level 2 child routes are examined for a match, there must first be a match between the classful address of the level 1 parent route and the destination IP address of the packet.
  34. 34. Routing Table Lookup Process Example: Level 1 Parent Route and Level 2 Child Routes• In the example in the figure, PC1 sends a ping to PC2 at R1 receives the packet and begins to search the routing table for a route.
  35. 35. Routing Table Lookup ProcessThe first match that occurs is withthe level 1 parent route,, with non-VLSM subnetsthe classful mask of the parent isnow displayed. Before any childroutes (subnets) are examined for amatch, there must first be a matchwith the classful address of theparent route.Because the first route entry is alevel 1 parent route that matchesthe destination address (Step 1b ofthe route lookup process), the routelookup process moves to Step 2.
  36. 36. Routing Table Lookup ProcessBecause there is a match with theparent route, the level 2 child routeswill be examined for a match.However, this time the actual subnetmask of /24 is used for the minimumnumber of left-most bits that mustmatch.
  37. 37. Routing Table Lookup ProcessThe route lookup process searchesthe child routes for a match. In thiscase, there must be a minimum of 24bits that match.
  38. 38. 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
  39. 39. Routing Table Lookup ProcessFirst, the router examines theparent route for a match. Inthis example, the first 16 bitsof the IP address must matchthat of the parent route. Theleft-most 16 bits must matchbecause that is the classfulmask of the parent route, /16.If there is a match with theparent route, then the routerchecks the route.Child routes are onlyexamined when there is amatch with the classful maskof the parent.
  40. 40. Routing Table Lookup ProcessChecking the first subnet,, the 23rd bit doesnot match; therefore, thisroute is rejected because thefirst 24 bits do not match.
  41. 41. Routing Table Lookup ProcessNext, the router checks the172.16.2.0/24 route. Becausethe 24th bit does not match,this route is also rejected. All24 bits must match.
  42. 42. Routing Table Lookup ProcessThe router checks the last child route for and finds a match. The first 24 bits domatch. The routing table process will use this route,, to forward the packet withthe destination IP address of out the exit interface of Serial 0/0/0.R [120/1] via, 00:00:25, Serial0/0/0What happens if the router does not have a route? Then it discards the packet.
  43. 43. 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
  44. 44. Routing Table Lookup ProcessExample: Route Lookup Process with VLSM• What about our RouterX topology, which is using a VLSM addressing scheme? How does this change the lookup process?• Using VSLM does not change the lookup process. With VLSM, the /16 classful mask is displayed with the level 1 parent route ( in the figure).• As with non-VLSM networks, if there is a match between the packets destination IP address and the classful mask of the level 1 parent route, the level 2 child routes will be searched.• The only difference with VLSM is that child routes display their own specific subnet masks. These subnet masks are used to determine the number of left-most bits that must match the packets destination IP address. For example, for there to be a match with the child route, a minimum of 30 left-most bits must match because the subnet mask is /30.
  45. 45. 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