BGP4 - Border Gateway Protocol. Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16.

Slides:



Advertisements
Similar presentations
CCNP Network Route BGP Part -II. BGP ROUTE REDISTRIBUTION Scenario: R1 R2, R3 in AS 1000 with IP addresses of and loopback ,
Advertisements

CCNP Network Route BGP Part -I BGP : Border Gateway Protocol. It is a distance vector protocol It is an External Gateway Protocol and basically used for.
Interfacing Interior and Exterior Gateway Protocols.
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.
© 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)
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.
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 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
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
CSE5803 Advanced Internet Protocols and Applications (8) Introduction Some basic concepts of routing inside an autonomous system was introduced in.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
© 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.
Border Gateway Protocol (BGP4)
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.
BGP Training. Terms IGP (Interior Gateway Protocol) - RIP, IGRP, EIGRP, OSPF = Routing protocol used to exchange routing information within an autonomous.
1 © 2000, Cisco Systems, Inc. Session # Presentation_ID Border Gateway Protocol.
Explaining BGP Concepts and Terminology
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
© 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.
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.
The Hebe-jebes (or He-B-GPs): Understanding the Roles of EBGP, IBGP and an IGP Using Lab 7-4, IBGP, Next Hop and Synchronization Rick Graziani Cabrillo.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
CCNP – Advanced Routing CCNP – Advanced Routing BGP (Part II) This Presentations was originally created by Rick Graziane. Few modifications were made by.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
BGP routing table entry for /16, version Paths: (4 available, best #1) Advertised to peer-groups: AS4544-AGG-CUSTOMER-FULL
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
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.
Border Gateway Protocol (BGP)
GNU Zebra Free software that runs routing protocols Supports RIP v1/v2, OSPF, BGP Configuration syntax is like cisco Linux or *BSD.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicBSCI Module 6 1 Configuring Basic BGP BSCI Module 6.
Route Filtering and Route Selection in BGP
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—5-1 Customer-to-Provider Connectivity with BGP Connecting a Multihomed Customer to a Single Service.
© 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 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.
Route Selection Using Attributes
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Bgp-WoRkShOP Arturo Servin | Carlos Martínez. Acknowledges Special thanks to Phillip Smith (APNIC) and Alvaro Retana (Cisco Systems) whose material has.
Border Gateway Protocol DPNM Lab. Seongho Cho
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
ISP Workshop Agenda Phithakkit Phasuk.
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP Routing Policies.
BGP (cont) 1. BGP Peering 2. BGP Attributes
Explaining BGP Concepts and Terminology
BGP supplement Abhigyan Sharma.
Introduction To Networking
Lixin Gao ECE Dept. UMASS, Amherst
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
Presentation transcript:

BGP4 - Border Gateway Protocol

Autonomous Systems Routers under a single administrative control are grouped into autonomous systems Identified by a 16 bit Autonomous System Number (ASN) Normally BGP chooses the route with shortest AS PATH as “best”

Types of Autonomous Systems Single-homed Multi-homed non-transit Multi-homed transit

ASN Numbers 16-bit Integer, 1 thru Public ASNs 1 thru –Assigned by ARIN requires multihoming Private ASNs thru 65535

Typical ASN Connections

Sample ASNs 2553FSU209Qwest 3447Sprint-TLH701UUNET 6912Hayes3996FIRN 8103DMS22909Comcast 2379Sprint-Orld3506CSIT 1239Sprint-BB10490GIT-I2

FSU ASN Connections

sh ip bgp neighbor HCS-TLH-2#sh ip bgp sum BGP router identifier , local AS number 6912 BGP table version is , main routing table version BGP activity / prefixes, / paths Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd :09: d09h d09h d00h w1d d09h 4 HCS-TLH-2#

sh ip bgp nei routes HCS-TLH-2#sh ip bgp neighbor routes 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 Total number of prefixes 4 HCS-TLH-2#

Route Servers To figure out Internet backbone problems, there are several public route servers Many can be found at On the next slide, we look at one route server’s entries for the FSU ASN

sh ip bgp route-views.oregon-ix.net>sh ip bgp BGP routing table entry for /16, version Paths: (51 available, best #6) from ( ) Origin IGP, localpref 100, valid, external from ( ) Origin IGP, localpref 100, valid, external from ( ) Origin IGP, localpref 100, valid, external Community: 267: : : : from ( ) Origin IGP, localpref 100, valid, external, best Community: 11537:950

IBGP BGP routers within the same AS speak IBGP with each other BGP routers that speak to each other are called “peers” or “neighbors” IBGP speakers within an AS need not be directly connected to each other, but must be fully meshed or use a route reflector

EBGP BGP routers in different ASNs speak EBGP to each other Normally are directly connected Sometimes use EBGP Multihop

EBGP - IBGP

Public Tools Route Servers, Traceroute Servers, Looking Glass servers at Digex Looking-Glass nitrous.digex.net

Protocol BGP peers speak using tcp/179 Initially send full routing table, followed by periodic updates Updates are incremental BGP table version keeps track of the state Routing entries include subnet and support CIDR Table entries also have associated attributes

BGP attributes Origin ASPATH Weight Local Preference Multi-Exit Descriminator (MED) Communities Origin Type Next-Hop

BGP Attributes 2 Both mandatory and optional attributes Route Maps used to manipulate attributes Eg: Can use route maps to prepend the ASPATH on routing annoucements

Route Maps Manipulate routes and their attributes See Doyle vol 1, chapter 14, p805 Each has a line number and is processed sequentially (similar to BASIC) Match on IP address, next hop, metric, etc. Can set various attributes

BGP Net Advertisements Normally, use a NETWORK statement for networks to be advertised BGP will only advertise a network to its BGP peers if there is a local route for the network. Local routes are often added to the NULL 0 device for this purpose Can disable synchronization but not recommended.

BGP Advertisments 2 router bgp 2553 network mask ip route null 0

Weight Attribute Cisco specific Default Highest weight preferred when multiple paths to a destination exist Local relevance (not propogated)

Local Preference Attribute Only applies when multiple routes to a destination all with the same weight Default is 100 Attribute exchanged within AS Highest local preference is preferred Used to control exit point when your AS has mulitple EBGP connections

Metric / MED Attribute MED=Multi Exit Descriminator Gives external AS hints as to your preferred entry to your network Not always honored, ASPATH prepend may be better Low value is preferred

Community Attribute Used for grouping destinations Allows applying routing decisions to according to communities. Must explicitly send communities Also used for other enhancements like MPLS/VPNs

ASPATHs List of ASNs representing the path to a desination Use ASPATH filters with regular expressions to match “ip as-path 5 permit ^2553” (Matches routes originating from FSU AS) Applied with filter-list or route-map

ASPATH Regular Expressions.Single Character Wildcard ^Beginning of String $End of String _Match beginning,end,comma,brace, or space *Zero or more occurances +One or more occurances

Regular Expressions Examples _2553_Paths that traverse FSU ^2553$Origin FSU ^2553.*Path from FSU ^$Null path from this AS Experiment with: sh ip bgp regexp REGULAR-EXP

Internet Backbone Architecture Backbone ISPs provide service Backbone ISPs peer at the Internet NAPs Large backbone ISPs also privately peer Peering arrangements are largely determined by finances

References Internet Routing Architectures 2/e - Halabi RFC1771 BGP4 Case Studies - Halabi