pocs recitation: review of networking basics

100
Katerina Argyraki School of Computer & Communication Sciences POCS Recitation: Review of Networking Basics

Upload: others

Post on 16-Apr-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: POCS Recitation: Review of Networking Basics

Katerina Argyraki School of Computer & Communication Sciences

POCS Recitation: Review of Networking Basics

Page 2: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 3: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 4: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Service Provider

link

switch

end-system

Page 5: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

access ISP

access ISP

regional ISP

access ISP

access ISP

access ISP

regional ISP

tier-1 ISP tier-1 ISP

Page 6: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

peering

provider

customers

peering provider

customers

provider

customer customer

Page 7: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Exchange Point (IXP)

Page 8: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Exchange Point (IXP)

content provider

Page 9: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Exchange Point (IXP)

content provider

Page 10: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Exchange Point (IXP)

content provider

Page 11: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

access ISP

access ISP

content provideraccess

ISP

access ISP

Internet Exchange Point (IXP)

Internet Exchange Point (IXP)

Page 12: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Internet Exchange Point (IXP)

content provider

Page 13: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 14: POCS Recitation: Review of Networking Basics

Network performance metrics

• Packet loss • the fraction of packets from the source to the destination that are lost on the way • in %, e.g., 1% packet loss

• Packet delay • the time it takes for a packet to get from the source to the destination • in time units, e.g., 10 msec

• Average throughput • the average rate at which the destination receives data from the source • in bits per second (bps)

Katerina Argyraki Principles of Computer Systems

Page 15: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

VenogeEglise

St Sulpice

Page 16: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

VenogeEglise

St Sulpice

Page 17: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

VenogeEglise

St Sulpice

Page 18: POCS Recitation: Review of Networking Basics

Delay vs. throughput

• Packet delay matters for small messages

• Average throughput matters for bulk messages

• They are related to each other, but not in an obvious way

Katerina Argyraki Principles of Computer Systems

Page 19: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

src dst110

transmission delaypacket size

link transmission rate=

Page 20: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

src dst

propagation delaylink length

link propagation speed=

0 11

Page 21: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

src dst

packet delay =

transmission delay+ propagation delay

Page 22: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

src dst110 11

queue

transmission delay over 1st link+ propagation delay of 1st link

packet delay =

store & forward switch

Page 23: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

src dst110

queue

transmission delay over 1st link+ propagation delay of 1st link+ queuing delay+ processing delay+ transmission delay over 2nd link+ propagation delay of 2nd link

packet delay =

store & forward switch

Page 24: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

bit arrival rate: A bits/sec A

transmission rate: R bits/sec

bit departure rate: R bits/secR

Page 25: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

>bit arrival rate: A bits/sec

bit departure rate: R bits/sec

Page 26: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

<=bit arrival rate: A bits/sec

bit departure rate: R bits/sec

Page 27: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

A/R 1

Aver

age

queu

ing

dela

y

Page 28: POCS Recitation: Review of Networking Basics

Queuing delay

• (Assuming infinite queue size)

• Approaches infinity, if arrival rate > departure rate

• Depends on burst size, otherwise

Katerina Argyraki Principles of Computer Systems

Page 29: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

N+1 packets

Queuing delay upper bound: N L/R

transmission rate: R bits/sec

packet size: L bits

Page 30: POCS Recitation: Review of Networking Basics

Packet delay

• Many components: transmission, propagation, queuing, processing

• Depends on network topology, link properties, switch operation, queue capacity, other traffic

Katerina Argyraki Principles of Computer Systems

Page 31: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

transmission rate R bits/sec

Average throughput =

file of size F bits

R

packets of size L bits

L/R Transfer time = + L/R + ... + propagation delay F/R

Page 32: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

transmission rate R’ > Rtransmission rate R

F/R+ L/R’+ propagation delay 1st link

bottleneck link

min { R, R’ } = R

file of size F bitspackets of size L bits

Transfer time =

Average throughput =

+ propagation delay 2nd link

Page 33: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

transmission rate R1 transmission rate R2

bottleneck link

transmission rate R >> R1, R2

Page 34: POCS Recitation: Review of Networking Basics

Average throughput

• Determined by the bottleneck link between the source and the destination

• = the link where traffic between the source and the destination flows at the slowest rate

• Could be because of the link’s transmission rate or because of queuing delay

Katerina Argyraki Principles of Computer Systems

Page 35: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 36: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

application

transport

network

link

physical

web BitTorrent

TCP UDP

IP

copper fiber wireless

email DNS

Ethernet WiFiDSL Cable Cellular Optical

Page 37: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

application

transport

network

link

physical

Alice’s computerswitch

header | data

header

header

header

header | data

header header | data

header header header | data

header header header header | datapacket

Page 38: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

application

