Border Gateway Protocol (BGP). 2 CORE, PEERs Autonomous Systems BGP Basic Operations The BGP Routing Process.

Slides:



Advertisements
Similar presentations
CS Summer 2003 CS672: MPLS Architecture, Applications and Fault-Tolerance.
Advertisements

Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
Routing: Exterior Gateway Protocols and Autonomous Systems Chapter 15.
© 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.
CSC 600 Internetworking with TCP/IP Unit 6a: IP Routing and Exterior Routing Protocols (Ch. 14, 15) Dr. Cheer-Sun Yang Spring 2001.
Routing: Cores, Peers and Algorithms
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.
© 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.
1 Network Architecture and Design Routing: Exterior Gateway Protocols and Autonomous Systems Border Gateway Protocol (BGP) Reference D. E. Comer, Internetworking.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
Routing and Routing Protocols
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.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Inter-domain Routing Outline Border Gateway Protocol.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
TCOM 515 Lecture 6.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Dynamic Routing Protocols  Function(s) of Dynamic Routing Protocols: – Dynamically share information between routers (Discover remote networks). – Automatically.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Introduction to BGP.
Routing and Routing Protocols Routing Protocols Overview.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Border Gateway Protocol
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
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 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
An internet is a combination of networks connected by routers. When a datagram goes from a source to a destination, it will probably pass through many.
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.
Routing and Routing Protocols PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 Course Introduction.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
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.
Inter-domain Routing Outline 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.
© 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.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
Working at a Small-to-Medium Business or ISP – Chapter 6
Boarder Gateway Protocol (BGP)
Border Gateway Protocol
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Routing BY, P.B.SHANMATHI.
Border Gateway Protocol
Net 323 D: Networks Protocols
Routing.
Net 323 D: Networks Protocols
Cours BGP-MPLS-IPV6-QOS
Computer Networking TCP/IP Part 2
Department of Computer and IT Engineering University of Kurdistan
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Routing.
Presentation transcript:

Border Gateway Protocol (BGP)

2 CORE, PEERs Autonomous Systems BGP Basic Operations The BGP Routing Process

3 Default routes Default routes => partial information Routers/hosts with default routes rely on other routers to complete the picture. In general routing information should be: –Consistent, I.e., if packet is sent off in one direction then another direction should not be more optimal –Complete, I.e., should be able to reach all destinations

4 Core A small set of routers that have consistent & complete information about all destinations. Outlying routers can have partial information provided they point default routes to the core –Partial info allows site administrators to make local routing changes independently. Initially, core routers were under a central authority and were synchronized for consistency => single backbone. Internet quickly outgrew single backbone (ARPANET + NSFNET). Core architecture does not scale well.

5 Peers Initially NSFNET had only one connection to ARPANET (router in Pittsburg) => only one route between the two. Addition of multiple interconnections => multiple possible routes => need for dynamic routing decision Single core replaced by a network of peer backbones => more scalable –Today there are over 30 backbones! The routing protocol used by cores & peers was called Gateway-Gateway Protocol (GGP). Replaced by EGP and now by BGP-4.

6 Why Exterior Gateway Protocol? Interior protocol is limited by—propagation delay, traffic overhead Hidden network

7 Autonomous Systems – definition Any set of routers sharing similar routing policies and operating within a single administrative domain. Each AS has an identifying number, assigned by an Internet registry or a service provider, between 1 and 65, ,512 through 65,535 are reserved for private use

8 Autonomous Systems-types Traffic types: Local = traffic originating or terminating at AS. Transit = non-local traffic AS types: –Stub AS => only single connection to one other AS => it carries only local traffic. –Multihomed AS: Connected to multiple AS, but does not allow transit traffic –Transit AS: carries transit traffic under policy restrictions

9 A mechanism that allows non-core routers to learn routes from core routers so that they can choose optimal backbone routes A mechanism for non-core routers to inform core routers about hidden networks Autonomous System (AS) has the responsibility of advertising reachability info to other ASs. –One or more routers may be designated per AS. –Important that info propagates to core routers Exterior Gateway Protocol (EGP)

10 EGP does not interpret the distance metrics in routing update messages => cannot be compute shorter of two routes As a result it restricts the topology to a (possibly non-optimal) tree structure, with the core as the root –Rapid growth => many networks may be temporarily unreachable –Only one path to destination => no load sharing EGP weaknesses

11 BGP Overview BGP is the Internet. Without BGP, the Internet could not be as large as it is. BGP is slower than all of the IGPs, but it is also more scalable

12 BGP - Why use it? Scalability –Internet has more than 110,000 routes and is still growing Secure routing information –Routers from other Autonomous Systems (AS) cannot be trusted –Tight filters (policies) are required –Authentication is desirable

13 BGP - Why use it? (cont.) Considerer 3 companies: X, Y AND Z. They have their networks connected to each other (for whatever reason) – X is connected to Y, and Y is connected to both, X and Z. Company X is running EIGRP on its routers, Y is running RIP and Z is running OSPF. Company Y’s router that connects to X’s network is performing two-way redistribution between EIGRP and RIP, Y’s router that connects to Z is performing two-way redistribution between OSPF and RIP. Exterior Routing

