BGP.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
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.
BGP Extensions for BIER draft-xu-idr-bier-extensions-01 Xiaohu Xu (Huawei) Mach Chen (Huawei) Keyur Patel (Cisco) IJsbrand Wijnands (Cisco)
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.
BGP EE 122, Fall 2013 Sylvia Ratnasamy Material thanks to Ion Stoica, Scott Shenker, Jennifer Rexford, and many other.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
CS Summer 2003 Lecture 3. CS Summer 2003 What is a BGP Path Attribute? BGP uses a set of parameters known as path attributes to characterize.
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
CS Summer 2003 Lecture 13. CS Summer 2003 MP_REACH_NLRI Attribute The MP_REACH_NLRI attribute is encoded as shown below:
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.
CSE5803 Advanced Internet Protocols and Applications (8) Introduction Some basic concepts of routing inside an autonomous system was introduced in.
15-744: Computer Networking L-5 Inter-Domain Routing.
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 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.
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.
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
© 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.
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Understanding and Limiting BGP Instabilities Zhi-Li Zhang Jaideep Chandrashekar Kuai Xu
Lecture 4: BGP Presentations Lab information H/W update.
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.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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.
Copyright 2012 Kenneth M. Chipps Ph.D. Cisco CCNA Exploration CCNA 2 Routing Protocols and Concepts BGP Last Update
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.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
Routing in the Inernet Outcomes: –What are routing protocols used for Intra-ASs Routing in the Internet? –The Working Principle of RIP and OSPF –What is.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
1 Agenda for Today’s Lecture The rationale for BGP’s design –What is interdomain routing and why do we need it? –Why does BGP look the way it does? How.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Understanding BGP Path Attributes.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
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.
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Border Gateway Protocol DPNM Lab. Seongho Cho
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Internal DP MP-BGP for IPv6 原理 ISSUE 1.0.
CS 3700 Networks and Distributed Systems
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
CS 3700 Networks and Distributed Systems
Border Gateway Protocol
BGP (cont) 1. BGP Peering 2. BGP Attributes
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Cours BGP-MPLS-IPV6-QOS
BGP Route Selection.
BGP Instability Jennifer Rexford
Computer Networks Protocols
Presentation transcript:

BGP

BGP Border Gateway Protocol Routing between Autonomous Systems (ASes) Currently version 4 RFC 4271 TCP port 179 Routing between Autonomous Systems (ASes) Decentralised routing Allows an AS to advertise that it exists Each AS advertises routes it has, leaves decision about whether to use them or not to peer Originally supported IPv4; these days multi-protocol

Autonomous System set of routers under same administrative control owned/operated by same entity identified by a unique number autonomous system number (ASN) historically a 16-bit value public range: 1-64511 private range: 64512-65535

Autonomous Systems AS3 AS4 AS1 AS2 AS5 AS6

Autonomous Systems AS1 AS2 eBGP iBGP

BGP Path-Vector protocol Routing information includes the AS path a route has traversed A router prepends its AS number to any route it receives before advertising it A router discards any AS path that includes its ASN in it Why?

Autonomous Systems AS3 AS4 AS1 AS2 192.168.0.0/24 AS5 AS6

BGP message types OPEN KEEPALIVE UPDATE NOTIFICATION Establish BGP session with peer; negotiate hold time, advise ASN. KEEPALIVE Periodic message sent so a router knows a peer is still up in absence of updates UPDATE Routes added or withdrawn NOTIFICATION Error condition encountered

BGP Message Format marker length type Marker: all ones in most cases; can be used for MD5 authentication. Length: 19-4096 bytes Type: one of four values (open, update, notification, keepalive)

UPDATE Message An exterior gateway protocol calls for incremental changes to routing table. reduce volume of traffic to synchronise routing through the network An UPDATE message advises when new routes are available Network Layer Reachability Information (NLRI) when a route is withdrawn