transport

network

link

physical

header header header header | data

switchswitch

header header header header | data

Page 39: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

application

transport

network

link

physical

header header header | dataheader header header | dataheaderheader

Bob’s computerswitch

header header header | data

header header header | dataheader

Page 40: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

application

transport

network

link

physical

Bob’s computer

header header header | dataheader

header header header | data

header header | data

header | data

Page 41: POCS Recitation: Review of Networking Basics

Layers

• Each layer touches only the header of the same layer

• May add a new header = encapsulation

• May remove the header = decapsulation

Katerina Argyraki Principles of Computer Systems

Page 42: POCS Recitation: Review of Networking Basics

application

transport

network

link

Katerina Argyraki Principles of Computer Systems

MAC address

IP address

DNS name

104.20.229.42

www-epfl.ch

netw

ork

inte

rfac

e5c: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

Page 43: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 44: POCS Recitation: Review of Networking Basics

Domain Name Service (DNS)

• Maps DNS names to IP addresses (among other things)

• Hierarchy of DNS servers for scalability: root, top-level domain (TLD), authoritative

• Caching of mappings at DNS servers and clients for performance

• Expiration dates associated with each mapping for consistency between cached and authoritative data

Katerina Argyraki Principles of Computer Systems

Page 45: POCS Recitation: Review of Networking Basics

Name lookup

• The client sends the name lookup to a local DNS server • the local DNS server is outside the root/TLD/auth. hierarchy

• The local DNS server may forward the name lookup to another server • recursive query: each server that receives the name lookup

either responds with the answer or forwards the name lookup to another server

• iterative query: each server that receives the name lookup responds, either with the answer or with the name of another server that can provide the answer

Katerina Argyraki Principles of Computer Systems

Page 46: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 47: POCS Recitation: Review of Networking Basics

TCP services

• Reliable data delivery: to recover from corruption and loss

• Flow control: to avoid overloading the receiver

• Congestion control: to avoid overloading the network

Katerina Argyraki Principles of Computer Systems

Page 48: POCS Recitation: Review of Networking Basics

Reliable data delivery

• Checksums to detect packet corruption

• Timeouts to detect packet loss

• Acknowledgments and retransmissions to recover from packet loss and corruption

Katerina Argyraki Principles of Computer Systems

Page 49: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Sender Receiver

?A?K

seq# 0

seq# 0

Page 50: POCS Recitation: Review of Networking Basics

Reliable data delivery

• Checksums to detect packet corruption

• Timeouts to detect packet loss

• Acknowledgments and retransmissions to recover from packet loss and corruption

• Sequence numbers to disambiguate between packets and ACKs

Katerina Argyraki Principles of Computer Systems

Page 51: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Sender Receiver

ACK 1

seq# 1

seq# 0

ACK 2

transmission

RTT

transmission

RTT

Page 52: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

Sender Receiver

ACK 1

seq# 0seq# 1seq# 2seq# 3

seq# 4

ACK 2

seq# 5

ACK 3

ACK 4

seq# 6seq# 7

0

1

2

3

4

5

6

7

window size N = 4

Page 53: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

ACK 1

seq# 2

seq# 1seq# 2seq# 3

ACK 2

X

timeout for segment 2!

0

1

2

3

4

5

6

7

seq# 0

seq# 4seq# 5

ACK 2

0

1

2

3

4

5

6

7

0

10

1

3

4

5

2

Sender Receiver

Page 54: POCS Recitation: Review of Networking Basics

Reliable data delivery

• Pipelining to achieve max throughput

• Window size to control useless transmissions determined through

• flow control

• congestion control

Katerina Argyraki Principles of Computer Systems

Page 55: POCS Recitation: Review of Networking Basics

Flow control

• The receiver communicates to the sender the max acceptable window size from its point of view

• The sender uses this to cap its window size

Katerina Argyraki Principles of Computer Systems

Page 56: POCS Recitation: Review of Networking Basics

Congestion control

• The sender infers the max window size that will not overload the network through trial and error

• The sender uses this to cap its window size

Katerina Argyraki Principles of Computer Systems

Page 57: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

100 bytes

200 bytes

300 bytes

400 bytes

0 - 99

100 - 199200 - 299

300 - 399400 - 499

500 - 599600 - 699

seq# 0

ACK 100

seq# 100seq# 200

ACK 200

ACK 300

Page 58: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

100 bytes

200 bytes

300 bytes

400 bytes

Page 59: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

100 bytes

200 bytes

300 bytes

400 bytes

RTT

RTT

RTT

Page 60: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

400 bytes

X

timeout!threshold = 200

Page 61: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

100 bytes

200 bytes

300 bytes

threshold = 200

Page 62: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

700 - 799

400 bytes

X

fast retransmit!

seq# 500

