BGP Multihoming Techniques - North American Network .

3y ago
40 Views
2 Downloads
865.83 KB
282 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Maxton Kershaw
Transcription

BGP Multihoming TechniquesPhilip Smith pfs@cisco.co m NANOG 32Reston, VirginiaNANOG 321

Presentation Slides Available Multihoming.pdfNANOG 322

Preliminaries Presentation has many configuration examplesUses Cisco IOS CLI Aimed at Service ProvidersTechniques can be used by many enterprises too Feel free to ask questionsNANOG 323

BGP Multihoming Techniques Why Multihome? Definition & Options Preparing the Network Basic Multihoming Service Provider Multihoming Using Communities Case StudyNANOG 324

Why Multihome?It’s all about redundancy, diversity and reliabilityNANOG 325

Why Multihome? RedundancyOne connection to internet means the networkis dependent on:Local router (configuration, software,hardware)WAN media (physical failure, carrier failure)Upstream Service Provider (configuration,software, hardware)NANOG 326

Why Multihome? ReliabilityBusiness critical applications demandcontinuous availabilityLack of redundancy implies lack of reliabilityimplies loss of revenueNANOG 327

Why Multihome? Supplier DiversityMany businesses demand supplier diversity as a matterof courseInternet connection from two or more suppliersWith two or more diverse WAN pathsWith two or more exit pointsWith two or more international connectionsTwo of everythingNANOG 328

Why Multihome? Not really a reason, but oft quoted Leverage:Playing one ISP off against the other for:Service QualityService OfferingsAvailabilityNANOG 329

Why Multihome? Summary:Multihoming is easy to demand as requirement for anyservice provider or end-site networkBut what does it really mean:In real life?For the network?For the Internet?And how do we do it?NANOG 3210

BGP Multihoming Techniques Why Multihome? Definition & Options Preparing the Network Basic Multihoming Service Provider Multihoming Using Communities Case StudyNANOG 3211

Multihoming Definition &OptionsWhat does it mean, what do we need, and how do we do it?NANOG 3212

Multihoming Definition More than one link external to the localnetworktwo or more links to the same ISPtwo or more links to different ISPs Usually two external facing routersone router gives link and provider redundancyonlyNANOG 3213

AS Numbers An Autonomous System Number is required byBGP Obtained from upstream ISP or RegionalRegistry (RIR)APNIC, ARIN, LACNIC, RIPE NCC Necessary when you have links to more than oneISP or to an exchange point 16 bit integer, ranging from 1 to 65534Zero and 65535 are reserved64512 through 65534 are called Private ASNsNANOG 3214

Private-AS – Application Applications65001193.0.32.0/24An ISP with customersmultihomed on theirbackbone (RFC2270)-orA corporate networkwith several regionsbut connections to theInternet only in 003193.2.35.0/24A193.1.32.0/22 1880Within a BGPConfederationNANOG 3215

Private-AS – Removal Private ASNs MUST be removed from all prefixesannounced to the public InternetInclude configuration to remove private ASNs in theeBGP template As with RFC1918 address space, private ASNsare intended for internal useThey should not be leaked to the public Internet Cisco IOSneighbor x.x.x.x remove-private-ASNANOG 3216

Configuring Policy Three BASIC Principles for IOSconfiguration examples throughoutpresentation:prefix-lists to filter prefixesfilter-lists to filter ASNsroute-maps to apply policy Route-maps can be used for filtering, butthis is more “advanced” configurationNANOG 3217

Policy Tools Local preferenceoutbound traffic flows Metric (MED)inbound traffic flows (local scope) AS-PATH prependinbound traffic flows (Internet scope) Communitiesspecific inter-provider peeringNANOG 3218

Originating Prefixes: Assumptions MUST announce assigned address block toInternet MAY also announce subprefixes – reachability isnot guaranteed Current RIR minimum allocation is /21Several ISPs filter RIR blocks on this boundarySeveral ISPs filter the rest of address space accordingto the IANA assignmentsThis activity is called “Net Police” by someNANOG 3219

Originating Prefixes RIRs publish their minimum allocation nRIPE ml IANA publishes the address space it has assigned to end-sitesand allocated to the RIRs:www.iana.org/assignments/ipv4-address-space Several ISPs use this published information to filter prefixeson:What should be routed (from IANA)The minimum allocation size from the RIRsNANOG 3220

