Chapter IV: Network Layer

Similar documents
Chapter 4: outline. Network Layer 4-1

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Chapter 4: Network Layer

DATA COMMUNICATOIN NETWORKING

Computer Networking Introduction

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 14, 2013

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Inter-AS routing and BGP. Network Layer 4-1

CSC 4900 Computer Networks: Routing Protocols

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

CSCI Topics: Internet Programming Fall 2008

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Routing in the Internet

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

Chapter 4: Network Layer, partb

CSc 450/550 Computer Networks Internet Routing

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

Chapter 4 Network Layer

Inter-AS routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley

Network layer: Overview. Network layer functions Routing IP Forwarding

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

CS 204: BGP. Jiasi Chen Lectures: MWF 12:10-1pm Humanities and Social Sciences

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Topics for This Week

Chapter 4: Network Layer

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

PART III. Implementing Inter-Network Relationships with BGP

COMP211 Chapter 5 Network Layer: The Control Plane

Lecture 19: Network Layer Routing in the Internet

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

Chapter 4: Network Layer: Part II

Network Layer: Routing

CSC 8560 Computer Networks: Control Plane

Master Course Computer Networks IN2097

Routing. Outline. Algorithms Scalability

Routing. Jens A Andersson Communication Systems

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Network layer: Overview. Network layer functions Routing IP Forwarding

Chapter 5 Network Layer: The Control Plane

Lecture 9. Network Layer (cont d) Network Layer 1-1

Introduction to Communication Networks Spring Unit 16 Global Internetworking

Routing Unicast routing protocols

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Network Layer: Control Plane 5-2

Network Layer: Routing. Routing. Routing protocol. Graph abstraction for routing algorithms: graph nodes are routers graph edges are physical links

Inter-Domain Routing: BGP

Inter-Autonomous-System Routing: Border Gateway Protocol

Internet inter-as routing: BGP

EECS 3214: Computer Networks Protocols and Applications

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 14

CS 457 Networking and the Internet. The Global Internet (Then) The Global Internet (And Now) 10/4/16. Fall 2016

Inter-Autonomous-System Routing: Border Gateway Protocol

Lecture 4. The Network Layer (cont d)

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II

Department of Computer and IT Engineering University of Kurdistan. Computer Networks II Border Gateway protocol (BGP) By: Dr. Alireza Abdollahpouri

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Computer Networks. Instructor: Niklas Carlsson

EC441 Fall 2018 Introduction to Computer Networking Chapter 5: Network Layer Control Plane

Internet Routing : Fundamentals of Computer Networks Bill Nace

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 5 Network Layer: The Control Plane

Routing on the Internet! Hierarchical Routing! The NSFNet 1989! Aggregate routers into regions of autonomous systems (AS)!

Course on Computer Communication and Networks. Lecture 7 Network Layer, Chapter 4 (6/e) - Part B (7/e Ch5)

Master Course Computer Networks IN2097

CNT Computer and Network Security: BGP Security

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Data Communications & Networks. Session 7 Main Theme Networks: Part II Circuit Switching, Packet Switching, The Network Layer

HY 335 Φροντιστήριο 8 ο

11/13/2017 Network Layer (SSL) Network-layer functions. Recall the two network-layer functions:

Interplay Between Routing, Forwarding

DATA COMMUNICATOIN NETWORKING

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals:

Module 3 Network Layer CS755! 3-1!

Department of Computer Science Southern Illinois University Carbondale

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Why dynamic route? (1)

CS 3516: Computer Networks

Intra-AS Routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

UNIT III THE NETWORK LAYER

Chapter 4: Network Layer

CMPE 80N: Introduction to Networking and the Internet. Katia Obraczka Computer Engineering UCSC Baskin Engineering Lecture 20

Chapter 4 Network Layer

Chapter 5 Network Layer: The Control Plane

The Internet network layer

Network layer functions. Chapter 4 Network Layer. Network layer functions. Network layer functions

CS321: Computer Networks Unicast Routing

ETSF10 Internet Protocols Routing on the Internet

Interplay between routing, forwarding

Chapter 4 Network Layer

Routing part 2. Electrical and Information Technology