14 BGP - Why use it? (cont.) Consider this requirement: Z has decided that they no longer want to communicate with X (they don’t want to accept routes from X), but they still want to communicate with Y. How can Z configure the router that connects to Y so that it will not accept any routes coming from X? Possible non scalable solution:  Z could put a distribute list on its routers that blocks all of the networks assigned to X. Problems with this approach?  How does Z know which networks belong to X? What if X is an ISP with 200+ networks assigned to it?  Z would have to write a 200+ line access list to apply to the distribute list – and what if after Z performs this configuration, X gets another network assigned to it…..

15 BGP - Why use it? (cont.) With BGP companies X, Y, and Z each have an AS number assigned to them. When Company Z receives a BGP advertisement, each route is tagged with the AS Path that it traveled through to reach its destination. So instead we have: From there, it is a (relatively) simple matter to configure AS 103 not to accept routes originated from AS 101 NOTE: because BGP operates based on that path that packets take, it is sometimes called – a path vector protocol

16 Autonomous Systems – IGP & EGP IGP – an Interior Gateway protocol is run inside an autonomous system EGP – an Exterior Gateway protocol is run between autonomous systems to enable routing policies and improve security BGP is an EGP

17 Autonomous Systems - Single-homed Large customer or small ISP connecting to the Internet Can be configured with a default route to reach outside networks, in which case BGP is not required and the customer is part of the ISP’s AS. If the customer wants to use a different routing policy than the provider’s, then BGP is necessary.

18 Autonomous Systems- Multihomed non-transit Transit traffic (any traffic that has a source and destination outside the AS) does not pass through it. Customers (large corporate) connecting to several service providers but does not wish to pass traffic through. BGP is almost mandatory for multihomed customers Multihomed customers have to use public AS numbers Routes are filtered based on their AS Path to prevent the AS from becoming a transit AS

19 Autonomous Systems - Multihomed transit Exchanges BGP routing information with other autonomous systems and forward information received from one AS to another AS The entire Internet can use your network as a transit AS

20 Autonomous Systems - When not to use BGP When the routing policy that is implemented in an AS is consistent with the ISP's policy. –Connectivity can be achieved through a combination of static routes and default routes. Note: In general, it is necessary to use BGP to connect to an ISP only when you have different policy requirements than the ISP.

21 BGP Basic Operations BGP makes routing decisions based on network policies and optimal routes BGP updates are carried using TCP on port 179 Before routing information is exchanged, a TCP 3-way handshake occurs BGP message types: --OPEN --Update --Notification --Keep alive

22 Telnet Client Switch Atlanta Orlando Telnet Server BGP Idle Connect Open request Initializing Idle Connect Open request TCP Initializing Syn Sent Listen Syn Syn Ack Ack Established opened open Open SentOpen Open Sent Keep Alive Open ConfirmKeep Alive EstablishedOpen Confirm UpdateEstablished Update

23 MarkerLength BGP Type Data Source Port Destination Port = 179 Sequence Number Acknowledgement Number Data Offset Flags -urgent pointer -acknowledgement -push -no reset -no Syn -no fin Window Checksum No TCP Options Data Version Header LengthType of ServiceLengthFlag Flag Offset Time to Live Protocol ID 06 = TCP Header Checksum Source ID Address Destination Address OptionsPadding Data DSAP =06 SSAP =06 ControlInformation n PreambleSFDDASA LengthDataPadChksum IEEE HEADER LLC PDU IP HEADER TCP HEADER BGP HEADER

24 MarkerLength BGP Type = 1 Open Data Source Port Destination Port = 179 Sequence Number Acknowledgement Number Data Offset Flags -urgent pointer -acknowledgement -push -no reset -no Syn -no fin Window Checksum No TCP Options Data Version Header LengthType of ServiceLengthFlag Flag Offset Time to Live Protocol ID 06 = TCP Header Checksum Source ID Address Destination Address OptionsPadding Data DSAP =06 SSAP =06 ControlInformation n IEEE HEADER LLC PDU IP HEADER TCP HEADER Version =4 Autonomous System Hold - TimeBGP Identifier Parameter Length Operational Parameter BGP OPEN message format

25 MarkerLengthBGP Type = 2Data Source Port Destination Port = 179 Sequence Number Acknowledgement Number Data Offset Flags -urgent pointer -acknowledgement -push -no reset -no Syn -no fin Window Checksum No TCP Options Data Version Header LengthType of ServiceLengthFlag Flag Offset Time to Live Protocol ID 06 = TCP Header Checksum Source ID Address Destination Address OptionsPadding Data DSAP =06 SSAP =06 ControlInformation n IEEE HEADER LLC PDU IP HEADER TCP HEADER Unfeasible Routers Length Withdrawn Routes Total Path Attribute length Path Attributes Network Layer Reachability Info BGP Update message

26 BGP Rule of Split Horizon A BGP Router will not accept a route whose AS path includes the router’s AS number If a router in AS 100 receives a route with 100 in its AS path, then that route, if accepted, would create a routing loop.

27 BGP Routing A BGP router only sends routing updates when there are changes to the BGP routing table

28 BGP Keepalives Instead of full routing updates, BGP relies on keepalive messages to decide if a peer is up.