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.

Slides:



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

BGP Protocol & Configuration Scalable Infrastructure Workshop AfNOG2010.
1 © 2001, Cisco Systems, Inc. All rights reserved. ISP Workshops BGP Deployment & Scalability Mike Pennington Network Consulting Engineer Cisco Systems,
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.
© 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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—2-1 BGP Transit Autonomous Systems Monitoring and Troubleshooting IBGP in a Transit AS.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Module Summary BGP has reliable transport provided by TCP, a rich set of metrics called BGP.
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.
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.
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.
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 Configuring and Verifying Basic BGP Operations.
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.
1 © 2000, Cisco Systems, Inc. Session # Presentation_ID Border Gateway Protocol.
BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.
© 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.
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.
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.
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.
Chapter 9. Implementing Scalability Features in Your Internetwork.
© Synergon Informatika Rt., 1999 Chapter 12 Connecting Enterprises to an Internet Service Provider.
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.
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.
1 Unicast Routing Protocols. 2 Outline  Routing basic  RIP  OSPF  BGP.
© 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.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—6-1 Scaling Service Provider Networks Scaling IGP and BGP in Service Provider Networks.
© 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.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Lab 6-2 Debrief.
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.
Border Gateway Protocol BGP-4 BGP environment How BGP works BGP information BGP administration.
Border Gateway Protocol. Intra-AS v.s. Inter-AS Intra-AS Inter-AS.
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.
Connecting an Enterprise Network to an ISP Network
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Lixin Gao ECE Dept. UMASS, Amherst
Module Summary BGP is a path-vector routing protocol that allows routing policy decisions at the AS level to be enforced. BGP is a policy-based routing.
BGP Overview BGP concepts and operation.
BGP Instability Jennifer Rexford
Presentation transcript:

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 4 Runs over TCP Path Vector Protocol Incremental Updates

2 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM AS 100 AS 101 AS 102 AC BGP speakers are called peers BGP Peers eBGP TCP/IP Peer Connection Peers in different AS’s are called External Peers Note: eBGP Peers normally should be directly connected. E BD / / /24

3 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM AS 100 AS 101 AC BGP speakers are called peers BGP Peers iBGP TCP/IP Peer Connection Peers in the same AS are called Internal Peers AS 102 E BD Note: iBGP Peers don’t have to be directly connected / / /24

4 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM AS 100 AS 101 AC BGP Peers AS 102 D / / /24 E B BGP Peers exchange Update messages containing Network Layer Reachability Information (NLRI) BGP Update Messages

5 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Configuring BGP Peers interface Serial 0 ip address router bgp 100 network mask neighbor remote-as 101 interface Serial 0 ip address router bgp 101 network mask neighbor remote-as 100 neighbor remote-as 100 eBGP TCP Connection BGP Peering sessions are established using the BGP “neighbor” configuration command /30 B CDA AS 100 AS / / –External (eBGP) is configured when AS numbers are different

6 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM –Internal (iBGP) is configured when AS numbers are same AS 100 AS 101 Configuring BGP Peers /30.2 interface Serial 1 ip address router bgp 101 network mask neighbor remote-as 101 neighbor remote-as 101 B interface Serial 1 ip address router bgp 101 network mask neighbor remote-as 101 neighbor remote-as 101 C iBGP TCP Connection BGP Peering sessions are established using the BGP “neighbor” configuration command D / /24 A –External (eBGP) is configured when AS numbers are different

7 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Configuring BGP Peers Each iBGP speaker must peer with every other iBGP speaker in the AS iBGP TCP/IP Peer Connection AS 100 A B C

8 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Configuring BGP Peers Loopback interface are normally used as peer connection end-points AS A B C iBGP TCP/IP Peer Connection

9 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM iBGP TCP/IP Peer Connection Configuring BGP Peers AS 100 A C B interface loopback 0 ip address router bgp 100 network neighbor remote-as 100 neighbor update-source loopback0 neighbor update-source loopback0 neighbor remote-as 100 neighbor update-source loopback0 neighbor update-source loopback0 A

10 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Configuring BGP Peers AS 100 A C A interface loopback 0 ip address router bgp 100 network neighbor remote-as 100 neighbor update-source loopback0 neighbor update-source loopback0 neighbor remote-as 100 neighbor update-source loopback0 neighbor update-source loopback0 B iBGP TCP/IP Peer Connection

