Rick Graziani Cabrillo College

Slides:



Advertisements
Similar presentations
CCNA /2008 Version. CCNA FastTrack CCNA FastTrack Routing Reminder KCC 18th October 2007 THREE MAIN STEPS IN THE ROUTER ROUTING - find the.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing Protocols.
11: IPv6 Routing Table and Static Routes
IP Routing Static Routing Information management 2 Groep T Leuven – Information department 2/14 The Router Router Interface is a physical.
Ver 1,12/09/2012Kode :CIJ 340,Jaringan Komputer Lanjut FASILKOM Routing Protocols and Concepts – Chapter 2 Static Routing CCNA.
Ver 1,12/09/2012Kode :CIJ 340,Jaringan Komputer Lanjut FASILKOM Routing Protocols and Concepts – Chapter 1 Introduction to Routing and Packet Forwarding.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 The Routing Table: A Closer Look Routing Protocols and Concepts – Chapter.
Ch. 9 – Basic Router Troubleshooting CCNA 2 version 3.0.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Static Routing Routing Protocols and Concepts – Chapter 2.
Routing and Routing Protocols
Routing and Routing Protocols Introduction to Static Routing.
Instructor & Todd Lammle
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Routing and Packet Forwarding Routing Protocols and Concepts.
Routing Table : closer look w.lilakiatsakun. Sample Routing Table Static Route Dynamic Routing Protocol (RIP) Directly Connected Network Administrative.
Introduction to networking (Yarnfield) Introduction to routing.
Chapter 4: Routing Concepts
Introduction to networking (Yarnfield) Introduction to routing.
Lecture Week 8 The Routing Table: A Closer Look
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing Protocols.
Route Selection in Cisco Routers. Route Selection One of the intriguing aspects of Cisco routers, especially for those new to routing, is how the router.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Ch. 9 – Basic Router Troubleshooting CCNA 2 version 3.0 Rick Graziani Cabrillo College.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Routing and Packet Forwarding Routing Protocols and.
1 Pertemuan 26 Integrating Network using Routing Protocol.
Routing Table : closer look w.lilakiatsakun. Sample Routing Table Static Route Dynamic Routing Protocol (RIP) Directly Connected Network Administrative.
The Routing Table Last Update Copyright Kenneth M. Chipps Ph.D.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Routing Protocols and Concepts Introduction to Routing and Packet Forwarding.
Networks and Protocols CE Week 7b. Routing an Overview.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
Routing and Routing Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Static Routing Routing Protocols and Concepts – Chapter 2.
Chapter 8 The Routing Table: A Closer Look CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 4/14/2008.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 4: Routing Concepts Routing & Switching.
+ Routing Concepts 1 st semester Objectives  Describe the primary functions and features of a router.  Explain how routers use information.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
Describe basic routing concepts. Routers Interconnect Networks Router is responsible for forwarding packets from network to network, from the original.
COMPUTER NETWORK AND DESIGN CSCI 3385K Routing Protocols.
CHAPTER 6: STATIC ROUTING Static Routing 2 nd semester
Static Routing Routing Protocols and Concepts – Chapter 2.
ROUTING AND ROUTING TABLES 2 nd semester
Static Routing CCNA Routing and Switching Semester 2 Chapter 6
Instructor & Todd Lammle
Chapter 4: Routing Concepts
Instructor Materials Chapter 7: EIGRP Tuning and Troubleshooting
CCENT Study Guide Chapter 9 IP Routing.
Routing and routing tables
Routing and Routing Protocols: Routing Static
Chapter 8 The Routing Table: A Closer Look
Chapter 4: Routing Concepts
Routing and routing tables
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Troubleshooting IP Addressing
Chapter 1 Routing Concepts
Chapter 1: Routing Concepts
Chapter 3: Dynamic Routing
Routing and Routing Protocols: Routing Static
Chapter 8 The Routing Table: A Closer Look
Chapter 3 Routing Dynamically
Chapter 5 RIP version 1 CIS 82 Routing Protocols and Concepts
Chapter 6 Static Routing
Chapter 2: Static Routing
Routing Protocols and Concepts – Chapter 2
Static Routing 1st semester
Rick Graziani Cabrillo College
CIT 384: Network Administration
CCE1030 Computer Networking
Static Routing 2nd semester
Presentation transcript:

