lecture 1: introduction - moodle.epfl.ch

73
Introduction Lecture 1: Katerina Argyraki, EPFL

Upload: others

Post on 20-Oct-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

IntroductionLecture 1:

Katerina Argyraki, EPFL

Computer Networks, Fall 2021 !2

end-system

World of warcraft servers

Tesla Model 3 controller

heart pacemaker

smartphonelaptop

Google servers

your washing machine

Computer Networks, Fall 2021 !3

while (...) { message = receive ( ... );}

Alice Bob

while (...) { message = ...; send ( message, ... );}

Application Programming

Interface

Computer Networks, Fall 2021 !4

Alice Bob

hello

hello

I want file xxx

here…(I don’t have it)

Computer Networks, Fall 2021 !5

Alice Bobhello

I want …

I want …

I want …

I want …

I want …

I want …

Computer Networks, Fall 2021

Questions• What’s underneath?

• Who owns what?

• How does it work?

• How does one evaluate it?

• How do end-systems share it?

!6

Computer Networks, Fall 2021

Questions• What’s underneath?

• Who owns what?

• How does it work?

• How does one evaluate it?

• How do end-systems share it?

!7

Computer Networks, Fall 2021

Internet Service Provider

link

!8

switch

end-system

Computer Networks, Fall 2021 !9

Computer Networks, Fall 2021 !10

home PC switch

Computer Networks, Fall 2021

home PC

!11

DSL modem DSLAMcentral office

phone line

telephone telephone network

...switch

Computer Networks, Fall 2021

Digital Subscriber Line (DSL)

• DSL modem + phone line (copper)

• 3 channels (downstream data, upstream data, voice)

• typically 10s to 100+ Mbps• most allocated to

the downstream data channel

!12

Computer Networks, Fall 2021

Why phone lines?

!13

Computer Networks, Fall 2021

home PC

!14

DSL modem DSLAMcentral office

phone

telephone telephone network

...switch

fiberline

Computer Networks, Fall 2021

home PC

!15

DSL modem DSLAMcentral office

telephone telephone network

...switch

fiber

Computer Networks, Fall 2021

Fiber to the Home

• …or to the Building/Curb/Street

• modem + fiber (+ copper phone line)

• up to 1 Gbps per direction (as deployed in Switzerland)

!16

Computer Networks, Fall 2021 !17

home PC switch

Computer Networks, Fall 2021 !18

cable modem CMTScable head

endcable

TV linefiber ...

home PC switch

Computer Networks, Fall 2021 !19

CMTScable head

endfiber ...

Computer Networks, Fall 2021

Cable

• Cable modem + cable line (copper, fiber)

• 2 channels (downstream, upstream)

• typically 100s of Mbps • most allocated to

the downstream channel

• shared broadcast medium

!20

Computer Networks, Fall 2021 !21

EPFL workstation

Ethernet cable

switch...

Computer Networks, Fall 2021

Computer Networks, Fall 2021

Ethernet• Ethernet switches and cables (copper)

• 2 channels (downstream + upstream)

• 1 Gbps, 10 Gbps, 40 Gbps in each direction

!23

Computer Networks, Fall 2021

& more• Cellular (smart phones)

• Satellite (remote areas)

• …

!24

Computer Networks, Fall 2021

Internet Service Provider

!25

WiFi link

switch

end-system

Computer Networks, Fall 2021

What physical infrastructure is already available?

!26

Computer Networks, Fall 2021

Questions

!27

• What’s underneath?

• Who owns what?

• How does it work?

• How do we evaluate it?

• How do we share it?

Computer Networks, Fall 2021

Internet Service Provider

!28

WiFi link

switch

end-system

Computer Networks, Fall 2021

Internet Service Provider

!29

WiFi

Computer Networks, Fall 2021

access ISPaccess ISP

!30

Computer Networks, Fall 2021

access ISPaccess ISP

!31

global ISP

Computer Networks, Fall 2021 !32

access ISP

access ISP

regional ISP

access ISP

access ISP

access ISP

regional ISP

tier-1 ISP tier-1 ISP

Computer Networks, Fall 2021 !33

St Sulpice Renens

Lausanne Bern

Zurich Boston

Computer Networks, Fall 2021

peering

!34

provider

customers

peering provider

customers

provider

customer customer

Computer Networks, Fall 2021

Internet Exchange Point (IXP)

!35

Computer Networks, Fall 2021

Internet Exchange Point (IXP)

!36

content provider

Computer Networks, Fall 2021

Internet Exchange Point (IXP)

!37

content provider

Computer Networks, Fall 2021

Internet Exchange Point (IXP)

!38

content provider

Computer Networks, Fall 2021 !39

access ISP

access ISP

content provideraccess

ISP

access ISP

Internet Exchange Point (IXP)

Internet Exchange Point (IXP)

Computer Networks, Fall 2021

Internet Exchange Point (IXP)

!40

content provider

Computer Networks, Fall 2021

What modularity?

What hierarchy?

!41

Computer Networks, Fall 2021

Questions• What’s underneath?

• Who owns what?

• How does it work?

• How do we evaluate it?

• How do we share it?

!42

Computer Networks, Fall 2021

Layers• Layer = a part of a system with

well-defined interfaces to other parts

• Two layers interact only through the interface between them

• One layer interacts only with layer above and layer below

!43

Computer Networks, Fall 2021 !44

Alice Bob

mailbox

local post office

central post office

mailbox

local post office

central post office

mail bag mail bag

Computer Networks, Fall 2021 !45

Alice’s program

Alice’s OS

Bob’s program

Bob’s OS

Internet

