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



Similar documents
CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Route Discovery Protocols

Inter-domain Routing. Outline. Border Gateway Protocol

Exterior Gateway Protocols (BGP)

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

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

Border Gateway Protocol (BGP)

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

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

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

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

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Routing Protocols (RIP, OSPF, BGP)

6.263 Data Communication Networks

Routing with OSPF. Introduction

IP Routing Configuring RIP, OSPF, BGP, and PBR

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

Border Gateway Protocol (BGP-4)

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

Lecture 18: Border Gateway Protocol"

Internet inter-as routing: BGP

Using the Border Gateway Protocol for Interdomain Routing

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Internetworking and Internet-1. Global Addresses

How To Understand Bg

Chapter 10 Link-State Routing Protocols

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Introduction to LAN/WAN. Network Layer

BGP. 1. Internet Routing

Chapter 4. Distance Vector Routing Protocols

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

Computer Networks. Main Functions

Router and Routing Basics

Link-State Routing Protocols

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

Masterkurs Rechnernetze IN2097

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

OSPF Routing Protocol

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

GregSowell.com. Mikrotik Routing

CLASSLESS INTER DOMAIN ROUTING - CIDR

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Network Level Multihoming and BGP Challenges

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

KT The Value Networking Company

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

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Internet Peering, IPv6, and NATs. Mike Freedman V Networks

Week 4 / Paper 1. Open issues in Interdomain Routing: a survey

Lecture 12: Link-state Routing"

Introduction to Routing

Layer 3 Routing User s Manual

Introduction to TCP/IP

CS Computer Networks 1: Routing Algorithms

Introduction to LAN/WAN. Network Layer (part II)

The Internet. Internet Technologies and Applications

Evaluation And Implementation Of The Open Shortest Path First (OSPF) Routing Protocol

Internet Control Message Protocol (ICMP)

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

Routing Protocol - BGP

Administrative Distance

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Interconnecting Cisco Networking Devices Part 2

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

Internet inter-as routing: BGP

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

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Interdomain Routing. Outline

CompTIA Exam N CompTIA Network+ certification Version: 5.1 [ Total Questions: 1146 ]

: Interconnecting Cisco Networking Devices Part 2 v1.1

Routing in packet-switching networks

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Lesson 5-3: Border Gateway Protocol

VLSM and CIDR Malin Bornhager Halmstad University

Border Gateway Protocol BGP4 (2)

IP Routing Configuring Static Routes

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

LAB FOUR Dynamic Routing Protocols

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

Evolution of QoS routing in the Internet

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

basic BGP in Huawei CLI

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

Advanced BGP Policy. Advanced Topics

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Chapter# 19 INTERNETWORK OPERATION

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Classful IP Addressing (cont.)

Towards a Next- Generation Inter-domain Routing Protocol. L. Subramanian, M. Caesar, C.T. Ee, M. Handley, Z. Mao, S. Shenker, and I.

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

CS335 Sample Questions for Exam #2

Transcription:

Outline Internet Routing Venkat Padmanabhan Microsoft Research 9 pril 2001 Routing algorithms distance-vector (DV) link-state (LS) Internet Routing border gateway protocol (BGP) BGP convergence paper Venkat Padmanabhan 1 Venkat Padmanabhan 2 DV lgorithm lleviating the Problem Each router maintains a vector of costs to all destinations as well as routing table Initialize neighbors with known cost, others with infinity Periodically send copy of distance vector to neighbors On reception of a vector, determine if path via the neighbor better and if so update routing table If no changes, will converge to shortest paths but changes can create loops (count-to-infinity) Venkat Padmanabhan 3 Split horizon Router never advertises the cost of a destination back to its next hop that s where it learned it from! Solves trivial count-to-infinity problem Poison reverse go even further advertise back infinity why is this useful? Triggered updates count to infinity faster! However, DV protocols are still subject to the same problem with more complicated topologies Venkat Padmanabhan 4 Routing Information Protocol (RIP) Link State Routing DV protocol with hop count as metric Infinity defined to be 16 hops! Limits network size Includes split horizon with poison reverse Routers send vectors every 30 seconds With triggered updates for link failures Time-out in 180 seconds to detect failures RIPv1 (RFC1058), RIPv2 (RFC1388) v2 includes subnet mask, authentication Main advantage: simplicity Same assumptions/goals, but different idea: Tell all routers the topology and have each compute best paths Two phases: Topology dissemination (flooding) Shortest-path calculation (Dijkstra s algorithm) Why? In DV, routers hide their computation, making it difficult to make good decisions upon change With LS, faster convergence and hopefully better stability LS more complex, not as scalable Venkat Padmanabhan 5 Venkat Padmanabhan 6 1

