cs3516-4-network-coreyli15/courses/cs3516fall19a/slides/cs3516-4...introduction lab assignment 1 for...

28
1 CS 3516: Computer Networks Prof. Yanhua Li Welcome to Time: 9:00am –9:50am M, T, R, and F Location: AK219 Fall 2019 A-term Some slides are originally from the course materials of the textbook “Computer Networking: A Top Down Approach”, 7th edition, by Jim Kurose, Keith Ross, Addison-Wesley March 2016. Copyright 1996-2017 J.F Kurose and K.W. Ross, All Rights Reserved.

Upload: others

Post on 01-Nov-2019

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

1

CS 3516: Computer Networks

Prof. Yanhua Li

Welcome to

Time: 9:00am –9:50am M, T, R, and F Location: AK219 Fall 2019 A-term

Some slides are originally from the course materials of the textbook “Computer Networking: A Top Down Approach”, 7th edition, by

Jim Kurose, Keith Ross, Addison-Wesley March 2016. Copyright 1996-2017 J.F Kurose and K.W. Ross, All Rights Reserved.

Page 2: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

New TA Heshan Perera, CS MS student [email protected] Office Hour: Wed, 9:30-11:30AM

1-2

Page 3: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Class Calendar & Office Hours

Lecture AK219

Mondays Tuesdays Wednesdays Thursdays Fridays

9-9:50am

10-10:30am

1-3pm TA: Menghai Sub-basement in Fuller

Lecture AK219

Prof. Li, AK130 Prof. Li, AK130

TA: Menghai Sub-basement in Fuller

Lecture AK219

TA: Lei Sub-basement in Fuller

Lecture AK219

Prof. Li, AK130

TA: Lei Sub-basement in Fuller

Office hours for all questions, e.g., project/lab assignment related questions, like programming…

Office hours for lecture related questions, and general questions for labs and projects.

10:30-11am

TA: Menghai & Ma Sub-basement in Fuller

TA: Heshan Sub-basement in Fuller 9:30-11:30AM

Page 4: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Lab assignment 1 For each question, please try to provide screenshot

picture, and explain your answers based on the picture.

1-4

Quiz 2

Quiz 1 Answers are available in Canvas Grades are available on Canvas

Friday Network performances: Delay, Loss, and

Throughput

Page 5: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Chapter 1: roadmap 1.1 what is the Internet? “nuts and bolts” view service view

1.2 network edge §  end systems, access networks, links

1.3 network core §  packet switching, circuit switching, network structure

1-5

Page 6: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

mesh of interconnected routers with three key aspects in network core

§  Link: Switching, Resource allocation (chp 1.3)--microscope

§  Network: Network Core

Structure / Management / Coordination (chp 1.3)--macroscope

§  Node: Routing & Forwarding (to be discussed in Network layer chp 4)

The network core

1-6

Page 7: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Internet structure: network of networks

§  End systems connect to Internet via access ISPs (Internet Service Providers)

•  residential, company and university ISPs §  Access ISPs in turn must be interconnected.

•  so that any two hosts can send packets to each other §  Resulting network of networks is very complex

•  evolution was driven by economics and national policies §  Let’s take a stepwise approach to describe current Internet

structure

Introduction 1-7

Page 8: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Internet structure: network of networks Question: given millions of access ISPs, how to connect them together?

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

Introduction 1-8

?

Page 9: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Internet structure: network of networks Option: connect each access ISP to every other access ISP?

access net

access net

… …

connecting each access ISP to each other directly doesn’t

scale: O(N2) connections.

Introduction 1-9

access net

access net

access net

access net

access net

access net …

access net

access net

access net

access net

access net

access net access

net

access net

Page 10: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Internet structure: network of networks

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

Option: connect each access ISP to one global transit ISP? Customer and provider ISPs have economic agreement.

Introduction 1-10

global ISP

Page 11: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

ISP C

ISP B

ISP A

Internet structure: network of networks

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

But if one global ISP is viable business, there will be competitors ….

Introduction 1-11

access net

Tier 1 ISPs: Level 3, AT&T, Sprint, NTT

Page 12: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

ISP C

ISP B

ISP A

Internet structure: network of networks

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

Introduction 1-12

access net

But if one global ISP is viable business, there will be competitors …. which must be interconnected

IXP

peering link

Internet exchange point

IXP

Density?

Page 13: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

ISP C

ISP B

ISP A

Internet structure: network of networks

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

Introduction 1-13

access net

IXP

IXP access net

access net

access net

regional net

… and regional networks may arise to connect access nets to ISPs

Multi-homing

PoP

Page 14: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

ISP C

ISP B

ISP A

Internet structure: network of networks

access net

access net

access net

