1 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Deployment & Scalability Mike Pennington Network Consulting Engineer Cisco Systems,

Slides:



Advertisements
Similar presentations
Routing Basics.
Advertisements

Technical Aspects of Peering Session 4. Overview Peering checklist/requirements Peering step by step Peering arrangements and options Exercises.
BGP Scaling Techniques Scalable Infrastructure Workshop AfNOG 2010.
BGP Scaling Techniques 1. Original BGP specification and implementation was fine for the Internet of the early 1990s – But didn’t scale Issues as the.
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.
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.
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.
Best Practices for ISPs
BGP Scaling Techniques Philip Smith E2 Workshop, AfNOG 2006.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Configuring and Monitoring Route Reflectors.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Introducing Route Reflectors.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
S ufficient C onditions to G uarantee P ath V isibility Akeel ur Rehman Faridee
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
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
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 Configuring and Verifying Basic BGP Operations.
© 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.
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Border Gateway Protocol (BGP4)
BGP Attributes and Path Selections
Introduction to BGP 1. Border Gateway Protocol A Routing Protocol used to exchange routing information between different networks – Exterior gateway protocol.
BGP Best Current Practices
1 © 2000, Cisco Systems, Inc. Session # Presentation_ID Border Gateway Protocol.
© 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.
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.
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.
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.
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
Route Selection Using Policy Controls
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to a Single Service.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Forwarding Packets in a Transit AS.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Understanding BGP Path Attributes.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Course Introduction.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
BGP Transit Autonomous System
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.
BGP Deployment & Scalability
Connecting an Enterprise Network to an ISP Network
Border Gateway Protocol
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Module Summary BGP is a path-vector routing protocol that allows routing policy decisions at the AS level to be enforced. BGP is a policy-based routing.
Cours BGP-MPLS-IPV6-QOS
BGP Route Reflectors and Confederation
Presentation transcript:

1 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Deployment & Scalability Mike Pennington Network Consulting Engineer Cisco Systems, Denver

2 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops Basic BGP Review

© 2001, Cisco Systems, Inc. All rights reserved. 3ISP Workshops Border Gateway Protocol Routing Protocol used to exchange routing information between networks exterior gateway protocol RFC1771 work in progress to update draft-ietf-idr-bgp4-17.txt Currently Version 4 Runs over TCP

© 2001, Cisco Systems, Inc. All rights reserved. 4ISP Workshops BGP Path Vector Protocol Incremental Updates Many options for policy enforcement Classless Inter Domain Routing (CIDR) Widely used for Internet backbone Autonomous systems

© 2001, Cisco Systems, Inc. All rights reserved. 5ISP Workshops Path Vector Protocol BGP is classified as a path vector routing protocol (see RFC 1322) A path vector protocol defines a route as a pairing between a destination and the attributes of the path to that destination / i AS Path

© 2001, Cisco Systems, Inc. All rights reserved. 6ISP Workshops Sequence of ASes a route has traversed Loop detection Apply policy AS-Path AS 100 AS 300 AS 200 AS 500 AS / / / / / / / /

© 2001, Cisco Systems, Inc. All rights reserved. 7ISP Workshops AS-Path loop detection AS 100 AS 300 AS 200 AS / / / / / / / / /16 is not announced to AS100 as AS500 sees that it is originated from AS100, and that AS100 is the neighbouring AS – loop detection in action

© 2001, Cisco Systems, Inc. All rights reserved. 8ISP Workshops Autonomous System (AS) Collection of networks with same routing policy Single routing protocol Usually under single ownership, trust and administrative control AS 100

© 2001, Cisco Systems, Inc. All rights reserved. 9ISP Workshops BGP Basics AS 100AS 101 AS 102 E BD AC Peering BGP speakers are called peers

© 2001, Cisco Systems, Inc. All rights reserved. 10ISP Workshops BGP General Operation Learns multiple paths via internal and external BGP speakers Picks the best path and installs in the forwarding table Policies applied by influencing the best path selection

© 2001, Cisco Systems, Inc. All rights reserved. 11ISP Workshops External BGP Peering (eBGP) AS 100AS 101 C A Between BGP speakers in different AS Should be directly connected Do not run an IGP between eBGP peers B

© 2001, Cisco Systems, Inc. All rights reserved. 12ISP Workshops Internal BGP Peering (iBGP) Topology independent Each iBGP speaker must peer with every other iBGP speaker in the AS AS 100 A E B D

