Professional Documents
Culture Documents
CA - Ex - S2M01 - Introduction To Routing and Packet Forwarding - PPT (Compatibility Mode)
CA - Ex - S2M01 - Introduction To Routing and Packet Forwarding - PPT (Compatibility Mode)
Objectives
Identify a router as a computer with an OS and hardware designed for the routing process. Demonstrate the ability to configure devices and apply addresses. Describe the structure of a routing table. Describe how a router determines a path and switches packets
Labs
Routers determine the best path The primary responsibility of a router is to direct packets destined for local and remote networks by: Determining the best path to send packets Forwarding packets toward their destination
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 8
10
11
12
Router as a Computer
Describe the basic purpose of a router Computers that specialize in sending packets over the data network. They are responsible for interconnecting networks by selecting the best path for a packet to travel and forwarding packets to their destination Routers are the network center Routers generally have 2 connections: WAN connection (Connection to ISP) LAN connection Not common: PSTN connection
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 13
Router as a Computer
Evolution of Routers
Multiprotocol devices providing pure data delivery with minimal access control and QoS. Intelligent Network Services, this allowed us to provide security capabilities like integrated firewall and encryption. Integrated voice and data capabilities, allowing routers to provide voice gateway features for IP telephony. Today the router is an integrated platform for providing advanced services in security, content delivery, and voice.
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 15
16
The network router is quickly evolving from a device dedicated to connecting disparate networks to an integrated services device capable of multiple functions beyond routing. Now, Integrated Services Routers can deliver voice, video, data and Internet access, wireless, and other applications. Benefits of the Integrated Services Network Router One Device, Multiple Functions Same Access at Headquarters and Remote Sites Centralized Management Integrated Network Security
17
Router Components
Router components and their functions
CPU - Executes operating system instructions Random access memory (RAM) - Contains the running copy of configuration file. Stores routing table. RAM contents lost when power is off Read-only memory (ROM) - Holds diagnostic software used when router is powered up. Stores the routers bootstrap program. Non-volatile RAM (NVRAM) - Stores startup configuration. This may include IP addresses (Routing protocol, Hostname of router) Flash memory - Contains the operating system (Cisco IOS) Interfaces - There exist multiple physical interfaces that are used to connect network. Examples of interface types: Ethernet / FastEthernet interfaces Serial interfaces Management interfaces
18
Router Components
19
Router Components
20
Status Router has successfully booted up and the software is functional. Slow, steady blinking when system is booting or in the ROM monitor. Blinking when packets are transmitted or received on any WAN or LAN interface, or when monitoring system activity. Flash memory is busy. Do not remove the CompactFlash memory card when this light is on.
http://www.cisco.com/cdc_content_elements/flash/nextgen/webversion/1800/kaon/1841/index.html?NO_NAV
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 21
22
A SO-DIMM, or small outline dual in-line memory module, is a type of computer memory integrated circuit H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 23
Demo: View Interactive 3D Model of the Cisco 1841 Integrated Services Router
http://www.cisco.com/cdc_content_elements/flash/nextgen/webversion/1800/kaon/1841/index.html?NO_NAV
24
Router Components
Activity 1.1.2.2
25
Cisco IOS manages the hardware and software resources of the router, including memory allocation, processes, security, and file systems. Cisco IOS is a multitasking operating system that is integrated with routing, switching, internetworking, and telecommunications functions. Cisco creates many different types of IOS images, depending upon the model of the router and the features within the IOS. The command line interface (CLI) is a much more common method of configuring Cisco routers.
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 26
27
Baseentry level image (IP Base, Enterprise Base) Servicesaddition of IP Telephony Service, MPLS, Voice over IP
(VoIP), Voice over Frame Relay (VoFR), and ATM (SP Services, Enterprise Services) Advancedaddition of VPN, Cisco IOS Firewall, 3DES encryption, SSH, Cisco IOS IPsec and Intrusion Detection Systems (IDS) (Advanced Security, Advanced IP Services) Enterpriseaddition of multi-protocols, including IBM, IPX, AppleTalk (Enterprise Base, Enterprise Services)
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 28
29
30
31
32
1, 2 3
2. Check for IOS boot system commands in startup-config file (NVRAM) If boot system commands in startup-config a. Run boot system commands in order they appear in startup-config to locate the IOS b If boot system commands fail, use default fallback sequence to locate the IOS (Flash, TFTP, ROM) 3. Locate and load IOS, Default fallback sequence: No IOS boot system commands in startup-config a. Flash (sequential) b. TFTP server (netboot) - The router uses the configuration register value to form a filename from which to boot a default system image stored on a network server. c. ROM (partial IOS) or keep retrying TFTP depending upon router model - If no IOS located, get partial IOS version from ROM 4. Locate and load startup-config a. If startup-config found, copy to running-config b. If startup-config not found, prompt for setup-mode c. If setup-mode bypassed, create a skeleton default running-config (no startup-config)
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 33
34
Extra: Check for IOS boot system commands in startup-config file (NVRAM)
35
Verify the router boot-up process: The show version command is used to view information about the router during the bootup process. Information includes: Platform model number Image name & IOS version Bootstrap version stored in ROM Image file name & where it was loaded from Number & type of interfaces Amount of NVRAM Amount of flash Configuration register
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 36
37
38
Router Interfaces
Router Interface is a physical connector that enables a router to send or receive packets Each interface connects to a separate network Consist of socket or jack found on the outside of a router Types of router interfaces: Fixed Modular
39
Router Interfaces
Two major groups of Router Interfaces
LAN Interfaces: Are used to connect router to LAN network Has a layer 2 MAC address Can be assigned a Layer 3 IP address Usually consist of an RJ-45 jack WAN Interfaces Are used to connect routers to external networks that interconnect LANs. Depending on the WAN technology, a layer 2 address may be used. Uses a layer 3 IP address
H c vi n m ng Cisco Bch Khoa - Website: www.ciscobachkhoa.com 40
Router Interfaces
41
42
43
44
When designing a new network or mapping an existing network, document the network. At a minimum, the documentation should include a topology diagram that indicates the physical connectivity and an addressing table that lists all of the following information: Device names Interfaces used in the design IP addresses and subnet masks Default gateway addresses for end devices, such as PCs
45
Activity 1.2.1.1
46
47
48
49
51
53
Directly-Connected Networks
Once the interface is "up," the network of that interface is added to the routing table as a directly connected network.
54
Static Routing
Static routes in the routing table Includes: network address and subnet mask and IP address of next hop router or exit interface Denoted with the code S in the routing table Routing tables must contain directly connected networks used to connect remote networks before static or dynamic routing can be used When to use static routes When network only consists of a few routers Network is connected to internet only through one ISP Hub-and-spoke topology is used on a large network
55
Static Routing
56
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: Network discovery Updating and maintaining routing tables
57
Dynamic Routing
Dynamic routing features:
Automatic Network Discovery: allows the routers to automatically learn about these networks from other routers. Maintaining Routing Tables: automatically share routing information with other routers and compensate for any topology changes without involving the network administrator. IP Routing Protocols: 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)
58
59
60
61
62
63
64
65
66
67
68
Load balancing
69
Path Determination
The path determination function is the process of how the router determines which path to use when forwarding a packet by searching its routing table. One of three path determinations results from this search: Directly connected network Remote network No route determined
70
Switching Function
Switching Function of Router is the process used by a router to switch a packet from an incoming interface to an outgoing interface on the same router. A packet received by a router will do the following: Strips off layer 2 headers. Examines destination IP address located in Layer 3 header to find best route to destination. Re-encapsulates layer 3 packet into layer 2 frame. Forwards frame out exit interface.
71
Switching Function
72
Switching Function
73
Switching Function
74
Switching Function
75
Switching Function
76
Switching Function
77
Switching Function
78
Switching Function
79
Switching Function
80
Switching Function
81
Switching Function
82
Switching Function
83
Switching Function
84
Switching Function
85
Switching Function
86
Switching Function
87
Switching Function
88
Switching Function
89
Switching Function
90
Switching Function
91
Switching Function
92
Switching Function
93
Switching Function
Step 5: The Ethernet Frame with encapsulated IP packet arrives at PC2 1. PC2 examines the destination MAC address, which matches the MAC address of the receiving interface, its Ethernet NIC. PC2 will therefore copy the rest of the frame into its buffer. 2. PC2 sees that the Ethernet Type field is 0x800, which means that the Ethernet frame contains an IP packet in the data portion of the frame. 3. PC2 decapsulates the Ethernet frame and passes the IP packet to the IP process of its operating system.
94
Summary
95
96
Configuration Register
97
Configuration Register
Boot Field Configuration Register Bit Descriptions
Boot Field (Bits 3, 2, 1, and 0) 0000 (0x0) 0001 (0x01) 0010 - 1111 (0x02 - 0xF) Meaning
At the next power cycle or reload, the router boots to the ROM monitor. Boots the first image in flash memory as a system image. At the next power cycle or reload, the router sequentially processes each boot system command in global configuration mode that is stored in the configuration file until the system boots successfully. If no boot system commands are stored in the configuration file, or if executing those commands is unsuccessful, then the router attempts to boot the first image file in flash memory.
98
Configuration Register
99
100