“Net Police” prefix list issues meant to “punish” ISPs who pollute the routing tablewith specifics rather than announcing aggregates impacts legitimate multihoming especially at theInternet’s edge impacts regions where domestic backbone isunavailable or costs compared with internationalbandwidth hard to maintain – requires updating when RIRs startallocating from new address blocks don’t do it unless consequences understood and youare prepared to keep the list currentNANOG 3221

Multihoming Scenarios Stub network Multi-homed stub network Multi-homed network Load-balancingNANOG 3222

Stub NetworkAS101AS100 No need for BGP Point static default to upstream ISP Router will load share on the two parallel circuits Upstream ISP advertises stub network Policy confined within upstream ISP’s policyNANOG 3223

Multi-homed Stub NetworkAS65530AS100 Use BGP (not IGP or static) to loadshare Use private AS (ASN 64511) Upstream ISP advertises stub network Policy confined within upstream ISP’s policyNANOG 3224

Multi-Homed NetworkGlobal InternetAS200AS300AS100 Many situations possiblemultiple sessions to same ISPsecondary for backup onlyload-share between primary and secondaryselectively use different ISPsNANOG 3225

Multiple Sessions to an ISP– Example One Use eBGP multihopeBGP to loopback addresseseBGP prefixes learned with loopbackaddress as next hopAS 2001.1.1.1 Cisco IOSrouter bgp 65534neighbor 1.1.1.1 remote-as 200neighbor 1.1.1.1 ebgp-multihop 2!ip route 1.1.1.1 255.255.255.255 serial 1/0ip route 1.1.1.1 255.255.255.255 serial 1/1ip route 1.1.1.1 255.255.255.255 serial 1/2NANOG 32AS 6553426

Multiple Sessions to an ISP– Example One Try and avoid use of ebgp-multihop unless:It’s absolutely necessary –or–Loadsharing across multiple links Many ISPs discourage its use, for example:We will run eBGP multihop, but do not support it as a standard offeringbecause customers generally have a hard time managing it due to: routing loops failure to realise that BGP session stability problems are usually dueconnectivity problems between their CPE and their BGP speakerNANOG 3227

Multiple Sessions to an ISP– Example Two BGP multi-path Limit to number of parallelpaths depending onimplementation For this example, threeBGP sessions required Cisco IOS Configurationrouter bgp 201neighbor 1.1.2.1 remote-as 200neighbor 1.1.2.5 remote-as 200neighbor 1.1.2.9 remote-as 200maximum-paths 3NANOG 32AS 200AS 20128

Multiple Sessions to an ISP Simplest scheme is to usedefaultsISP Learn/advertise prefixes forbetter control Planning and some workrequired to achieveloadsharingCDABPoint default towards one ISPLearn selected prefixes fromsecond ISPModify the number of prefixeslearnt to achieve acceptableload sharingAS 201 No magic solutionNANOG 3229

BGP Multihoming Techniques Why Multihome? Definition & Options Preparing the Network Basic Multihoming Service Provider Multihoming Using Communities Case StudyNANOG 3230

Preparing the Network We will deploy BGP across the network beforewe try and multihome BGP will be used therefore an ASN is required If multihoming to different ISPs, public ASNneeded:Either go to upstream ISP who is a registry member, orApply to the RIR yourself for a one off assignment, orAsk an ISP who is a registry member, orJoin the RIR and get your own IP address allocation too(this option strongly recommended)!NANOG 3231

Preparing the Network Will look at two examples of BGPdeployment:Example One: network is only static routesExample Two: network is currently running anIGPNANOG 3232

Preparing the NetworkExample One The network is not running any BGP at themomentsingle statically routed connection to upstreamISP The network is not running any IGP at allStatic default and routes through the networkto do “routing”NANOG 3233

Preparing the NetworkIGP Decide on IGP: OSPF or ISIS J Assign loopback interfaces and /32 addresses toeach router which will run the IGPLoopback is used for OSPF and BGP router id anchorUsed for iBGP and route origination Deploy IGP (e.g. OSPF)IGP can be deployed with NO IMPACT on the existingstatic routingOSPF distance is 110, static distance is 1Smallest distance winsNANOG 3234

Preparing the NetworkIGP (cont) Be prudent deploying IGP – keep the Link StateDatabase Lean!Router loopbacks go in IGPWAN point to point links go in IGP(In fact, any link where IGP dynamic routing will be runshould go into IGP)Summarise on area/level boundaries (if possible) – i.e.think about your IGP address planNANOG 3235

