Mike Freedman Fall 2012 COS 561: Advanced Computer Networks Traffic Engineering.

Slides:



Advertisements
Similar presentations
Multihoming and Multi-path Routing
Advertisements

Multihoming and Multi-path Routing
1 Interdomain Traffic Engineering with BGP By Behzad Akbari Spring 2011 These slides are based on the slides of Tim. G. Griffin (AT&T) and Shivkumar (RPI)
1 Traffic Engineering (TE). 2 Network Congestion Causes of congestion –Lack of network resources –Uneven distribution of traffic caused by current dynamic.
© J. Liebeherr, All rights reserved 1 Border Gateway Protocol This lecture is largely based on a BGP tutorial by T. Griffin from AT&T Research.
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 Interdomain Routing Protocols. 2 Autonomous Systems An autonomous system (AS) is a region of the Internet that is administered by a single entity and.
1 EL736 Communications Networks II: Design and Algorithms Class8: Networks with Shortest-Path Routing Yong Liu 10/31/2007.
Traffic Engineering With Traditional IP Routing Protocols
1 Adapting Routing to the Traffic COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching Assistant: Mike Wawrzoniak.
Traffic Engineering Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
Internet Routing (COS 598A) Today: Intradomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
15-744: Computer Networking L-5 Intra-Domain Routing.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Internet Routing (COS 598A) Today: Multi-Homing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
Routing.
Backbone Networks Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Multipath Routing Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Intradomain Routing Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Intradomain routing Lecture 4 CS 653, Fall Routing as a shortest path problem u y x wv z Shortest path between u and z = uxyz.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Wide-Area Traffic Management COS 597E: Software Defined Networking.
Jennifer Rexford Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks Stub.
Inter-domain Routing Outline Border Gateway Protocol.
Transit Traffic Engineering Nick Feamster CS 6250: Computer Networks Fall 2011.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
Introduction to Routing and Routing Protocols By Ashar Anwar.
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
6: Routing Working at a Small to Medium Business.
Packet-Switching Networks Routing in Packet Networks.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Controlling the Impact of BGP Policy Changes on IP Traffic Jennifer Rexford IP Network Management and Performance AT&T Labs – Research; Florham Park, NJ.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
Intradomain Traffic Engineering By Behzad Akbari These slides are based in part upon slides of J. Rexford (Princeton university)
6: Routing Working at a Small to Medium Business.
Routing and Routing Protocols
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Jennifer Rexford Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks Backbone.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Dynamic Routing Protocols II OSPF
1 Slides by Yong Liu 1, Deep Medhi 2, and Michał Pióro 3 1 Polytechnic University, New York, USA 2 University of Missouri-Kansas City, USA 3 Warsaw University.
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
Routing Protocols Brandon Wagner.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Inter-domain Routing Outline Border Gateway Protocol.
Distance Vector Routing
Routing Semester 2, Chapter 11. Routing Routing Basics Distance Vector Routing Link-State Routing Comparisons of Routing Protocols.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Dynamic Routing Protocols II OSPF
Border Gateway Protocol
Interdomain Traffic Engineering with BGP
Routing.
Dynamic Routing Protocols II OSPF
Dynamic Routing and OSPF
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
BGP Policies Jennifer Rexford
Backbone Traffic Engineering
BGP Interactions Jennifer Rexford
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Routing.
Presentation transcript:

Mike Freedman Fall 2012 COS 561: Advanced Computer Networks Traffic Engineering

Do IP Networks Manage Themselves? In some sense, yes: –TCP senders send less traffic during congestion –Routing protocols adapt to topology changes But, does the network run efficiently? –Congested link when idle paths exist? –High-delay path when a low-delay path exists? How should routing adapt to the traffic? –Avoiding congested links in the network –Satisfying application requirements (e.g., delay) … essential questions of traffic engineering 2

Outline ARPAnet routing protocols Tuning routing-protocol configuration Multipath load balancings Traffic engineering for multi-homed stubs 3

ARPAnet Routing 4

Original ARPAnet Routing (1969) Routing –Shortest-path routing based on link metrics –Distance-vector algorithm (i.e., Bellman-Ford) Metrics –Instantaneous queue length plus a constant –Each node updates distance computation periodically congested link

Problems With the Algorithm Instantaneous queue length –Poor indicator of expected delay –Fluctuates widely, even at low traffic levels –Leading to routing oscillations Distance-vector routing –Transient loops during (slow) convergence –Triggered by link weight changes, not just failures Protocol overhead –Frequent dissemination of link metric changes –Leading to high overhead in larger topologies 6

New ARPAnet Routing (1979) Averaging of the link metric over time –Old: Instantaneous delay fluctuates a lot –New: Averaging reduces the fluctuations Link-state protocol –Old: Distance-vector path computation leads to loops –New: Link-state protocol where each router computes shortest paths based on the complete topology Reduce frequency of updates –Old: Sending updates on each change is too much –New: Send updates if change passes a threshold 7

Performance of New Algorithm Light load –Delay dominated by the constant part (transmission delay and propagation delay) Medium load –Queuing delay is no longer negligible on all links –Moderate traffic shifts to avoid congestion Heavy load –Very high metrics on congested links –Busy links look bad to all of the routers –All routers avoid the busy links –Routers may send packets on longer paths 8

