Route Optimization. rek. 2005 Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1



Similar documents
Table of Contents. Cisco How Does Load Balancing Work?

Introduction to Dynamic Routing Protocols

Router and Routing Basics

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

OSPF Configuring Multi-Area OSPF

Border Gateway Protocol (BGP)

Configuring a Gateway of Last Resort Using IP Commands

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Chapter 10 Link-State Routing Protocols

Understanding Route Redistribution & Filtering

Chapter 2 Lab 2-2, EIGRP Load Balancing

Link-State Routing Protocols

Using OSPF in an MPLS VPN Environment

Route Discovery Protocols

Border Gateway Protocol (BGP-4)

GregSowell.com. Mikrotik Routing

Using the Border Gateway Protocol for Interdomain Routing

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

IP Routing Configuring RIP, OSPF, BGP, and PBR

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

Course Contents CCNP (CISco certified network professional)

Configuring RIP. Overview. Routing Update Process CHAPTER

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

IMPLEMENTING CISCO IP ROUTING V2.0 (ROUTE)

Chapter 4. Distance Vector Routing Protocols

Administrative Distance

OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

BSCI Chapter Cisco Systems, Inc. All rights reserved.

Based on Computer Networking, 4 th Edition by Kurose and Ross

O /27 [110/129] via , 00:00:05, Serial0/0/1

OSPF Routing Protocol

How To Understand Bg

Advanced BGP Policy. Advanced Topics

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

Cisco Discovery 3: Introducing Routing and Switching in the Enterprise hours teaching time

CCIE R&S Lab Workbook Volume I Version 5.0

CCNP CISCO CERTIFIED NETWORK PROFESSIONAL LAB MANUAL

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

Understanding Route Aggregation in BGP

Routing with OSPF. Introduction

CCNA2 Chapter 11 Practice

DEGREE THESIS. Improving Network Performance by Implementing the Path Control Tools. Derick Kolle Nduge, Augustine Chika, Mohammednur Ibrahim

Internet inter-as routing: BGP

IP Routing Configuring Static Routes

Interconnecting Multiple OSPF Areas

Border Gateway Protocol BGP4 (2)

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Introduction to TCP/IP

Cisco Configuring Basic MPLS Using OSPF

Interconnecting Cisco Networking Devices Part 2

BGP. 1. Internet Routing

Inter-domain Routing. Outline. Border Gateway Protocol

Table of Contents. Cisco Configuring a Basic MPLS VPN

ISOM3380 Advanced Network Management. Spring Course Description

- Routing Information Protocol -

Deploying OSPF for ISPs. OSPF Design. Agenda. Service Providers. SP Architecture. SP Architecture. OSPF Design in SP Networks

Understanding Virtual Router and Virtual Systems

COURSE AGENDA. Lessons - CCNA. CCNA & CCNP - Online Course Agenda. Lesson 1: Internetworking. Lesson 2: Fundamentals of Networking

Layer 3 Routing User s Manual

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

How to Configure Cisco 2600 Routers

Routing Protocols (RIP, OSPF, BGP)

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Networking. Palo Alto Networks. PAN-OS Administrator s Guide Version 6.0. Copyright Palo Alto Networks

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

Exterior Gateway Protocols (BGP)

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Cisco Router Configuration Tutorial

: Interconnecting Cisco Networking Devices Part 2 v1.1

ZXR /5200 Series

Sample Configuration Using the ip nat outside source static

Configuring Route Maps and Policy-Based Routing

MPLS VPN Route Target Rewrite

Internet inter-as routing: BGP

Sample Configuration Using the ip nat outside source list C

BGP4 Case Studies/Tutorial

CCNA 2 v5.0 Routing Protocols Final Exam Answers

ASA 9.x EIGRP Configuration Example

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

Troubleshooting Bundles and Load Balancing

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Implementing Cisco MPLS

Cisco s OSPF Implementation P1C-107

Interconnecting Cisco Network Devices 1 Course, Class Outline

BGP Attributes and Path Selection

For internal circulation of BSNLonly

CCNA Exploration 4.0: (II) Routing Protocols and Concepts. Chapter 1: Introduction to Routing and Packet Forwarding

