INTER-DOMAIN ROUTING AND BORDER GATEWAY PROTOCOL Dr. Rocky K. C. Chang 22 November 2010 1.

Slides:



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

Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
CS540/TE630 Computer Network Architecture Spring 2009 Tu/Th 10:30am-Noon Sue Moon.
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.
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.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
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.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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
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)
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.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
Computer Networks Layering and Routing Dina Katabi
Inter-domain Routing Don Fussell CS 395T Measuring Internet Performance.
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
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.
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.
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
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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.
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.
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.
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
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.
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.
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.
© 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—1-1 Course Introduction.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
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 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
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.
Computer Networking Inter-Domain Routing BGP (Border Gateway Protocol)
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.
Working at a Small-to-Medium Business or ISP – Chapter 6
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
Border Gateway Protocol
BGP supplement Abhigyan Sharma.
Net 323 D: Networks Protocols
Net 323 D: Networks Protocols
Cours BGP-MPLS-IPV6-QOS
CSCI-1680 Network Layer: Inter-domain Routing
Department of Computer and IT Engineering University of Kurdistan
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Presentation transcript:

INTER-DOMAIN ROUTING AND BORDER GATEWAY PROTOCOL Dr. Rocky K. C. Chang 22 November

What does the Internet look like? 2  AS-graph vs router-graph (from [1]) Backbone service provider Peering point Peering point Large corporation Small corporation “ Consumer ” ISP “Consumer” ISP “ Consumer” ISP

Autonomous systems 3  Autonomous system (AS): A set of networking resources governed by a single administrative authority.  AS’s can be classified into  Stub AS: has only a single connection to one other AS, and it only carries local traffic.  Multihomed AS: has connections to more than one other AS, but refuses to carry transit traffic.  Transit AS: has connections to more than one other AS, and is designed to carry both transit and local traffic.  AS number: 4616 for PolyU  Nodes: AS; links: peer-peer, provider-consumer

4

Levels of routing 5  Intra-domain routing (inside AS) vs inter-domain routing (inter-AS)  Not all routers are equal.  Interior routers: Only know how to route datagrams to destinations within the same AS.  Border routers: Interface between its AS and other AS’s: A nonbackbone router usually has a “default route” to another “more knowledgeable” router for “unknown destinations.” A default-free router is supposed to know every “IP network” in the Internet.

Requirements for interdomain routing 6  Accuracy  Accurately reflect the forwarding states of the network (e.g., avoiding forwarding loops)  Local changes in physical networks or policies cause the routing system to recompute the new routing states.  Scalability  Static nature: the number of routing entries, the number of AS, etc.  Dynamic nature: routing update rates, adding andv withdrawing routes, etc.

Requirements for interdomain routing 7  The growth trend in the inter-domain routing space do not appear to have well-defined upper limits.  Policy expressiveness  Determining a path and the best path  Ingress routing policies: how a domain learns and selects routes.  Egress routing policies: how a domain announces routes to its adjacent neighbors.

Requirements for interdomain routing 8  Robust predictable operational characteristics  Minor variations in the state of the network should not cause large- scale instability across the network.  Recomputation of the routing states must always halt and the halting point must be reached quickly.  Efficiency  The routing system should be efficient in terms of the bandwidth and processing.  Trade off with the accuracy requirement.  The security of the routing information must be reasonably protected.

Possible approaches 9  Distance vector approach  Exterior Gateway Protocol (EGP)  Each EGP router announces reachability information (list of destinations and “distances”)  Designed for tree-structured topology, no policy routing support, slow convergence, etc.  Link state approach  Interdomain policy routing (IDPR)  Each IDPR maintains an AS-level map.  Setting a path between a source and a destination.

Border gateway protocol version 4 10  Exchange routes with neighbor routers in other AS’s.  No periodic routing updates to ensure the neighbors’ liveliness.  Attach a path vector to each route for routing loop detection.  Attach a path with different attributes to facilitate local routing policies.  Provide facilities for route aggregation.

BGP4 speakers, peers, and sessions 11  Two BGP speakers (hosts or routers) may establish a BGP session between them.  If the two speakers are from two different AS’s, they must be connected directly.  A BGP session uses TCP for transport.  The two sides initially exchange their routes.  The TCP connection assures to each side that the other side is alive.  BGP therefore does not require periodic route refreshing.  BGP has its own keepalive messages.

Internal and external BGP sessions 12  All BGP speakers representing the same AS must give a consistent image of the AS to the outside.  Internal BGP (I-BGP) sessions vs. intradomain routing protocols.  To avoid routing loops, each BGP speaker can only advertise the routes it has learned from external BGP (E- BGP) sessions to other internal speakers.  There are two types of BGP sessions:  I-BGP: Exchanging routes within the same AS.  E-BGP: Exchanging routes with another AS.

Internal and external BGP sessions (from [3]) 13 R1 R2 R3RR AS 1 AS 2 AS 3 I-BGP E-BGP R AS 4

Routing policies 14  BGP provides the capability for enforcing policies based on various routing preferences and constraints.  Policies are provided to BGP in the form of path attributes.  A multihomed AS can refuse to act as a transit AS for other ASs.  It does so by only advertising routes to destinations internal to the AS.  A multihomed AS can become a transit AS for a restricted set of adjacent ASs.

Routing policies 15  It does so by advertising its routing information to this set of ASs.  An AS can favor or disfavor the use of certain ASs for carrying transit traffic from itself.  An AS can minimize the number of transit ASs.  Shorter AS paths are preferred over longer ones.  Fundamental to BGP is the rule that an AS advertises to its neighboring ASs only those routes that it uses.

