Ch 1 - Intro to Routing and Packet Forwarding Flashcards
Routers are at the Network Center
- What does a router do?
- A router connects multiple networks.
- This means that it has interfaces that belong to different IP networks.
- When a router receives an IP packet on one interface, it determines which interface to forward the packet on its way to its destination.
- The interface that the router uses to forward the packet can be the network of the final destination of the packet or it can be a network connected to another router that is used to reach the destination network.
Interfaces
- LAN and WAN
- Each network that a router connects to typically requires a separate interface.
- These interfaces are used to connect a combination of both Local-Area Networks (LAN) and Wide-Area Networks (WAN).
- LANs are commonly Ethernet networks that contain device such as PCs, printers, and servers.
- WANs are used to connect networks over a large geographical areas.
- example: WAN connection is commonly used to connect a LAN to the ISP.
Routers Primary Responsibilites
- Determining the best path to send packets.
- Forwarding packet toward their destination.
The router uses its routing table to determine the best path to forward the packet.
Operations of the routing table
- The router uses its routing table to determine the best path to forward the packet.
- When the router receives a packet, it examines the destination IP address and searches for the best match with a network address in the router’s routing table.
- The routing table will include the interface to be used to forward the packet.
- When a match is found, the router encapsulates the IP packet into the data-link frame of the outgoing or exit interface, and the packet is then forwarded toward its destination.
Example: Router Determine the Best Path
- R1 receives the packet encapsulated in an Ethernet frame.
- After decapsulating the packet, the router uses the destination IP address of the packet to search the routing table for a matching network address.
- R1 will encapsulate the packet in a frame format appropriate for the outbound interface and then forward the packet.
Router CPU and Memory
Similar to a PC, a router also includes:
- CPI
- RAM
- ROM
- Flash memory
- NVRAM
Router CPU
- The CPU executes operating system instructions, such as system initialization, routing functions, and network interface control.
Router RAM
- Operating System
- Running Config file
- IP routing table
- ARP Cache
- Packet Buffering
Similar to computers, RAM stores the instructions and data needed to be executed by the CPU.
RAM is volatile memory and loses its contents when the router is powered down or restarted.
RAM is used to store:
- OS - Cisco IOS image is copied into RAM during bootup.
- show version
- Model
- IOS Version & software release
- CPU,
- show version
RAM, NVRAM & Flash
* Configuration Register setting
- Running Config File - this is the configuration file that stores the configuration commands that the router’s IOS is currently using.
- show running-config
- IP Routing Table - This is the file that stores info about directly connected and remote networks.
- show ip route
- ARP Cache - this cache stores IP address-to-MAC address mappings, similar to the ARP cache on a PC. ARP cache would be used on routers that have Ethernet interfaces/
- Packet Buffering - packets are temporarily stored in a buffer when recevied on an interface or before they exit an interface.
Router ROM
- Bootstrap info
- Basic Diagnostic software
- Scaled-down version of IOS
ROM uses firmware, which is software embedded inside the integrated circuit.
ROM does not lose its contents when the router loses power or is restarted.
ROM stores:
- Bootstrap info
- Basic Diagnostic software
- Scaled-down version of IOS
Router Flash Memory
- Flash memory is nonvolatile computer memory that can be electrically erased and reprogrammed.
- Flash memory data does not lose its contents when the router loses power or is restarted.
- Flash is used as permanent storage for the operating system, Cisco IOS.
- The IOS is permanently stored in flash memory and copied into RAM during bootup.
Router NVRAM
- Non-Volatile Random-Access-Memory, which does not lose its data when the power is turned off.
- NVRAM is used as permanent storage for the startup-config file.
- To save those changes in case the router is restarted or loses power, the running-config must be copied to NVRAM, where it is stored as the startup-config file.
ROUTER BOOT-UP PROCESS
There are four major phases to the bootup process:
- Perform the POST.
- Loading the bootstrap program.
- Locating and loading the Cisco IOS software.
- Locating and loading the startup config file or entering setup mode.
Perform the POST (power-on self test)
- A common process that occurs on almost every computer during bootup.
- The POST process is used to test the router hardware.
- When the router is powered on, software on the ROM chip conducts the POST.
- During this self-test, the router executes diagnostics from ROM on several hardware components including the CPU, RAM and NVRAM.
- After the POST has been completed, the router executes the bootstrap program.
Loading the bootstrap program
- After the POST, the bootstrap program is copied from ROM to RAM.
- Once in RAM, the CPU executes the instructions in the bootstrap program.
- The main task of the bootstrap program is to locate the Cisco IOS and load it into RAM.
NOTE: At this point, if you have a console connection to the router, you will begin to see output on the screen.
Locating and Loading Cisco IOS
- The IOS is typically stored in flash memory, but can also be stored in other places such a TFTP server.
- If a full IOS image cannot be located, a scaled-down version of the IOS is copied from ROM into RAM.
- This version of IOS is used to help diagnose any problems and can be used to load a complete version of the IOS into RAM.
- Loading IOS, some other Cisco routers ran the IOS directly from flash, but current models copy the IOS into RAM for execution by the CPU.
NOTE: Once the IOS begins to load, you may see a string of pounds signs (#), while the image decompresses.