Internet Routing (COS 598A) Today: Addressing and Routing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.

Slides:



Advertisements
Similar presentations
Routing Basics.
Advertisements

Chapter 4: Network Layer
© 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.
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.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL READING: SECTIONS PLUS OPTIONAL READING COS 461: Computer Networks Spring 2010 (MW 3:00-4:20.
Traffic Engineering With Traditional IP Routing Protocols
S ufficient C onditions to G uarantee P ath V isibility Akeel ur Rehman Faridee
CS 164: Global Internet Slide Set In this set... More about subnets Classless Inter Domain Routing (CIDR) Border Gateway Protocol (BGP) Areas with.
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
1 Traffic Engineering for ISP Networks Jennifer Rexford IP Network Management and Performance AT&T Labs - Research; Florham Park, NJ
Traffic Engineering in IP Networks Jennifer Rexford Computer Science Department Princeton University; Princeton, NJ
Traffic Engineering for ISP Networks Jennifer Rexford Computer Science Department Princeton University
Internet Routing (COS 598A) Today: BGP Routing Table Size Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm.
1 Policy-Based Path-Vector Routing Reading: Sections COS 461: Computer Networks Spring 2006 (MW 1:30-2:50 in Friend 109) Jennifer Rexford Teaching.
Stable Internet Routing Without Global Coordination Jennifer Rexford Princeton University Joint work with Lixin Gao (UMass-Amherst)
Traffic Engineering for ISP Networks Jennifer Rexford Computer Science Department Princeton University
Internet Routing (COS 598A) Today: Interdomain Traffic Engineering Jennifer Rexford Tuesdays/Thursdays.
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.
Economic Incentives in Internet Routing Jennifer Rexford Princeton University
Routing Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Network Monitoring for Internet Traffic Engineering Jennifer Rexford AT&T Labs – Research Florham Park, NJ 07932
IP Addressing and Forwarding COS 461: Computer Networks Spring 2009 (MW 1:30-2:50 in COS 105) Michael Freedman
1 Interdomain Routing Policy Reading: Sections plus optional reading COS 461: Computer Networks Spring 2008 (MW 1:30-2:50 in COS 105) Jennifer Rexford.
Backbone Networks Jennifer Rexford COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Stable Internet Routing Without Global Coordination Jennifer Rexford AT&T Labs--Research Joint work with Lixin Gao.
Interdomain Routing and the Border Gateway Protocol (BGP) Reading: Section COS 461: Computer Networks Spring 2011 Mike Freedman
ROUTING PROTOCOLS PART IV ET4187/ET5187 Advanced Telecommunication Network.
1 Internet Routing Jennifer Rexford Princeton University
Computer Networks Layering and Routing Dina Katabi
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.
Authors Renata Teixeira, Aman Shaikh and Jennifer Rexford(AT&T), Tim Griffin(Intel) Presenter : Farrukh Shahzad.
Inter-domain Routing: Today and Tomorrow Dr. Jia Wang AT&T Labs Research Florham Park, NJ 07932, USA
I-4 routing scalability Taekyoung Kwon Some slides are from Geoff Huston, Michalis Faloutsos, Paul Barford, Jim Kurose, Paul Francis, and Jennifer Rexford.
Introduction to BGP.
IP is a Network Layer Protocol Physical 1 Network DataLink 1 Transport Application Session Presentation Network Physical 1 DataLink 1 Physical 2 DataLink.
1 Interdomain Routing (BGP) By Behzad Akbari Fall 2008 These slides are based on the slides of Ion Stoica (UCB) and Shivkumar (RPI)
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
CS 3700 Networks and Distributed Systems Inter Domain Routing (It’s all about the Money) Revised 8/20/15.
CSE 461: Interdomain Routing
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Lecture 4: BGP Presentations Lab information H/W update.
Jennifer Rexford Fall 2014 (TTh 3:00-4:20 in CS 105) COS 561: Advanced Computer Networks BGP.
PATH VECTOR ROUTING AND THE BORDER GATEWAY PROTOCOL 1.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 11 Unicast Routing Protocols.
Dynamics of Hot-Potato Routing in IP Networks Jennifer Rexford AT&T Labs—Research Joint work with Renata Teixeira (UCSD),
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Hierarchical Routing (§5.2.6)
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 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
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.
Ch 22. Routing Direct and Indirect Delivery.
IP. Classless Inter-Domain Routing Classful addressing scheme wasteful – IP address space exhaustion – A class B net allocated enough for 65K hosts Even.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Michael Schapira, Princeton University Fall 2010 (TTh 1:30-2:50 in COS 302) COS 561: Advanced Computer Networks
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
Inter-domain Routing Outline Border Gateway Protocol.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
Border Gateway Protocol
COMP 3270 Computer Networks
CS 457 – Lecture 14 Global Internet
COS 561: Advanced Computer Networks
COS 561: Advanced Computer Networks
BGP Instability Jennifer Rexford
Routing.
Traffic Engineering for ISP Networks
Presentation transcript:

Internet Routing (COS 598A) Today: Addressing and Routing Jennifer Rexford Tuesdays/Thursdays 11:00am-12:20pm

Outline IP addressing –Address allocation blocks –Packet forwarding Routing protocols –Autonomous Systems –Interdomain routing –Intradomain routing Practical realities –Asymmetric routing –IP address != host –Autonomous System != institution Discussion of Saltzer84 and Clark88

IP Addressing 32-bit number in dotted-quad notation ( ) Divided into network & host portions (left and right) /24 is a 24-bit prefix with 2 8 addresses Network (24 bits)Host (8 bits)

Some History: Why Dotted-Quad Notation? In the olden days… –Class A: 0* Very large /8 blocks (e.g., MIT has /8) –Class B: 10* Large /16 blocks (e.g,. Princeton has /16) –Class C: 110* Small /24 blocks (e.g., AT&T Labs has /24) –Class D: 1110* Multicast groups –Class E: 11110* Reserved for future use (sounds a bit scary…) And then, address space became scarce…

Classless Inter-Domain Routing (CIDR) IP Address : IP Mask: Address Mask for hostsNetwork Prefix Use two 32-bit numbers to represent a network. Network number = IP address + Mask Usually written as /15

CIDR = Hierarchy in Address Allocation / / / / / /16 :::::: / / /24 :::: / / / / / / / /19 :::::: Prefixes are key to Internet scalability –Address allocation by ARIN/RIPE/APNIC and by ISPs –Routing protocols and packet forwarding based on prefixes –Today, routing tables contain ~150, ,000 prefixes

Figuring Out Who Owns an Address Address registries –Public record of address allocations –ISPs should update when giving addresses to customers –However, records are notoriously out-of-date Ways to query –UNIX: “whois –h whois.arin.net ” – – –…

Example Output for OrgName: Princeton University OrgID: PRNU Address: Office of Information Technology Address: 87 Prospect Avenue City: Princeton StateProv: NJ PostalCode: Country: US NetRange: CIDR: /16 NetName: PRINCETON NetHandle: NET Parent: NET NetType: Direct Allocation RegDate:

Longest Prefix Match Forwarding Forwarding tables in IP routers –Maps each IP prefix to next-hop link(s) Destination-based forwarding –Packet has a destination address –Router identifies longest-matching prefix –Cute algorithmic problem: very fast lookups / / / / / destination forwarding table Serial0/0.1 outgoing link

Where do Forwarding Tables Come From? Routers have forwarding tables –Map prefix to outgoing link(s) Entries can be statically configured –E.g., “map /24 to Serial0/0.1” But, this doesn’t adapt –To failures –To new equipment –To the need to balance load –… That is where routing protocols come in…

Routing Protocols

Two-Tiered Internet Routing Architecture Goal: distributed management of resources –Internetworking of multiple networks –Networks under separate administrative control Solution: two-tiered routing architecture –Intradomain: inside a region of control Okay for routers to share topology information Routers configured to achieve a common goal –Interdomain: between regions of control Not okay to share complete information Networks may have different/conflicting goals Led to the use of different protocols…

ISP 1 ISP 2 ISP 3 IXP private peering commercial customer access router gateway router dial-in access destination interdomain protocols intradomain protocols Connections Between Networks

Internet Routing Architecture Divided into Autonomous Systems –Distinct regions of administrative control –Routers/links managed by a single “institution” –Service provider, company, university, … Hierarchy of Autonomous Systems –Large, tier-1 provider with a nationwide backbone –Medium-sized regional provider with smaller backbone –Small network run by a single company or university Interaction between Autonomous Systems –Internal topology is not shared between ASes –… but, neighboring ASes interact to coordinate routing

AS Numbers (ASNs) ASNs are 16 bit values through are “private” Level 3: 1 MIT: 3 Harvard: 11 Yale: 29 Princeton: 88 AT&T: 7018, 6341, 5074, … UUNET: 701, 702, 284, 12199, … Sprint: 1239, 1240, 6211, 6242, … … ASNs represent units of routing policy Currently around 20,000 in use.

Interdomain Routing (Between ASes) Client Web server Path: 6, 5, 4, 3, 2, 1

Interdomain Routing: Border Gateway Protocol ASes exchange info about who they can reach –IP prefix: block of destination IP addresses –AS path: sequence of ASes along the path Policies configured by the AS’s operator –Path selection: which of the paths to use? –Path export: which neighbors to tell? “ /24: path (2,1)” “ /24: path (1)” data traffic

Zooming in to AS 3 Border router –Learns BGP route from neighbor AS –Creates forwarding-table entry for prefix But, how do the other routers get there? /24 Border router:

How do Other Routers Learn the BGP Route? Internal BGP –iBGP sessions between the routers –Allows other routers to get the big picture Simplest case: “full mesh” of iBGP sessions iBGP session /24 “ /24 through red router”

How To Get to the Egress Router? Interior Gateway Protocol (OSPF/IS-IS) –Routers flood information to learn topology –Routers determine “next hop” to other routers… –Compute shortest paths based on the link weights –Link weights configured by the operator “Use Serial0/0.1 to get to the red router”

Constructing the Forwarding Table Three protocols –External BGP: learn the external route –Internal BGP: propagate inside the AS –IGP: learn outgoing link on path to other router Router joins the data –Prefix /24 reached through red router –Red router reached via link Serial0/0.1 –Forwarding entry: /24  Serial0/0.1 Router forwards packets –Lookup destination in table –Forward packet out link Serial0/0.1

What if There are Multiple Choices? / IGP distances egress 1 egress 2 This router has two BGP routes to /24. Hot potato: get traffic off of your network as soon as possible. Go for egress 1! Hot-potato routing

Two Kinds of Routing Protocols Topology information is flooded within the routing domain Best end-to-end paths are computed locally at each router. Best end-to-end paths determine next-hops. Based on minimizing some notion of distance Works only if policy is shared and uniform Examples: OSPF, IS-IS Each router knows little about network topology Only best next-hops are chosen by each router for each destination. Best end-to-end paths result from composition of all next-hop choices Does not require any notion of distance Does not require uniform policies at all routers Examples: RIP, BGP Link StateVectoring

Practical Realities

IP Address != Host Machine Dynamic IP address assignment (DHCP) –Single client may have multiple addresses over time –Address may correspond to multiple clients over time Shared machines –Multiple users on a shared compute server –Transfers traveling through proxies and firewalls –Multiple Web sites hosted on a single machine Replicated sites –Multiple machines hosting a single (popular) Web site Addresses do not correspond to geographic location –Similar prefix does not necessarily imply nearby hosts –Single prefix may span hosts in large geographic region Source IP address may be spoofed (e.g., DoS attack)

AS != Institution Not equivalent to an AS –Many institutions span multiple autonomous systems –Some institutions do not have their own AS number –Ownership of an AS may be hard to pinpoint (whois) Not equivalent to a block of IP addresses (prefix) –Many institutions have multiple (non-contiguous) prefixes –Some institutions are a small part of a larger address block –Ownership of a prefix may be hard to pinpoint (whois) Not equivalent to a domain name (att.com) –Some sites may be hosted by other institutions –Some institutions have multiple domain names (att.net)

Routing is Not Symmetric Web request and TCP ACKs Web response client server

Discussion of Saltzer84 End-to-end argument –Better to implement functions close to application –… except when performance requires otherwise Why? –…–… What should be the “end” for routing? –Router? –End host? –Enterprise edge? –Autonomous System?

Discussion of Clark88 Basic story of Clark88 –Enumerate (and prioritize) system goals –… and see what decisions that leads you to make Clark88 doesn’t say much about routing, but –“Some of the most significant problems with the Internet today relate to lack of sufficient tools for distributed management, especially in the area of routing.” What should be goals & priorities for routing? –…–…

For Next Tuesday’s Class… Topology: Inside an Autonomous System –“Measuring ISP topologies with RocketFuel” (SIGCOMM’02) –“A first-principles approach to understanding the Internet’s router-level topology” (SIGCOMM’04) Written review, one page each (hard-copy) –Brief summary of the paper –Reasons to accept the paper –Reasons to reject the paper –Three suggestions for future research directions Other materials –Short paper on path diversity (Teixeira03) –Internet topology pictures (Maps)