access net

access net

access net

access net

access net

access net

access net access

net

access net

… … …

Introduction 1-14

access net

IXP

IXP access net

access net

access net

regional net

Content provider network

… and content provider networks (e.g., Google, Microsoft, Akamai) may run their own network, to bring services, content close to end users

Why CPN? Network Edge or Core?

Page 15: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Internet structure: network of networks

§  at center: small # of well-connected large networks •  “tier-1” commercial ISPs (e.g., Level 3, Sprint, AT&T, NTT), national &

international coverage •  content provider network (e.g., Google): private network that connects

it data centers to Internet, often bypassing tier-1, regional ISPs

1-15

IXP IXP IXP

Tier 1 ISP Tier 1 ISP Google

Regional ISP Regional ISP

access ISP

access ISP

access ISP

access ISP

access ISP

access ISP

access ISP

access ISP

Multi-homing Multi-homing

PoP

Page 16: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Questions?

Partial map of the Internet based on the January 15, 2005 data found on opte.org. (from http://atheistuniverse.net/group/internet)

Page 17: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Tier-1 ISP: e.g., Sprint

to/from customers

peering

to/from backbone

………

POP: point-of-presence

1-17

Page 18: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

CSci5221: Introduction 18 OC1 (45 Mbps), OC2 (155 Mbps), …, OC192 (10 Gbps)

Page 19: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

19

Page 20: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

So far…

covered a “ton” of material! §  Internet overview §  what’s a protocol? §  network edge, core, access

network •  packet-switching versus

circuit-switching •  Internet structure

§  performance: loss, delay, throughput

§  layering, service models

you now have: §  context, overview, “feel”

of networking §  more depth, detail to

follow!

1-20

Page 21: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Review and Motivations:

1-21

Packet Switching Pros: Easy to implement, Better resource sharing Cons: loss, delay, traffic congestion. Questions: How to quantify the network performance?

Page 22: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Chapter 1: roadmap 1.4 network performance in packet-switched networks delay loss throughput

1.5 protocol layers, service models

1-22

Page 23: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

How do loss and delay occur? packets queue in router buffers §  packet arrival rate to link (temporarily) exceeds output link

capacity §  packets queue, wait for turn

A

B

packet being transmitted (delay)

packets queueing (delay)

free (available) buffers: arriving packets dropped (loss) if no free buffers

1-23

Page 24: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Four sources of packet delay

dproc: nodal processing §  check bit errors §  determine output link §  typically < micro-sec

A

B

propagation

transmission

nodal processing queueing

dqueue: queueing delay §  time waiting at output link

for transmission §  depends on congestion

level of router §  micro-sec to milli-sec

dnodal = dproc + dqueue + dtrans + dprop

1-24

Page 25: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

dtrans: transmission delay: §  L: packet length (bits) §  R: link bandwidth (bps) §  dtrans = L/R

dprop: propagation delay: §  d: length of physical link §  s: propagation speed in medium

(~2x108 m/sec) §  dprop = d/s

dtrans and dprop very different

Four sources of packet delay

propagation

nodal processing queueing

dnodal = dproc + dqueue + dtrans + dprop

1-25

A

B

transmission

When a packet can be transmitted on a link? v  1) no other pkt transmitted on the link (in practice) v  2) no other pkt preceding it in the queue

Page 26: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Propagation constant β Ratio of propagation delay vs. packet transmission time

Wireless LAN 0.00004. Ethernet: 0.01

Source: Slides of Prof Ivan Marsic with Rutgers University

Page 27: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Caravan analogy (trans. & propagation)

§  cars “propagate” at 100 km/hr

§  toll booth takes 12 sec to service car (bit transmission time)

§  car~bit; caravan ~ packet §  Q: How long until caravan is

lined up before 2nd toll booth?

§  time to “push” entire caravan through toll booth onto highway = 12*10 = 120 sec

§  time for last car to propagate from 1st to 2nd toll both: 100km/(100km/hr)= 1 hr

§  A: 62 minutes

toll booth

toll booth

ten-car caravan

100 km 100 km

1-27

1 hour per car

Page 28: CS3516-4-Network-Coreyli15/courses/CS3516Fall19A/slides/CS3516-4...Introduction Lab assignment 1 For each question, please try to provide screenshot picture, and explain your answers

Introduction

Caravan analogy (more)

§  suppose cars now “propagate” at 1000 km/hr, and suppose toll booth now takes one min to service a car

§  Q: Will cars arrive to 2nd booth before all cars are serviced at first booth?

§  A: Yes! after 7 min, 1st car arrives at second booth; three

cars still at 1st booth.

toll booth

toll booth

ten-car caravan

100 km 100 km

1-28

6 min per car