BGP Routing and BGP Policy. BGP Routing. Agenda. BGP Routing Information Base. L47 - BGP Routing. L47 - BGP Routing

Similar documents
Border Gateway Protocol - BGP

internet technologies and standards

BGP Attributes (C) Herbert Haas 2005/03/11 1

BGP Attributes and Path Selection

Multiprotocol BGP (MBGP)

BGP. Attributes 2005/03/11. (C) Herbert Haas

Routing Between Autonomous Systems (Example: BGP4) RFC 1771

Introduction to BGP ISP/IXP Workshops

Ravi Chandra cisco Systems Cisco Systems Confidential

Interdomain routing with BGP4 C BGP. A new approach to BGP simulation. (1/2)

How BGP Routers Use the Multi Exit Discriminator for Best Path Selection

Internet Interconnection Structure

Configuring BGP. Cisco s BGP Implementation

Inter-Domain Routing: BGP

LACNIC XIII. Using BGP for Traffic Engineering in an ISP

Internet Routing Basics

Connecting to a Service Provider Using External BGP

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

CS BGP v4. Fall 2014

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

BGP. Border Gateway Protocol (an introduction) Karst Koymans. Informatics Institute University of Amsterdam. (version 17.3, 2017/12/04 13:20:08)

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP Attributes and Policy Control

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4

IBGP internals. BGP Advanced Topics. Agenda. BGP Continuity 1. L49 - BGP Advanced Topics. L49 - BGP Advanced Topics

BGP. Border Gateway Protocol A short introduction. Karst Koymans. Informatics Institute University of Amsterdam. (version 18.3, 2018/12/03 13:53:22)

From the given configuration taken from RTA and graphic, which network will be filtered from being propagated to RTC from RTA?

Communication Networks

Module 6 Implementing BGP

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

Internet Routing Protocols Lecture 01 & 02

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

BGP. Autonomous system (AS) BGP version 4

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

BGP. Autonomous system (AS) BGP version 4. Definition (AS Autonomous System)

DE-CIX Academy: BGP - Multihoming

Internet inter-as routing: BGP

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

Introduction to BGP. ISP/IXP Workshops

Configuring BGP on Cisco Routers Volume 1

BGP Configuration. BGP Overview. Introduction to BGP. Formats of BGP Messages. Header

Border Gateway Protocol (an introduction) Karst Koymans. Tuesday, March 8, 2016

BGP Attributes and Policy Control

Multihoming with BGP and NAT

BGP Attributes and Policy Control

Introduction to BGP. ISP Workshops. Last updated 30 October 2013

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Border Gateway Protocol. Version: Demo

Border Gateway Protocol (an introduction) Karst Koymans. Monday, March 10, 2014

Topology for: EIGRP, BGP, Redistribution

BGP. Internal and External BGP 2005/03/11. (C) Herbert Haas

Connecting to a Service Provider Using External BGP

BGP Convergence in much less than a second

Introduction. Keith Barker, CCIE #6783. YouTube - Keith6783.

Configuring Advanced BGP

Inter-AS routing and BGP. Network Layer 4-1

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

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

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Chapter 4: outline. Network Layer 4-1

IBGP scaling: Route reflectors and confederations

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

Routing Protocols --- Exterior Gateway Protocol

PART III. Implementing Inter-Network Relationships with BGP

BGP Scaling (RR & Peer Group)

CSCI-1680 Network Layer: Inter-domain Routing Rodrigo Fonseca

Architectures and Protocols for Integrated Networks. Intra-domain and Inter-domain Routing Protocols

BGP Commands: M through N

Graph abstraction: costs. Graph abstraction 10/26/2018. Interplay between routing and forwarding

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Border Gateway Protocol (BGP-4)

Configuring a BGP Route Server

TELE 301 Network Management

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

Interdomain Routing Reading: Sections P&D 4.3.{3,4}

Introduction to IP Routing. Geoff Huston

Border Gateway Protocol

IOS Implementation of the ibgp PE CE Feature

Outline. Organization of the global Internet. BGP basics Routing policies The Border Gateway Protocol How to prefer some routes over others

