Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.

Slides:



Advertisements
Similar presentations
1 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP — Border Gateway Protocol Routing Protocol used between AS’s Currently Version.
Advertisements

BGP Convergence Jennifer Rexford. Outline Border Gateway Protocol (BGP) –Prefix-based routing at the AS level –Policy-based path-vector protocol –Incremental.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
© 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.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
INTERDOMAIN ROUTING POLICY COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Mike Freedman
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.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2010 (MW 3:00-4:20.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
The Border Gateway Protocol (BGP) Sharad Jaiswal.
1 Policy-Based Path-Vector Routing Reading: Sections COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching.
INTERDOMAIN ROUTING POLICY READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2009 (MW 1:30-2:50 in COS 105) Mike Freedman.
Slide -1- February, 2006 Interdomain Routing Gordon Wilfong Distinguished Member of Technical Staff Algorithms Research Department Mathematical and Algorithmic.
Computer Networking Lecture 10: Inter-Domain Routing
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
15-744: Computer Networking L-5 Inter-Domain Routing.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
14 – Inter/Intra-AS Routing
1 Interdomain Routing Policy Reading: Sections plus optional reading COS 461: Computer Networks Spring 2008 (MW 1:30-2:50 in COS 105) Jennifer Rexford.
Backbone Networks Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
Interdomain Routing Policy COS 461: Computer Networks Spring 2011 Mike Freedman 1.
Interdomain Routing and the Border Gateway Protocol (BGP) Reading: Section COS 461: Computer Networks Spring 2011 Mike Freedman
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Computer Networks Layering and Routing Dina Katabi
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
© 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 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
Chapter 9. Implementing Scalability Features in Your Internetwork.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL 1.
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
More on Internet Routing A large portion of this lecture material comes from BGP tutorial given by Philip Smith from Cisco (ftp://ftp- eng.cisco.com/pfs/seminars/APRICOT2004.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Inter-domain routing Some slides used with.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
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.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CS 3700 Networks and Distributed Systems
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Department of Computer and IT Engineering University of Kurdistan
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
Backbone Networks Mike Freedman COS 461: Computer Networks
BGP Policies Jennifer Rexford
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Presentation transcript:

Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University of Arizona

Routing on the Internet Scale Issues – Network of IP Prefixes indicating different subnets: 150, ,000 so far – More than 20,000 organizations owning different “subnets” – Millions of different routes between and within subnets Privacy Issues – Organizations may not want to reveal internal topologies Policy Issues – No unique policy for determining the costs of links – Organizations may have preferred routes based on policies/relationships 2

Autonomous Systems Definition: A set of routers that has a single routing policy and runs under a single technical administration. Internet Gateway Protocol: An internal routing protocol run within the AS Routing between ASes: External Gateway Protocol at the early stages of internet – Replaced by the Border Gateway Protocol (BGP) 3

Types of ASes Stub AS: an AS with only a single connection to one other Ases (carries local traffic) Multihomed AS: An AS that has connections to more than one ASes but refuses to carry transit traffic Transit AS: An AS that has connections to more than one AS and carries both transit and local traffic 4

Drawbacks of Link-State, DV Routing Traffic is restricted to shortest path routes Not all nodes may assign the same metrics to links – Difficult to obtain the same global view of the network – Conflicting information may lead to routing oscillations Topology information flooded in the entire network High processing overhead at each node to determine appropriate routes 5

Path-Vector Routing Key Idea: Advertise the entire path to a destination (AS) rather than the cost of the path – Based on the Distance Vector algorithm – Send cost metrics to the destination along with the entire routing path to different ASes. 6 AS 1 AS 2 AS 3 AS 4 AS 5 d : (AS 2, AS 3 AS 4) d: (AS 5 AS 4) d

Advantages of Path-Vector Routing Fast loop detection – AS can locate its own identifier in the path to a destination – Node can simply discard paths with loops – E.g. AS 5 discards route update from AS 1 7 AS 1 AS 2 AS 3 AS 4 AS 5 d: (AS 1, AS 5, AS 4)

Flexible Policy Implementation Each node can apply local policies – Path selection: Which path to use? – Path export: Which paths to advertise? Examples – Node 2 may prefer the path “2, 3, 1” over “2, 1” – Node 1 may not let node 3 hear the path “1, 2” 8 AS 1 AS 2 AS 3

AS 2 AS 1 Border Gateway Protocol (BGP) Interdomain routing protocol for the Internet – Prefix-based path-vector protocol – Policy-based routing based on AS paths – Evolved during the past 15 years – Establish a TCP connection on port 179 – Exchange information on all known active routes – Exchange incremental updates 9 BGP session

Storing and Learning Routes BGP router stores multiple routes toward a destination – Policies are applied for the selection of the “best” route – …and which routes shall be advertised Incremental updates – Announcement New active routes toward destinations are updated by sending BGP updates – Withdrawal If a route is no longer active, a withdrawal notification is sent to all neighbors 10

Routing in BGP Destination prefix based Includes route attributes such as next hop and AS path 11 AS 1 AS 2 AS / D: /16 AS_path = AS 1 Next _Hop = D: /16 AS_path = AS 2 AS 1 Next _Hop =

BGP Attributes AS Path – Sequence of ASes that a route has traversed – Used for detecting loops and applying policies Next Hop – Next hop to reach a network Local Preference – Used to influence selection of paths – Path with highest local preference is selected Multi-Exit Discriminator (MED) – Use to influence exit (entry) point when multiple BGP routers exist in an AS 12

BGP Path Selection Follow a minimum hop approach – Shortest AS path – Arbitrary tie break Example – AS 2 routes to AS 6 through AS 3 BGP is mainly policy-based routing 13 AS 1 AS 2 AS D: /16 AS_path = AS 1 AS 4 AS 6 Next _Hop = D: /16 AS_path = AS 3 AS 6 Next _Hop =

BGP Policy Import policy – Filter unwanted routes from neighbor E.g. prefix that your customer doesn’t own – Manipulate attributes to influence path selection E.g., assign local preference to favored routes Export policy – Filter routes you don’t want to tell your neighbor E.g., don’t tell a peer a route learned from other peer – Manipulate attributes to control what they see E.g., make a path look artificially longer than it is 14

Import Policy – Local Preference Favor one path over another – Used to override shortest AS path principle – Example: prefer a customer AS 15 AS 1 AS 2 AS 3 AS 4 AS 5 T-mobile Sprint Local pref =100 Local pref = 200

Filtering Import Policy – Discard certain advertised paths – Recognize network or AS based on prefix Discard routes that contain large ISPs (may induce longer delays) Discard pre-fixes if not owned Export Policy – Limit propagation of routing information – Don’t announce routes from one peer to another – Don’t advertise routes containing untrusted ASes – Manipulate attributes to influence the way that other ASes perceive routes 16

17 BGP Policy Configuration Routing policy languages are vendor-specific – Not part of the BGP protocol specification – Different languages for Cisco, Juniper, etc. Still, all languages have some key features – Policy as a list of clauses – Each clause matches on route attributes – … and either discards or modifies the matching routes Configuration done by human operators – Implementing the policies of their AS – Business relationships, traffic engineering, security, …

Other Considerations AS_path can be misleading in terms of delay and # of hops 18 AS 1 AS 2 AS 3 AS 4

Treating Multiple Routers within an AS BGP routing info is disseminated within an AS using iBGP 19 AS 1 iBGP eBGP

Combination of eBGP with iBGP 20 A B C D E

Hot-potato (deflection) Routing Incentive – Minimize required storage, probability of buffer overflow Key idea: Get rid of packets as soon as possible – Packets may not necessarily follow optimal paths (deflect packets wherever possible) – E.g., if two packets must go out on the same link, deflect one of them to another at random 21 AS 1 AS 2 AS 4 AS 3 AS 5 Local pref = 90 Local pref = 200