Rick Graziani Cabrillo College graziani@cabrillo.edu 1 - Routing Concepts Rick Graziani Cabrillo College graziani@cabrillo.edu

Layer 3 Forwarding Concepts and Routing Principles Rick Graziani Cabrillo College graziani@cabrillo.edu

How does a packet get forwarded from source to destination? MAC Src MAC Source 192.168.1.10 Destination 192.168.3.22 FCS 192.168.1.10/24 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.3.0/24 How does a packet get forwarded from source to destination?

C 192.168.1.0/24 is directly connected, FastEthernet0/0 Each routing entry has a prefix (network address) and prefix length (subnet mask) The prefix length indicates the minimum number of left-most bits that need to match the destination IP address for the entry to be considered a match. The routing entry with the longest match (the entry with the longest prefix length) is used. Default route (/0) is a 0 bit match and is used as the gateway of last resort. Dest MAC Src MAC Source 192.168.1.10 Destination 192.168.3.22 FCS 192.168.1.10/24 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.3.0/24 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/0 S 192.168.3.0/24 [1/0] via 192.168.2.2 1. Examines its destination IP address 2. Searches the IP routing table with it's list of network addresses (prefixes) for the longest match

C 192.168.1.0/24 is directly connected, FastEthernet0/0 Source 192.168.1.10 Destination 192.168.3.22 192.168.1.10/24 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.3.0/24 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/0 S 192.168.3.0/24 [1/0] via 192.168.2.2 3. Determine the routing entry's egress interface to be used to forward the packet If the routing entry only has an next-hop IP address, a recursive lookup may be required if CEF (Cisco Express Forwarding) or similar technique is not used.

C 192.168.1.0/24 is directly connected, FastEthernet0/0 Data Link Header Source 192.168.1.10 Destination 192.168.3.22 Data Link Trailer 192.168.1.10/24 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.3.0/24 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/0 S 192.168.3.0/24 [1/0] via 192.168.2.2 4. Encapsulates the IP packet into the data link frame of the outgoing or exit interface

C 192.168.1.0/24 is directly connected, FastEthernet0/0 Dest Add Src Add Source 192.168.1.10 Destination 192.168.3.22 FCS 192.168.1.10/24 ARP Cache IPv4 MAC 192.168.2.2 ? 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.2.2 192.168.3.0/24 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, FastEthernet0/1 S 192.168.3.0/24 [1/0] via 192.168.2.2 4. Encapsulates the IP packet into the data link frame of the outgoing or exit interface If the exit interface is a multaccess network such as Ethernet, the router will need to determine the destination MAC address for the next-hop IP address (or destination IP address). Check ARP cache and if necessary send an ARP Request

C 192.168.1.0/24 is directly connected, FastEthernet0/0 Dest Add Src Add Source 192.168.1.10 Destination 192.168.3.22 FCS 192.168.1.10/24 192.168.3.22/24 192.168.2.0/24 192.168.1.0/24 192.168.3.0/24 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/0 S 192.168.3.0/24 [1/0] via 192.168.2.2 5. The packet is then forwarded toward its destination. May be the next-hop router or the final destination of the packet.

Process Switching Earliest switching method. Control Plane IP Routing Table CPU 1st Packet 2nd Packet 3rd Packet 4th Packet 5th Packet Ingress Interface Data Plane Egress Interface Analogy: Process switching solves a problem by doing math long hand, even if it is the identical problem. Earliest switching method. This is an older packet forwarding mechanism. When a packet arrives on an interface, it is forwarded to the control plane where the CPU examines the routing table, determines the exit interface and forwards the packet. It does this for every packet, even if the destination is the same for a stream of packets.

