Multihomed BGP Configurations



Similar documents
BGP Attributes and Path Selection

Using the Border Gateway Protocol for Interdomain Routing

Advanced BGP Policy. Advanced Topics

Simple Multihoming. ISP/IXP Workshops

Configuring BGP. Cisco s BGP Implementation

BGP Multihoming. Why Multihome? Why Multihome? Why Multihome? Why Multihome? Why Multihome? Redundancy. Reliability

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Introduction to BGP. Cisco ISP Workshops. 2003, Cisco Systems, Inc. All rights reserved.

APNIC elearning: BGP Attributes

Module 12 Multihoming to the Same ISP

Internet inter-as routing: BGP

- Border Gateway Protocol -

Simple Multihoming. ISP Workshops. Last updated 30 th March 2015

BSCI Module 6 BGP. Configuring Basic BGP. BSCI Module 6

Routing Protocol - BGP

BGP-4 Case Studies. Nenad Krajnovic.

Border Gateway Protocol BGP4 (2)

BGP Advanced Routing in SonicOS

Gateway of last resort is to network

Border Gateway Protocol Best Practices

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

Border Gateway Protocol (BGP)

BGP Best Path Selection Algorithm

BGP4 Case Studies/Tutorial

BGP1 Multihoming and Traffic Engineering

BGP Multihoming Techniques

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

Fireware How To Dynamic Routing

BGP Multihoming Techniques

Internet inter-as routing: BGP

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Exam Name: BGP + MPLS Exam Exam Type Cisco Case Studies: 3 Exam Code: Total Questions: 401

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]

BGP for Internet Service Providers

Configuring Route Maps and Policy-Based Routing

BGP Multihoming Techniques

BGP Multihoming Techniques. Philip Smith APRICOT 2013 Singapore 19 th February 1 st March 2013

BGP Multihoming: An Enterprise View BRKRST , Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

BGP Multihoming Techniques

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Understanding Route Aggregation in BGP

BGP Advanced Features and Enhancements

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

basic BGP in Huawei CLI

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

Configuring BGP. The Cisco BGP Implementation

Configuring and Testing Border Gateway Protocol (BGP) on Basis of Cisco Hardware and Linux Gentoo with Quagga Package (Zebra)

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

How To Understand Bg

BGP for Internet Service Providers

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

BGP Multihoming Techniques

BGP Multihoming Techniques

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Load balancing and traffic control in BGP

BGP Link Bandwidth. Finding Feature Information. Contents

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

Lecture 18: Border Gateway Protocol"

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

Presentation_ID. 2001, Cisco Systems, Inc. All rights reserved.

Today s Agenda. Note: it takes years to really master BGP Many slides stolen from Prof. Zhi-Li Zhang at Minnesota and from Avi Freedman s slides

HP Networking BGP and MPLS technology training

BGP Router Startup Message Flow

Exterior Gateway Protocols (BGP)

BGP Best Practices for ISPs Prefix List, AS PATH filters, Bogon Filters, Anycast, Mailing Lists, INOC DBA

A How-To Guide to BGP Multihoming

JUNOS Secure BGP Template

BGP: Frequently Asked Questions

ISP Case Study. UUNET UK (1997) ISP/IXP Workshops. ISP/IXP Workshops. 1999, Cisco Systems, Inc.

E : Internet Routing

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

netkit lab bgp: multi-homed Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Internet Routing Protocols Lecture 04 BGP Continued

BGP and Traffic Engineering with Akamai. Christian Kaufmann Akamai Technologies MENOG 14

Application Note. Failover through BGP route health injection

Effective BGP Load Balancing Using "The Metric System" A real-world guide to BGP traffic engineering

ETHEL THE AARDVARK GOES BGP ROUTING

Network Level Multihoming and BGP Challenges

BGP Support for Next-Hop Address Tracking

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

MPLS. Cisco MPLS. Cisco Router Challenge 227. MPLS Introduction. The most up-to-date version of this test is at:

The ISP Column. An Introduction to BGP the Protocol

CS551 External v.s. Internal BGP

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T.

Administra0via. STP lab due Wednesday (in BE 301a!), 5/15 BGP quiz Thursday (remember required reading), 5/16

CS551 Multi-homing in BGP

Interdomain Routing. Outline

Load balancing and traffic control in BGP

Introduction to Routing

BGP Operations and Security. Training Course

Multihoming and Multi-path Routing. CS 7260 Nick Feamster January