Flooding Each router maintains link state database and periodically sends link state packets (LSPs) to its neighbors Contain [router, neighbors, costs] Each router forwards LSPs not already in its database on all ports except where received Each LSP will travel over the same link at most once in each direction Example LSP generated by at T=0 Nodes become yellow as they receive it T=0 T=1 T=2 T=3 Venkat Padmanabhan 7 Venkat Padmanabhan 8 Link-State Routing Issues Distinguishing between old and new LSPs LSP carry sequence numbers Why is this not an issue for DV? Scalability overhead of flooding, SPF computation use hierarchy (OSPF areas, IGP/EGP split) Metrics LSP can contain multiple metrics Open Shortest Path First (OSPF) Most widely-used Link State protocol today Basic link state algorithms plus many features: uthentication of routing messages Extra hierarchy: partition into routing areas Load balancing: multiple equal cost routes Venkat Padmanabhan 9 Venkat Padmanabhan 10 Routing Metrics Internet Routing Protocols such as OSPF don t specify this RPNET history: Original metric: instantaneous queue length D-SPF (late 70s): delay metric okay under light load (delay dominated by static quantities) oscillations under heavy load HN-SPF (late 80s): normalized hops metric delay used to estimate link utilization link utilization is normalized using a linear transform cost of heavily-loaded link 3*cost of idle link Main concern: scalability size of routing tables volume of routing tables amount of routing computation Tools for scaling address allocation & aggregation hierarchical routing architecture Venkat Padmanabhan 11 Venkat Padmanabhan 12 2

ddress llocation and ggregation IP address indicates topological location unlike flat Ethernet addresses Hosts in a network share a common prefix prefix obtained from IN or ISP e.g., 128.32..Y for Berkeley ddress aggregation only advertise routes to aggregates subnetting supernetting (CIDR) IPv4 ddress Formats Class Class B Class C 7 24 0 Network Host 14 16 1 0 Network Host 21 8 1 1 0 Network Host Venkat Padmanabhan 13 Venkat Padmanabhan 14 Subnetting Subnet Example Split up one network number into multiple physical networks Internal structure isn t propagated Helps allocation efficiency Network number Host number Class B address 111111111111111111111111 00000000 Subnet mask (255.255.255.0) Network number Subnet ID Host ID Subnetted address 128.96.34.15 H1 H3 128.96.33.14 R1 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.1 128.96.34.130 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.128 128.96.34.129 R2 128.96.33.1 H2 128.96.34.139 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 Venkat Padmanabhan 15 Venkat Padmanabhan 16 CIDR (Supernetting) CIDR Example CIDR: Classless Inter-Domain Routing ggregate advertised network routes e.g., ISP has class C addresses 192.4.16 through 192.4.31 Really like one larger 20 bit address class dvertise as such (network number, prefix length) Reduces size of routing tables But IP forwarding is more involved Based on Longest Matching Prefix operation and Y routes can be aggregated Border gateway (advertises path to 128.32.2/23) Regional network Corporation (128.32.2/24) Corporation Y (128.32.3/24) Venkat Padmanabhan 17 Venkat Padmanabhan 18 3

