Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.

Slides:



Advertisements
Similar presentations
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Advertisements

© 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.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 12 – February 18, 2010.
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.
Computer Networks: Global Internet Global Internet.
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Spring 2003CS 4611 Routing Outline Algorithms Scalability.
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts Subnetting Classless Inter-Domain Routing (Supernet)
CS335 Networking & Network Administration Tuesday, May 18, 2010.
1 ELEN 602 Lecture 19 Routing. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing table –routing:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Exterior Gateway Protocols: EGP, BGP-4, CIDR Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Routing.
14 – Inter/Intra-AS Routing
Subnetting and CIDR Textbook Ch 3.2.5
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
1 Autonomous Systems An autonomous system is a region of the Internet that is administered by a single entity. Examples of autonomous regions are: UVA’s.
Spring 2002CS 4611 Routing Outline Algorithms Scalability.
CSE 561 – Scalable Routing David Wetherall Spring 2000.
CSS 432: Subnetting, CIDR, and Global Internet
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
Inter-domain Routing Outline Border Gateway Protocol.
Routing Protocols and CIDR BSAD 146 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
Dr. John P. Abraham Professor University of Texas Pan American Internet Routing and Routing Protocols.
IP Addressing Introductory material. An entire module devoted to IP addresses.
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
1 Routing Outline Algorithms Scalability. 2 Overview Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
Introduction to BGP.
1 Introduction to Computer Networks Ilam University By: Dr. Mozafar Bag-Mohammadi Routing.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
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)
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
1 Routing Distance Vector Routing Link State Routing Hierarchical Routing Routing for Mobile Hosts.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
14-Oct-154/598N: Computer Networks Internet Structure - Past NSFNET backbone Stanford BARRNET regional Berkeley PARC NCAR UA UNM Westnet regional UNL KU.
Lecture 4: BGP Presentations Lab information H/W update.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
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.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Routing.
Routing and Routing Protocols
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
Lecture 18 Internet Routing: The goal is to find any route that is loop free- Global optimization is a distant dream depending on economic and political.
CSCI-1680 Network Layer: Inter-domain Routing Based partly on lecture notes by Rob Sherwood, David Mazières, Phil Levis, Rodrigo Fonseca John Jannotti.
23-Dec-154/598N: Computer Networks Overview 4.2: Routing Forwarding vs Routing –forwarding: to select an output port based on destination address and routing.
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.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
1 Forwarding vs. Routing Forwarding vs Routing –forwarding: To select an output port based on destination address and routing table –routing: Process by.
Spring 2006CS 3321 Interdomain Routing. Spring 2006CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
Inter-domain Routing Outline Border Gateway Protocol.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
CSS432 Subnetting and CIDR Textbook Ch3. 2
Autonomous Systems An autonomous system is a region of the Internet that is administered by a single entity. Examples of autonomous regions are: UVA’s.
Routing BY, P.B.SHANMATHI.
Border Gateway Protocol
COMP 3270 Computer Networks
Each mobile node has a home network, home address and home agent
Routing.
Inter-domain Routing Outline Homework #3 solutions
IP Addressing Introductory material
Introduction to Computer Networks
Tree Structured Internet(c. 1990)
Computer Networks Protocols
Routing.
Presentation transcript:

Spring 2010CS 3321 Interdomain Routing

Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical Address Space –class C with 2 hosts (2/255 = 0.78% efficient) –class B with 256 hosts (256/65535 = 0.39% efficient) Demand for Class B the problem. So why not just assign 2 class C’s for a 50% efficiency rate? Still Too Many Networks –routing tables do not scale –route propagation protocols do not scale

Spring 2010CS 3323 Internet Structure Recent Past NSFNET backbone Stanford BARRNET regional Berkeley P ARC NCAR UA UNM Westnet regional UNL KU ISU MidNet regional …

Spring 2010CS 3324 Internet Structure Autonomous system (AS) –Administered Independently of other ASs –Want to be able to control various ways in which network is configured, used, etc. Select their own intranetwork routing protocol Perhaps select own link metrics, etc. Advantageous because it provides finer hierarchy –Good for scalability

Spring 2010CS 3325 Subnetting Add another level to address/routing hierarchy: subnet Subnet masks define variable partition of host part Subnets visible only within site Network numberHost number Class B address Subnet mask ( ) Subnetted address Network numberHost IDSubnet ID

Spring 2010CS 3326 Subnet Mask Written in dotted quad notation (like IP addresses) Exactly one mask per subnet (all hosts on given subnet have same subnet mask) Subnet number of host (or of subnet) = bitwise AND of subnet mask and IP address

Spring 2010CS 3327 Subnetting (cont) To send IP packet: –Host performs bitwise AND of its subnet mask with destination IP address –If result is same subnet number as sending host, then destination is on same subnet, so forward directly (Note: Arp unaffected) –Else send packet to a router to be forwarded to another subnet New routing table entries: replaces

Spring 2010CS 3328 Subnet Example Forwarding table at router R1 Subnet Number Subnet Mask Next Hop interface interface R2 Subnet mask: Subnet number: H1 R Subnet mask: Subnet number: R2 H Subnet mask: Subnet number: H3

