1. 라우팅 기본 개념. To route a router need to know: Destination addresses Sources it can learn from Possible routes Best route Maintain and verify routing information.

Slides:



Advertisements
Similar presentations
Distance Vector Routing Protocols
Advertisements

Chapter 22 Network Layer: Delivery, Forwarding, and Routing.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—-5-1 WAN Connections Enabling RIP.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing.
Copyright 2002 Year 2 - Chapter 5/Cisco 3 - Module 5 Routing Protocols: IGRP By Carl Marandola.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts – Chapter.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Reviewing Routing Operations.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Routing.
SYPCNSA Department2007 Summer Youth Program: Internal Protocols: RIP & IGRP.
1 Basics of Dynamic Routing Presented by Aaron Jarvis Network Engineer.
Routing and Routing Protocols
Path Determination Static Routes Dynamic Routing Protocols
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing.
Distance Vector Protocols
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—5-1 WAN Connections Enabling Static Routing.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Chabot College Chapter 5 – Routing Protocols: IGRP Review Questions Semester IIIELEC Semester III ELEC
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
Introduction to Routing & Routing Protocol 1. Agenda – - Router Operations – - Static Route – - Default Route – - Dynamic Route – - Class of Dynamic Routing.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
1 Routing Protocols and Configuration Instructor: Te-Lung Liu Program Associate Researcher NCHC, South Region Office.
Advantages of Dynamic Routing over Static Routing : Advertise only the directly connected networks. Updates the topology changes dynamically. Administrative.
© 1999, Cisco Systems, Inc. 9-1 Chapter 9 Determining IP Routes.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Sybex CCENT Chapter 8: IP Routing Instructor & Todd Lammle.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Sybex CCNA Chapter 6: IP Routing Instructor & Todd Lammle.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Dynamic Routing Chapter 9. powered by DJ 1. C HAPTER O BJECTIVES At the end of this Chapter you will be able to:  Explain Dynamic Routing  Identify.
Introduction to Dynamic Routing Protocol
Open standard protocol Successor of RIP Classless routing protocol Uses Shortest Path First (SPF) Algorithm Updates are sent through Multicast IP address.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 5: IP Routing.
© 2002, Cisco Systems, Inc. All rights reserved..
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—-5-1 WAN Connections Routing & Enabling RIP.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
Chapter 6 IP Routing. Basic information When you configure interface of a node with IP and mask, the node will know the network corresponding to that.
CCNA 2 Week 7 Distance Vector Routing. Copyright © 2005 University of Bolton Topics Distance Vector Protocol Issues RIP IGRP.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 7 Distance Vector Routing Protocols.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Cisco proprietary protocol Classless routing protocol Metric (32 bit) : Composite Metric (BW + Delay) by default. Administrative distance is 90 Updates.
Routing and Routing Protocols
1 Identifying Static and Dynamic Routes Static Route Uses a route that a network administrator enters into the router manually Dynamic Route Uses a route.
IP Routing Principles. Network-Layer Protocol Operations Each router provides network layer (routing) services X Y A B C Application Presentation Session.
Chapter 5 IP Routing Routing Protocol vs. Routed Protocol.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Cisco Systems Networking Academy S2 C 12 Routing Protocols.
 RIP — A distance vector interior routing protocol  IGRP — The Cisco distance vector interior routing protocol (not used nowadays)  OSPF — A link-state.
ROUTING AND ROUTING TABLES 2 nd semester
Year 2 - Chapter 5/Cisco 3 - Module 5 Routing Protocols: IGRP.
RIP v1– Routing Information Protocol RIP Versions –RIP v1 (original version, Doyle ch 5) –RIP v2 (improved version, Doyle ch 7) Simple distance-vector.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
© 2002, Cisco Systems, Inc. All rights reserved.
Routing Loops.
DYNAMIC ROUTING.
Routing Information Protocol
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Routing & Enabling RIP WAN Connections.
Enabling Static Routing
RFC 1058 & RFC 2453 Routing Information Protocol
Routing Information Protocol
CIT 384: Network Administration
© 2002, Cisco Systems, Inc. All rights reserved.
Presentation transcript:

1. 라우팅 기본 개념

To route a router need to know: Destination addresses Sources it can learn from Possible routes Best route Maintain and verify routing information What is Routing?

What is Routing? (cont.) Network Protocol Destination Network Connected Learned Exit Interface E0 S0 Routed Protocol: IP Routers must learn destinations that are not directly connected E0 S0

Static Route Uses a route that a network administrator enters into the router manually Dynamic Route Uses a route that a network routing protocol adjusts automatically for topology or traffic changes Identifying Static and Dynamic Routes

SO Static Routes B Network A Configure unidirectional static routes to and from a stub network to allow communications to occur. B Stub Network