Chapter 5 Network Layer: The Control Plane

Network Layer: Routing

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

CSCD 330 Network Programming Spring 2018

Transcription:

Chapter IV: Network Layer UG3 Computer Communications & Networks (COMN) Myungjin Lee myungjin.lee@ed.ac.uk Slides copyright of Kurose and Ross

Hierarchical routing our routing study thus far - idealization v all routers identical v network flat not true in practice scale: with 600 million destinations: can t store all dest s 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 76

Hierarchical routing aggregate routers into regions, autonomous systems (AS) routers in same AS run same routing protocol intra-as routing protocol routers in different AS can run different intra-as routing protocol gateway router: at edge of its own AS has link to router in another AS 77

Interconnected ASes 3c 3a 3b AS3 1a 1c 1d Intra-AS Routing algorithm 1b Forwarding table AS1 2a Inter-AS Routing algorithm 2c AS2 2b forwarding table configured by both intraand inter-as routing algorithm intra-as sets entries for internal dests inter-as & intra-as sets entries for external dests 78

Inter-AS tasks suppose router in AS1 receives datagram destined outside of AS1: other networks router should forward packet to gateway router, but which one? 3b 3c AS3 3a 1a AS1 1c 1d 1b AS1 must: 1. learn which dests are reachable through AS2, which through AS3 2. propagate this reachability info to all routers in AS1 job of inter-as routing! 2a AS2 2c 2b other networks 79

Example: setting forwarding table in router 1d suppose AS1 learns (via inter-as protocol) that subnet x reachable via AS3 (gateway 1c), but not via AS2 inter-as protocol propagates reachability info to all internal routers router 1d determines from intra-as routing info that its interface I is on the least cost path to 1c other networks installs forwarding table entry (x,i) 3b 3c AS3 3a 1a AS1 1c 1d x 1b 2a AS2 2c 2b other networks 80

Example: choosing among multiple ASes now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and from AS2 to configure forwarding table, router 1d must determine towards which gateway it should forward packets for dest x this is also job of inter-as routing protocol! other networks 3c 3a 3b AS3 1a AS1 1c 1d x? 1b 2a AS2 2c 2b other networks 81

Example: choosing among multiple ASes now suppose AS1 learns from inter-as protocol that subnet x is reachable from AS3 and from AS2 to configure forwarding table, router 1d must determine towards which gateway it should forward packets for dest x this is also job of inter-as routing protocol! hot potato routing: send packet towards closest of two routers learn from inter- AS protocol that subnet x is reachable via multiple gateways use routing info from intra-as protocol to determine costs of leastcost paths to each of the gateways hot potato routing: choose the gateway that has the smallest least cost determine from forwarding table the interface I that leads to least-cost gateway. Enter (x,i) in forwarding table 82

Intra-AS Routing also known as interior gateway protocols (IGP) most common intra-as routing protocols: RIP: Routing Information Protocol OSPF: Open Shortest Path First IGRP: Interior Gateway Routing Protocol (Cisco proprietary) 83

RIP (Routing Information Protocol) included in BSD-UNIX distribution in 1982 distance vector algorithm distance metric: # hops (max = 15 hops), each link has cost 1 DVs exchanged with neighbors every 30 sec in response message (aka advertisement) each advertisement: list of up to 25 destination subnets (in IP addressing sense) z u A C B D v y w x from router A to destination subnets: subnet hops u 1 v 2 w 2 x 3 y 3 z 2 84

RIP: example w x y A D B z C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 z B 7 x -- 1..... 85

RIP: example A-to-D advertisement dest next hops w - 1 x - 1 z C 4.... w x y A D B z C routing table in router D destination subnet next router # hops to dest w A 2 y B 2 A z B 7 5 x -- 1..... 86

RIP: link failure, recovery if no advertisement heard after 180 sec è neighbor/link declared dead routes via neighbor invalidated new advertisements sent to neighbors neighbors in turn send out new advertisements (if tables changed) link failure info quickly propagates to entire net poison reverse used to prevent ping-pong loops (infinite distance = 16 hops) 87

