Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.

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.
© 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.
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.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
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.
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Informal Quiz 4: More Routing, DNS True or False? T F  Path-vector based distance vector.
Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet Protocol m Datagram.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
15-744: Computer Networking L-5 Inter-Domain Routing.
Ion Stoica October 2, 2002 (* this presentation is based on Lakshmi Subramanian’s slides) EE 122: Inter-domain routing – Border Gateway Protocol (BGP)
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.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
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.
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)
Lecture 4: BGP Presentations Lab information H/W update.
Chapter 9. Implementing Scalability Features in Your Internetwork.
Border Gateway Protocol
Routing in the Internet The Global Internet consists of Autonomous Systems (AS) interconnected with eachother: Stub AS: small corporation Multihomed AS:
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.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Xuan Zheng (modified by M. Veeraraghavan) 1 BGP overview BGP operations BGP messages BGP decision algorithm BGP states.
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.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #08: SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
Some slides have been taken from:
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.
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.
INTER-DOMAIN ROUTING AND BORDER GATEWAY PROTOCOL Dr. Rocky K. C. Chang 22 November
CS 640: Introduction to Computer Networks Aditya Akella Lecture 11 - Inter-Domain Routing - BGP (Border Gateway Protocol)
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
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.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v3.2—1-1 BGP Overview Understanding BGP Path Attributes.
BGP and ICMP. Exterior Gateway Protocol (EGP) Like RIP, but no metrics. Just if reachable. Rtr inside a domain collects reachability information and informs.
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.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
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 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
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
Cours BGP-MPLS-IPV6-QOS
Computer Networks Protocols
Presentation transcript:

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 2 q Cores, Peers, and the limit of default routes q Autonomous systems & EGP q BGP q CIDR: reducing router table sizes q Refs: Chap 10. Books: “Routing in Internet” by Huitema, “Interconnections” by Perlman, “BGP4” by Stewart Overview

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 3 Intra-AS and Inter-AS routing inter-AS, intra-AS routing in gateway A.c network layer link layer physical layer a b b a a C A B d Gateways: perform inter-AS routing amongst themselves perform intra-AS routers with other routers in their AS A.c A.a C.b B.a c b c

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 4 Default Routes: limits q Default routes => partial information q Routers/hosts w/ default routes rely on other routers to complete the picture. q In general routing “signposts” should be: q Consistent, I.e., if packet is sent off in one direction then another direction should not be more optimal. q Complete, I.e., should be able to reach all destinations

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5 Core q A small set of routers that have consistent & complete information about all destinations. q Outlying routers can have partial information provided they point default routes to the core q Partial info allows site administrators to make local routing changes independently. CORE S1S2Sm...

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 6 Peer Backbones q Initially NSFNET had only one connection to ARPANET (router in Pittsburg) => only one route between the two. q Addition of multiple interconnections => multiple possible routes => need for dynamic routing q Single core replaced by a network of peer backbones => more scalable q Today there are over 30 backbones! q Routing protocol at cores/peers: GGP -> EGP-> BGP-4

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 7 Autonomous Systems (AS)  AS = set of routers and networks under the same administration  No theoretical limit to the size of the AS  All parts within an AS remain connected.  If two networks rely on core-AS to connect, they don’t belong to a single AS  AS is identified by a 16-bit AS number  At least one border router per AS.  This router also collects reachability information (“external routes”) and diffuses it internally and vice versa

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

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

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 10 EGP weaknesses q EGP does not interpret the distance metrics in routing update messages => cannot be compute shorter of two routes q As a result it restricts the topology to a tree structure, with the core as the root q Rapid growth => many networks may be temporarily unreachable q Only one path to destination => no load sharing

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 11 Border Gateway Protocol (BGP) q Allows multiple cores and arbitrary topologies of AS interconnection. q Uses a path-vector concept which enables loop prevention in complex topologies q In AS-level, shortest path may not be preferred for policy, security, cost reasons. q Different routers have different preferences (policy) => as packet goes thru network it will encounter different policies q Bellman-Ford/Dijkstra don’t work! q BGP allows attributes for AS and paths which could include policies (policy-based routing).

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 12 BGP (Cont’d) q When a BGP Speaker A advertises a prefix to its B that it has a path to IP prefix C, B can be certain that A is actively using that AS-path to reach that destination q BGP uses TCP between 2 peers (reliability) q Exchange entire BGP table first (50K+ routes!) q Later exchanges only incremental updates q Application (BGP)-level keepalive messages q Hold-down timer (at least 3 sec) locally config q Interior and exterior peers: need to exchange reachability information among interior peers before updating intra-AS forwarding table.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 13 CIDR q Shortage of class Bs => give out a set of class Cs instead of one class B address q Problem: every class C n/w needs a routing entry ! q Solution: Classless Inter-domain Routing (CIDR). q Also called “supernetting” q Key: allocate addresses such that they can be summarized, I.e., contiguously. q Share same higher order bits (I.e. prefix) q Routing tables and protocols must be capable of carrying a subnet mask. Notation: /23

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 14 CIDR (Continued) q Eg: allocate class Cs from thru for hosts in Europe (higher order 7 bits the same). q Allows one routing entry for Europe q Allow other routing entries too. Eg: mask of q When an IP address matches multiple entries (eg ), choose the one which had the longest mask (“longest-prefix match”)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 15 Service Provider Global Internet Routing Mesh …...…… …...……. Inter-domain Routing Without CIDR Service Provider Global Internet Routing Mesh …...…… /16 Inter-domain Routing With CIDR

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 16 UPDATE message in BGP q Primary message between two BGP speakers. q Used to advertise/withdraw IP prefixes (NLRI) q Path attributes field : unique to BGP q Apply to all prefixes specified in NLRI field q Optional vs Well-known; Transitive vs Non-transitive Withdrawn Routes Length 2 octets Withdrawn Routes (variable length) Total Path Attributes Length Path Attributes (variable length) Network Layer Reachability Info. (NLRI: variable length)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 17 Conceptual Model of BGP Operation q RIB : Routing Information Base q Adj-RIB-In: Prefixes learned from neighbors. As many Adj-RIB-In as there are peers q Loc-RIB: Prefixes selected for local use after analyzing Adj-RIB-Ins. This RIB is advertised internally. q Adj-RIB-Out : Stores prefixes advertised to a particular neighbor. As many Adj-RIB-Out as there are neighbors

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 18 Path Attributes: ORIGIN q ORIGIN: q Describes how a prefix came to BGP at the origin AS q Prefixes are learned from a source and “injected” into BGP: q Directly connected interfaces, manually configured static routes, dynamic IGP or EGP q Values: q IGP (EGP): Prefix learnt from IGP (EGP) q INCOMPLETE: Static routes

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 19 Path Attributes: AS-PATH q List of ASs thru which the prefix announcement has passed. AS on path adds ASN to AS-PATH q Eg: /16 originates at AS1 and is advertised to AS3 via AS2. q Eg: AS-SEQUENCE: “ ” q Used for loop detection and path selection AS1 (100) AS2 (200) AS3 (15) /16

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 20 Path Attributes: NEXT-HOP q Next-hop: node to which packets must be sent for the IP prefixes. May not be same as peer. q UPDATE for , NEXT-HOP= BGP Speakers Not a BGP Speaker

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 21 Attributes: MULTI-EXIT Discriminator q Also called METRIC or MED Attribute q AS1:multihomed customer. AS2 includes MED to AS1 q AS1 chooses which link (NEXTHOP) to use AS1 AS2 AS3 AS4 Link A Link B

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 22 Path Attribute: LOCAL-PREF q Locally configured indication about which path is preferred to exit the AS in order to reach a certain network. Default value = 100.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 23 I-BGP q So far we have talked about E-BGP. I.e. interaction between R3 and R4 q How do R1, R2, R5 (termination points of internal default routes) learn of external routes ? q Need a way to internally distribute routes R1 R2 R3R4R5 AS1AS2 E-BGP

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 24 I-BGP q Why is IGP (OSPF, ISIS) not used ? q In large ASs full route table is very large q Rate of change of routes is frequent q Tremendous amount of control traffic q I-BGP : q Within an AS q Same protocol/state machines as EBGP q But different rules about advertising prefixes q Prefix learned from an I-BGP neighbor cannot be advertised to another I-BGP neighbor to avoid looping => need full IBGP mesh ! q AS-PATH cannot be used internally. Why ?

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 25 IBGP vs EBGP q I-BGP sessions between every pair of routers within an AS: full mesh. q Independent of physical connectivity. A B D C Physical link IBGP session AS1

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 26 Other Attributes q AGGREGATOR q If a BGP speaker aggregates on some of the prefixes heard from other neighbors, it may attach the AGGREGATOR attribute specifying the router which performed aggregation q COMMUNITY STRING q The community attribute is a transitive, optional attribute in the range 0 to 4,294,967,200. q Way to group destinations(NLRIs) or ASs and apply policy routing decisions (accept, prefer, redistribute, etc.) on them.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 27 BGP Route Selection Process q If NEXTHOP is inaccessible do not consider the route. q Prefer largest LOCAL-PREF q If same LOCAL-PREF prefer the shortest AS-PATH. q If all paths are external prefer the lowest ORIGIN code (IGP<EGP<INCOMPLETE). q If ORIGIN codes are the same prefer the lowest MED. q If MED is same, prefer min-cost NEXT-HOP q If routes learned from EBGP or IBGP, prefer paths learnt from EBGP q Final tie-break: Prefer the route with I-BGP ID (IP address) Series of tie-breaker decisions...

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 28 IBGP Scaling: Route Reflection q Add hierarchy to I-BGP q Route reflector: A router whose BGP implementation supports the re-advertisement of routes between I-BGP neighbors q Route reflector client: A router which depends on route reflector to re-advertise its routes to entire AS and learn routes from the route reflector

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 29 Route Reflection RR-C1 RR-C2 RR1 RR2 RR3 RR-C3 RR-C4 AS1 AS2 ER / /16 EBGP IBGP

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 30 AS Confederations q Divide and conquer: Divides a large AS into sub- ASs AS R1 R2 Sub-AS

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 31 Summary q Cores, peers, autonomous systems, EGP q BGP avoids EGP-induced tree structure and allows policy-based routing, and scaling. q BGP details: CIDR, Path Attributes, IBGP, scaling, route selection.