MPLS Concepts. Overview. Objectives

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

APNIC elearning: BGP Attributes

Configuring BGP. Cisco s BGP Implementation

Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding

Transcription:

Route Optimization (intra-as) Petr Grygárek rek 1

Goal of route optimization Static routing: More predictable and safer Dynamic routing: Automatically ally reacts on topology changes Lower administration Higher CPU and memory utilization Consumes bandwidth Using route optimization, we influence the process of best routes selection either selection from multiple routes configured statically or routes learned from routing protocol 2

Route optimization: How to influence routing decision? Selection of proper routing protocol Metric Load balancing support` Configuration of routing protocol and link parameters setting of link costs creating router areas, summarization default route propagation, route filtering Local definition of packet forwarding rules for particular router 3

Metric Metric of link/path determines the preference of that link/path Lower metric is preferred Various metrics reflect current link properties Scalar metric Composite metric We need to compare metric values Transformed to scalar metric (coefficients) The same transformation method should be used at every router Static and dynamic metric Dynamic metric incorporate instant link parameters (may change rapidly) r Commonly, only static metric is used Risk of route flapping when dynamic metric of a link changes too often Dynamic measurements of link characteristics (load, error rate) needs to be averaged over time 4

Load balancing How many routes to the same network are maintained in routing table? Equal-cost load balancing limited by maximum paths allowed Unequal-cost limited by variance (and max. paths) Load balancing method Per-packet round-robin, robin, slower implementation (SW) Per-source/Per source/per-destination/combination of both faster (easier HW implementation when using route cache) load balancing efficiency depends on traffic pattern 5

Default routes Default route limits number of records in routing tables Denoted as 0.0.0.0/0 Matches every packet Static default Possibly more floating static defaults Dynamic default (propagated by/learned from IGP protocols) Propagated as 0.0.0.0/0 or as specially-tagged records Receiving router chooses from candidate defaults based on normal metric Origination of default route: Redistribution of static default Router itself is the source of default (router itself doesn t t have to have default in it s s routing table, but a set of specific routes instead) 6

Multiprotocol Routing 7

Multiprotocol Routing - Principle Route tables filled-in in with routes by more routing processes (protocols) Routes learned from multiple routing protocols are uncomparable various routing protocols use noncompatible metrics If multiple (potentially different) paths to some network are learned from multiple routing protocols, router must decide which one to place into routing table 8

Reasons for multiprotocol routing History of particular network Limited routingr protocol support in routers and/or host operating systems Different routing protocols feasible in various parts of internetwork network fast LANs slow WAN links dial-on demand circuits 9

Multiprotocol routing Administrative distance Administrative distance (AD) specifies preference of particular routing protocol AD is Cisco term, but the concept is general Route with lower AD is always better Regardless of metric values Only route metrics with the same ADs can be compared AD has only local scope (not propagated between routers) If a path is learned by multiple routing protocols, path from more preferred routing protocol is placed into routing table Only if multiple paths are learned from the same routing protocol, protocol metric is used to choose between them 10

Administrative Distance settings Common AD settings: Connected < Static < OSPF < RIP (lower is more preferred) Cisco AD default values: Connected: Static 1 IGRP (Cisco) 100 OSPF 110 IS-IS 115 RIP 120 0 (cannot be changed) 11

Tricks with AD setting Set AD for routes to specific networks only Set AD for routes received from some neighbor Set AD=255: do not use that route 12

Floating Static Routes Floating static route = static route with worse administrative metric than normally used route Becomes active ( floats( up ) ) when the route normally used is lost routing protocol removes route Next hop specified in primary static route becomes unreachable Often used with dial-on on-demand links floating static route forwards packet via dial-on on-demand circuit 13

Routing Processes Router can run multiple separate routing processes (of various or the same routing protocols) Every process works with subset of router s s interfaces multiple routing protocols on the same interface may be useful sometimes s also Cisco IOS: can support up to 30 routing processes (instances) More instances of the same routing protocol possible Cisco: RIP is an exception, but RIP contexts may serve as workaround Routing table filled by all routing processes But even DV routing processes have to maintain separate data structures (routing tables of only that protocol) Routing processes don t t interchange information if not explicitly instructed to do so Information interchange can be configured using redistribution 14

Redistribution Redistribution = interchange of information between routing processes (and appropriate protocols) Redistribution of static routes or connected networks into routing protocol is a special case Possibility to filter routes during redistribution One-way and Two-way way redistribution 15

Problems with Redistribution (1) Redistribution from classless to classful protocol Distributing subnets (subnetted major networks) from classless into classful protocol cause problems See http://www.cisco cisco.com/warp/public/105/52. /public/105/52.html Cisco: When redistributing from classful routing protocol into OSPF, only classful routes are redistributed by default. Use : subnets keyword in redistribute command to override this behavior. Uncompatible metric Route are redistributed with default metric ( default metric value may be specified) 16

Problems with Redistribution (2) Circular redistribution when redistribution takes place on more routers redistributed routes have to be filtered to prevent loops Bad AD setting may cause problems See http://www.cisco.com/warp/public/105/redist.html#ad Intra-AS traffic goes through other AS s s routers may be resolved by artifical increse of redistributed routes metric 17

Redistribution advanced issues Possible to specify protocol-dependent parameters metric-type type (OSFP: E1,E2) tag If protocol tags external routes, it will not export them again out of AS Recommended usege of redistribution if configured on more than one router: oneway redistribution + default route distributed in opposite direction 18

Redistribution examples RIP and IGRP on single router RIP and OSPF on single router (external routes) Multiple independent routing processes of the same protocol on single router Circular redistribution with route filtering Typical scenerio: Static routes into stub networks redistributed into backbone routing protocol Dynamic routing protocol in backbone. Stub networks reach other networks using default. 19

Route tagging Some routing protocols allow to append tag to routes they advertise Usage: Candidate default route External route Internal routes always preferred over external (internal traffic shouldn t t leave AS) External routes should not be advertised back out of AS User-specified specified route tagging + filteringf or redistribution control based on route tags 20

Route Filtering Distance Vector Protocols: filtering of routes in routing updates Rows of advertised/received updates filtered Based on destination network or neighbor (update source) Link State Protocols: calculation of SPF always based on entire topology database (no filtering of LSAs!) filtering possible when placing routes into routing table Filtering during redistribution Cisco: redistribution achieved by Distribute lists (refer to ACL) per routing protocol/per interface 21

Metric manipulation in DV protocols Metric may be manipulated in advertised or received routing updates May help to give preference to particular route defend against inter-as traffic leaking AS defend against circular redistribution 22

Passive Interface Route updates not sent out of passive interface Received updates accepted Hellos not sent adjacencies not established Applied on Ethernet stub network, dial-up lines, routing domain (AS) boundaries Network connected to passive interface normally advertised into routing protocol 23

Route Summarization Advantages Fewer records in routing tables Less bandwidth taken by routing updates Rules Summarization on major network boundary or router choosen by administrator Some routing protocols allows for summarization only at specific routers (OSPF: ABR, ASBR) Summarization into classful network or general supernet Only router which owns the whole address range may summarize that range Need for hierarchical IP addressing plan Behavior of routing protocols: Some routing protocols summarize by default In some of them, it is possible to turn it off (RIPv2,, BGP), in others not (RIP) 24

Policy routing Extended form of static routing Route decision based on SOURCE (instead of destination) address or incoming interface of routed packet may also depend on destination address Defined statically by route maps on particular router(s) Entry format: packet matching criteria => > outgoing interface next hop General format of route map entry: match X set Y Y Route maps have higher priority than routing tables But apply only when outgoing interface is up Examples: Two parallel links, traffic sourced from one subnet not allowed to pass the faster link (because of political reasons) Two links to different ISPs; some internal subnets communicate with w Internet via ISP1, others via ISP2 25

Labs Load balancing: RIP, IGRP, OSPF (few notes about ISIS) Floating static routes RIP-OSPF redistribution (two-way way at single router) AD of routing protocols RIP-RIP circular redistribution,, RIP-OSPF circular redistribution (harmless) OSPF-OSPF redistribution Policy routing: debug ip policy, sh route map 26