ACK 500ACK 500ACK 500

seq# 500

500 - 599600 - 699

800 - 899

500 bytes900 - 999 seq# 900

threshold = 200

Page 63: POCS Recitation: Review of Networking Basics

Congestion control algorithm

Katerina Argyraki Principles of Computer Systems

no indication of congestion => ramp up fast

slow start

possible congestion => ramp up cautiously

congestion avoidance

…from single-packet loss/delay => stay put

fast recovery

reached threshold

timeout => set threshold, win = 1 MSS

timeout => set threshold, win=1MSS

3 dup

licate

ACKs

=> win=thresh +

inflati

on

3 duplicate ACKs

=> win=thresh +

inflation

missi

ng

packet

ACKe

d

timeout => set threshold, win=1MSS

Page 64: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 65: POCS Recitation: Review of Networking Basics

Network-layer functions

• IP forwarding

• IP routing

Katerina Argyraki Principles of Computer Systems

Page 66: POCS Recitation: Review of Networking Basics

IP forwarding (basic elements)

• IP address: hierarchical 32-bit name that refers to a network interface

• IP header: carried by every IP packet, specifies source and destination IP address

• IP router (= L3 switch): packet switch that forwards IP packets based on their destination IP addresses

• IP forwarding table: data structure inside an IP router that maps each IP address to an output link

Katerina Argyraki Principles of Computer Systems

Page 67: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

0 - 3

4 - 7

dest. address range output link

8 - 11

12 - 15

1

2

3

4

0000 - 0011

0100 - 0111

1000 - 1011

1100 - 1111

00**

01**

10**

11**

01001110

Page 68: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

0 - 2

4, 6, 7

dest. address range output link

5

8 - 15

1

2

3

2

0000 - 0010

0100, 0110, 0111

0101

1000 - 1111

00**

01**

0101

1***

3 0011 0011

4

010100100011

Page 69: POCS Recitation: Review of Networking Basics

IP forwarding

• IP forwarding maintains state per IP prefix

Katerina Argyraki Principles of Computer Systems

Page 70: POCS Recitation: Review of Networking Basics

IP routing

• Routing algorithm: populates the forwarding tables of all the routers

• Least cost path routing: picks the least cost path to each destination

• Link-state routing: each router first learns the entire network graph, then computes the least-cost path from itself to each destination

• Path-vector routing: each router exchanges information with its neighbors and converges to the least-cost path from itself to each destination

Katerina Argyraki Principles of Computer Systems

Page 71: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

xy

8.0.0.0/8 through (x,y)

8.0.0.0/8 through (x,y)

8.0.0.0/8 through (x,y)

eBGP

iBGP

8.0.0.0/8

8.0.0.0/24

8.0.1.0/24

8.0.2.0/24

Page 72: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

y z

xu

a

vb

8.0.0.0/8thru (x,a)

8.0.0.0/8thru (x,b)

8.0.0.0/8thru (x,b)

8.0.0.0/8thru (x,a)

8.0.0.0/8thru (u,z)

8.0.0.0/8thru (v,y)

8.0.0.0/8thru (v,y)

8.0.0.0/8thru (u,z)

8.0.0.0/8

Page 73: POCS Recitation: Review of Networking Basics

IP routing

• Autonomous System (AS): contiguous network under the same admin

• Intra-AS routing: algorithm run by all the routers of the same AS; each router learns a path to every local IP prefix (every other local router)

• Inter-AS routing: algorithm run by all the routers of all ASes; each router learns a path to every foreign IP prefix

Katerina Argyraki Principles of Computer Systems

Page 74: POCS Recitation: Review of Networking Basics

Topics

• Internet architecture

• Network performance metrics

• Internet layers

• DNS

• TCP

• Network layer

• Link layer

Katerina Argyraki Principles of Computer Systems

Page 75: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

IP routers = network-layer switches

IP subnets

RR

"links"

Page 76: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

IP router = network-layer switch

IP subnet

R

Switch = link-layer switch

S

links

Page 77: POCS Recitation: Review of Networking Basics

Internet point of view

• Network layer: takes packet from one end of the Internet to the other end

• Link layer: takes packet from one end of one IP subnet to the other end

Katerina Argyraki Principles of Computer Systems

Page 78: POCS Recitation: Review of Networking Basics

IP subnet point of view

• Network layer: takes packet from one end of the IP subnet to the other end

• Link layer: takes packet from one end of one physical link to the other end

Katerina Argyraki Principles of Computer Systems

Page 79: POCS Recitation: Review of Networking Basics

Link-layer services (IP subnet point of view)

• Error detection • receiver detects and drops corrupted packets • with checksums

• Reliable data delivery • sender/receiver detect corruption and loss and try to recover • with checksums, ACKs, timeouts, retransmissions, & sequence numbers • only for error-prone links, typically wireless