Preparing the NetworkIGP (cont) Routes which don’t go into the IGP include:Dynamic assignment pools (DSL/Cable/Dial)Customer point to point link addressing(using next-hop-self in iBGP ensures that these do NOTneed to be in IGP)Static/Hosting LANsCustomer assigned address spaceAnything else not listed in the previous slideNANOG 3236

Preparing the NetworkiBGP Second step is toconfigure the localnetwork to use iBGPBAD iBGP can run onall routers, ora subset of routers, orFCEAS200just on the upstream edge iBGP must run on allrouters which are in thetransit path betweenexternal connectionsNANOG 3237

Preparing the NetworkiBGP (Transit Path) iBGP must run on allrouters which are in thetransit path betweenexternal connections Routers C, E and F are notin the transit pathStatic routes or IGP willsufficeBADFCEAS200 Router D is in the transitpathWill need to be in iBGPmesh, otherwise routingloops will resultNANOG 3238

Preparing the NetworkLayers Typical SP networks have three layers:Core – the backbone, usually the transit pathDistribution – the middle, PoP aggregationlayerAggregation – the edge, the devicesconnecting customersNANOG 3239

Preparing the NetworkAggregation Layer iBGP is optionalMany ISPs run iBGP here, either partial routing (morecommon) or full routing (less common)Full routing is not needed unless customers want full tablePartial routing is cheaper/easier, might usually consist ofinternal prefixes and, optionally, external prefixes to aidexternal load balancingCommunities and peer-groups make this administratively easy Many aggregation devices can’t run iBGPStatic routes from distribution devices for address poolsIGP for best exitNANOG 3240

Preparing the NetworkDistribution Layer Usually runs iBGPPartial or full routing (as with aggregation layer) But does not have to run iBGPIGP is then used to carry customer prefixes (does notscale)IGP is used to determine nearest exit Networks which plan to grow large shoulddeploy iBGP from day oneMigration at a later date is extra workNo extra overhead in deploying iBGP, indeed IGPbenefitsNANOG 3241

Preparing the NetworkCore Layer Core of network is usually the transit path iBGP necessary between core devicesFull routes or partial routes:Transit ISPs carry full routes in coreEdge ISPs carry partial routes only Core layer includes AS border routersNANOG 3242

Preparing the NetworkiBGP ImplementationDecide on: Best iBGP policyWill it be full routes everywhere, or partial, orsome mix? iBGP scaling techniqueCommunity policy?Route-reflectors?Techniques such as peer groups and peertemplates?NANOG 3243

Preparing the NetworkiBGP Implementation Then deploy iBGP:Step 1: Introduce iBGP mesh on chosen routersmake sure that iBGP distance is greater than IGP distance (itusually is)Step 2: Install “customer” prefixes into iBGPCheck! Does the network still work?Step 3: Carefully remove the static routing for theprefixes now in IGP and iBGPCheck! Does the network still work?Step 4: Deployment of eBGP followsNANOG 3244

Preparing the NetworkiBGP ImplementationInstall “customer” prefixes into iBGP? Customer assigned address spaceNetwork statement/static route combinationUse unique community to identify customer assignments Customer facing point-to-point linksRedistribute connected through filters which only permitpoint-to-point link addresses to enter iBGPUse a unique community to identify point-to-point linkaddresses (these are only required for your monitoringsystem) Dynamic assignment pools & local LANsSimple network statement will do thisUse unique community to identify these networksNANOG 3245

Preparing the NetworkiBGP ImplementationCarefully remove static routes? Work on one router at a time:Check that static route for a particular destination is alsolearned either by IGP or by iBGPIf so, remove itIf not, establish why and fix the problem(Remember to look in the RIB, not the FIB!) Then the next router, until the whole PoP is done Then the next PoP, and so on until the network is nowdependent on the IGP and iBGP you have deployedNANOG 3246

Preparing the NetworkCompletion Previous steps are NOT flag day stepsEach can be carried out during different maintenanceperiods, for example:Step One on Week OneStep Two on Week TwoStep Three on Week ThreeAnd so onAnd with proper planning will have NO customer visibleimpact at allNANOG 3247

Preparing the NetworkExample Two The network is not running any BGP at themomentsingle statically routed connection to upstreamISP The network is running an IGP thoughAll internal routing information is in the IGPBy IGP, OSPF or ISIS is assumedNANOG 3248

Preparing the NetworkIGP If not already done, assign loopback interfacesand /32 addresses to each router which isrunning the IGPLoopback is used for OSPF and BGP router id anchorUsed for iBGP and route origination Ensure that the loopback /32s are appearing inthe IGPNANOG 3249