Ethernet WiFiDSL Cable Cellular

copper fiber wireless

Optical

Computer Networks, Fall 2021

application

transport

network

link

physical

!46

web BitTorrent

TCP UDP

IP

copper fiber wireless

email DNS

Ethernet WiFiDSL Cable Cellular Optical

Computer Networks, Fall 2021

application

transport

network

link

physical

!47

BitTorrent

TCP UDP

IP

Ethernet

DNSweb

Computer Networks, Fall 2021

application

transport

network

link

physical

!48

moves data across the Internet

moves data between end-systems

moves data across a link

moves data across a physical medium

Computer Networks, Fall 2021 !49

while (...) { message = receive ( ... );}

Alice Bob

while (...) { message = ...; send ( message, ... );}

Computer Networks, Fall 2021 !50

Alice

while (...) { message = ...; send ( message, ... );}

001100000011100110001110100111010111

datalengthtypeheader

Message format: agreement on what each bit means

Computer Networks, Fall 2021

Alice’s computerswitch!51

header | data

header

header

header

application

transport

network

link

physical

header | data

header header | data

header header header | data

header header header header | datapacket

Computer Networks, Fall 2021

header header header header | data

!52switchswitch

application

transport

network

link

physical header header header header | data

Computer Networks, Fall 2021

header header header | dataheader header header | dataheaderheader

!53Bob’s computerswitch

application

transport

network

link

physical

header header header | data

header header header | dataheader

Computer Networks, Fall 2021 !54

application

transport

network

link

physical

Bob’s computer

header header header | dataheader

header header header | data

header header | data

header | data

Computer Networks, Fall 2021

Layers• Each layer touches only

the header of the same layer

• May add a new header= encapsulation

• May remove the header= decapsulation

!55

Computer Networks, Fall 2021

transport

!56

app

network

link MAC address

IP address

DNS name

104.20.229.42

www-epfl.ch

netw

ork

inte

rfac

e

5c:f9:38:a4:00:76

104.20.228.42

www.epfl.ch

en0

80

process

port number

local interface name

www.epfl.ch, 80104.20.228.42, 80

process address

EPFL web server

Computer Networks, Fall 2021

Names (Identifiers)• For network interfaces:

DNS names, IP addresses, MAC addresses, local names

• For processes: network-interface name + port number

!57

Computer Networks, Fall 2021 !58

>

www.epfl.ch is an alias for www.epfl.ch.cdn.cloudflare.net

host www.epfl.ch

Translate DNS names to IP addresses:

www.epfl.ch.cdn.cloudflare.net has address 104.20.228.42

www.epfl.ch.cdn.cloudflare.net has address 104.20.229.42

DNS names

IP addresses

Computer Networks, Fall 2021 !59

en0:

Find out the MAC and IP address of the network interface(s) on your computer:

ether 5c:f9:38:a4:00:76

inet 128.168.178.27

> ifconfig

IP address

MAC address

Computer Networks, Fall 2021

DNS names

!60

Check whom you are communicating with:

> netstat

goldfish.fritz.b.60242 ewa.epfl.ch.https

108.177.119.188.5228goldfish.fritz.b.59740

Local Address Foreign Address

port numbers

IP address

Computer Networks, Fall 2021 !61

>

1 fritz.box (192.168.178.1) … 2 10.136.43.239 (10.136.43.239) … 3 as13335.swissix.ch (91.206.52.192) …

traceroute www.epfl.ch

Discover packet switches between your computer and a remote one:

DNS names IP addresses

Computer Networks, Fall 2021 !62

Look inside network packets:

header header header header | data

header

header

header

header | data

source + dst MAC addresses

source + dst IP addresses

source + dst port numbers

application stuff

Computer Networks, Fall 2021

Why layers?

!63

Computer Networks, Fall 2021

What layers to define?

!64

Computer Networks, Fall 2021

Course rythme

• Friday: material becomes available• slides in Keynote and PDF• lab + homework problems• on Moodle

• Friday, 15h00-17h00: lecture• SG1138 + online on Zoom

!65

Computer Networks, Fall 2021

Course rythme

• Tuesday, 12h00-14h00: office hours• focus on homework • online on Zoom

• Wednesday, 15h00-17h00: lab/hw session • INF2/INF3 + online on Discord• on your own computer or EPFL infrastructure

!66

Computer Networks, Fall 2021

Quizzes

• Voluntary, count only if you do well

• 10min, every other week

• Cover the 2 previous lectures

• Online on Moodle

!67

Computer Networks, Fall 2021

Midterm

• Voluntary, counts only if you do well

• Exact format TBD

• Covers all lectures, homework, and labs prior to midterm date

• Online on Moodle + Discord

!68

Computer Networks, Fall 2021

Final• Mandatory, counts always

• 2 hours, closed-book, date + room TBD

• Covers all lectures, homework, and labs

• During winter exam session

!69

Computer Networks, Fall 2021

Grade• quiz grade =

average of 3 best quizzes

• exam grade = max { final, 0.7final + 0.3mid }

• overall course grade = max { exam, 0.9exam + 0.1quiz }

!70

Computer Networks, Fall 2021

On Moodle• Lecture slides & pre-recorded videos• Lab & homework problems, solutions• Announcements (News forum)• Q&A (Discussion forum)• Course logistics (e.g., where to login to

do the labs remotely)

!71

Computer Networks, Fall 2021

Communication

• Discord space• informal, fast, knowledge sharing

• Moodle discussion forum• for longer interactions, still fast

[email protected]• for questions you don’t want to share

!72

Computer Networks, Fall 2021

Welcome aboard!

!73