Defines a path to an IP destination network or subnet Router(config)#ip route network [mask] {address | interface}[distance] [permanent] Static Route Configuration

Stub Network ip route SO Static Route Example B Network A B This is a unidirectional route. You must have a route configured in the opposite direction.

Stub Network ip route Default Routes SO B Network A B This route allows the stub network to reach all known networks beyond router A.

What is a Routing Protocol? Routing protocols are used between routers to determine paths and maintain routing tables. Once the path is determined a router can route a routed protocol. Network Protocol Destination Network Connected RIP IGRP Exit Interface E0 S0 S1 Routed Protocol: IP Routing protocol: RIP, IGRP E0 S0

Autonomous System 100 Autonomous System 200 IGPs: RIP, IGRP EGPs: BGP Autonomous Systems: Interior or Exterior Routing Protocols An autonomous system is a collection of networks under a common administrative domain IGPs operate within an autonomous system EGPs connect different autonomous systems

Administrative Distance: Ranking Routes IGRP Administrative Distance=100 Router D Router B Router A Router C RIP Administrative Distance=120 E I need to send a packet to Network E. Both router B and C will get it there. Which route is best?

Classes of Routing Protocols Distance Vector Hybrid Routing Link State C B A D C D B A

Distance Vector Routing Protocols Pass periodic copies of routing table to neighbor routers and accumulate distance vectors C D B A CB A D Routing Table Routing Table Routing Table Routing Table Routing Table Routing Table Routing Table Routing Table Distance—How far Vector—In which direction

Routers discover the best path to destinations from each neighbor ABC E0S0 S1S0E0 Routing Table S0 S1 Routing Table S E0 0 0 Routing Table E0 S0 0 0 Distance Vector—Sources of Information and Discovering Routes

Routers discover the best path to destinations from each neighbor ABC E0S0 S1S0E0 Routing Table Routing Table S0 S1 S0 Routing Table S E S0 1 1 E0 S Distance Vector—Sources of Information and Discovering Routes

Routers discover the best path to destinations from each neighbor ABC E0S0 S1S0E0 Routing Table Routing Table S0 S1 S0 Routing Table S E S S E0 S

Distance Vector—Selecting Best Route with Metrics Information used to select the best path for routing 56 T1 56 T1 Ticks, hop count B A Hop count IPX RIP IGRP Bandwidth Delay Load Reliability MTU

Distance Vector—Maintaining Routing Information Updates proceed step-by-step from router to router A Process to update this routing table Process to update this routing table Topologychangecausesroutingtableupdate

Distance Vector—Maintaining Routing Information Updates proceed step-by-step from router to router A Process to update this routing table Process to update this routing table Router A sends out this updated routing table after the next period expires Topology change causes routing table update

Distance Vector—Maintaining Routing Information Updates proceed step-by-step from router to router A B Process to update this routing table Process to update this routing table Process to update this routing table Process to update this routing table Topology change causes routing table update Router A sends out this updated routing table after the next period expires

Maintaining Routing Information Problem—Routing Loops Each node maintains the distance from itself to each possible destination network ABC E0S0 S1S0E0 Routing Table S0 E0 S Routing Table E0 S Routing Table S0 S1 S

Maintaining Routing Information Problem—Routing Loops Slow convergence produces inconsistent routing ABC E0S0 S1S0E0 X Routing Table S0 E0 S Down Routing Table E0 S Routing Table S0 S1 S

Router C concludes that the best path to network is through Router B Maintaining Routing Information Problem—Routing Loops ABC E0S0 S1S0E0 X Routing Table S Routing Table E0 S Routing Table S0 S

Router A updates its table to reflect the new but erroneous hop count Maintaining Routing Information Problem—Routing Loops ABC E0S0 S1S0E0 X Routing Table S Routing Table E0 S Routing Table S0 S1 S

Symptom: Counting to Infinity Packets for network bounce between routers A, B, and C Hop count for network counts to infinity ABC E0S0 S1S0E0 X Routing Table S Routing Table E0 S Routing Table S0 S1 S

Solution: Defining a Maximum Define a limit on the number of hops to prevent infinite loops ABC E0S0 S1S0E0 X Routing Table S Routing Table E0 S Routing Table S0 S1 S

Solution: Split Horizon It is never useful to send information about a route back in the direction from which the original packet came ABC E0S0 S1S0E0 X XX Routing Table S Routing Table E0 S Routing Table S0 S1 E

Solution: Route Poisoning Routers set the distance of routes that have gone down to infinity ABC E0S0 S1S0E0 X Routing Table S Infinity Routing Table E0 S Routing Table S0 S1 E