• Medium access control (MAC) • sender manages access to shared medium (typically wireless link) • listens for ongoing transmissions or “collisions" • backs off and retries later

Katerina Argyraki Principles of Computer Systems

Page 80: POCS Recitation: Review of Networking Basics

Link-layer services (Internet point of view)

• L2 forwarding

• “L2 routing”

Katerina Argyraki Principles of Computer Systems

Page 81: POCS Recitation: Review of Networking Basics

L2 forwarding (basic elements)

• Ethernet/MAC address: flat 48-bit name that refers to a network interface

• Ethernet header: carried by every Ethernet packet, specifies source and destination Ethernet address

• Ethernet switch (= L2 switch): packet switch that forwards Ethernet packets based on their destination Ethernet addresses

• MAC forwarding table: data structure inside an Ethernet switch that maps each MAC address to an output link

Katerina Argyraki Principles of Computer Systems

Page 82: POCS Recitation: Review of Networking Basics

L2 forwarding

• L2 forwarding maintains state per active destination MAC address

Katerina Argyraki Principles of Computer Systems

Page 83: POCS Recitation: Review of Networking Basics

“L2 routing”

• Self-learning: each switch learns the output link for each destination by observing incoming traffic

• Broadcasting: until it learns the output link for a given destination, it broadcasts packets for that destination

• Spanning tree: prevents loops when broadcasting

Katerina Argyraki Principles of Computer Systems

Page 84: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1 R2

Alice EPFL web

server

SS

R: routersS: switchesgray circles: IP subnets

SS

SS

S

Alice’s local DNS server

Page 85: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

A types http://www.epfl.ch in her browser

At least 4 packets:

A’s DNS request to local DNS server

local DNS server’s response to A

A’s HTTP GET request to web server

web server’s response to A

Page 86: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

A types http://www.epfl.ch in her browser

At least 4 packets:

A’s DNS request to local DNS server

local DNS server’s response to A

A’s HTTP GET request to web server

web server’s response to A

Page 87: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

1. A’s DNS client process creates DNS request

2. Passed down to transport, network layer

3. A’s network layer sends ARP request - to resolve DNS server’s IP address

Page 88: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1

Alice

SS

S

ARP request

ARP request ARP

request

MAC linkAli’s a MAC link

Ali’s b

MAC linkAli’s b

a b

b

bc

aa cARP

request

src MAC: Alice’sdst MAC: broadcast

Page 89: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

4. R1’s network layer sends ARP response

Page 90: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1

Alice

S

S

S

MAC linkAli’s a MAC link

Ali’s b

MAC linkAli’s b

ARP response

a b

b

bc

aa c

R1’s b R1’s c

src MAC: R1’sdst MAC: Alice’s

Page 91: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

5. A’s network layer sends DNS request - it now knows the right MAC address to use

Page 92: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1

Alice

SS

S

DNS request

DNS request DNS

request

MAC linkAli’s a MAC link

Ali’s b

a b

b

bc

aa c

R1’s b R1’s c

src MAC: Alice’sdst MAC: R1’s

src IP: Alice’sdst IP: DNS server’s

Page 93: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

6. R1’s network layer performs IP forwarding

Page 94: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1 R2

Alice’s local DNS server

Alice

SS

MAC linkAli’s a MAC link

Ali’s b

a bbc

R1’s bR1’s c

a d SDNS request

IP prefix link11.2.34.0/24 a

8.0.0.0/8 c19.7.0.0/16 d

... ...

Page 95: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

7. R1’s network layer sends ARP request - to resolve DNS server’s IP address

Page 96: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1 R2

Alice’s local DNS server

Alice

SS

MAC linkAli’s a MAC link

Ali’s b

a bbc

R1’s bR1’s c

a d S

MAC linke

ef

c

R1’s

ARP request

src MAC: R1’sdst MAC: broadcast

ARP requestARP

request

Page 97: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

8. DNS server’s network layer sends ARP response

Page 98: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1 R2

Alice’s local DNS server

Alice

SS

MAC linkAli’s a MAC link

Ali’s b

a bbc

R1’s bR1’s c

a d S

MAC linke

ef

c

R1’sDNS’s f

ARP response

src MAC: DNS servers’sdst MAC: R1’s

Page 99: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

9. R1’s network layer forwards DNS request - it now knows the right MAC address to use

Page 100: POCS Recitation: Review of Networking Basics

Katerina Argyraki Principles of Computer Systems

R1 R2

Alice’s local DNS server

Alice

SS

a bbc a d S

MAC linke

ef

c

R1’sDNS’s f

DNS request

src MAC: R1’sdst MAC: DNS server’s

src IP: Alice’sdst IP: DNS server’s

DNS request