Network Layer: Internet Inter-Domain Routing

Slides:



Advertisements
Similar presentations
Chapter 4: Network Layer
Advertisements

Network Layer4-1 Hierarchical Routing scale: with 200 million destinations: r can’t store all dest’s in routing tables! r routing table exchange would.
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.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 22 Omar Meqdadi Department of Computer Science and Software Engineering University.
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.
4a-1 CSE401: Computer Networks Hierarchical Routing & Routing in Internet S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
Network Layer4-1 Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol.
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.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 04/05/2007.
14 – Inter/Intra-AS Routing
Feb 12, 2008CS573: Network Protocols and Standards1 Border Gateway Protocol (BGP) Network Protocols and Standards Winter
Routing Algorithms & Routing Protocols  Shortest Path Routing  Flooding  Distance Vector Routing  Link State Routing  Hierarchical Routing  Broadcast.
R OUTING IN THE INTERNET. A UTONOMOUS SYSTEM ( AS ) Collections of routers that has the same protocol, administative and technical control Intra-AS routing.
Lecture 10 Overview. Border Gateway Protocol(BGP) De facto standard for Internet inter-AS routing allows subnet to advertise its existence to rest of.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
14 – Inter/Intra-AS Routing Network Layer Hierarchical Routing scale: with > 200 million destinations: can’t store all dest’s in routing tables!
CSC 450/550 Part 4: Network Layer Part B: The Internet Routing Protocols.
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.)
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
RSC Part II: Network Layer 6. Routing in the Internet (2 nd Part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides are,
Introduction 1 Lecture 19 Network Layer (Routing Protocols) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science &
CS 3830 Day 29 Introduction 1-1. Announcements r Quiz 4 this Friday r Signup to demo prog4 (all group members must be present) r Written homework on chapter.
10-1 Last time □ Transitioning to IPv6 ♦ Tunneling ♦ Gateways □ Routing ♦ Graph abstraction ♦ Link-state routing Dijkstra's Algorithm ♦ Distance-vector.
Network Layer4-1 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.
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.
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.
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,
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
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.
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
Network Layer4-1 Routing Algorithm Classification Global or decentralized information? Global: r all routers have complete topology, link cost info r “link.
Network Layer4-1 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.
Network Layer4-1 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.
Border Gateway Protocol. Intra-AS v.s. Inter-AS Intra-AS Inter-AS.
1 Internet Routing 11/11/2009. Admin. r Assignment 3 2.
Application Layer 2-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A.
Routing in the Internet
14 – Inter/Intra-AS Routing
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
Chapter 5 Network Layer: The Control Plane
Chapter 4: Network Layer
NAT – Network Address Translation
CS 3700 Networks and Distributed Systems
2017 session 1 TELE3118: Network Technologies Week 6: Network Layer Control Plane Inter-Domain Routing Protocols Some slides have been adapted from:
Border Gateway Protocol
CS 3700 Networks and Distributed Systems
Homework 4 Out: Fri 2/26/2016 In: Fri 3/11/2016.
ICMP ICMP – Internet Control Message Protocol
Chapter 4: Network Layer
Chapter 4 Network Layer A note on the use of these ppt slides:
Chapter 4: outline 4.1 introduction
CS4470 Computer Networking Protocols
Chapter 5 Network Layer: The Control Plane
Department of Computer and IT Engineering University of Kurdistan
Routers Routing algorithms
Part 4: Network Layer Part B: The Internet Routing Protocols
Chapter 4: Network Layer
Chapter 4: Network Layer
Chapter 4: Network Layer
COMP/ELEC 429/556 Introduction to Computer Networks
Chapter 5 Network Layer: The Control Plane
CMPE 252A : Computer Networks
Chapter 4: Network Layer
Computer Networks Protocols
Chapter 4 Network Layer A note on the use of these ppt slides:
Presentation transcript:

Network Layer: Internet Inter-Domain Routing CS 352, Lecture 13 http://www.cs.rutgers.edu/~sn624/352-S19 Srinivas Narayana (heavily adapted from slides by Prof. Badri Nath and the textbook authors)

Intra- and Inter-AS routing

Making routing scalable our routing study thus far - idealized all routers identical network “flat” … not true in practice scale: with billions of destinations: can’t store all destinations in routing tables! routing table exchange would swamp links! administrative autonomy Internet = network of networks each network admin may want to control routing in its own network

Internet’s approach to scalable routing aggregate routers into regions known as “autonomous systems” (AS) (a.k.a. “domains”) intra-AS routing routing among hosts, routers in same AS (“network”) all routers in AS must run same intra-domain protocol routers in different AS can run different intra-domain routing protocol gateway router: at “edge” of its own AS, has link(s) to router(s) in other AS’es inter-AS routing routing among AS’es gateways perform inter-domain routing (as well as intra-domain routing)

Intra-AS Routing also known as interior gateway protocols (IGP) Most common intra-AS routing protocols: RIP: Routing Information Protocol: distance vector protocol OSPF, IS-IS: Open Shortest Path First (IS-IS protocol essentially same as OSPF): link state protocol IGRP: Interior Gateway Routing Protocol (Cisco proprietary for decades, until 2016)

Inter-AS Routing The “glue” that holds the Internet together We’ll look into the Border Gateway Protocol (BGP)

Internet inter-AS routing: BGP BGP (Border Gateway Protocol): the de facto inter-domain routing protocol BGP provides each AS a means to: eBGP: obtain subnet reachability information from neighboring ASes iBGP: propagate reachability information to all AS-internal routers. determine “good” routes to other networks based on reachability information and policy allows subnet to advertise its existence to rest of Internet: “I am here”

eBGP, iBGP connections AS 2 AS 1 AS 3 2b ∂ 2a 2c 1b 3b 2d 1a 1c 3a 3c gateway routers run both eBGP and iBGP protools 3b 3d 3c 3a 1b 1a 1c AS 2 1d AS 1 eBGP connectivity iBGP connectivity AS 3

BGP basics BGP session: two BGP routers (“peers”) exchange BGP messages over semi-permanent TCP connection: advertising paths to different destination network prefixes BGP is a “path vector” protocol When AS3 gateway router 3a advertises path AS3,X to AS2 gateway router 2c, AS3 promises to AS2 it will forward datagrams towards X AS 3 1b 1d 1c 1a 3b 3d 3c 3a AS 1 2b 2d 2c 2a BGP advertisement: AS3, X AS 2 X

Path attributes and BGP routes advertised prefix includes BGP attributes prefix + attributes = “route” two important attributes: AS-PATH: list of ASes through which prefix advertisement has passed NEXT-HOP: indicates specific internal-AS router to next-hop AS Policy-based routing: gateway receiving route advertisement uses import policy to accept/decline path (e.g., never route through AS Y). AS export policy also determines whether to advertise path to other other neighboring ASes

BGP path advertisement AS3 1b 1d 1c 1a 3b 3d 3c 3a AS1 2b 2d 2c 2a AS3,X AS2,AS3,X AS2 X AS2 router 2c receives path advertisement AS3,X (via eBGP) from AS3 router 3a Based on AS2 policy, AS2 router 2c accepts path AS3,X, propagates (via iBGP) to all AS2 routers Based on AS2 policy, AS2 router 2a advertises (via eBGP) path AS2, AS3, X to AS1 router 1c

BGP path advertisement AS3 1b 1d 1c 1a 3b 3d 3c 3a AS1 AS3,X 2b 2d 2c 2a AS3,X AS2,AS3,X AS2 X Gateway router may learn about multiple paths to destination: AS1 gateway router 1c learns path AS2,AS3,X from 2a AS1 gateway router 1c learns path AS3,X from 3a Based on policy, AS1 gateway router 1c chooses path AS3,X, and advertises path within AS1 via iBGP

BGP messages BGP messages exchanged between peers over TCP connection In principle, can establish BGP session with any router Common, but not necessary, that routers are physically adjacent BGP messages: OPEN: opens TCP connection to remote BGP peer and authenticates sending BGP peer UPDATE: advertises new path (or withdraws old) KEEPALIVE: keeps connection alive in absence of UPDATES; also ACKs OPEN request NOTIFICATION: reports errors in previous msg; also used to close connection

BGP, OSPF, forwarding table entries Q: how does router set forwarding table entry to distant prefix? AS3 1b 1d 1c 1a 3b 3d 3c 3a AS1 AS3,X AS3,X 1 2 AS3,X local link interfaces at 1a, 1d AS2,AS3,X AS2 X 2b 2d 2c 2a physical link recall: 1a, 1b, 1c learn about dest X via iBGP from 1c: “path to X goes through 1c” dest Next-Hop … X 1c NH interface … 1c 1 1d: OSPF intra-domain routing: to get to 1c, forward over outgoing local interface 1

BGP, OSPF, forwarding table entries Q: how does router set forwarding table entry to distant prefix? AS3 1b 1d 1c 1a 3b 3d 3c 3a AS1 AS3,X AS3,X 1 2 AS3,X AS2,AS3,X AS2 X 2b 2d 2c 2a physical link recall: 1a, 1b, 1c learn about dest X via iBGP from 1c: “path to X goes through 1c” dest Next-Hop … X 1c NH interface … 1c 2 1d: OSPF intra-domain routing: to get to 1c, forward over outgoing local interface 1 1a: OSPF intra-domain routing: to get to 1c, forward over outgoing local interface 2

BGP route selection Router may learn about more than one route to destination AS, selects route based on: local preference value attribute: policy decision shortest AS-PATH closest NEXT-HOP router: hot potato routing additional criteria

Hot Potato Routing 2d learns (via iBGP) it can route to X via 2a or 2c AS3 1b 1d 1c 1a 3b AS1 3a 3c AS1,AS3,X AS2 AS3,X X 2b 2d 2c 2a 3d 112 152 201 263 OSPF link weights 2d learns (via iBGP) it can route to X via 2a or 2c hot potato routing: choose local gateway that has least intra- domain cost (e.g., 2d chooses 2a, even though more AS hops to X): don’t worry about inter-domain cost!

BGP Export Policy and Advertisements W X Y legend: customer network: provider network Suppose an ISP only wants to route traffic to/from its customer networks (does not want to carry transit traffic between other ISPs) A advertises path Aw to B and to C B chooses not to advertise BAw to C: B gets no “revenue” for routing CBAw, since none of C, A, w are B’s customers C does not learn about CBAw path C will route CAw (not using B) to get to w

BGP Export Policy and Advertisements W X Y legend: customer network: provider network Suppose an ISP only wants to route traffic to/from its customer networks (does not want to carry transit traffic between other ISPs) A,B,C are provider networks X,W,Y are customer (of provider networks) X is dual-homed: attached to two networks policy to enforce: X does not want to route from B to C via X .. so X will not advertise to B a route to C

Why different Intra-, Inter-AS routing? policy: inter-AS: admin wants control over how its traffic routed, who routes through its net. intra-AS: single admin, so no policy decisions needed scale: hierarchical routing saves table size, reduced update traffic performance: intra-AS: can focus on performance inter-AS: policy may dominate over performance

Network layer Application Transport Network Host-to-Net … HTTPS HTTP FTP HTTP SMTP DNS TCP UDP IP 802.11 X.25 ATM Transport Network Host-to-Net

Network layer: the big picture The network layer provides connectivity between Internet hosts Split into control plane and data plane Data plane: the IP protocol Supported by DHCP, ICMP, NATs Routers implement data plane through ports + fabric + queues Control plane: routing protocols Link state: flooding + centralized information + independent computations across routers Distance vector: neighbor exchange + decentralized + dependent computations across routers Path vector: flooding + decentralized + policy-based dependent computations across routers

Next: Link layer Application Transport Network Link layer … Ethernet HTTPS … FTP HTTP SMTP DNS TCP UDP IP 802.11 802.3 ATM Transport Network Link layer Ethernet