Introduction To Routing and Packet Forwarding
Introduction To Routing and Packet Forwarding
Cisco Public
Routers connect different media Routers direct packets to their proper destinations
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Cisco Public
Components of a Router
Cisco Public
Components of a Router
ROM is a form of permanent storage. Cisco devices use ROM to store:
The bootstrap instructions Basic diagnostic software (ROM Monitor) Scaled-down version of IOS (Boot ROM)
Ethernet / Fast Ethernet interfaces Serial interfaces Management interfaces (Console, AUX)
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
Components of a Router
RAM is used to store these components:
Operating System: The Cisco IOS (Internetwork Operating System) is copied into RAM during bootup. Running Configuration File: This is the configuration file that stores the configuration commands that the router IOS is currently using.
IP Routing Table: This file stores information about directly connected and remote networks. It is used to determine the best path to forward the packet.
ARP Cache: This cache contains the IPv4 address to MAC address mappings, similar to the ARP cache on a PC. The ARP cache is used on routers that have LAN interfaces such as Ethernet interfaces. Packet Buffer: Packets are temporarily stored in a buffer when received on an interface or before they exit an interface.
Cisco Public
Boot-up Process
The POST process is used to test the router hardware. The main task of the bootstrap program is to locate the Cisco IOS and load it into RAM.
Cisco Public
Router Info
The show version command displays information about hardware and software components of the router.
Cisco Public
Cisco Public
Directly connected networks - this occurs when a device is connected to another router interface Remotely connected networks - this is a network that is not directly connected to a particular router Detailed information about the networks include source of information, network address & subnet mask, and IP address of next-hop router
Cisco Public
10
Directly-connected Networks
Before any static or dynamic routing is configured on a router, the router only knows about its own directly connected networks.
Cisco Public
11
Static Routing
When the IOS learns about a remote network and the interface that it will use to reach that network, it adds that route to the routing table as long as the exit interface is enabled.
Cisco Public
12
Static Routing
Static routes should be used in the following cases:
A network consists of only a few routers. Using a dynamic routing protocol in such a case does not present any substantial benefit.
A network is connected to the Internet only through a single ISP. There is no need to use a dynamic routing protocol across this link because the ISP represents the only exit point to the Internet. A large network is configured in a hub-and-spoke topology. Using dynamic routing would be unnecessary because each branch has only one path to a given destination-through the central location.
Cisco Public
13
Dynamic Routing
Dynamic routing protocols are used by routers to share information about the reachability and status of remote networks. Dynamic routing protocols perform several activities, including:
Cisco Public
14
Dynamic Routing
Automatic Network Discovery Network discovery is the ability of a routing protocol to share information about the networks that it knows about with other routers that are also using the same routing protocol.
Maintaining Routing Tables After the initial network discovery, dynamic routing protocols update and maintain the networks in their routing tables.
IP Routing Protocols
ITE PC v4.0 Chapter 1
RIP (Routing Information Protocol) IGRP (Interior Gateway Routing Protocol) EIGRP (Enhanced Interior Gateway Routing Protocol) OSPF (Open Shortest Path First) IS-IS (Intermediate System-to-Intermediate System) BGP (Border Gateway Protocol)
2007 Cisco Systems, Inc. All rights reserved. Cisco Public
15
Cisco Public
16
Hop count - this is the number of routers a packet must travel through to get to its destination Bandwidth - this is the speed of a link also known as the data capacity of a link
Cisco Public
17
To solve this dilemma, a router will use Equal Cost Load Balancing.
This means the router sends packets over the multiple exit interfaces listed in the routing table.
Cisco Public
18
Path Determination
Path determination is a process used by a router to pick the best path to a destination
One of 3 path determinations results from searching for the best path
Cisco Public
19
Data Flow
As a packet travels from one networking device to another:
Cisco Public
20
Cisco Public
21