Solution: Poison Reverse Poison Reverse overrides split horizon ABC E0S0 S1S0E0 X Routing Table S Infinity Routing Table E0 S Routing Table S0 S1 E1 Possibly Down Poison Reverse

Solution: Hold-Down Timers Router keeps an entry for the network possibly down state, allowing time for other routers to recompute for this topology change Network is down then back up then back down Update after hold-down Time Update after hold-down Time Network is unreachable Network is unreachable ABC E0S0 S1S0E0 X Update after hold-down Time Update after hold-down Time

Solution: Triggered Updates Router sends updates when a change in its routing table occurs ABC E0S0 S1S0E0 X X Network is unreachable Network is unreachable Network is unreachable Network is unreachable Network is unreachable Network is unreachable

Blank Slide for Instructor Notes

Implementing Solutions in Multiple Routes D B E A X X C

Implementing Solutions in Multiple Routes (cont.) D BE A C X X Holddown

Implementing Solutions in Multiple Routes (cont.) D BE A C X X Holddown Poison Reverse

Implementing Solutions in Multiple Routes (cont.) D BE A C X X Holddown Packet for Network Packet for Network Packet for Network Packet for Network

Implementing Solutions in Multiple Routes (cont.) D BE A C Link up!

Implementing Solutions in Multiple Routes (cont.) D BE A C Link up!

Link-State Routing Protocols After initial flood, pass small event-triggered link-state updates to all other routers Link-State Packets SPF Algorithm Topological Database Shortest Path First Tree Routing Table Routing Table CA D B

Share attributes of both distance-vector and link-state routing Hybrid Routing Choose a routing path based on distance vectors Converge rapidly using change-based updates Choose a routing path based on distance vectors Converge rapidly using change-based updates Balanced Hybrid Routing

Router configuration Select routing protocols Specify networks or interfaces Network Network IGRP, RIP Network RIP IGRP IP Routing Configuration Tasks

Defines an IP routing protocol Router(config)#router protocol [keyword] Mandatory configuration command for each IP routing process Identifies the physically connected network that routing updates are forwarded to Router(config-router)#network network-number Dynamic Routing Configuration

19.2 kbps T1 Hop count metric selects the path Routes update every 30 seconds RIP Overview

Starts the RIP routing process Router(config)#router rip Router(config-router)#network network-number Selects participating attached networks The network number must be a major classful network number RIP Configuration

router rip network network RIP Configuration Example router rip network router rip network network S2E0S S2S A BC E0

Verifying the Routing Protocol—RIP RouterA#sh ip protocols Routing Protocol is "rip" Sending updates every 30 seconds, next due in 0 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Key-chain Ethernet Serial Routing for Networks: Routing Information Sources: Gateway Distance Last Update :00:10 Distance: (default is 120) S2E0S S2S A BC E0

Displaying the IP Routing Table RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set /24 is subnetted, 1 subnets C is directly connected, Ethernet /24 is subnetted, 2 subnets R [120/1] via , 00:00:07, Serial2 C is directly connected, Serial2 R /24 [120/2] via , 00:00:07, Serial S2E0S S2S A BC E0

debug ip rip Command RouterA#debug ip rip RIP protocol debugging is on RouterA# 00:06:24: RIP: received v1 update from on Serial2 00:06:24: in 1 hops 00:06:24: in 2 hops 00:06:33: RIP: sending v1 update to via Ethernet0 ( ) 00:06:34: network , metric 1 00:06:34: network , metric 3 00:06:34: RIP: sending v1 update to via Serial2 ( ) 00:06:34: network , metric S2E0S S2S A BC E0

More scalable than RIP Sophisticated metric Multiple-path support Introduction to IGRP IGRP

Bandwidth Delay Reliability Loading MTU 19.2 kbps IGRP Composite Metric Source Destination

Blank Slide for Instructor Notes

Maximum six paths Next-hop router closer to destination Within metric variance New Route Initial Route Source Destination IGRP Unequal Multiple Paths

Configuring IGRP Router(config-router)#network network-number Selects participating attached networks Router(config)#router igrp autonomous-system Defines IGRP as the IP routing protocol

Configuring IGRP (cont.) Router(config-router)#traffic-share { balanced | min } Control how load-balanced traffic is distributed Router(config-router)#variance multiplier Control IGRP load balancing

router igrp 100 network network IGRP Configuration Example router igrp 100 network router igrp 100 network network Autonomous System = S2E0S S2S A BC E0

Verifying the Routing Protocol—IGRP RouterA#sh ip protocols Routing Protocol is "igrp 100" Sending updates every 90 seconds, next due in 21 seconds Invalid after 270 seconds, hold down 280, flushed after 630 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Default networks flagged in outgoing updates Default networks accepted from incoming updates IGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 IGRP maximum hopcount 100 IGRP maximum metric variance 1 Redistributing: igrp 100 Routing for Networks: Routing Information Sources: Gateway Distance Last Update :01:01 Distance: (default is 100) S2E0S S2S A BC E0

