Load balancing and traffic control in BGP



Similar documents
Load balancing and traffic control in BGP

BGP Best Path Selection Algorithm

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

BGP Router Startup Message Flow

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

Border Gateway Protocol BGP4 (2)

Advanced BGP Policy. Advanced Topics

How To Understand Bg

APNIC elearning: BGP Attributes

Lecture 18: Border Gateway Protocol"

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Border Gateway Protocol (BGP)

BGP-4 Case Studies. Nenad Krajnovic.

Routing Protocol - BGP

BGP Attributes and Path Selection

Using the Border Gateway Protocol for Interdomain Routing

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

Border Gateway Protocol Best Practices

Simple Multihoming. ISP/IXP Workshops

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

BGP1 Multihoming and Traffic Engineering

Module 12 Multihoming to the Same ISP

Understanding Route Aggregation in BGP

CS551 External v.s. Internal BGP

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Internet inter-as routing: BGP

Understanding Route Redistribution & Filtering

basic BGP in Huawei CLI

Exterior Gateway Protocols (BGP)

Multihomed BGP Configurations

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

BGP and Traffic Engineering with Akamai. Caglar Dabanoglu Akamai Technologies AfPIF 2015, Maputo, August 25th

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

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

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

E : Internet Routing

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

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

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

JUNOS Secure BGP Template

DD2491 p MPLS/BGP VPNs. Olof Hagsand KTH CSC

Route Discovery Protocols

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

HP Networking BGP and MPLS technology training

Network Level Multihoming and BGP Challenges

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

Network provider filter lab

ECSE-6600: Internet Protocols Exam 2

Gateway of last resort is to network

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

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

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

GregSowell.com. Mikrotik Routing

Based on Computer Networking, 4 th Edition by Kurose and Ross

Understanding Virtual Router and Virtual Systems

BGP4 Case Studies/Tutorial

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

Internet inter-as routing: BGP

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

BGP Link Bandwidth. Finding Feature Information. Contents

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

H3C large-scale network routing

Border Gateway Protocol (BGP-4)

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

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

Internet Routing Protocols Lecture 04 BGP Continued

MPLS VPN Route Target Rewrite

DDoS Mitigation Techniques

BGP Multihoming Techniques

A Case Study Design of Border Gateway Routing Protocol Using Simulation Technologies

BGP Multihoming Techniques

Deploy Application Load Balancers with Source Network Address Translation in Cisco Programmable Fabric with FabricPath Encapsulation

Application Note: Securing BGP on Juniper Routers

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

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

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

B. Quoitin, S. Uhlig, C. Pelsser, L. Swinnen and O. Bonaventure

BGP Advanced Routing in SonicOS

CS551 Multi-homing in BGP

Table of Contents. Cisco How Does Load Balancing Work?

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

Load Balancing. Final Network Exam LSNAT. Sommaire. How works a "traditional" NAT? Un article de Le wiki des TPs RSM.

Introducing Basic MPLS Concepts

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

