Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001.

Slides:



Advertisements
Similar presentations
Rensselaer Polytechnic Institute 1 Today’s Big Picture Large ISP Dial-Up ISP Access Network Small ISP Stub Large number of diverse networks.
Advertisements

1 Interdomain Traffic Engineering with BGP By Behzad Akbari Spring 2011 These slides are based on the slides of Tim. G. Griffin (AT&T) and Shivkumar (RPI)
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.
BGP.
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.
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.
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.
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.
The Basics of BGP (Border Gateway Protocol) Routing and its Performance in Today’s Internet Presenter: Sophia Poku Slides taken from presentation by Nina.
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.
Practical and Configuration issues of BGP and Policy routing Cameron Harvey Simon Fraser University.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
The Border Gateway Protocol (BGP) Sharad Jaiswal.
Computer Networking Lecture 10: Inter-Domain Routing
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Interdomain Routing Computer Science Division Department of Electrical Engineering and Computer.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
Interdomain Routing EECS 122: Lecture 11 Department of Electrical Engineering and Computer Sciences University of California Berkeley.
14 – Inter/Intra-AS Routing
© 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.
Inter-domain Routing Outline Border 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.
Introduction to BGP.
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Overview of Internet Routing (II) Fall 2004 CS644 Advanced Topics in Networking Sue B. Moon Division of Computer Science Dept. of EECS KAIST.
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
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.
Network Layer r Introduction r Datagram networks r IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP r What’s inside a router r Routing.
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.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429/556 Introduction to Computer Networks Inter-domain routing Some slides used with.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
Network Layer4-1 Intra-AS Routing r Also known as Interior Gateway Protocols (IGP) r Most common Intra-AS routing protocols: m RIP: Routing Information.
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.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Inter-domain Routing Outline Border Gateway Protocol.
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.
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.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
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 supplement Abhigyan Sharma.
Cours BGP-MPLS-IPV6-QOS
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Computer Networks Protocols
Presentation transcript:

Border Gateway Protocol(BGP) L.Subramanian 23 rd October, 2001

BGP references BGP4: Inter-Domain Routing in the Internet by John W. Stewart III Request for Comments (RFC 1771) BGP tutorials on the web

Contents of the Talk Autonomous Systems and Gateways Inter-domain vs Intra-domain routing Classless Inter-domain routing BGP Messages, Attributes and Features AS Relationships and BGP Policies

Big Picture Large ISP Dial-Up ISP Access Network Small ISP Stub The Internet contains a large number of diverse networks

Autonomous System(AS) Internet is not a single network Collection of networks controlled by different administrations An autonomous system is a network under a single administrative control An AS owns an IP prefix Every AS has a unique AS number ASes need to inter-network themselves to form a single virtual global network Need a common protocol for communication

Who speaks BGP? R border routerinternal router BGP R2R1R3 AS1 AS2  Two types of routers  Border router(Edge), Internal router(Core)  Two border routers of different ASes will have a BGP session

Purpose of BGP R border router internal router BGP R2R1R3 A AS1 AS2 you can reach net A via me traffic to A table at R1: dest next hop AR2 Share connectivity information across ASes

Intra-domain vs Inter-domain An AS is a routing domain Within an AS: Can run a link-state routing protocol Trust other routers Scale of network is relatively small Between ASes: Lack of information about other AS’s network (Link-state not possible) Crossing trust boundaries Link-state protocol will not scale Routing protocol based on route propogation

I-BGP and E-BGP R border router internal router R1 AS1 R4 R5 B AS3 E-BGP R2R3 A AS2 announce B IGP: Interior Gateway Protocol. Examples: IS-IS, OSPF I-BGP IGP

Sharing routes One router can participate in many BGP sessions. Initially … node advertises ALL routes it wants neighbor to know (could be >50K routes) Ongoing … only inform neighbor of changes BGP Sessions AS1 AS2 AS3

Assigning IP address and AS numbers (Ideally) A host gets its IP address from the IP address block of its organization An organization gets an IP address block from its ISP’s address block An ISP gets its address block from its own provider OR from one of the 3 routing registries: ARIN: American Registry for Internet Numbers RIPE: Reseaux IP Europeens APNIC: Asia Pacific Network Information Center Each AS is assigned a 16-bit number (65536 total) Currently 10,000 AS’s in use

Original addressing schemes (class-based): 32 bits divided into 2 parts: Class A Class B Class C CIDR introduced to solve 2 problems: exhaustion of IP address space size and growth rate of routing table Addressing Schemes network host 0 0 network host network host ~2 million nets 256 hosts 8

Problem #1: Lifetime of Address Space Example: an organization needs 500 addresses. A single class C address not enough (256 hosts). Instead a class B address is allocated. (~64K hosts) That’s overkill -a huge waste. CIDR allows networks to be assigned on arbitrary bit boundaries. permits arbitrary sized masks: /23 is valid requires explicit masks to be passed in routing protocols CIDR solution for example above: organization is allocated a single /23 address (equivalent of 2 class C’s).