IP address prefix +---------------------------+ | Length (1 octet) | | Prefix (variable) | IPv4 routes are described in CIDR format and encoded as <Length, Prefix>; e.g. 130.216.0.0/15 00001111 10000010 11011000 (15) (130) (216)

UPDATE Message +-----------------------------------------------------+ | Withdrawn Routes Length (2 octets) | | Withdrawn Routes (variable) | | Total Path Attribute Length (2 octets) | | Path Attributes (variable) | | Network Layer Reachability Information (variable) | Section 4.3, UPDATE message format, RFC 4271

Withdrawing Routes The prefixes to withdraw (if any) are specified in the withdrawn routes section The receiver finds the appropriate prefix previously announced by the peer and removes that one When a BGP connection is closed, all routes advertised from that connection are withdrawn by the peers

Advertising Routes New routes, and their attributes, are specified in the NLRI and path attributes sections Mandatory attributes: origin: IGP, EGP, ? AS path: seq. of ASes in path to prefix next hop: IP address of router to use

Other Attributes MED (Multi Exit Discriminator) Local Pref Community …

Attributes 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Attr. Flags |Attr. Type Code| Bit 0: optional (0) / well-known (1) Bit 1: transitive (1) / non-transitive (2) Bit 2: partial (1) / complete (0) Bit 3: attr. length octet (0) or two octets (1)

Classes of Attributes Well-known mandatory Well-known discretionary BGP speaker MUST understand it and MUST include it in NLRI Well-known discretionary BGP speaker MUST understand it and MAY include it in NLRI Optional transitive BGP speaker MAY understand it but MUST forward attribute if received in NLRI – sets partial bit to 1 Optional non-transitive BGP speaker MAY understand it but MUST NOT forward attribute received in NLRI

Multiprotocol BGP (MBGP) BGP was designed to organise global IPv4 routing MBGP: a set of extensions to enable other types of routes to be chucked around using the attributes section Optional, non-transitive Has to be negotiated at OPEN. MP-Reach-NLRI (type 14) MP-Unreach-NLRI (type 15) RFC 4760

MP-Reach-NLRI +---------------------------------------------------------+ | Address Family Identifier (2 octets) | | Subsequent Address Family Identifier (1 octet) | | Length of Next Hop Network Address (1 octet) | | Network Address of Next Hop (variable) | | Reserved (1 octet) | | Network Layer Reachability Information (variable) | Source: Page 3, RFC 4760

BGP decision process Step Attribute Controlled by local or neighbour AS? 1 Highest LocalPref local 2 Lowest AS path length neighbour 3 Lowest origin type neither 4 Lowest MED 5 eBGP-learned over iBGP-learned 6 Lowest IGP cost to border router 7 Lowest router ID (to break ties) Source: BGP routing policies in ISP networks, Caesar and Rexford.

BGP Communities Administrative tag used to associate routes together Assists in implementing administrative routing policy Optional transitive attribute. Well-known communities: No-Export; do not advertise outside of this AS No-Advertise; do not advertise further No-Export-Subconfed; do not advertise outside selected portion of AS.

Processing Route Advertisements Applying Policy Import policy Filter routes from going further Append or modify attributes Decision process Export policy Which neighbours will receive the route Don’t want to carry traffic you aren’t being paid to carry Source: BGP routing policies in ISP networks, Caesar and Rexford.

Routing Policy Import policy Protect network from bad advertisements Advertising private or unallocated address space Customer advertising default route to provider Promote aggregation through filtering NLRI with prefixes longer than particular value

Configuring Local Policies Preference add/delete/modify route attributes Filtering Eliminate certain routes from consideration; control who they will be exported to; Tagging Associate additional state with a route using community attribute

Further Reading BGP routing policies in ISP networks; Matthew Caesar and Jennifer Rexford RFC 4760: Multiprotocol Extensions for BGP-4 RFC 4271: A Border Gateway Protocol 4 (BGP-4)

Next lecture reading RFC 4364 Section 3 to 4.3.2 (pp. 8-19)