Tutorial: Options for Blackhole and Discard Routing. Joseph M. Soricelli Wayne Gustavus NANOG 32, Reston, Virginia

Week 4 / Paper 1. Open issues in Interdomain Routing: a survey

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

Transcription:

Multihomed BGP Configurations lvaro Retana Cisco IOS Deployment and Scalability 1 genda General Considerations Multihomed Networks Best Current Practices 2

The Basics General Considerations 3 General Considerations genda What is a multihomed network? Motivation and Drivers BGP Route Selection Process It s effect on multihomed policy 4

Stub Network No need for BGP ISP advertises the stub network Policy confined within ISP policy Default to the border B S 101 S 100 5 Load-Sharing Single Path Router : interface loopback 0 ip address 10.60.0.1 255.255.255.255! router bgp 100 neighbor 10.200.0.2 remote-as 200 neighbor 10.200.0.2 update-source loopback0 neighbor 10.200.0.2 ebgp-multi-hop 2 100 200 Loopback 0 10.200.0.2 6

Load-Sharing Multiple Paths from Same S Router : router bgp 100 neighbor 10.200.0.1 remote-as 200 neighbor 10.300.0.1 remote-as 200 maximum-paths 6 200 100 7 What Is Multihoming? Connecting to two or more ISPs to increase: Reliability -- Ensure external connectivity even if there s a upstream failure Performance -- Better paths to common Internet destinations (policy settings) Load Sharing -- Distribute traffic between the different connections 8

Multihomed Network Many situations possible Separate connections to the same ISP Secondary for only backup Load sharing between primary and secondary Selectively use different ISPs S 100 B C D S 300 S 200 9 BGP Route Selection Process Only ONE path is considered the best at any time Policy can be set per router to guarantee loop-free forwarding, the policy should be consistent across the S 10

Basic Decision lgorithm Consider only (synchronized) routes with no S loops and valid next-hop, then prefer: Highest WEIGHT Highest LOCL PREFERENCE LOCLLY ORIGINTED (eg network/aggregate) Shortest S-PTH Lowest ORIGIN (IGP < EGP < incomplete) Lowest MED EBGP IBGP Lowest IGP METRIC to next-hop Lowest router-id 11 S_PTH list of S to be traversed to reach a prefix 1880 1883 (S_SEQUENCE) Path includes one or more members of a set {1880, 1881, 1882} (S_SET) Used for loop detection! 1883 200.210.1.0/24 1881 200.200.2.0/24 1880 1882 200.200.3.0/24 200.200.0.0/16 1880 {1881,1882} 200.210.1.0/24 1880 1883 12

S_PTH 193.0.32/24 B 690 1755 1880 Configuration (rtr B): router bgp 690 666 neighbor x.x.x.x remote-as 666 neighbor x.x.x.x route-map prepend out! route-map prepend permit 10 match as-path 2 set as-path prepend 690 690! ip as-path access-list 2 permit ^$ Needs to go to 690 193.0.32/24 1880 1755 690 193.0.32/24 666 690 690 690 13 Multi-Exit Discriminator (MED) Indication (to external peers) of the preferred path into an S used in multiple entry S non-transitive Compared only for routes received from the same S unless bgp always-compare-med is enabled Lower MED value is more preferable (default = 0) 14

MED 690 B Configuration (rtr B): router bgp 1755 neighbor x.x.x.x remote-as 1880 neighbor x.x.x.x route-map set_med out! route-map set_med permit 10 match as-path 2 set metric 2! ip as-path access-list 2 permit _690$ 1755 1880 Set MED = 2 for all routes originated in S 690. 209 15 MED & IGP Metric set metric-type internal enable BGP to advertise a MED which corresponds to the IGP metric values changes are monitored (and readvertised if needed) every 600s bgp dynamic-med-interval <secs> 16

MED - Example 200.200.1.0/24 S 200 D E 200.200.1.0/24 200.200.1.0/24 MED = 10 MED = 40 B S 400 C C Chooses the shortest path to the destination. 17 Deterministic MED By default, the prefixes are compared in order of arrival it may result in inconsistent decisions use bgp deterministic-med the bestpath is recalculated as soon as the command is entered 18