11 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Configuring BGP Peers AS 100 A A B interface loopback 0 ip address router bgp 100 network neighbor remote-as 100 neighbor update-source loopback0 neighbor remote-as 100 neighbor update-source loopback0 neighbor update-source loopback0 C iBGP TCP/IP Peer Connection

12 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Unfeasible Routes Length (2 Octets) Withdrawn Routes (Variable) Total path Attribute Length (2 Octets) Network Layer Reachability Information (Variable) Path Attributes (Variable) The BGP UPDATE Message Length (I Octet) Prefix (Variable) Attribute Type Length (I Octet) Prefix (Variable) Attribute Length Attribute Value A BGP update is used to advertise a single feasible route to a peer, or to withdraw multiple unfeasible routes Each update message contains attributes, like origin, AS-Path, Next-Hop, ……. BGP Update Messages

13 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Updates — NLRI Network Layer Reachability Information Used to advertise feasible routes Composed of: –Network Prefix –Mask Length

14 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Updates — Attributes Used to convey information associated with NLRI –AS path –Next hop –Local preference –Multi-Exit Discriminator (MED) –Community –Origin –Aggregator

15 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Sequence of ASes a route has traversed Loop detection Apply policy AS 100 AS 300 AS 200 AS 500 AS / / /16 Network Path / / / Network Path / / AS-Path Attribute

16 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM / / /30.2 AS 100 AS 200 Network Next-Hop Path / C Next Hop Attribute.1 BGP Update Messages B A /30 AS 300 E D Next hop to reach a network Usually a local network is the next hop in eBGP session /16

17 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Next hop to reach a network Usually a local network is the next hop in eBGP session / / /30.2 AS 100 AS 200 C Next Hop Attribute.1 B A /30 BGP Update Messages E D Next Hop updated between eBGP Peers AS /16 Network Next-Hop Path / /

18 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Next hop not changed between iBGP peers / / /30.2 AS 100 AS 200 Network Next-Hop Path / / C Next Hop Attribute.1 B A /30 BGP Update Messages D E AS /16

19 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM Next Hop Attribute (more) IGP should carry route to next hops Recursive route look-up Unlinks BGP from actual physical topology Allows IGP to make intelligent forwarding decision

20 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Updates — Withdrawn Routes Used to “withdraw” network reachability Each Withdrawn Route is composed of: –Network Prefix –Mask Length

21 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Updates — Withdrawn Routes AS 321 AS / / x Connectivity lost BGP Update Message Withdraw Routes /24 Withdraw Routes /24 Network Next-Hop Path / /

22 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Routing Information Base BGP RIB D /24 D /24 D /24 R /16 S /24 Network Next-Hop Path router bgp 100 network no auto-summary Route Table *>i / i *>i / i BGP ‘network’ commands are normally used to populate the BGP RIB with routes from the Route Table

23 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Routing Information Base BGP RIB router bgp 100 network aggregate-address summary-only no auto-summary Route Table Network Next-Hop Path D /24 D /24 D /24 R /16 S /24 *> / i * i i s> / i s> / i BGP ‘aggregate-address’ commands may be used to install summary routes in the BGP RIB

24 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP ‘redistribute’ commands can also be used to populate the BGP RIB with routes from the Route Table BGP Routing Information Base BGP RIB Network Next-Hop Path router bgp 100 network redistribute static route-map foo no auto-summary access-list 1 permit route-map foo permit 10 match ip address 1 Route Table D /24 D /24 D /24 R /16 S /24 *> / i * i i s> / i s> / i *> / ?

25 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Routing Information Base BGP RIB IN Process Update Network Next-Hop Path / * / BGP “in” process receives path information from peers results of BGP path selection placed in the BGP table “best path” flagged (denoted by “>”) Update Network Next-Hop Path *>i / i *>i / i OUT Process >

26 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Routing Information Base OUT Process Network Next-Hop Path / / / BGP RIB > / Network Next-Hop Path *>i / i *>i / i * IN Process Update BGP “out” process builds update using info from RIB may modify update based on config Sends update to peers Next-Hop changed

27 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM BGP Routing Information Base BGP RIB D /24 D /24 D /24 R /16 S /24 Network Next-Hop Path *>i / i *>i / i *> / Best paths installed in routing table if: B /16 Route Table prefix and prefix length are unique lowest “protocol distance”

28 Copyright  1999, Cisco Systems, Inc. Module10.ppt10/7/1999 8:27 AM The ‘Bible’ & other resources Route-views.oregon-ix.net Internet Routing Architectures –Bassam Halabi –pg. 168 BGP Decision Process Summary