More on BGP Check out the links on politics: ICANN and net neutrality To read for next time Path selection big example Scaling of BGP.

Slides:



Advertisements
Similar presentations
© 2009 Cisco Systems, Inc. All rights reserved. Cisco Public Presentation_ID 1 BGP Diverse Paths draft-ietf-grow-diverse-bgp-paths-dist-02 Keyur Patel.
Advertisements

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.
BGP.
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
The Border Gateway Protocol and Classless Inter-Domain Routing
© 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.
BGP. 2 Copyright © 2009 Juniper Networks, Inc. BGP Overview Is an inter-domain routing protocol that communicates prefix reachablility.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
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.
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.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
CS Summer 2003 Lecture 3. CS Summer 2003 What is a BGP Path Attribute? BGP uses a set of parameters known as path attributes to characterize.
CS Summer 2003 Lecture 4. CS Summer 2003 Route Aggregation The process of representing a group of prefixes with a single prefix is known as.
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
CSE5803 Advanced Internet Protocols and Applications (8) Introduction Some basic concepts of routing inside an autonomous system was introduced in.
15-744: Computer Networking L-5 Inter-Domain Routing.
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
15-744: Computer Networking L-6 Inter-Domain Routing.
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
© 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.
MPLS L3 and L2 VPNs Virtual Private Network –Connect sites of a customer over a public infrastructure Requires: –Isolation of traffic Terminology –PE,
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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.
Understanding and Limiting BGP Instabilities Zhi-Li Zhang Jaideep Chandrashekar Kuai Xu
Scaling iBGP. BGP iBGP –Internal BGP –BGP peering between routers in same AS –Goal: get routes from a border router to another border router without losing.
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
BGP V1.1. When is BGP Applicable Basic BGP Peer Configuration Troubleshooting BGP Connections BGP Operation and Path Attributes Route Import/Export Selected.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
© 2001, Cisco Systems, Inc. A_BGP_Confed BGP Confederations.
BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.
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.
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.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
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.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
BGP Basics BGP uses TCP (port 179) BGP Established unicast-based connection to each of its BGP- speaking peers. BGP allowing the TCP layer to handle such.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
BGP Deployment & Scalability
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
COS 561: Advanced Computer Networks
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Cours BGP-MPLS-IPV6-QOS
CSCI-1680 Network Layer: Inter-domain Routing
Computer Networking TCP/IP Part 2
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
CSCI-1680 Network Layer: Inter-domain Routing
BGP Instability Jennifer Rexford
Computer Networks Protocols
BGP Route Reflectors and Confederation
Presentation transcript:

More on BGP Check out the links on politics: ICANN and net neutrality To read for next time Path selection big example Scaling of BGP

Decision Process Step 1: each border router –Selects which of the paths advertised by its external neighbor can be imported May violate import policy May have routing loop –Picks the best ones – Optionally assign a LOCAL_PREF –Sends its best paths to all its internal neighbors Step 2: All border routers compare all the paths learned through their neighbors and pick the single best path to each prefix