Fast Switching Control Plane IP Routing Table CPU 1st Packet 2nd Packet 3rd Packet 4th Packet 5th Packet Ingress Interface Data Plane Egress Interface Fast Forward Cache Analogy: Fast switching solves a problem by doing math long hand one time and remembering the answer for subsequent identical problems. As routers had to process more packets, it was determined process switching was not fast enough. Next evolution in packet switching was Fast Switching. The first packet is process-switched (CPU + routing table) but it also uses a fast-switching cache to store next-hop information of the flow. The next packets in the flow are forwarded using the cache and without CPU intervention.

Control Plane CEF Switching CPU Ingress Interface Data Plane Egress Interface 1st Packet 2nd Packet 3rd Packet 4th Packet 5th Packet FIB and Adjacency Table Analogy: CEF solves every possible problem ahead of time in a spreadsheet. Preferred and default Cisco IOS packet-forwarding mechanism CEF copies the routing table to the Forwarding Information Base (FIB) CEF creates an adjacency table which contains all the layer 2 information a router would have to consider when forwarding a packet such as Ethernet destination MAC address. The adjacency table is created from the ARP table.

Alex Zinin’s Routing Table Principles I know about my remote networks but it is not my responsibility if R2 and R3 know about their remote networks. Principle 1: Every router makes its decision alone, based on the information it has in its own routing table. Principle 1: Every router makes its decision alone, based on the information it has in its own routing table. R1 has three static routes in its routing table and makes forwarding decisions based solely on the information in the routing table. R1 does not consult the routing tables in any other routers, nor does it know whether those routers have routes to other networks. Making each router aware of remote networks is the responsibility of the network administrator.

Alex Zinin’s Routing Table Principles Just because I know how to get to R3’s LAN, 192.168.2.0/24 and I send that packet to R2, doesn’t mean R2 knows how to get there. ??? Principle 2: The fact that one router has certain information in its routing table does not mean that other routers have the same information. Principle 2: The fact that one router has certain information in its routing table does not mean that other routers have the same information. R1 does not know what information other routers have in their routing table. For example, R1 has a route to the 192.168.2.0/24 network through Router R2. Any packets that match this route belong to the 192.168.2.0/24 network and will be forwarded to Router R2. R1 does not know whether R2 has a route to the 192.168.2.0/24 network. Again, the network administrator would be responsible for ensuring that the next-hop router also has a route to this network. Using Principle 2, you still need to configure the proper routing on the other routers (R2 and R3) to make sure that they have routes to these three networks.

Alex Zinin’s Routing Table Principles And if the packet for R3’s LAN reaches 192.168.2.0/24, I don’t know if R3 has a route back to 172.16.3.0/24 for any return traffic. ??? Principle 3: Routing information about a path from one network to another does not provide routing information about the reverse, or return, path. Principle 3: Routing information about a path from one network to another does not provide routing information about the reverse, or return, path. Most of the communication over networks is bidirectional. This means that packets must travel in both directions between the end devices involved. A packet from PC1 can reach PC3 because all the routers involved have routes to the destination network 192.168.2.0/24. However, the success of any returning packets going from PC3 to PC1 depends on whether the routers involved have a route to the return path, PC1’s 172.16.3.0/24 network. Using Principle 3 as guidance, you will configure proper static routes on the other routers to make sure that they have routes back to the 172.16.3.0/24 network.

Layer 3 Forwarding Concepts and Routing Principles Rick Graziani Cabrillo College graziani@cabrillo.edu

Rick Graziani Cabrillo College graziani@cabrillo.edu Populating an IP Routing Table, Administrative Distance, and Load Balancing Rick Graziani Cabrillo College graziani@cabrillo.edu