Chapter IV: Network Layer

The Contemporary Internet p. 3 Evolution of the Internet p. 5 Origins and Recent History of the Internet p. 5 From ARPANET to NSFNET p.

Protecting an EBGP peer when memory usage reaches level 2 threshold 66 Configuring a large-scale BGP network 67 Configuring BGP community 67

Preventing the unnecessary propagation of BGP withdraws

CertifyMe. CertifyMe

Operation Manual Routing Protocol. Table of Contents

Lecture 18: Border Gateway Protocol

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. External Routing BGP. Jean Yves Le Boudec 2015

Lecture 17: Border Gateway Protocol

Module 16 An Internet Exchange Point

Computer Networking Introduction

Chapter 4: Network Layer

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Asymmetric Satellite Services. Introduction and Background. Transmit Interface Command. Agenda. Asymmetric Satellite Services

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

CSc 450/550 Computer Networks Internet Routing

Interdomain Routing Reading: Sections K&R EE122: Intro to Communication Networks Fall 2007 (WF 4:00-5:30 in Cory 277)

Cisco CISCO Configuring BGP on Cisco Routers Exam. Practice Test. Version

Transcription:

BGP Routing and BGP Policy BGP Routing The BGP Routing Principles and Route Decisions based on AS-Path in a simple topology of AS s routing policy is reduced to a minimal function demonstrated in example 1 and 2 (BGP-4 Fundamentals module) a BGP router can decide only which networks within the own AS should be announced to external BGP neighbors and which learned networks should be advertised into the own AS no route decision must be taken in a complex topology of AS s routing policy is necessary to decide which routes should be propagated to other peers BGP policy based on agreements between AS s in case of several paths to same destination route decision (= selecting the best path) is necessary BGP Routing, v4.4 1 BGP Routing, v4.4 3 Agenda BGP Internals BGP Session Topologies Synchronization with IGP Fail-over Handling BGP Routing Information Base in a meshed topology of AS s routing decisions are necessary to maintain network connectivity across AS s in case of topology changes e.g. physical link between two AS s is broken to select the best path in case of several paths to same destination in order to handle routing policy and route decision BGP routes are stored in three conceptual Routing Information Bases (RIBs) within a BGP router Adj-RIBs-In, Loc-RIB, Adj-RIBs-Out BGP Routing, v4.4 2 BGP Routing, v4.4 4 Page 47-1 Page 47-2

BGP Routing Information Bases Adj-RIBs-In store routing information that has been learned by inbound Update messages; there contents represent routes that are available as an input to the decision process an optional Input Policy Engine can filter routes or manipulate their attributes (policy decision) before this routing information is given to the route decision process Loc-RIB contains the local routing information that the BGP router has selected after applying its local input policies and route decisions an optional Output Policy Engine can filter routes or manipulate their attributes before this information is given to peers Adj-RIBs-Out contains the routing information that the BGP router has selected for advertisement to its peers BGP Routing, v4.4 5 BGP Routing - Path Vector Protocol with the lack of an Input and Output Policy Engine routing decisions alone will control propagation of BGP routes to peers without special assumptions about use of attributes only AS_Path, Next_Hop and Origin (the mandatory attributes) are used for routing decisions only path vector protocol every routing update (BGP route) contains full list of transit networks (AS_Path) handling very similar to distance vector algorithm e.g. split horizon, hop metrics BGP Routing, v4.4 7 Model of BGP Process Path Vector Protocol Details 1 Incoming BGP Updates from peers Input Policy Engine sh ip bgp (Cisco >) Adjacency RIBs IN BGP Routing Decision Process Outgoing BGP Updates to peers Adjacency RIBs out Output Policy Engine sh ip route (Cisco) IP Routing Table basic algorithm of path vector routing when receiving an update with own AS number contained in the AS_Path, the BGP route will be refused loop protection when an update is received, the path will be compared to the current best path to this destination if the new path is better (e.g. shorter) than the old path the BGP routing table is modified to include the new path corresponding updates are sent to BGP neighbors implementations might include extra features Local RIB sh ip bgp (Cisco *>) BGP Routing, v4.4 6 BGP Routing, v4.4 8 Page 47-3 Page 47-4