RIP table processing RIP routing tables managed by application-level process called route-d (daemon) advertisements sent in UDP packets, periodically repeated routed routed transport (UDP) transprt (UDP) network (IP) forwarding table forwarding table network (IP) link link physical physical 88

OSPF (Open Shortest Path First) open : publicly available uses link state algorithm LS packet dissemination topology map at each node route computation using Dijkstra s algorithm OSPF advertisement carries one entry per neighbor advertisements flooded to entire AS carried in OSPF messages directly over IP (rather than TCP or UDP) IS-IS routing protocol: nearly identical to OSPF 89

OSPF advanced features (not in RIP) security: all OSPF messages authenticated (to prevent malicious intrusion) multiple same-cost paths allowed (only one path in RIP) for each link, multiple cost metrics for different TOS (e.g., satellite link cost set low for best effort ToS; high for real time ToS) integrated uni- and multicast support: Multicast OSPF (MOSPF) uses same topology data base as OSPF hierarchical OSPF in large domains 90

Internet inter-as routing: BGP BGP (Border Gateway Protocol): the de facto interdomain routing protocol glue that holds the Internet together BGP provides each AS a means to: ebgp: obtain subnet reachability information from neighboring ASs 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 91

v BGP basics BGP session: two BGP routers ( peers ) exchange BGP messages: advertising paths to different destination network prefixes ( path vector protocol) exchanged over semi-permanent TCP connections when AS3 advertises a prefix to AS1: AS3 promises it will forward datagrams towards that prefix AS3 can aggregate prefixes in its advertisement other networks 3b 3c AS3 3a 1a AS1 BGP message 1c 1d 1b 2a AS2 2c 2b other networks 92

BGP basics: distributing path information using ebgp session between 3a and 1c, AS3 sends prefix reachability info to AS1 1c can then use ibgp to distribute new prefix info to all routers in AS1 1b can then re-advertise new reachability info to AS2 over 1b-to-2a ebgp session when router learns of new prefix, it creates entry for prefix in its forwarding table other networks 3b 3a AS3 1a AS1 1c 1d ebgp session ibgp session 1b 2a AS2 2c 2b other networks 93

Path attributes and BGP routes advertised prefix includes BGP attributes prefix + attributes = route two important attributes: AS-PATH: contains ASs through which prefix advertisement has passed: e.g., AS 67, AS 17 NEXT-HOP: indicates the next-hop IP address used for packet forwarding gateway router receiving route advertisement uses import policy to accept/decline e.g., never route through AS x policy-based routing 94

AS-Path attribute example AS 21 Subnet = 98.0.0.0/8 AS-Path = 123 AS 123 98.0.0.1 11.0.0.1 AS 37 Subnet = 98.0.0.0/8 AS-Path = 21 123 Subnet = 98.0.0.0/8 128.0.0.1 AS-Path = 37 21 123 Detect and prevent looping advertisements 95

Next-Hop attribute example Subnet = 71.0.0.0/8 AS-Path = 21 Next-Hop = 11.0.0.1 AS 21 11.0.0.1 A AS 123 B 11.0.0.2 12.0.0.5 Subnet = 71.0.0.0/8 AS-Path = 123 21 Next-Hop = 12.0.0.5 12.0.0.6 AS 37 C Next-hop attribute is usually set to the IP address of the sending router 96

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

BGP messages BGP messages exchanged between peers over TCP connection BGP messages: OPEN: opens TCP connection to peer and authenticates sender 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 98

BGP routing policy Advertisement of a route to C? W A B C X legend: provider network customer network: Y v v v A,B,C are provider networks X,W,Y are customer (of provider networks) X is dual-homed: attached to two networks X does not want to route from B via X to C.. so X will not advertise to B a route to C 99

BGP routing policy (2) W A B C X legend: Advertisement of path BAW? provider network customer network: v v A advertises path AW to B B advertises path BAW to X Y v Should B advertise path BAW to C? No way! B gets no revenue for routing CBAW since neither W nor C are B s customers B wants to force C to route to w via A B wants to route only to/from its customers! 100

Why different Intra-, Inter-AS routing? policy: inter-as: admin wants control over how its traffic routed, who routes through its network 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 101