Problem #2: Routing Table Size service provider … … Global internet Without CIDR: service provider … Global internet With CIDR: /16

CIDR: Classless Inter-Domain Routing Address format. The prefix denotes the upper P bits of the IP address. Idea - use aggregation - provide routing for a large number of customers by advertising one common prefix. This is possible because nature of addressing is hierarchical Summarization reduces the size of routing tables, but maintains connectivity. Aggregation scalability and survivability of the Internet

BGP Details Classless Inter-domain Routing Path-vector protocol BGP Messages, Attributes Preference-based routing Export and Import Policies

BGP: A Path-vector protocol ner-routes>show ip bgp BGP table version is , local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path * i i * i i i / I e / e  Every route advertisement contains the entire AS path  generalization of distance vector  Can implement policies for choosing best route  Can detect loops at an AS level

Route Attributes ORIGIN: Who originated the announcement? Where was a prefix injected into BGP? IGP, EGP or Incomplete (often used for static routes) AS-PATH: a list of AS’s through which the announcement for a prefix has passed each AS prepends its AS # to the AS-PATH attribute when forwarding an announcement

Basic Messages in BGP Open: Establishes BGP session (uses TCP port #179) BGP uses TCP Notification: Report unusual conditions Update: Inform neighbor of new routes that become active Inform neighbor of old routes that become inactive Keepalive: Inform neighbor that connection is still viable

UPDATE Message used to either advertise and/or withdraw prefixes path attributes: list of attributes that pertain to ALL the prefixes in the Reachability Info field Withdrawn routes length (2 octets) Withdrawn routes (variable length) Total path attributes length (2 octets) Path Attributes (variable length) Reachability Information (variable length) FORMAT:

Attribute: Multi-Exit Discriminator (MED) when AS’s interconnected via 2 or more links AS announcing prefix sets MED enables AS2 to indicate its preference AS receiving prefix uses MED to select link a way to specify how close a prefix is to the link it is announced on Link B Link A MED=10 MED=50 AS1 AS2 AS4 AS3

Attribute: Local Preference Used to indicate preference among multiple paths for the same prefix anywhere in the internet. The higher the value the more preferred Exchanged between IBGP peers only. Local to the AS. Often used to select a specific exit point for a particular destination AS4 AS2 AS3 AS /24 BGP table at AS4:

Choosing best route Choose route with highest LOCAL_PREF Preference-based routing If multiple choices, select route with shortest hop-count If multiple choices for same neighboring AS, choose path with max MED value Choose route based on lowest origin type IGP < EGP < INCOMPLETE Among IGP paths, choose one with lowest cost Finally use router ID to break the tie.

Routing Process Overview Import Policy Engine Decision process Routes used by router Routes received from neighbors Routes sent to neighbors Export policy engine BGP tableIP routing table Choose best route accept, deny, set preferences forward, not forward set MEDs

Import and Export Policies Inbound filtering controls outbound traffic filters route updates received from other peers filtering based on IP prefixes, AS_PATH, community Outbound Filtering controls inbound traffic forwarding a route means others may choose to reach the prefix through you not forwarding a route means others must use another router to reach the prefix Attribute Manipulation Import: LOCAL_PREF (manipulate trust) Export: AS_PATH and MEDs

Transit vs. Nontransit AS AS1 ISP1 ISP2 r1 r2 r3 r2 r1 r3 AS1 ISP1 ISP2 r1 r2,r3r2,r1 r3 r2 r1 r3 Transit traffic = traffic whose source and destination are outside the AS Nontransit AS: does not carry transit traffic Transit AS: does carry transit traffic Advertise own routes only Do not propagate routes learned from other AS’s case 1: Advertises its own routes PLUS routes learned from other AS’s AS1 r1 r2 r3 r2 AS2 r1 r3 case 2:

AS relationships, Export rules AS has customers, providers and peers Relationships between AS pairs: customer-provider peer-to-peer Type of relationship influences policies Exporting to provider: AS exports its routes & its customer’s routes, but not routes learned from other providers or peers Exporting to peer: (same as above) Exporting to customer: AS exports its routes plus routes learned from its providers and peers

Customer-Transit problem Small ISP Large ISP r1 r2,r3r2,r1 r3 r2 r1 r3  Assume that the small ISP is a customer of two large ISPs  If customer ISP does not obey export rules  forwards advertisements from one large ISP to another  Carries huge volume of transit traffic between two large ISPs

Take-aways Internet is composed of various ASes which use BGP to inter-network themselves Internet switched to classless addressing BGP as a routing protocol Path-vector based Supports route-aggregation Supports preferential routing Uses Import and Export policies BGP is the protocol that “holds” the Internet intact