Route selection 16  A BGP speaker  evaluates different paths from itself to a set of destination covered by an address prefix,  selects the “best” one,  applies appropriate policy constraints,  and then advertises it to all of its BGP neighbors.  The path selection can be based on  Information explicitly present in the full AS path.  A combination of information that can be derived from the full AS path and information outside the scope of BGP.

Route selection 17

Route selection 18  AS count: paths with a smaller AS count are generally better.  Presence or absence of a certain AS or ASs in the path  Path origin: A path learned entirely from BGP is generally better.  AS path subsets  Link dynamics. Stable paths should be preferred over unstable ones.  Other policy considerations

Transit vs nontransit 19  Local routing policies: which routes to accept from neighbors and which routes to advertise to each neighbor.  An inappropriate use is for Customer1 to reach Customer3 by going through ISP2.  For ISP1,  it must make sure that other ISPs can reach Customer1 by announcing routes for any prefixes used by Customer1 to ISP2 and ISP3, and  However, ISP1 should be careful about announcing ISP2’s routes to ISP3.

For example (from [3]) 20 ISP2 ISP3 ISP1 Customer1 Customer2 Customer3

Examples for PolyU (from [2]) 21

Examples for PolyU (from [2]) 22

BGP4 protocols 23  BGP4 messages serve the following purposes:  Open a BGP message with a neighboring BGP speaker (OPEN).  Inform the neighbor about new routes that are active (UPDATE).  Inform the neighbor of old routes that are no longer active (UPDATE).  Inform the neighbor that the connection is still viable (KEEPALIVE).  Report unusual conditions before terminating the TCP connection (NOTIFICATION).

Route updates 24  When a BGP speaker A advertises a route to its neighbor, the information is considered valid until  A explicitly advertises that the information is no longer valid (route withdrawals), or  the BGP session itself is lost.  Each update message can include a number of prefixes that share all attributes.

BGP update messages 25

Route attributes 26  In BGP, the route to a prefix is attached with a number of attributes.  Well-known mandatory: ORIGIN, AS-PATH, NEXT-HOP  Well-known discretionary: LOCAL_PREF and ATOMIC_AGGREGATE  Optional nontransitive: MUTI_EXIT_DISC  Optional transitive: AGGREGATOR  The ORIGIN attribute describes how a prefix came to be routed by BGP at the origin AS.  IGP, EGP, INCOMPLETE

AS-PATH attribute 27  The AS-PATH attribute contains the numbers of AS’s through which the announcement for the prefix has passed.  Detect routing loops and aid routing decisions.  Two path segment types: AS-SEQUENCE and AS- SET  (Sequence(1, 2, 3)) and (Set(1, 2), Sequence(3)) AS1AS2AS3 AS1 AS2 AS3

NEXT-HOP attribute 28  The NEXT-HOP attribute indicates the address of the next hop node, which the data packets should be sent to for the prefix. R1R2R3 UPDATE message through BGP Traffic to / /16 R3 is not a BGP speaker. LAN

MUTI_EXIT_DISC attribute (from [3]) 29  If two AS’s connect to each other in more than one place, this attribute helps select an optimal link to a particular prefix in or behind that AS. AS 1 AS 2 AS 3 AS 4 Link A Link B

MUTI_EXIT_DISC attribute 30  The BGP speaker in AS2 on link A may advertise the routes to AS3 and internal prefix that is closer to link A with a smaller MUTI_EXIT_DISC value.  One AS sets the MUTI_EXIT_DISC values and the other uses the values to decide the best route.  The MUTI_EXIT_DISC attribute is therefore more suitable for provider-to-subscriber, not for provider- to-provider.

LOCAL_PREF attribute 31  In this example, AS4 receives the route to /16 from both AS2 and AS3.  The MUTI_EXIT_DISC attribute cannot be used for selecting the path.  There is only a single link between AS2 and AS4 and between AS3 and AS4.  AS4 wants to control the path selection itself.  AS4 can implement its own preference by configuring the value of the LOCAL_PREF attribute which is used only in I-BGP sessions.

LOCAL_PREF attribute (from [3]) 32 AS1 AS4 AS3AS /16

ATOMIC_AGGREGATE attribute 33  If a BGP speaker A hears both /16 and /24 (overlapped) from router B, and the path attributes are not the same.  If A uses /16, it should attach the ATOMIC_AGGREGATE attribute to the prefix when advertising it to other speakers.  When a speaker receives such a route, it must not deaggregate into more specific entries.

AGGREGATOR attribute 34  The attribute contains  the last AS number that formed the aggregate route, followed by  the IP address of the BGP speaker that formed the aggregate route.

Summary 35  BGP provides an very effective interdomain routing solution for the last decade.  BGP achieves a number of requirements in a single protocol, such as routing loop detection, support for policy routing, efficiency, etc.  However, the Internet is still growing rapidly and the suitability of BGP is currently under review.  Meanwhile, many new development for BGP has been under way.

References Larry Peterson and Bruce Davie, Computer Networks: A Systems Approach, Second Edition, Morgan Kaufmann, J. Stewart III, BGP4: Inter-Domain Routing in the Internet, Addison Wesley, G. Huston, “An Examination of the Internet’s BGP Table Behaviour in 2001.” 5. C. Huitema, Routing in the Internet, Prentice Hall PTR, Second Edition, G. Huston, “Scaling Inter-Domain Routing--A View Forward,” The Internet Protocol J., Y. Rekhter and P. Gross, “Application of the Border Gateway Protocol in the Internet,” RFC 1772, March 1995.