© 2001, Cisco Systems, Inc. All rights reserved. 13ISP Workshops Internal BGP (iBGP) BGP peer within the same AS Not required to be directly connected iBGP speakers need to be fully meshed they originate connected networks they do not pass on prefixes learned from other iBGP speakers

14 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Attributes

© 2001, Cisco Systems, Inc. All rights reserved. 15ISP Workshops What Is an Attribute? Describes the characteristics of prefix Transitive or non-transitive Some are mandatory Next Hop AS Path MED...

© 2001, Cisco Systems, Inc. All rights reserved. 16ISP Workshops Sequence of ASes a route has traversed Loop detection Apply policy AS-Path AS 100 AS 300 AS 200 AS 500 AS / / / / / / / /

© 2001, Cisco Systems, Inc. All rights reserved. 17ISP Workshops / / Next Hop Next hop to reach a network Usually a local network is the next hop in eBGP session / /16 AS 100 AS 300 AS 200 AB 20

© 2001, Cisco Systems, Inc. All rights reserved. 18ISP Workshops Next Hop (continued) IGP should carry route to next hops Recursive route look-up Unlinks BGP from actual physical topology Allows IGP to make intelligent forwarding decision

© 2001, Cisco Systems, Inc. All rights reserved. 19ISP Workshops Local Preference AS 400 AS /16 AS 100 AS / > / E B C A D

© 2001, Cisco Systems, Inc. All rights reserved. 20ISP Workshops Local Preference Local to an AS – non-transitive local preference set to 100 when heard from neighbouring AS Used to influence BGP path selection determines best path for outbound traffic Path with highest local preference wins

© 2001, Cisco Systems, Inc. All rights reserved. 21ISP Workshops Multi-Exit Discriminator (MED) AS 201 AS /24 C AB / /

© 2001, Cisco Systems, Inc. All rights reserved. 22ISP Workshops Multi-Exit Discriminator Inter-AS – non-transitive metric reset to 0 on announcement to next AS Used to convey the relative preference of entry points determines best path for inbound traffic Comparable if paths are from same AS IGP metric can be conveyed as MED

© 2001, Cisco Systems, Inc. All rights reserved. 23ISP Workshops MED & IGP Metric set metric-type internal enable BGP to advertise a MED which corresponds to the IGP metric values changes are monitored (and re-advertised if needed) every 600s bgp dynamic-med-interval

© 2001, Cisco Systems, Inc. All rights reserved. 24ISP Workshops Community BGP attribute Used to group destinations Represented as two 16bit integers Each destination could be member of multiple communities Community attribute carried across AS’s Useful in applying policies

© 2001, Cisco Systems, Inc. All rights reserved. 25ISP Workshops /16300:1 Community AS /16300: /16300:1 AS 400 D C E B /16 AS 100 A /16 ISP /16300:9 X ISP /16 AS 300

26 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Deployment Guidelines

© 2001, Cisco Systems, Inc. All rights reserved. 27ISP Workshops Recommended BGP commands for everyone ip bgp-community new-format no auto-summary no synchronization bgp deterministic-med Whatever you do, use of deterministic-med MUST be consistent in your Autonomous System.

© 2001, Cisco Systems, Inc. All rights reserved. 28ISP Workshops Other serious considerations For public peering: filter EBGP routes inbound and outbound Block your own address space inbound Block RFC 1918 space (inbound and outbound) Block DSUA space (inbound and outbound): Use prefix-lists for route-filtering when possible (easier to read than ACLs)

© 2001, Cisco Systems, Inc. All rights reserved. 29ISP Workshops Other serious considerations If you carry a default in the IGP, your BGP next-hops ALWAYS resolve (generally not good) bgp bestpath compare-routerid Restores RFC-compliant path selection; OFF by default to reduce update churn, use with discretion If you have a large BGP network, consider techniques in the next section

30 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Scaling Techniques

© 2001, Cisco Systems, Inc. All rights reserved. 31ISP Workshops BGP Scaling Techniques How to scale iBGP mesh beyond a few peers? How to implement new policy without causing flaps and route churning? How to reduce the overhead on the routers?

© 2001, Cisco Systems, Inc. All rights reserved. 32ISP Workshops BGP Scaling Techniques Dynamic reconfiguration Peer groups Route flap damping Route reflectors