Path Selection Process For each of the paths to the same NLRI –Ignore if next-hop is down –Prefer Higher local preference –If same Prefer locally originated route –If same Prefer Shortest AS path –If same Prefer Lowest origin (IGP better that EGP) –If same Prefer Lowest MED –If same Prefer eBGP over iBGP –If same Prefer Path with lowest IGP cost to next-hop –If same Prefer Lowest router id –If same Prefer Lowest neighbor IP address Different vendors may have some slight variations! –The RFC does not specify all the details (e.g. the preference for shorter AS paths

After path selection Export routes to external neighbors –According to export policy –Add the local AS in the AS_PATH –Remove LOCAL PREF and optionally add MULTI_EXIT_DISC Originate routes inside the domain –Through the appropriate IGP mechanisms –OSPF has AS-external routes –And can use the IGP cost to next-hop to select which one is better…

OSPF external routes Certain routers in OSPF are ASBRs –Inject external routes (type-3 LSAs) –With themselves as the next hops OSPF routers compute next hops for these routes using the cost to reach the ASBR that originated them –And install these in the RIB BUT: clearly I can not inject all the routes in the Internet into OSPF, it will not scale –We will see solutions to this later on

BGP implementation details Uses TCP to talk to neighbors –Provides reliability Important since I have to exchange a lot of information Allows to send only changes and not all the information periodically like EGP –But TCP has its own mechanisms for flow control and connectivity loss detection that may cause surprises

BGP messages Since TCP is a stream protocol I need a way to delimit packets –BGP header Messages –OPEN Used to negotiate parameters when establishing adjacency –UPDATE Contains the reachability information –NOTIFICATION Send when an error occurs –KEEPALIVE To check the health of the adjacency

Paths BGP manages paths Path consists of –Network Layer Reachability Information (NLRI) e.g /24 –A sequence of PATH attributes that give info related to this destination PATH attributes –Each have a Flags field Optional or well known (well known must be supported by all routers) Transitive or local (Transitive gets propagated, local not) Partial or not (partial applies only to part of the path)

Important path attributes ORIGIN (well known) –Is this path learned from IGP, BGP or other AS_PATH –The list of ASes (well known) NEXT_HOP –Next hop to reach the prefix (well known) MULTI_EXIT_DISC (MED) –Helps selection of paths (local, optional) LOCAL_PREF –Helps selection of paths (well known)

Operation Establish a TCP connection with the neighbor Negotiate options and establish adjacency Send all the path info to the neighbor, receive its path info and store it Then only send updates/changes If an update is received that results in a different route process it and update neighbors Send keep-alives to monitor the health of the link –Does not depend on TCP keep-alive mechanism

Prefix aggregation –Need to be able to aggregate prefixes –AS_PATH contains a number of AS_SET and/or AS_SEQUENCE AS_SET: unordered set of ASes traversed AS_SEQUENCE: ordered list of ASes –When aggregating…. Longest common prefix of the AS_SEQUENCE becomes the aggregated AS_SEQUENCE Union of all the rest becomes the new AS_SET –Can repeat recursively –EXAMPLE: why it is good for the network

Scaling Route refresh Route dampening RR

Route Refresh Each time policy changes I need to find out about all the paths from the neighbor –A path that was not valid before (and was discarded) may be valid under the new policy I could do a reset (I.e. re-establish adjacency with peer to relearn all the paths) –Expensive and network disruptive Instead, initiate a route refresh –Tell neighbor to resend me all its paths so I can re- evaluate policy –“Route Refresh” capability, must be supported by both peer routers

Route Reflectors All BRs need to talk iBGP to all others –Full mesh does not scale Use Route Reflectors (RR) –Multiple RRs in an AS –A RR has clients and may be connected (through iBGP sessions) to other RRs –Much fewer iBGP sessions RR computes paths based on information it receives –If path is learned from client, send it to all other clients and RRs –If path is learned from other RR send it only to clients

More on RRs Essentially split the network into clusters –One RR per cluster and multiple clients –All RRs are fully meshed –Use a cluster-id Need to have RR redundancy –Not a good idea to have two RRs per cluster –Each client talks to two RRs

Extensions to BGP over time Communities –Logically group paths together for easier administration –Can apply policies to a community and not to individual paths –Simpler management, no need to add new policy rules for new paths Multi-protocol –Carry different NLRIs –Ipv4, ipv6, multicast –VPNs (we will them later) Graceful restart (we will see it later) 4 bytes ASNs

Issues with BGP BGP dynamics are complex! –We will see it through some papers Understand the structure of the internet and the properties of the topology –How to measure it? –Hot potato routing –Multi-homing and provider selection Understand the convergence properties –Role of policies in convergence –Policy consistency –Effect of the various mechanisms used

Convergence Dynamics 4 types of advertisements –Withdraw, new, longer, shorter –Withdraw and longer converge slower than new and shorter. Why? –BGP explores alternate paths in case of withdraw and longer –EXAMPLE Worse case can be n! steps In theory in fully connected graphs of course –Also in BGP I can have a timer to collect multiple paths before I process them

Route Dampening Route flaps can be a pain –A link that is flapping can cause ripples around the whole Internet Penalize flapping paths –Keep track of updates per peer and per path –If it flaps too much stop announcing it Parameters: additive penalty, half-life, suppress threshold, reuse threshold Can be different on a per prefix/ per peer basis etc It was considered a good idea until 2000 or so –Then people discovered that it was not working that well –A single path withdrawal could appear like a flap as it propagates in the network Makes the path unavailable for long time (10s of minutes)