Over-Reacting to Congestion Routers make decisions based on old information –Propagation delay in flooding link metrics –Thresholds applied to limit number of updates Old information leads to bad decisions –All routers avoid the congested links –… leading to congestion on other links –… and the whole things repeats 9 Lincoln Tunnel Holland Tunnel NJNYC “Backup at Lincoln” on radio triggers congestion at Holland

Problem of Long Alternate Paths Picking alternate paths –Multi-hop paths look better than a congested link –Long path chosen by one router consumes resource that other packets could have used –Leads other routers to pick other alternate paths congested link

Revised ARPAnet Metric (1987) Limit path length –Bound the value of the link metric –“This link is busy enough to go two extra hops” Prevent over-reacting –Shed traffic from a congested link gradually –Starting with alternate paths that are just slightly longer –Through weighted average in computing the metric, and limits on the change from one period to the next New algorithm –New way of computing the link weights –No change to link-state routing or shortest-path algorithm 11

Tuning Routing-Protocol Configuration 12

Routing With “Static” Link Weights Routers flood information to learn topology –Determine “next hop” to reach other routers… –Compute shortest paths based on link weights Link weights configured by network operator

Optimization Problem Input: graph G(R,L) –R is the set of routers –L is the set of unidirectional links –c l is the capacity of link l Input: traffic matrix –M i,j is traffic load from router i to j Output: setting of the link weights –w l is weight on unidirectional link l –P i,j,l is fraction of traffic from i to j traversing link l 14

Equal-Cost Multipath (ECMP) Values of P i,j,l

Objective Function Computing the link utilization – Link load: u l = Σ i,j M i,j P i,j,l – Utilization: u l / c l Objective functions – min( max l (u l /c l )) – min( Σ F(u l /c l )) 16 F(x) x

Complexity of Optimization Problem NP-complete optimization problem –No efficient algorithm to find the link weights –Even for simple objective functions –Have to resort to searching through weight settings Clearly suboptimal, but effective in practice –Fast computation of the link weights –Good performance, compared to “optimal” solution 17

Apply to Interdomain Routing Limitations of intradomain traffic engineering –Alleviating congestion on edge links –Making use of new or upgraded edge links –Influencing choice of end-to-end path Extra flexibility by changing BGP policies –Direct traffic toward/from certain edge links –Change the set of egress links for a destination

Multipath Load Balancing 19

Multiple Paths Establish multiple paths in advance –Good use of bandwidth, withstand failures Disseminate link-congestion information –Flood thru network, piggyback on data, direct to controller 20

Adjust Traffic Splitting Source router adjusts the traffic –Changing traffic fraction, e.g. based on congestion –Often use hash-based splitting to prevent packet reordering within a flow 21 35% 65%

Stub Traffic Engineering 22

Why Connect to Multiple Providers? Reliability –Reduced fate sharing –Survive ISP failure Performance –Multiple paths –Select the best Financial –Leverage through competition –Game 95 th -percentile billing model Provider 1 Provider 2 Stub: an Autonomous System that does not provide transit

Outbound Traffic: Pick a BGP Route Easier to control than inbound traffic –IP routing is destination based –Sender determines where the packets go Control only by selecting the next hop –Border router can pick the next-hop AS –Cannot control selection of the entire path Provider 1 Provider 2 “(2, 7, 8, 4)” “(1, 3, 4)”

Choosing Outbound Traffic Primary and Backup –Single policy for all prefixes  High local-pref for session to primary provider  Low local-pref for session to backup provider –Outcome of BGP decision process  Choose the primary provider whenever possible  Use the backup provider when necessary Load Balancing: Selectively use each provider –Assign local-pref across destination prefixes –Change the local-pref assignments over time

Inbound Traffic: Influencing Others Harder to control than outbound traffic –IP routing is destination based –Sender determines where the packets go Control only by influencing others’ decisions –Static configuration of the providers –BGP route attributes sent by the stub –Selective advertising of destination prefixes Provider 1 Provider 2

Inbound Traffic: Primary and Backup Ask your provider to be a backup –Provider violates “prefer customer” policy –… by assigning lower local-pref to customer –Backup link is only used if the primary link fails Provider 1 Provider /24 local-pref=90 local-pref=100 traffic

Inbound Traffic: AS Prepending Make one path look longer –Advertise short path one way –… and longer path another –In the hope of influencing choices –But, how much prepending to do? Provider 1 Provider 2 “ : (3)” “ : (3, 3, 3)”

Inbound Traffic: Selective Advertising When you don’t have enough prefixes… –Advertise one subnet to each provider –Advertise the supernet to both providers –Traffic splits due to the longest-prefix match –Supernet ensures backup connectivity after failure Provider 1 Provider / / / /17 Causes unwanted increase in global routing tables

Inbound Traffic: Multiple Addresses Multiple external addresses for a service –One IP address for each entry point Use DNS to adjust mapping of name to address –Give different answers to different clients –Adjust over time to performance, cost, traffic, etc. 30 Provider 1 Provider / /

Papers MONET: Multi-homed clients Entact: Multi-homed online service providers (datacenters + private backbone) 31