Path Vector Protocol Details 2 only the best paths are forwarded to the neighboring ASes same concept as in distance vector protocols however, if this path is broken the next best path should be advertised the BGP routing table is also modified if a new path is received from the currently selected neighbor for that destination if a the currently selected neighbors withdraw a route in this case, the last advertisements from all other neighbors are compared and the best path is selected BGP Meshed Topology (example 3) BGP Border Router AS internal Router running IGP only BGP Routing, v4.4 9 BGP Routing, v4.4 11 Agenda BGP Internals BGP Session Topologies Synchronization with IGP Fail-over Handling External < > Internal BGP Sessions path information between different AS s is transported by BGP Update message external BGP (EBGP) sessions direct physical link is necessary for simplicity only, not a strict requirement to eliminate the need for yet another DMZ routing protocol remark: some implementations support non-directly connected EBGP peers (e.g. Cisco s ebgp multi-hop feature) in order to pass path information within the same AS to other BGP routers internal BGP (IBGP) sessions are necessary remark: IGP protocols might not be able to pass AS numbers or any other path attributes BGP Routing, v4.4 10 BGP Routing, v4.4 12 Page 47-5 Page 47-6

BGP Internal - External Sessions BGP Update (1) Adj-RIBs-In, Local-RIB BGP Table 1.), AS1, 1.) means best BGP route, which is stored in the Local-RIB IBGP session EBGP session (AS1), (AS1), R7 AS 4 BGP Table 1.), AS1, BGP Routing, v4.4 13 BGP Routing, v4.4 15 External < > Internal BGP Sessions different behavior concerning routing updates update received on an internal connection will not be propagated to other BGP routers of same AS basic BGP loop avoidance does not work when AS number is the same through multiple hops! therefore internal BGP routers must be fully meshed IBGP sessions to every other BGP router of same AS if an external update is received and propagated via an internal BGP connection the Next_Hop will be that of the BGP router which originates this external update external router (IP address of this router) must be reachable by IGP or some other means from that internal router recursive lookup of routing table is necessary to find the real next hop in any way, if next hop is not directly connected interface BGP Routing, v4.4 14 BGP Update (2) BGP Table 1.), AS1, BGP Routing, v4.4 16 BGP Table 1.), AS1, (I) means: learned via internal BGP Session BGP Table 1.), AS1, (I) Page 47-7 Page 47-8

IGP Routing Update into AS2 (3) BGP and IGP BGP Table 1.), AS1, that means the BGP router imports this route into its IGP process and IGP propagates it to all routers (within this AS) BGP Table 1.), AS1, BGP Table 1.), AS1, (I) IGP Routing Update for an internal IGP-only router in order to achieve reachability of Net-ID s of other AS s default routing within an AS towards BGP Border or route redistribution from BGP into IGP maybe a problem in case of carrying all Internet routes rules for redistribution only the best BGP route will be installed in the BGProuters IP-forwarding (routing) table only routes learned via BGP external sessions are redistributed into IGP remark: Cisco-IOS default filter behavior BGP Routing, v4.4 17 BGP Routing, v4.4 19 Agenda BGP Internals BGP Session Topologies Synchronization with IGP Fail-over Handling BGP and IGP Synchronization if an BGP router receives a route via internal BGP, it must wait until this route is reachable via IGP too before this route could be announced to an external BGP peer this is called BGP synchronization reason: if router would propagate this route earlier, the AS would get traffic for that destination but this traffic could not be passed through the own AS BGP Routing, v4.4 18 BGP Routing, v4.4 20 Page 47-9 Page 47-10