IP Routing tables are populated by: Directly connected networks At least one directly connected network is required When an IP prefix/prefix length are configured on the router, similar to an end-device Remote networks: Static Routes: Manually configured Dynamic routing protocol: Learned automatically

Topology: IPv4 and IPv6 :1 :2

Configuring Directly Connected Networks R1(config)# interface gigabitethernet 0/0 R1(config-if)# description Link to LAN 1 R1(config-if)# ip address 192.168.10.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:1::1/64 R1(config-if)# ipv6 address fe80::1 link-local R1(config-if)# no shutdown R1(config-if)# exit R1(config)#

R1(config)# interface gigabitethernet 0/1 R1(config-if)# description Link to LAN 2 R1(config-if)# ip address 192.168.11.1 255.255.255.0 R1(config-if)# ipv6 address 2001:db8:acad:2::1/64 R1(config-if)# ipv6 address fe80::1 link-local R1(config-if)# no shutdown R1(config-if)# exit R1(config)#

R1(config)# interface serial 0/0/0 R1(config-if)# description Link to R2 R1(config-if)# ip address 209.165.200.225 255.255.255.252 R1(config-if)# ipv6 address 2001:db8:acad:3::1/64 R1(config-if)# ipv6 address fe80::1 link-local R1(config-if)# clockrate 128000 ! Lab only R1(config-if)# no shutdown R1(config-if)# exit *Jan 30 23:01:17.323: %LINK-3-UPDOWN: Interface Serial0/0/0, changed state to down ! Will be down until other side has been configured Media Description: Use NB-6.4.1.1-A as the basis but display as indicated.

Gateway of last resort is not set R1# show ip route Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP <output omitted. Gateway of last resort is not set 192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.10.0/24 is directly connected, GigabitEthernet0/0 L 192.168.10.1/32 is directly connected, GigabitEthernet0/0 192.168.11.0/24 is variably subnetted, 2 subnets, 2 masks C 192.168.11.0/24 is directly connected, GigabitEthernet0/1 L 192.168.11.1/32 is directly connected, GigabitEthernet0/1 209.165.200.0/24 is variably subnetted, 2 subnets, 2 masks C 209.165.200.224/30 is directly connected, Serial0/0/0 L 209.165.200.225/32 is directly connected, Serial0/0/0 R1# Network Address Interface Address Network Address Interface Address Network Address Interface Address Media Description: Use the topology from NB-6.4.2.1-A. Add a highlighted glow around R1 and arrow pointing to it. Add the indicated configuration and highlight as indicated.

IPv6 Routing Table - default - 7 entries R1# show ipv6 route IPv6 Routing Table - default - 7 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static <output omitted> C 2001:DB8:ACAD:1::/64 [0/0] via GigabitEthernet0/0, directly connected L 2001:DB8:ACAD:1::1/128 [0/0] via GigabitEthernet0/0, receive C 2001:DB8:ACAD:2::/64 [0/0] via GigabitEthernet0/1, directly connected L 2001:DB8:ACAD:2::1/128 [0/0] via GigabitEthernet0/1, receive C 2001:DB8:ACAD:3::/64 [0/0] via Serial0/0/0, directly connected L 2001:DB8:ACAD:3::1/128 [0/0] via Serial0/0/0, receive L FF00::/8 [0/0] via Null0, receive R1# :1 :2 Network Address Interface Address Media Description: Create the following graphic.

Example of Configuring a Static Route Assuming other routers have been configured R1(config)# ip route 10.1.1.0 255.255.255.0 209.165.200.226 R1(config)# ipv6 route 2001:db8:acad:4::/64 2001:db8:acad:3::2 R1# show ip route <partial output> S 10.1.1.0 [1/0] via 209.165.200.226 R3#show ipv6 route S 2001:DB8:ACAD:4::/64 [1/0] via 2001:DB8:ACAD:3::2