Displaying the IP Routing Table RouterA#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set /24 is subnetted, 1 subnets C is directly connected, Ethernet /24 is subnetted, 2 subnets I [100/90956] via , 00:00:23, Serial2 C is directly connected, Serial2 I /24 [100/91056] via , 00:00:23, Serial S2E0S S2S A BC E0

debug ip igrp transaction Command RouterA#debug ip igrp transactions IGRP protocol debugging is on RouterA# 00:21:06: IGRP: sending update to via Ethernet0 ( ) 00:21:06: network , metric= :21:06: network , metric= :21:07: IGRP: sending update to via Serial2 ( ) 00:21:07: network , metric= :21:16: IGRP: received update from on Serial2 00:21:16: subnet , metric (neighbor 88956) 00:21:16: network , metric (neighbor 89056) S2E0S S2S A BC E0

debug ip igrp events Command RouterA#debug ip igrp events IGRP event debugging is on RouterA# 00:23:44: IGRP: sending update to via Ethernet0 ( ) 00:23:44: IGRP: Update contains 0 interior, 2 system, and 0 exterior routes. 00:23:44: IGRP: Total routes in update: 2 00:23:44: IGRP: sending update to via Serial2 ( ) 00:23:45: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:23:45: IGRP: Total routes in update: 1 00:23:48: IGRP: received update from on Serial2 00:23:48: IGRP: Update contains 1 interior, 1 system, and 0 exterior routes. 00:23:48: IGRP: Total routes in update: S2E0S S2S A BC E0

Updating Routing Information Example RouterA# debug ip igrp trans 00:31:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down 00:31:15: IGRP: edition is now 3 00:31:15: IGRP: sending update to via Serial2 ( ) 00:31:15: network , metric= :31:16: IGRP: Update contains 0 interior, 1 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: 1 00:31:16: IGRP: broadcasting request on Serial2 00:31:16: IGRP: received update from on Serial2 00:31:16: subnet , metric (neighbor 88956) 00:31:16: network , metric (inaccessible) 00:31:16: network , metric (neighbor 89056) 00:31:16: IGRP: Update contains 1 interior, 2 system, and 0 exterior routes. 00:31:16: IGRP: Total routes in update: S2 E0 S S2S A BC E0 X X

Updating Routing Information Example (cont.) RouterB#debug ip igrp trans IGRP protocol debugging is on RouterB# 1d19h: IGRP: sending update to via Serial2 ( ) 1d19h: subnet , metric= d19h: network , metric= d19h: IGRP: sending update to via Serial3 ( ) 1d19h: subnet , metric= d19h: network , metric= d19h: IGRP: received update from on Serial2 1d19h: network , metric (inaccessible) 1d19h: IGRP: edition is now 10 1d19h: IGRP: sending update to via Serial2 ( ) 1d19h: subnet , metric= d19h: network , metric= d19h: network , metric= d19h: IGRP: sending update to via Serial3 ( ) 1d19h: subnet , metric= d19h: network , metric= S2E0S S2S A BC E0

Updating Routing Information Example (cont.) RouterB#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set I /16 is possibly down, routing via , Serial /24 is subnetted, 2 subnets C is directly connected, Serial2 C is directly connected, Serial3 I /24 [100/89056] via , 00:00:14, Serial3 RouterB#ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:..... Success rate is 0 percent (0/5) RouterB# S2 E0 S S2S A BC E0 X X

Updating Routing Information Example (cont.) S2E0S S2S A BC E0 RouterB#debug ip igrp transactions RouterB# 1d20h: IGRP: received update from on Serial2 1d20h: network , metric (neighbor 1100) RouterB# RouterB#sh ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route, o - ODR T - traffic engineered route Gateway of last resort is not set I /16 is possibly down, routing via , Serial /24 is subnetted, 2 subnets C is directly connected, Serial2 C is directly connected, Serial3 I /24 [100/89056] via , 00:00:18, Serial3 RouterB#ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/38/48 ms

With ip classless Default With no ip classless Drop Router(config)#ip classless ip classless Command S0 Default route E Network Protocol Destination Network C C RIP via Exit Interface E0 S0 S0 E To get to :

Summary After completing this chapter, you should be able to perform the following tasks: Determine when to use a static or dynamic route. Configure a static route on a Cisco Router. Describe how distance vector routing protocols operate. Configure the RIP and IGRP routing protocols on a Cisco router. Use show ip route, show ip protocols, and other show and debug commands to verify proper routing operation.