Hierarchical Routing Several levels of hierarchy Intra-domain versus inter-domain routing break problem down into more manageable pieces IGP: RIP, OSPF EGP: EGP, IDRP, BGP re RIP and OSPF suitable for interdomain routing? Structure of the Internet You at work Peering point Consumer ISP Small corporation Large corporation Backbone service provider Large corporation Consumer ISP You at home Consumer ISP Peering point Venkat Padmanabhan 19 Venkat Padmanabhan 20 Inter-Domain Routing Inter-Domain Routing Network comprised of many utonomous Systems (Ss) each S is assigned a number Kinds of Ss stub S multi-homed S transit S Does the S number have to be unique? 44 23 12 7 1123 321 Border routers summarize and advertise internal routes to external neighbors and vice-versa Border routers apply policy Internal routers can use notion of default routes Core is default-free S1 R1 R3 R2 Border router utonomous system 1 R4 utonomous system 2 Border router R5 R6 S2 Venkat Padmanabhan 21 Venkat Padmanabhan 22 Exterior Gateway Protocol (EGP) First major interdomain routing protocol Constrained Internet to tree structure Stanford BRRNET regional Berkeley PRC NCR NSFNET backbone Westnet regional U UNM UNL MidNet regional KU ISU Border Gateway Protocol (BGP-4) EGP used in the Internet backbone today Features: path vector routing incremental updates (except initially) application of policy operates over reliable transport (TCP) works with CIDR Venkat Padmanabhan 23 Venkat Padmanabhan 24 4

Path Vectors BGP Policies Similar to distance vector, except send entire paths e.g. 321 hears [7,12,44] stronger avoidance of loops multiple BGP speakers per S Shorter paths preferred (modulo policy) Reachability only announcements & withdrawals explicit/implicit withdrawals hard to ensure optimal routing 44 23 12 7 1123 321 Impact of policies which routes to accept and preference which routes to advertise Policies are generally local to an S business considerations cost robustness Venkat Padmanabhan 25 Venkat Padmanabhan 26 BGP Policies: Example Impact of Policies Example #1 ISP 1 C 1 ISP 2 ISP 3 C 2 C 3 ISP 2 may not provide transit service for ISP 1 and ISP 3 ISP 2 may not blindly announce any route it hears from C 2 Venkat Padmanabhan 27 Early Exit / Hot Potato if it s not for you, bail Combination of best local policies not globally best Side-effect: asymmetry Inter-domain connectivity cannot be modeled as a simple directed graph! Venkat Padmanabhan 28 B Impact of Policies: Example #2 Operation over TCP Persistent oscillations Example: (Varadhan et al. 1996) S1 prefers R2 S2 prefers R3 S3 prefers R1 R2 Solution? S2 S1 R1 S3 Venkat Padmanabhan 29 R3 Most routing protocols operate over UDP/IP BGP uses TCP TCP handles error control; reacts to congestion llows for incremental updates Issue: Data vs. Control plane Should routing messages receive a higher priority than data? delayed processing of BGP keep-alive messages can lead to instability Venkat Padmanabhan 30 5

When should we use BGP? Main benefit of BGP is greater control makes sense for multi-homed site, transit network How about a stub network? default/static route will suffice several costs to running BGP and advertising a separate prefix need BGP router additional routing entry in every BGP router instability due to transient faults BGP Convergence Paper by Labovitz, huja, Bose, Jahanian Fast fail-over of Internet routes is a myth can take several minutes BGP maintains an alternate path per neighbor protocol doesn t indicate cause of failure blindly explores all paths upon failure Venkat Padmanabhan 31 Venkat Padmanabhan 32 Experimental Observations Tup & Tshort converge faster than Tdown & Tlong No correlation between convergence latency and geographic distance topology is the key (# of alternate paths) No correlation between convergence latency and congestion previous study on routing instability had demonstrated correlation BGP Convergence Model Complete graph: O((n-1)!) time Reason: monotonically increasing rather than strictly increasing path lengths Basic problem: nodes advertise new paths as soon as they receive updates Venkat Padmanabhan 33 Venkat Padmanabhan 34 Doing better Doing still better Synchronizing updates at most one announce per destination during a MinRoutedver interval ensures that each round only considers paths longer than that in previous rounds O(max length path) Loop detection receiver-side as well as sender-side BGP-CT cause tag indicates the reason that a route was withdrawn can tell if an alternate route is also affected by a failure O(shortest path through the network) Venkat Padmanabhan 35 Venkat Padmanabhan 36 6