Example of Configuring Dynamic Routing Assuming other routers have been configured R1(config)# router ospf 1 R1(config-router)# network 192.168.10.0 0.0.0.255 area 0 R1(config-router)# network 192.168.11.0 0.0.0.255 area 0 R1(config-router)# network 209.165.200.224 0.0.0.3 area 0 R1(config-router)# end R1# show ip route O 10.1.1.0/24 [110/648] via 209.165.200.226, 00:06:03, Serial0/0/0 O 10.1.2.0/24 [110/648] via 209.165.200.226, 00:06:03, Serial0/0/0

Administrative Distance Only a directly connected route can have an AD of 0 Administrative Distance (AD) is used when the router has multiple sources (connected, static, dynamic) for a route with the same prefix/prefix length. Cisco AD represents the “trustworthiness” of the route source - the lower the AD, the more trustworthy the source of the route If multiple paths to a destination are offered to the routing table, the path with the lowest AD is installed. 1.2.2.4 Administrative Distance

R1(config)# router ospf 1 R1(config-router)# network 192.168.10.0 0.0.0.255 area 0 R1(config-router)# network 192.168.11.0 0.0.0.255 area 0 R1(config-router)# network 209.165.200.224 0.0.0.3 area 0 R1(config-router)# end R1# show ip route O 10.1.1.0/24 [110/648] via 209.165.200.226, 00:06:03, Serial0/0/0 O 10.1.2.0/24 [110/648] via 209.165.200.226, 00:06:03, Serial0/0/0 R1# config t R1(config)# ip route 10.1.1.0 255.255.255.0 209.165.200.226 <partial output> S 10.1.1.0/24 [1/0] via 209.165.200.226

Which path is my “best path”? Router’s determine best-path to a network: Depends on the routing protocol A protocol used to between routers to determine “best path” Routing protocols use their own rules and metrics. A metric: Quantitative value used to measure the distance to a given route. Best path: Path with the lowest metric. Router’s best-path determination involves evaluating multiple paths to the same destination network and selecting the optimum or “shortest” path to reach that network. Depends upon routing protocol. RIP uses hop count whereas OSPF uses bandwidth (Cisco’s implementation of OSPF). Dynamic routing protocols use their own rules and metrics to build and update routing tables. A metric is the quantitative value used to measure the distance to a given route. The best path to a network is the path with the lowest metric. For example, a router will prefer a path that is five hops away over a path that is ten hops away. Comparing Dynamic Routing Protocols: RIP and OSPF RIP uses hop count R1 to R3 Fewer links but much slower OSPF uses bandwidth R1 to R2 to R3 More routers but much faster links

To reach the 192.168.1.0/24 network it is 2 hops via R2 and 2 hops via R4. Load Balancing ? ? 192.168.1.0/24 What happens if a routing table has two or more paths with the same metric to the same destination network? (equal-cost metric) Router will perform equal-cost load balancing. All routing protocols (RIP, EIGRP, OSPF) support equal cost load balancing; EIGRP also supports unequal cost load balancing. What happens if a routing table has two or more paths with the same metric to the same destination network? (equal-cost metric) Router will perform equal-cost load balancing. The router will forward packets using the multiple exit interfaces as listed in the routing table. Static routes and all dynamic routing protocols perform equal cost load balancing. (More later)

<partial output> R1# show ip route static <partial output S 10.1.1.0/24 [1/0] via 209.165.200.226 R1# show ip route ospf <partial output> O 10.1.2.0/24 [110/648] via 209.165.200.226, 00:06:03, Serial0/0/0 Routing Source Remote network AD Route Metric IPv4 address of next-hop router Egress (Exit) Interface

Rick Graziani Cabrillo College graziani@cabrillo.edu Populating an IP Routing Table, Administrative Distance, and Load Balancing Rick Graziani Cabrillo College graziani@cabrillo.edu