Preparing the NetworkiBGP Go through the iBGP decision process asin Example One Decide full or partial, and the extent of theiBGP reach in the networkNANOG 3250

Preparing the NetworkiBGP Implementation Then deploy iBGP:Step 1: Introduce iBGP mesh on chosen routersmake sure that iBGP distance is greater than IGP distance (it usuallyis)Step 2: Install “customer” prefixes into iBGPCheck! Does the network still work?Step 3: Reduce BGP distance to be less than the IGP(so that iBGP routes take priority)Step 4: Carefully remove the “customer” prefixes from theIGPCheck! Does the network still work?Step 5: Restore BGP distance to be greater than IGPStep 6: Deployment of eBGP followsNANOG 3251

Preparing the NetworkiBGP ImplementationInstall “customer” prefixes into iBGP? Customer assigned address spaceNetwork statement/static route combinationUse unique community to identify customer assignments Customer facing point-to-point linksRedistribute connected through filters which only permitpoint-to-point link addresses to enter iBGPUse a unique community to identify point-to-point linkaddresses (these are only required for your monitoringsystem) Dynamic assignment pools & local LANsSimple network statement will do thisUse unique community to identify these networksNANOG 3252

Preparing the NetworkiBGP ImplementationCarefully remove “customer” routes from IGP? Work on one router at a time:Check that IGP route for a particular destination is alsolearned by iBGPIf so, remove it from the IGPIf not, establish why and fix the problem(Remember to look in the RIB, not the FIB!) Then the next router, until the whole PoP is done Then the next PoP, and so on until the network is nowdependent on the iBGP you have deployedNANOG 3253

Preparing the NetworkExample Two Configuration – Before BGPinterface loopback 0ip address 121.10.255.1 255.255.255.255!Add loopbackinterface serial 0/0configuration ifip address 121.10.0.1 255.255.255.252already there!interface serial 0/1ip address 121.10.0.5 255.255.255.252!router ospf 100network 121.10.255.1 0.0.0.0 area 0passive-interface loopback 0redistribute connected subnets! Point-to-point linksredistribute static subnets! Customer networks!ip route 121.10.24.0 255.255.252.0 serial 0/0ip route 121.10.28.0 255.255.254.0 serial 0/1NANOG 32not54

Preparing the NetworkExample Two Configuration – Steps 1 & 2NANOG 32! interface and OSPF configuration unchanged!router bgp 100redistribute connected subnets route-map point-to-pointneighbor 121.10.1.2 remote-as 100neighbor 121.10.1.2 next-hop-selfAdd BGP and related.configuration in rednetwork 121.10.24.0 mask 255.255.252.0network 121.10.28.0 mask 255.255.254.0distance bgp 200 200 200!ip route 121.10.24.0 255.255.252.0 serial 0/0ip route 121.10.28.0 255.255.254.0 serial 0/1!route-map point-to-point permit 5match ip address 1set community 100:1!access-list 1 permit 121.10.0.0 0.0.255.25555

Preparing the NetworkExample Two Configuration – Steps 3 & 4NANOG 32! interface configuration unchanged!OSPF redistributionrouter ospf 100has been removednetwork 121.10.255.1 0.0.0.0 area 0passive-interface loopback 0!router bgp 100redistribute connected route-map point-to-pointneighbor 121.10.1.2 remote-as 100neighbor 121.10.1.2 next-hop-self.network 121.10.24.0 mask 255.255.252.0network 121.10.28.0 mask 255.255.254.0distance bgp 20 20 20! reduced BGP distance!ip route 121.10.24.0 255.255.252.0 serial 0/0ip route 121.10.28.0 255.255.254.0 serial 0/1!.etc.56

Preparing the NetworkExample Two Configuration – Step 5NANOG 32! interface configuration unchanged!router ospf 100network 121.10.255.1 0.0.0.0 area 0passive-interface loopback 0!router bgp 100redistribute connected route-map point-to-pointneighbor 121.10.1.2 remote-as 100neighbor 121.10.1.2 next-hop-self.network 121.10.24.0 mask 255.255.252.0network 121.10.28.0 mask 255.255.254.0distance bgp 200 200 200! BGP distance restored!ip route 121.10.24.0 255.255.252.0 serial 0/0ip route 121.10.28.0 255.255.254.0 serial 0/1!.etc.57

Preparing the NetworkCompletion Previous steps are NOT flag day stepsEach can be carried out during different maintenanceperiods, for example:Step One on Week OneStep Two on Week TwoStep Three on Week ThreeAnd so onAnd with proper planning will have NO customer visibleimpact at allNANOG 3258