BGP FORGOTTEN BUT USEFUL FEATURES. Piotr Wojciechowski (CCIE #25543)

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

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

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

ETHEL THE AARDVARK GOES BGP ROUTING

ASA/PIX: Load balancing between two ISP - options

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Anycast Rou,ng: Local Delivery. Tom Daly, CTO h<p://dyn.com Up,me is the Bo<om Line

Analyzing Capabilities of Commercial and Open-Source Routers to Implement Atomic BGP

Transcription:

DD2491 p2 2011 Load balancing and traffic control in BGP Olof Hagsand KTH CSC 1

Issues in load balancing Load balancing: spread traffic on several paths instead of a single. Why? Use resources better Can postpone upgrade of infra-structure Geography Example: Dont use trans-oceanic links twice Cost reasons Balance traffic for optimal price 2

Redundancy Redundancy and load balancing are not always aligned Example: if you use load balancing over several links, and one link goes down: can you still forward all traffic on the single link? For redundancy it may sometimes be better to send/announce all traffic on a single link and then have redundant links for backup At the edge, it may be easier to get symmetrical routing which is better for filtering 3

Problems with load-balancing Load-balancing and asymmetry in general have some problems (1) TCP 'breaks'. Why? If segments take different paths, segment X+1 can arrive before X This will result in multiple ACKs: X-1, ACK(X), X+1, ACK(X), X, ACK(X+1) Multiple ACK triggers fast-retransmit! (2) Firewalls 'break'. Why? Stateful filtering does not work: TCP SYN and TCP SYN+ACK takes different paths throuygh different firewalls. 4

Link-layer load-balancing In (metro) Ethernet, load balancing can not be made: Spanning tree computes a single link Example: only one link between 222 and 333 can be used for forwarding. 444 1 2 Ethernet switch A 1 2 3 333 222 4 2 1 3 4 B 5

Link-layer load-balancing 20 Gb/s LAG 10Gb/s 10Gb/s But two physical links is aggregated into a single Link- Aggregate Group (LAG) Single (20Mb/s) link Load balancing normally on flows 6

IGP load balancing in IBGP IS-IS / OSPF equal-cost multipath provides load balancing in IBGP Since next-hop self uses peering between loop-backs, and the IBGP neighbor may be reachable via more than one nexthop 12.0.0.1 Route Nexthop Metric Protocol 130.2.3.0/24 10.0.0.1 IBGP 10.0.0.1/32 12.0.0.1 10 IGP 10.0.0.1/32 13.0.0.1 10 IGP Equal-cost multipath 13.0.0.1 10.0.0.1 130.2.3.0/24 7

Loopback peering in EBGP Loopback peering can also be used in EBGP, but routing of loopback is then set-up using static routes Uncommon to use IGP between AS:s AS1 RTA EBGP RTB AS2 8

BGP Multipath By default, the best selection algorithm in BGP selects one route no load balancing from a single router to a single prefix possible unless outside BGP using loopback peering for example BGP multipath enables load balancing between equal paths (to the level of comparing routerids) Limited JunOS functionality set protocol bgp group extern multipath [multiple-as] By default equal cost multipath Book also describes unequal cost multipath in CISCO Practical BGP: pages 261-269 9

BGP Decision Process If next hop inaccessible, ignore route Prefer highest local preference value Prefer shortest AS_PATH Prefer lowest origin type (IGP, EGP, INCOMPLETE) Prefer lowest MED value (if from same AS) Prefer routes from EBGP over IBGP Prefer routes with lowest IGP metric Nexthop Prefer route from peer with lowest router id Prefer route from peer with lowest address BGP multipath equality 10

IBGP Multipath example A B C D Internal (eg from A) vs external (from D) load balancing Equal cost vs unequal cost multipath (links between B-D and C-D have different bandwidth). 11

Balance prefix announcements For incoming traffic, you can partition your prefixes and anounce different prefix sets on different peerings. If you have many transit operators, you can balance the traffic to get optimal price. If you want higher granularity of the balancing, it is common to de-aggregate (or refrain from aggregating) Bad for global BGP table sizes Prefix set A Prefix set B 12

Load balancing + robustness For robustness, you may wish to announce all prefixes on all peerings, but use better metric (shorter AS-PATH / longer prefixes) where you prefer traffic Example: prefixes 192.16.0.0/24 192.16.0.0/23 192.16.0.0/24 192.16.1.0/24 192.16.0.0/24 192.16.1.0/24 192.16.0.0/23 AS9 192.16.0.0/23 192.16.1.0/24 Practical BGP: pages 54-55 13

Load balancing + robustness Example: AS-PATH 192.16.0.0/24 ASPATH: 9 AS8 192.16.0.0/24 ASPATH: 9,9,9 192.16.0.0/24 192.16.1.0/24 AS6 192.16.0.0/24 ASPATH: 6,8,9 192.16.1.0/24 ASPATH: 6,7,9 AS9 192.16.0.0/24 ASPATH: 9,9,9 192.16.1.0/24 ASPATH: 9 AS7 14

Longer prefix announcements Using longer prefixes introduces issues with address allocation and PI/PA addresses In the sitiation below where PA addresses are used (AS2:s block), all inbound traffic will flow via AS3 AS2 must either announce the more specific prefix = 'punching a hole' in 10.1.0.0/16 by 'leaking' 10.1.1.0/24 AS1 must get PI addresses 10.1.1.0/24 AS2 10.1.0.0/16 AS1 AS3 10.1.1.0/24 10.1.1.0/24 Practical BGP: pages 56-59 15

Conditional advertisement Advertize a prefix when some (network) condition is met Specific route must be present in routing table Example SUNET If IGP reachability fails to campus, do not announce network. Nordunet Stockholm University Campus Practical BGP: pages 63-65 16

Intelligent routing A generalization of Conditional advertisement is 'Intelligent routing' External event triggers announcements Example 1: Announce an anycast route of a DNS server if you can access an A-record from it Example 2: Only announce routes to a site if performance measurement ensures a minimal bandwidth of 10Mb/s Practical BGP: pages 81-83 17

Controlling outbound traffic Outbound control is in general simpler than inbound control since, using IP, you need only control the next-hop. No BGP: Announce (default) routes using IGP metrics, load balance using equal-cost multipath Control outgoing traffic by filtering input routes accepting partial routes Internal multi-path BGP Tag with communities for internal use or even LOCALPREF (seldom used) Practical BGP: pages 65-76 18

Forcing symmetric entry/exit points Asymmetric routing is normal behavior for multi-homed networks But enterprise may want to enforce symmetric routing. (Providers usually do not have this problem) Why? RA RB FWA FWB Practical BGP: pages 77-81 19

Exercise: Symmetry AS-A A.1/24 AS-C C.1/24 AS-B B.1/24 D/24 and E/24 are your networks that you anounce to AS-A and AS-B Try to device a symmetric solution for D.1 and E.1 communicating with A.1, B.1 and C.1 respectively You should have some level of load-balancing. RA RB D.1/24 E.1/24 20

Forcing symmetric entry/exit points Using the topology shown you do not actually require symmetric routing, it is enough to symmetric w.r.t the firewalls: the routing could be asymmetric over RA and RB. This is usually done by splitting the address space internally and letting the IGP handle symmetric FW access RA RB FWA FWB 21

Load-balancing lab EBGP loopback peering EBGP over multiple links Balance prefixes on multiple EBGP peerings Redundancy 2/0/0 2/0/0 RTX1 RTX4 2/0/0 RTX2 2/0/0 ASX-1 2/0/1 ASX 2/0/1 ASX+1 22