BGP Update after BGP Synchronization (4) IGP Routing Update AS3 (6) BGP Table 1.), AS1, BGP Table 1.), AS2, AS1, IGP Routing Update (AS2, AS1), BGP Table 1.), AS1, BGP Routing, v4.4 21 BGP Routing, v4.4 23 BGP Update (5) BGP Update Meshed (7) Adj-RIBs-In, Local-RIB BGP Table 1.), AS1, 2.), AS2, AS1, (I) new path longer than old path must not be propagated to but advertisement still stored as second choice in RIB (AS2, AS1), (AS1), Adj-RIBs-In, Local-RIB BGP Table 2.), AS2, AS1, 1.), AS1, (I) new path shorter than old path must be propagated to because BGP table has changed; old advertisement still stored as second choice in RIB BGP Table 2.), AS2, AS1, 1.), AS1, (I) (AS3, AS1), BGP Table 1.), AS1, (I) 2.), AS3, AS1, BGP Routing, v4.4 22 BGP Routing, v4.4 24 Page 47-11 Page 47-12

BGP Final Picture (8) BGP Start Picture (Scenario 1) BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) 1.) means best BGP route, which is stored in the Local-RIB 2.) means alternate BGP route which is stored in Adj-RIBs-In BGP Table, internal BGP Table 2.), AS2, AS1, 1.), AS1, (I) BGP Table 1.), AS1, (I) 2.), AS3, AS1, BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) BGP Table, internal BGP Table 2.), AS2, AS1, 1.), AS1, (I) BGP Table 1.), AS1, (I) 2.), AS3, AS1, BGP Table 1.), AS1, BGP Table 1.), AS1, BGP Routing, v4.4 25 BGP Routing, v4.4 27 Agenda Session Loss (Scenario 1) BGP Internals BGP Session Topologies Synchronization with IGP Fail-over Handling BGP Table, AS1, 1.), AS2, AS1, (I) information removed from table; use second choice BGP Table 1.), AS2, AS1,, AS1, (I) new path from currently selected neighbor use second choice withdraw BGP Routing, v4.4 26 BGP Routing, v4.4 28 Page 47-13 Page 47-14

IGP Routing Update AS3 (1) BGP Final Picture (3) BGP Table 1.), AS2, AS1,, AS1, (I) BGP BGP Table Table 1.), net AS2, 10, AS1, AS1, (I) BGP Table 1.), AS2, AS1, table was modified and update must be sent to corresponding peer BGP Table, internal BGP Table 1.), AS1, (I) BGP Table 1.), AS1, BGP Routing, v4.4 29 BGP Routing, v4.4 31 BGP Incremental Update (2) BGP Start Picture (Scenario 2) BGP Table 1.), AS1, (I), AS3, AS1, BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) BGP Table 2.), AS2, AS1, 1.), AS1, (I) withdraw BGP Table, internal BGP Table 1.), AS1, (I) 2.), AS3, AS1, BGP Table 1.), AS1, BGP Routing, v4.4 30 BGP Routing, v4.4 32 Page 47-15 Page 47-16

Session Loss (Scenario 2) IGP Routing Update (2) BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) BGP Table 2.), AS2, AS1, 1.), AS1, (I) BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) BGP Table 2.), AS2, AS1, 1.), AS1, (I) BGP Table, internal BGP Table 1.), AS1, (I) 2.), AS3, AS1, BGP Table, internal BGP Table 1.), AS3, AS1, BGP Table 1.), AS1, withdraw BGP Table 1.), AS3, AS1, (I) BGP Routing, v4.4 33 BGP Routing, v4.4 35 BGP Incremental Update (1) BGP Incremental Update (3) BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) BGP Table 2.), AS2, AS1, 1.), AS1, (I) BGP BGP Table Table 1.), AS1, 2.), AS2, AS1, (I) withdraw BGP Table 2.), AS2, AS1, 1.), AS1, (I) withdraw BGP Table, internal BGP Table 1.), AS3, AS1, BGP Table, internal BGP Table 1.), AS3, AS1, BGP Routing, v4.4 34 BGP Table 1.), AS3, AS1, (I), BGP Routing, v4.4 36 BGP Table 1.), AS3, AS1, (I) Page 47-17 Page 47-18

BGP Final Picture (4) BGP BGP Table Table 1.), 10, AS1, BGP Table 1.), AS1, (I) BGP Table, internal BGP Table 1.), AS3, AS1, BGP Routing, v4.4 37 BGP Table 1.), AS3, AS1, (I) Page 47-19