LOCL_PREF Indication of preferred path to exit the local S Global to the local S Paths with highest LOCL-PREF are most desirable (default = 100) bgp default local-preference value 19 LOCL_PREF (Cont( Cont.) 690 1755 1880 Configuration (rtr ): router bgp 109 666 neighbor x.x.x.x remote-as 1880 neighbor x.x.x.x route-map foo in! route-map foo permit 10 match as-path 2 set local-preference 120! ip as-path access-list 2 permit ^1880_ Needs to go to 690 Set LOCL_PREF = 120 for all the routes received from S 1880. 20

Community ttribute Used to group destinations to help scale policy application Each prefix can belong to multiple communities Not propagated by default neighbor ip-address send-community 21 Problem: Scale Routing Policy Solution: COMMUNITY Communities: 1:100 customer routes 1:80 peer routes Match Community 1:100 1:80 CORE Set Community 1:80 Match Community 1:100 Match Community 1:100 Peer Set Community 1:100 Customer Full Routes Customer B Customer Routes 22

Double the Fun! Multihomed Networks 23 Multihomed Networks genda Types of Multihoming Outbound Traffic ddress llocation Issues Inbound Traffic 24

Typical Multihomed E-Commerce Network ISP1 ISP2 Border Routers (BGP and IGP) Si Si Internal Routers (BGP and/or IGP) 25 Types of Multihoming Three common cases: Default from all providers Customer+Local routes from all providers (partial routes) Full routes from all providers 26

Default from ll Providers Low memory/cpu solution Provider sends BGP default exit point selected by IGP metrics to reach default ll the local routes are advertised to the provider inbound path decided by Internet influence using S-path prepend 27 Default from ll Providers S 100 160.10.0.0/16 S 200 S 300 D E 0.0.0.0 0.0.0.0 S 400 C B C Chooses Lowest IGP Metric to Default 28

Default from ll Providers S 100 160.10.0.0/16 S 200 S 300 D E 0.0.0.0 0.0.0.0 C S 400 B D Closest exit used - watershed effect 29 Partial Routes from ll Providers Medium memory and CPU Best path is usually determined by the shortest S-path Use local-preference to override based on prefix, as-path, or community IGP metric to default used for all other destinations 30

Partial Routes from ll Providers Customer S 100 160.10.0.0/16 Provider S 200 Provider S 300 D E C Chooses Shortest S Path S 400 B C 31 Partial Routes from ll Providers Customer S 100 160.10.0.0/16 Provider S 200 Provider S 300 D 800 E C Chooses Highest Local-Preference S 400 C B ip prefix-list S100 permit 16.10.0.0/16 route-map S300in permit 10 match ip address prefix-list S100 set local-preference 800 32

Full Routes from ll Providers Higher memory/cpu solution Reach all destinations by selecting the best path usually shortest S path May still manually tune using localpref and as-path/community/prefix matches 33 Full Routes from ll Providers S 100 S 500 S 200 S 300 D E S 400 B C Chooses Shortest S Path C 34

Controlling Inbound Traffic? Very difficult due to lack of transitive metric. Dependency on ownership of the IP address space. Can divide outgoing updates across providers, but what happens to redundancy? 35 ddress llocation Cases Provider Derived ddress Space Provider Independent ddress Space (portable block) ddress Space owned by other Providers ddress Space owned by both Providers 36

ddress llocation multihomed network cannot use a provider s connection unless the provider advertises the network s routes to the rest of the Internet. Praveen kkiraju, Multihoming Strategies for Internet Connectivity 37 Provider Derived ddress Space Simple addressing scheme Major providers own CIDR blocks. The assign part of it to their customers. The provider may aggregate the customer routes back into its CIDR block. Must use with provider s policy 38

ggregation Example: router bgp 1880 network 200.200.1.0 aggregate-address 200.200.0.0 255.255.0.0 as-set 1883 200.200.2.0/24 1880 200.200.1.0/24 1881 200.200.3.0/24 200.200.0.0/16 1880 {1881,1883} 39 Provider Derived ddress Space 200.200.0.0/16 S 100 200.200.1.0/24 Provider S 200 Provider S 300 D E 200.200.1.0/24 S 400 C B 200.200.1.0/24 The more specific route of taken back. 40

Portable ddressing The address space is owned by the local network Policy set locally Can t be aggregated by any provider Prefix must be leaked May be filtered upstream 41 Portable ddressing 210.210.1.0/24 S 100 210.210.1.0/24 Provider S 200 Provider S 300 D E 210.210.1.0/24 ny path may be chosen by the remote S. S 400 C B 210.210.1.0/24 42

Using S-PTH prepend Customer S 100 210.210.1.0/24 300 400 400 210.210.1.0/24 200 400 (best) Provider S 200 Provider S 300 D E S 400 C B ip prefix-list S100 permit 210.210.1.0/24 route-map S300out permit 10 match ip address prefix-list S100 set as-path prepend 400 43 ddress Space owned by other Providers One of the providers may aggregate, but the other can t Policy may be set locally restricted if aggregated 44

ddress Space owned by other Providers 200.200.0.0/16 S 100 220.220.0.0/16 200.200.1.0/24 Provider S 200 Provider S 300 D E 200.200.1.0/24 S 400 C B 200.200.1.0/24 The more specific route of taken back. 45 ddress Space owned by both Providers Complex addressing scheme needed The advertisements must be leaked by both providers Symmetry is not easily achievable must leak all routes on all providers use as-path prepend 46

ddress Space owned by both Providers 220.220.1.0/24 200.200.0.0/16 S 100 220.220.0.0/16 200.200.1.0/24 Provider S 200 Provider S 300 D E 200.200.1.0/24 220.220.1.0/24 S 400 B 200.200.1.0/24 220.220.1.0/24 C 47 Be a Good Neighbor Best Current Practices 48

Best Current Practices genda BGP Specific Issues MD5 uthentication Route Dampening General Filtering Use the same filters for packet forwarding and received updates 49 MD5 uthentication Used in BGP to authenticate the TCP session the contents of the session are not authenticated Configure authentication to avoid establishing sessions with rogue peers router bgp 109 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 password xxxx 50

Route Flap Dampening Route flaps ripple through the entire Internet up and down of path change in attributes Constant changes in the BGP table wastes CPU and bandwith Objective: reduce the scope of route flap propagation 51 Route Flap Dampening 4 3 Suppress-Limit Penalty 2 Reuse-Limit 1 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Time 52

Selective Dampening Selective dampening based on S-PTH Community Prefix Variable dampening 53 Dampening Configuration bgp damping <halflife-time> <reuse> <suppress> <maximum-suppress-time> Example: router bgp 109 bgp dampening route-map SELECTIVE _DMPENING! access-list 110 permit ip any 255.255.255.0 0.0.0.255 access-list 111 permit ip any any! route-map SELECTIVE_DMPENING permit 10 match ip address 110 set dampening 30 125 2000 120! route-map SELECTIVE_DMPENING permit 20 match ip address 111 set dampening 25 750 2000 45! 54

RFC 1918 Filtering router bgp 109 neighbor 1.1.1.1 prefix-list rfc-1918 in! prefix-list rfc-1918 deny 10.0.0.0/8 le 32 prefix-list rfc-1918 deny 192.168.0.0/16 le 32 prefix-list rfc-1918 deny 172.16.0.0/12 le 32 prefix-list rfc-1918 permit 0.0.0.0/0 le 32 ISP Network Customer Network Ingress to Internet 55 Limit the Updates router bgp 1 neighbor 1.1.1.2 prefix-list customer in neighbor 1.1.1.2 maximum-prefix 500! prefix-list customer permit 200.200.1.0/24 prefix-list customer deny 0.0.0.0/0 le 32 ISP Network Customer Network: 200.200.1.0/24 router bgp 109 neighbor 1.1.1.1 prefix-list local in neighbor 1.1.1.1 filter-list 1 out! prefix-list local deny 200.200.1.0/24 le 32 prefix-list local any 0.0.0.0/0 le 32! Ip as-path access-list 1 permit ^$ 56

References - Registration merican Registry for Internet Numbers (RIN) http://www.arin.net/ The Internet Corporation of ssigned Names and Numbers (ICNN) http://www.icann.org 57 References - BGP Requests for Comments (RFC) 1918 ddress llocation for Private Internets 1998 n pplication of the BGP Community ttribute in Multi-home Routing 2008 Implications of Various ddress llocation Policies for Internet Routing 58

References - BGP 2260 Scalable Support for Multi-homed Multi-provider Connectivity 2827 Network Ingress Filtering: Defeating Denial of Service ttacks which employ IP Source ddress Spoofing 59 References - BGP Enabling Enterprise Multihoming with Cisco IOS Network ddress Translation http://www.cisco.com/warp/public/cc/cisco/ mkt/ios/nat/tech/emios_wp.htm Internet Routing rchitectures. Sam Habali 60

61