Preparing the NetworkConfiguration Summary IGP essential networks are in IGP Customer networks are now in iBGPiBGP deployed over the backboneFull or Partial or Upstream Edge only BGP distance is greater than any IGP Now ready to deploy eBGPNANOG 3259

BGP Multihoming Techniques Why Multihome? Definition & Options Preparing the Network Basic Multihoming “Traffic Engineering” Using Communities Case StudyNANOG 3260

Basic MultihomingLet’s learn to walk before we try running NANOG 3261

Basic Multihoming No frills multihoming Will look at two cases:Multihoming with the same ISPMultihoming to different ISPs Will keep the examples easyUnderstanding easy concepts will make the morecomplex scenarios easier to comprehendNANOG 3262

Basic Multihoming This type is most commonplace at the edge ofthe InternetNetworks here are usually concerned with inboundtraffic flowsOutbound traffic flows being “nearest exit” is usuallysufficient Can apply to the leaf ISP as well as EnterprisenetworksNANOG 3263

Basic MultihomingMultihoming to the same ISPNANOG 3264

Basic Multihoming:Multihoming to the same ISP Use BGP for this type of multihominguse a private AS (ASN 64511)There is no need or justification for a public ASNMaking the nets of the end-site visible gives no usefulinformation to the Internet Upstream ISP proxy aggregatesin other words, announces only your address block tothe Internet fro

Preparing the Network We will deploy BGP across the network before we try and multihome BGP will be used therefore an ASN is required If multihoming to different ISPs, public ASN needed: Either go to upstream ISP who is a registry member, or Apply to the RIR yourself for a one off assignment, or Ask an ISP who is a registry member, or

Related Documents:

A "BGP peer," also known as a "BGP neighbor," is a specific term that is us ed for BGP speakers that have established a neighbor relationship. Any two routers that have formed a TCP connection to exchange BGP routing information are called BGP peers or BGP neighbors. BGP peer must be configured with a BGP neighbor command. External BGP

BGP support for the L2VPN Address Family BGP - Add Path Support BGP - Remove/Replace Private AS Filter BGP VPLS auto discovery support on route reflector BGP selective FIB install ISO specification of IS-IS Use of OSI IS-IS for Routing in TCP/IP and Dual Environments ISIS for MPLS BGP VPN Open

If there are any BGP configuration changes, you must reset the neighbor connection to allow the new parameters to take effect. clear ip bgp address Note: The address is the neighbor address. clear ip bgp * This command clears all neighbor connections. By default, BGP sessions begin with the use of BGP version 4 and negotiate downward to earlier

BGP multi-path Three BGP sessions required limit of 6 parallel paths router bgp 201 neighbor 1.1.2.1 remote-as 200 neighbor 1.1.2.5 remote-as 200 neighbor 1.1.2.9 remote-as 200 maximum-paths 3 AS 201 AS 200

Border Gateway Protocol (BGP) Lecture 4 : BGP continued Lecture 5 : BGP dynamics Lecture 6 : BGP routing anomalies. 4. 5 GARR-B. 6 (W i n t e r '0 2 ) (W i n t e r U ' 0 2) (Summer'03) W-Superio . EGP IGP BGP RIP IS-IS OSPF 22 The standard model Physical Network DataLink Transport Application Session Presentation Physical Network .

- Border Gateway Protocol - Border Gateway Protocol (BGP) BGP is a standardized exterior gateway protocol (EGP), as opposed to RIP, OSPF, and EIGRP which are interior gateway protocols (IGP’s). BGP Version 4 (BGPv4) is the current standard deployment. BGP is considered a “Path Vector” routing protocol. BGP was not built to

Cisco IOS IP Routing: BGP Command Reference March 2011. Introduction. This book describes the commands used to configure and monitor Border Gateway Protocol (BGP) routing capabilities and features. For BGP configuration information and examples, refer to the . Cisco IOS IP Routing: BGP Configuration Guide.

ASTM A 6/A 6M ASTM A153/A 153M ASTM A 325 (A 325M) ASTM A 490 (A490M) ASTM A 919 ASTM F 568M Class 4.6 . Section 501—Steel Structures Page 2 501.1.03 Submittals A. Pre-Inspection Documentation Furnish documentation required by the latest ANSI/AASHTO/AWS D 1.5 under radiographic, ultrasonic, and magnetic particle testing and reporting to the State’s inspector before the quality assurance .