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

Similar documents
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: outline. Network Layer 4-1

Chapter 4: Network Layer, partb

CSC 4900 Computer Networks: Routing Protocols

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

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

Chapter 4: Network Layer

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

Chapter IV: Network Layer

DATA COMMUNICATOIN NETWORKING

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

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

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

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

Chapter 4 Network Layer

CSC 8560 Computer Networks: Control Plane

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

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

NETWORK LAYER CONTROL PLANE

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCI Topics: Internet Programming Fall 2008

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

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

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

DATA COMMUNICATOIN NETWORKING

Lecture 19: Network Layer Routing in the Internet

COM-208: Computer Networks - Homework 6

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

CSc 450/550 Computer Networks Internet Routing

Network layer: Overview. Network layer functions Routing IP Forwarding

Network Layer: Control Plane 5-2

Chapter 5 Network Layer: The Control Plane

CS321: Computer Networks Unicast Routing

CS 457 Networking and the Internet. What is Routing. Forwarding versus Routing 9/27/16. Fall 2016 Indrajit Ray. A famous quotation from RFC 791

Master Course Computer Networks IN2097

Routing Algorithms : Fundamentals of Computer Networks Bill Nace

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

CSC 4900 Computer Networks: Routing Algorithms

Module 3 Network Layer CS755! 3-1!

Routing in the Internet

Chapter 4 Network Layer. Network Layer 4-1

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

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

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

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

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

Computer Networking Introduction

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 5 Network Layer: The Control Plane

Chapter 4: Network Layer

COMP211 Chapter 5 Network Layer: The Control Plane

Lecture 4. The Network Layer (cont d)

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

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 4: Network Layer: Part II