Spring 2010CS 3329 Forwarding Algorithm D = destination IP address for each entry (SubnetNum, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNum if NextHop is an interface deliver datagram directly to D else deliver datagram to NextHop Use a default router if nothing matches Not necessary for all 1s in subnet mask to be contiguous

Spring 2010CS Subnetting notes Can put multiple subnets on one physical network(?!) Subnets not visible from the rest of the Internet Main advantage: we don't need a new Class B or Class C address every time we add a new physical network

Spring 2010CS Supernetting (CIDR) What we’re shooting for: backbone 3185* 31* 319* 3172* 317* 3174* * * 534* 51* 52* 5* 76* 748* 73* 7*

Spring 2010CS Supernetting (CIDR) Called CIDR: Classless Inter-Domain Routing Assign block of contiguous network numbers to nearby networks (in same AS or using same ISP) –Aggregates routes: single entry for many networks –E.g. Class B addresses have same top 20 bits, so a single 20 bit network address gets packets to correct AS. Restrict block sizes to powers of 2 Represent network numbers with (length, value) pair All routers must understand CIDR addressing

Spring 2010CS Interdomain Routing Much more difficult than intradomain routing –Scale: Internet backbone router potentially has 200,000+ prefixes –Impossible to calculate path costs: Different ASs mean different link-state metrics which may not be comparable. Focus is on reachability, not optimality, and this is plenty difficult all by itself –Trust: If you trust another AS, you trust their routing advertisements and their network system configuration info. –Need for flexibility: “Use provider A only for these addresses”, “Use AS X in preference to AS Y”, etc.

Spring 2010CS Route Propagation Know a smarter router –hosts know local router (on same physical network) –local routers know how to get to border router (and to each other) –Regional ISP routers know how to get to its customers, and also to a border (gateway) router to a backbone provider –Backbone (core) routers know everything (or at least how to get what they need)

Spring 2010CS Route Propagation Two-level route propagation hierarchy –interior gateway protocol (each AS selects its own) Also called intradomain routing –exterior gateway protocol (Internet-wide standard) Also called interdomain routing –Note again efficiency of default routes (AS need only know inside AS and how to get out of AS)

Spring 2010CS EGP: Exterior Gateway Protocol Overview –designed for tree-structured Internet –This and other limitations caused it to be replaced by BGP Protocol messages –neighbor acquisition: one router requests that another be its peer; peers exchange reachability information –neighbor reachability: one router periodically tests if the another is still reachable; exchange HELLO/ACK messages; uses a k-out-of-n rule –routing updates: peers periodically exchange their routing tables (distance-vector)

Spring 2010CS Internet Structure Today Backbone service provider Peering point Peering point Large corporation Small corporation “ Consumer ” ISP “Consumer” ISP “ Consumer” ISP transit ASs stub AS multihomed AS

Spring 2010CS BGP-4: Border Gateway Protocol Concept of AS Types –stub AS: has a single connection to one other AS carries local traffic only –multihomed AS: has connections to more than one AS refuses to carry transit traffic –transit AS: has connections to more than one AS carries both transit and local traffic

Spring 2010CS BGP-4: Border Gateway Protocol Each AS has (aside from possibly 16 bit ID): –one or more border routers (need not be same as the BGP speaker) –one BGP speaker that advertises (to other BGP speakers): local networks other reachable networks (transit AS only) gives complete path information (neither DVR nor link-state, though closer to DVR) –Avoids loops

Spring 2010CS BGP-4: Border Gateway Protocol Border routers

Spring 2010CS BGP Example Speaker for AS2 advertises reachability to P and Q –network , , , and , can be reached directly from AS2 Speaker for backbone advertises –networks , , , and can be reached along the path (AS1, AS2). Speaker can cancel previously advertised paths Backbone network (AS 1) Regional provider A (AS 2) Regional provider B (AS 3) Customer P (AS 4) Customer Q (AS 5) Customer R (AS 6) Customer S (AS 7) Transit networks stubs

Spring 2010CS Avoiding Loops Because of full path info, this scenario can be avoided: AS 2 AS 1 AS 3 AS 1 learns it can reach Network through AS 2, it advertises this to AS 3, who in turn advertises it back to AS 2. If AS 2 decides that it should send packets for through AS 3, we’ve got a loop.

Spring 2010CS Final BGP Notes BGP was designed to work with CIDR, so the “network” numbers that are passed around are really variable length prefixes, as used in CIDR –Typically written /19 and the like Number of nodes participating in BGP is on order of number of ASs (much smaller than number of networks) Finding good interdomain route amounts to finding path to the right border router, and there are only a few of these per AS Complexity of intradomain routing is on order of number of networks in the particular AS

Spring 2010CS Integrating Intra and Inter Stub AS (very common): border router “injects” default route into intradomain protocol Non-stub, but non backbone: Border routers inject learned (either through BGP or static config) info into intradomain protocol Backbone: IBGP (interior BGP): Too much info to inject into traditional intradomain protocol (10,000 prefixes = > big LSP + complex shortest path info). Traditional intradomain + protocols for querying border routers.

Spring 2010CS Scalability (again) Nodes using BGP = O(number of ASs) Finding good interdomain route = finding path to correct border router (few per AS) Complexity of intradomain = O(number physical networks in AS) Tradeoff between scalability and optimality –Hierarchy hides info, hinders optimality –Hiding info key to scaling, since nodes don’t need global info –In large networks, scalability more important