© 2001, Cisco Systems, Inc. All rights reserved. 33ISP Workshops Soft Reconfiguration Problem: Hard BGP peer clear required after every policy change because the router does not store prefixes that are denied by a filter Hard BGP peer clearing consumes CPU and affects connectivity for all networks Solution: Soft-reconfiguration

© 2001, Cisco Systems, Inc. All rights reserved. 34ISP Workshops Soft Reconfiguration BGP in process BGP table BGP out process BGP in table received and used accepted discarded peer normal soft

© 2001, Cisco Systems, Inc. All rights reserved. 35ISP Workshops Soft Reconfiguration New policy is activated without tearing down and restarting the peering session Per-neighbour basis Use more memory to keep prefixes whose attributes have been changed or have not been accepted

© 2001, Cisco Systems, Inc. All rights reserved. 36ISP Workshops Configuring Soft reconfiguration router bgp 100 neighbor remote-as 101 neighbor route-map infilter in neighbor soft-reconfiguration inbound ! Outbound does not need to be configured ! Then when we change the policy, we issue an exec command clear ip bgp soft [in | out]

© 2001, Cisco Systems, Inc. All rights reserved. 37ISP Workshops Managing Policy Changes clear ip bgp [soft] [in|out] may be any of the following x.x.x.xIP address of a peer *all peers ASNall peers in an AS externalall external peers peer-group all peers in a peer-group

© 2001, Cisco Systems, Inc. All rights reserved. 38ISP Workshops Route Refresh Capability Facilitates non-disruptive policy changes No configuration is needed No additional memory is used Requires peering routers to support “route refresh capability” – RFC2918 clear ip bgp x.x.x.x in tells peer to resend full BGP announcement

© 2001, Cisco Systems, Inc. All rights reserved. 39ISP Workshops Soft Reconfiguration vs Route Refresh Use Route Refresh capability if supported find out from “show ip bgp neighbor” uses much less memory Otherwise use Soft Reconfiguration

© 2001, Cisco Systems, Inc. All rights reserved. 40ISP Workshops Peer Groups Without peer groups iBGP neighbours receive same update Large iBGP mesh slow to build Router CPU wasted on repeat calculations Solution – peer groups! Group peers with same outbound policy Updates are generated once per group

© 2001, Cisco Systems, Inc. All rights reserved. 41ISP Workshops Peer Groups - Advantages Makes configuration easier Makes configuration less prone to error Makes configuration more readable Lower router CPU load iBGP mesh builds more quickly Members can have different inbound policy Can be used for eBGP neighbours too!

© 2001, Cisco Systems, Inc. All rights reserved. 42ISP Workshops Configuring Peer Group router bgp 100 neighbor ibgp-peer peer-group neighbor ibgp-peer remote-as 100 neighbor ibgp-peer update-source loopback 0 neighbor ibgp-peer send-community neighbor ibgp-peer route-map outfilter out neighbor peer-group ibgp-peer neighbor peer-group ibgp-peer neighbor route-map infilter in neighbor peer-group ibgp-peer ! note how has different inbound filter from peer-group !

© 2001, Cisco Systems, Inc. All rights reserved. 43ISP Workshops Route Flap Damping Route flap Going up and down of path or change in attribute BGP WITHDRAW followed by UPDATE = 1 flap eBGP neighbour going down/up is NOT a flap Ripples through the entire Internet Wastes CPU Damping aims to reduce scope of route flap propagation

© 2001, Cisco Systems, Inc. All rights reserved. 44ISP Workshops Route Flap Damping (Continued) Requirements Fast convergence for normal route changes History predicts future behaviour Suppress oscillating routes Advertise stable routes Implementation described in RFC2439

© 2001, Cisco Systems, Inc. All rights reserved. 45ISP Workshops Operation Add penalty (1000) for each flap Change in attribute gets penalty of 500 Exponentially decay penalty half life determines decay rate Penalty above suppress-limit do not advertise route to BGP peers Penalty decayed below reuse-limit re-advertise route to BGP peers penalty reset to zero when it is half of reuse-limit

© 2001, Cisco Systems, Inc. All rights reserved. 46ISP Workshops Operation Reuse limit Time Penalty Suppress limit Network Announced Network Re-announced Network Not Announced

© 2001, Cisco Systems, Inc. All rights reserved. 47ISP Workshops Operation Only applied to inbound announcements from eBGP peers Alternate paths still usable Controlled by: Half-life (default 15 minutes) reuse-limit (default 750) suppress-limit (default 2000) maximum suppress time (default 60 minutes)