GOALS Understand principles behind network layer services: Network layer service models Forwarding versus routing How a router works Routing (path sel

CSC 401 Data and Computer Communications Networks

Inter-Autonomous-System Routing: Border Gateway Protocol

Inter-Autonomous-System Routing: Border Gateway Protocol

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

CS118 Discussion Week 7. Taqi

Department of Computer Science Southern Illinois University Carbondale

Topics for This Week

Network Layer. CMPS 4750/6750: Computer Networks

Agenda. distance-vector (what you invented last Friday) hierarchical routing routing in the Internet. v DNS assignment Q&A v Routing Algorithms

Telecomunicazioni. Docente: Andrea Baiocchi. DIET - Stanza 107, 1 piano palazzina P. Piga Via Eudossiana 18

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

Communication Networks

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

PART III. Implementing Inter-Network Relationships with BGP

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

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

Link State Routing & Inter-Domain Routing

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

Network Layer: Routing

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

Routing. Jens A Andersson Communication Systems

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

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

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

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

cs/ee 143 Communication Networks

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

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

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

Computer Networks. Routing Algorithms

Routing Unicast routing protocols

Internet protocol stack

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

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

The Internet network layer

Inter-domain Routing. Outline. Border Gateway Protocol

Routing Algorithms. 1 Administrivia. Tom Kelliher, CS 325. Apr. 25, Announcements. Assignment. Read 4.6. From Last Time. IP protocol.

Transcription:

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

Outline Network control plane Routing Link state routing (OSPF) Distance vector routing (RIP) BGP ICMP Midterm/Project 2 2

Distance vector routing Bellman-Ford equation (dynamic programming) let dx(y) := cost of least-cost path from x to y then dx(y) =? 3

Distance vector routing Bellman-Ford equation (dynamic programming) let dx(y) := cost of least-cost path from x to y then dx(y) = min_v {c(x,v) + dv(y) } 4

Distance vector routing: example What s the cost of least-cost path for u! z? 5 2 v 3 w 5 u 2 3 1 z 1 x 1 y 2 5

Let s work it out clearly: dv(z) =?, dx(z) =?, dw(z) =? 5 2 v 3 w 5 u 2 3 1 z 1 x 1 y 2 6

Let s work it out clearly: dv(z) = 5, dx(z) = 3, dw(z) = 3 According to B-F equation: du(z) = min {? } 5 2 v 3 w 5 u 2 3 1 z 1 x 1 y 2 7

Let s work it out clearly: dv(z) = 5, dx(z) = 3, dw(z) = 3 According to B-F equation: du(z) = min {c(u,v) + dv(z), c(u,x) + dx(z), c(u,w) + dw(z)} 8

Let s work it out clearly: dv(z) = 5, dx(z) = 3, dw(z) = 3 According to B-F equation: du(z) = min {c(u,v) + dv(z), c(u,x) + dx(z), c(u,w) + dw(z)} = min {2 + 5, 1 + 3, 5 + 3} = 4 9

Distance vector routing: key idea from time-to-time, each node sends its own distance vector estimate to neighbors when x receives new DV estimate from neighbor, it updates its own DV using B-F equation. 10

Distance vector routing: caveat Count-to-infinity problem. Can you work out an example? A/3 B/2 C/1 D 11

Distance vector routing: caveat Count-to-infinity problem. Can you work out an example? A/3 B/2 C/1 D 12

Distance vector routing: caveat Count-to-infinity problem. Can you work out an example? A/3 B/2 C/1 D Can you propose a solution? basic idea? 13

Distance vector routing: split horizon Previous solution idea: split horizon if B reaches D through C, B should not tell C that B can reach D Then C will not attempt to go through B to reach D Are we good? 14

Distance vector routing: split horizon Previous solution idea: split horizon if B reaches D through C, B should not tell C that B can reach D Then C will not attempt to go through B to reach D Are we good? A B C D 15

Distance vector routing: poison reverse Split horizon + poison reverse if A reaches D through C: A tells C that A s distance to D is infinite Then C will not attempt to go through A to reach D In practice, infinite == 16 hops A B C D 16

Link State v.s. Distance Vector message complexity convergence speed robustness Link state with n nodes, E links, O(nE) msgs sent O(n2) algorithm requires O(nE) msgs node can advertise incorrect link cost; each node computes only its own table Distance vector exchange between neighbors only (convergence time varies) convergence time varies (may be routing loops) DV node can advertise incorrect path cost; error propagate thru network implementation OSPF RIP 17

Summary Link-state routing (Dijkstra) algorithm: each node computes the shortest paths to all the other nodes based on the complete topology map Distance Vector (Bellman-Ford) routing algorithm: each node computes the shortest paths to all the other nodes based on its neighbors distance to all destinations 18

Inter-domain routing aggregate routers into regions AS: autonomous systems routers in same AS run same routing protocol intra-as routing protocol routers in different AS can run different intra-as routing protocol 19

BGP (Border Gateway Protocol) An inter-domain routing protocol; allows subnet to advertise its existence to rest of Internet: I am here BGP provides each AS a means to: ebgp: obtain subnet reachability information from neighboring ASs. ibgp: propagate reachability information to all ASinternal routers. How BGP works with intra-domain routing (e.g. OSPF) Important BGP path advertisement example on Chapter 5 slides 49 50 20

BGP: routing policy A,B,C are provider networks X,W,Y are customer (of provider networks) X is attached to two networks. It does not want to route from B via X to C so X will not advertise to B a route to C W A B C X legend: provider network customer network: Y 21

BGP: routing policy A advertises path AW to B B advertises path BAW to X Should B advertise path BAW to C? W A B C X legend: provider network customer network: Y 22

BGP: routing policy A advertises path AW to B W A B C X legend: provider network customer network: B advertises path BAW to X Y Should B advertise path BAW to C? No! 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! 23

BGP: practice problems Explain how loops in paths can be detected in BGP. BGP advertisements contain complete paths showing the AS s the path passes through, and so a router can easily identify a loop because an AS will appear two or more times. 24

BGP: practice problems Suppose that there is another stub network V that is a customer of ISP A. Suppose that B and C have a peering relationship, and A is a customer of both B and C. Suppose that A would like to have the traffic destined to W to come from B only, and the traffic destined to V from either B or C. How should A advertise its routes to B and C? What AS routes does C receive? A should advertise to B two routes: A-W and A-V A should advertise to C only one route: A-V C receives AS paths: B-A-W, B-A-V, A-V 25

Routing: summary Intra-domain routing V.S. inter-domain routing Performance V.S. policy Scalability: hierarchical routing Distance-vector routing V.S. link-state routing Fully-distributed algorithm V.S. decentralized algorithm Unicast V.S. multicast 26

SDN: software defined networking A logically centralized control plane easier network management programmable forwarding table (OpenFlow API) open (non-proprietary) implementation of control plane Components data plane switches SDN controller network-control apps Hot Internet research topic; P4 programmable switch 27

ICMP: Internet Control Message Protocol Used for feedback, status checking, error reporting at IP layer ICMP msgs are carried in IP packets ping: echo request/reply traceroute: nth packet has TTL = n 28

Traceroute: example $ traceroute 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets 1 172.30.40.3 (172.30.40.3) 4.055 ms 3.017 ms 3.871 ms 2 wifi-131-179-60-1.host.ucla.edu (131.179.60.1) 2.545 ms 2.288 ms 2.714 ms 3 ra00f1.anderson--cr00f2.csb1.ucla.net (169.232.8.12) 3.653 ms 3.506 ms 3.724 ms 4 cr00f2.csb1--bd11f1.anderson.ucla.net (169.232.4.5) 3.959 ms 4.383 ms 3.483 ms 5 lax-agg6--ucla-10g.cenic.net (137.164.24.134) 3.951 ms 5.480 ms 3.840 ms 6 74.125.49.165 (74.125.49.165) 6.558 ms 3.882 ms 3.890 ms 7 108.170.247.129 (108.170.247.129) 3.192 ms 108.170.247.193 (108.170.247.193) 93.964 ms 108.170.247.161 (108.170.247.161) 3.297 ms 8 108.177.3.127 (108.177.3.127) 3.657 ms 209.85.255.73 (209.85.255.73) 3.571 ms 108.177.3.129 (108.177.3.129) 3.261 ms 9 google-public-dns-a.google.com (8.8.8.8) 5.315 ms 3.770 ms 12.165 ms 29

Traceroute: example 30