Border Gateway Protocol

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

BGP.
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.
Lecture 9 Overview. Hierarchical Routing scale – with 200 million destinations – can’t store all dests in routing tables! – routing table exchange would.
Path Vector Routing NETE0514 Presented by Dr.Apichan Kanjanavapastit.
Routing: Exterior Gateway Protocols and Autonomous Systems Chapter 15.
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.
CSC 600 Internetworking with TCP/IP Unit 6a: IP Routing and Exterior Routing Protocols (Ch. 14, 15) Dr. Cheer-Sun Yang Spring 2001.
Border Gateway Protocol Autonomous Systems and Interdomain Routing (Exterior Gateway Protocol EGP)
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.
Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol –Datagram format.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
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.
1 ELEN 602 Lecture 20 More on Routing RIP, OSPF, BGP.
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
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.
Border Gateway Protocol (BGP). 2 CORE, PEERs Autonomous Systems BGP Basic Operations The BGP Routing Process.
14 – Inter/Intra-AS Routing
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.
Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
BGP Border Gateway Protocol By Amir and David. What Is BGP ? Exterior gateway protocols are designed to route between autonomous systems. AS’s : A set.
Lecture 4: BGP Presentations Lab information H/W update.
BGP V1.1. When is BGP Applicable Basic BGP Peer Configuration Troubleshooting BGP Connections BGP Operation and Path Attributes Route Import/Export Selected.
CS 540 Computer Networks II Sandy Wang
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
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.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
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)
© 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.
Inter-Domain Routing. Routing Hierarchies Flat routing doesn’t scale –Each node cannot be expected to have routes to every destination (or destination.
Border Gateway Protocol DPNM Lab. Seongho Cho
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP (cont) 1. BGP Peering 2. BGP Attributes
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
CSCI-1680 Network Layer: Inter-domain Routing
BGP Overview.
CSCI-1680 Network Layer: Inter-domain Routing
Computer Networks Protocols
Presentation transcript:

Border Gateway Protocol BGP overview BGP operations BGP messages BGP decision algorithm BGP states

Internet Routing Protocols Routing protocols in Internet are arranged in a hierarchy that involves two types of protocols: IGP - Interior Gateway protocol For routers to communicate within an AS (autonomous system) Relies on IP addresses to construct paths Routing Information Protocol (RIP) Open Shortest Path First (OSPF) EGP - Exterior Gateway protocol For router to communicate among different Ass Relies on AS numbers to construct AS paths Border Gateway Protocol (BGP)

BGP overview Currently in version 4. InterAS (or Interdomain) routing protocol for exchanging network reachability information among BGP routers. Uses TCP on port 179 to send routing messages. BGP is a distance vector protocol, but unlike in RIP, routing messages in BGP contain complete routes. Network administrators can specify routing policies.

BGP overview (cont.)

Relationship with IGP BGP carries full Internet routing table IGP’s are used to carry next hop and interior network information. Routes are never redistributed from BGP into IGP, and vice versa. Recursive route lookup

BGP operations Two BGP routers exchanging information on a connection are called peers. Initially, BGP peers exchange the entire BGP routing table. A BGP router retains the current version of the entire BGP routing tables of all of its peers for the duration of the connection. Subsequently, only incremental updates are sent as the routing tables change. Keepalive messages are sent periodically to ensure that the connection between the BGP peers is alive. Notification messages are sent in response to errors or special conditions.

BGP operations (cont.) A route is defined as a unit of information that pairs a destination with the attributes of a path to that destination. Routes are stored in the Routing Information Bases (RIBs). A RIB within a BGP router consists of three distinct parts: Adj-RIBs-In: contains unprocessed routing information that has been advertised to the local BGP router by its peers; Loc-RIB: contains the routes that have been selected by the local BGP router's Decision Process; Adj-RIBs-Out: organizes the routes for advertisement to specific peers by means of the local speaker‘s UPDATE messages.

eBGP and iBGP BGP can also be used within an AS. BGP connections inside an AS are called internal BGP (iBGP), and BGP connections between different Ass are called external BGP (eBGP). The purpose of iBGP is to ensure that network reachability information is consistent among multiple BGP routers in the same AS. R2 R3 iBGP AS2 eBGP eBGP R1 AS1 R4 AS4

BGP messages BGP header format Marker: authenticates incoming BGP messages or detects loss of synchronization between a pair of BGP peers. Length: indicates the total length of the message in octets, including the BGP header. Type: indicates the type of the message. Marker Length Type 16 24 31

Optional parameter length OPEN message Marker Length Type=OPEN Version My autonomous system Hold time BGP identifier Optional parameter length Optional parameters 8 16 24 31 Version: the protocol version number of the message. My autonomous system: The AS number of the sending router. Hold time: the number of seconds between the transmission of successive KEEPALIVE messages. BPG identifier: the sending BGP router. Optional parameter: a list of optional parameters, encoded in TLV structure.

KEEPALIVE message Marker Length Type=KEEPALIVE 8 16 24 31 If the hold time is zero, then KEEPALIVE messages will not be sent.

NOTIFICATION message Error code: the type of error condition. Marker Length Type=NOTIFICATION Error code Data Error subcode 8 16 24 31 Error code: the type of error condition. Error subcode: specific information about the nature of the error. Data: the reason for the notification.

UPDATE message …… BGP header Unfeasible routes length (2 octets) Prefix (variable) …… BGP header Unfeasible routes length (2 octets) Withdrawn routes (variable) Total path attribute length (2 octets) Path attributes (variable) Network layer reachability information (variable) Attribute type Attribute length Attribute value …… Length (1 octet) Prefix (variable) …… Unfeasible routes length: the total length of the withdrawn routes field in octets. Withdrawn routes: a list of IP address prefixes for the routes that need to be withdrawn from BGP routing tables. Total path attribute length: the total length of the Path Attributes field in octets. Path attributes: a variable length sequence of path attributes. NLRI: a list of IP prefixes.

Update message (cont.) Attribute flag (1 octet): Attribute type Attribute length Attribute value O T P E Attribute type code Attribute flag (1 octet): O bit: attribute is optional (O=1), or required (O=0). T bit: an optional attribute is transitive (T=1), or non-transitive (T=1). P bit: the information in the optional transitive attribute is partial (P=1), or complete (P=0). E bit: the attribute length is two octets (E=1), or one octet (E=0).

Update message (cont.) Attribute type code: ORIGIN (type code 1): defines the origin of the NLRI. AS_PATH (type code 2): lists the sequence of Ass that the route have traversed to reach the destination. NEXT_HOP (type code 3): defines the IP address of the border router that should be used as the next hop to the destination listed in the NLRI. MULTI_NEXT_DISC (type code 4): discriminates among multiple entry/exit points to a neighboring AS and gives a hint to the neighboring AS about the preferred path. LOCAL_PREF( type code 5): informs other BGP routers within the same AS of its degree of preference for an advertised route. ATOMIC_AGGREGATE (type code 6): informs other BGP routers that it selected a less specific route without selecting a more specific one that is included in it. AGGREGATOR (type code 7): specifies the last AS number that formed the aggregate route followed by the IP address of the BGP router that formed the aggregate route.

The BGP decision algorithm After BGP router receives updates about different destinations from peers, the protocol will have to decide which paths to choose in order to reach a specific destination. BGP will choose only a single path to reach a specific destination. The decision process is based on different attributes, such as next hop, local preference, the route origin, and so on. BGP will always propagate the best path to its neighbors.

How BGP selects a Path If NextHop is inaccessible do not consider it. Prefer the largest Weight. If same weight prefer largest Local Preference. If same Local Preference prefer the route that the specified router has originated. If no route was originated prefer the shorter AS path. If all paths are external prefer the lowest origin code (IGP<EGP<INCOMPLETE). If origin codes are the same prefer the path with the lowest MED. If path is the same length prefer the External path over Internal. If IGP synchronization is disabled and only internal path remain prefer the path through the closest IGP neighbor. Prefer the route with the lowest ip address value for BGP router ID.

BGP finite state machine Idle state: In this state BGP refuses all incoming BGP connections. No resources are allocated to the peer. Connect state: In this state BGP is waiting for the transport protocol connection to be completed. Active state: In this state BGP is trying to acquire a peer by initiating a transport protocol connection. OpenSent state: In this state BGP waits for an OPEN message from its peer. OpenConfirm state: In this state BGP waits for a KEEPALIVE or NOTIFICATION message. Established state: In the Established state BGP can exchange UPDATE, NOTIFICATION, and KEEPALIVE messages with its peer.