© 2001, Cisco Systems, Inc. All rights reserved. 48ISP Workshops Configuration Fixed damping router bgp 100 bgp dampening [ ] Selective and variable damping bgp dampening [route-map ] route-map permit 10 match ip address prefix-list FLAP-LIST set dampening [ ] ip prefix-list FLAP-LIST permit /24 le 32

© 2001, Cisco Systems, Inc. All rights reserved. 49ISP Workshops Operation Care required when setting parameters Penalty must be less than reuse-limit at the maximum suppress time Maximum suppress time and half life must allow penalty to be larger than suppress limit

© 2001, Cisco Systems, Inc. All rights reserved. 50ISP Workshops Configuration Examples -  bgp dampening reuse-limit of 750 means maximum possible penalty is 3000 – no prefixes suppressed as penalty cannot exceed suppress-limit Examples - bgp dampening reuse-limit of 2000 means maximum possible penalty is 8000 – suppress limit is easily reached

© 2001, Cisco Systems, Inc. All rights reserved. 51ISP Workshops Configuration Examples -  bgp dampening reuse-limit of 500 means maximum possible penalty is 2000 – no prefixes suppressed as penalty cannot exceed suppress-limit Examples - bgp dampening reuse-limit of 750 means maximum possible penalty is 6000 – suppress limit is easily reached

© 2001, Cisco Systems, Inc. All rights reserved. 52ISP Workshops Maximum value of penalty is Always make sure that suppress-limit is LESS than max-penalty otherwise there will be no route damping Maths!

© 2001, Cisco Systems, Inc. All rights reserved. 53ISP Workshops Enhancements Selective damping based on AS-path, Community, Prefix Variable damping recommendations for ISPs Flap statistics show ip bgp neighbor [dampened-routes | flap-statistics]

© 2001, Cisco Systems, Inc. All rights reserved. 54ISP Workshops Scaling iBGP mesh Two solutions Route reflector – simpler to deploy and run Confederation – more complex, corner case benefits 13 Routers  78 iBGP Sessions! n=1000  nearly half a million ibgp sessions! Avoid n(n-1)/2 iBGP mesh

© 2001, Cisco Systems, Inc. All rights reserved. 55ISP Workshops AS 100 Route Reflector: Principle A CB Route Reflector

© 2001, Cisco Systems, Inc. All rights reserved. 56ISP Workshops Route Reflector AS 100 A BC Clients Reflectors Reflector receives path from clients and non-clients Selects best path If best path is from client, reflect to other clients and non-clients If best path is from non-client, reflect to clients only Non-meshed clients Described in RFC2796

© 2001, Cisco Systems, Inc. All rights reserved. 57ISP Workshops Route Reflector Topology Divide the backbone into multiple clusters At least one route reflector and few clients per cluster Route reflectors are fully meshed Clients in a cluster could be fully meshed Single IGP to carry next hop and local routes

© 2001, Cisco Systems, Inc. All rights reserved. 58ISP Workshops Route Reflectors: Loop Avoidance Originator_ID attribute Carries the RID of the originator of the route in the local AS (created by the RR) Cluster_list attribute The local cluster-id is added when the update is sent by the RR Cluster-id is router-id (address of loopback) Do NOT use bgp cluster-id x.x.x.x

© 2001, Cisco Systems, Inc. All rights reserved. 59ISP Workshops Route Reflectors: Redundancy Multiple RRs can be configured in the same cluster – not advised! All RRs in the cluster must have the same cluster-id (otherwise it is a different cluster) A router may be a client of RRs in different clusters Common today in ISP networks to overlay two clusters – redundancy achieved that way  Each client has two RRs = redundancy

© 2001, Cisco Systems, Inc. All rights reserved. 60ISP Workshops Route Reflector: Benefits Solves iBGP mesh problem Packet forwarding is not affected Normal BGP speakers co-exist Multiple reflectors for redundancy Easy migration Multiple levels of route reflectors

© 2001, Cisco Systems, Inc. All rights reserved. 61ISP Workshops Configuring a Route Reflector router bgp 100 neighbor remote-as 100 neighbor route-reflector-client neighbor remote-as 100 neighbor route-reflector-client neighbor remote-as 100 neighbor route-reflector-client

62