Link Layer: Computer Networking: A Top Down Approach
Link Layer: Computer Networking: A Top Down Approach
Link Layer
Computer Networking: A
Top Down Approach
4th edition.
Jim Kurose, Keith Ross
Addison-Wesley, July
2007.
Last Lecture
Todays Lecture
Switch
Link-layer Device
Forwarding
1
5
4
C
A
switch with six interfaces
(1,2,3,4,5,6)
Switch Table
A
C
1
5
4
C
A
switch with six interfaces
(1,2,3,4,5,6)
Switch: self-learning
learns which hosts
can be reached through
which interfaces
switch
Source: A
Dest: A
A A A
C
B
1
4
C
60
Switch table
(initially empty)
Self-Learning,Forwarding:Example
Source: A
Dest: A
A A A
C
frame destination
unknown: flood
A6A
2
4
destination A
location known:
selective send
A A
B
1
4
60
60
Switch table
(initially empty)
Interconnecting switches
switches can be connected together
S4
S1
S2
A
B
S3
D
E
I
G
single-switch case!)
Institutional network
to external
internet
mail server
router
web server
ARP is plug-and-play:
nodes create their ARP
tables without
intervention from
network administrator
74-29-9C-E8-FF-55
111.111.111.111
E6-E9-00-17-BB-4B
1A-23-F9-CD-06-9B
222.222.222.220
111.111.111.110
111.111.111.112
222.222.222.221
222.222.222.222
49-BD-D2-C7-56-2A
CC-49-DE-D0-AB-7D
74-29-9C-E8-FF-55
E6-E9-00-17-BB-4B
111.111.111.111
1A-23-F9-CD-06-9B
222.222.222.220
111.111.111.110
111.111.111.112
CC-49-DE-D0-AB-7D
222.222.222.221
222.222.222.222
49-BD-D2-C7-56-2A
Putting-it-all-together:
DNS
UDP
IP
ARP
Eth
Phy
ARP
ARP reply
Eth
Phy
DNS
DNS
UDP
IP
Eth
Phy
DNS
DNS
DNS
DNS
DNS
UDP
IP
Eth
Phy
DNS server
Comcast network
68.80.0.0/13
HTTP
TCP
IP
Eth
Phy
SYNACK
SYN
SYNACK
SYN
SYNACK
SYN
SYNACK
SYN
SYNACK
SYN
SYNACK
SYN
TCP
IP
Eth
Phy
web server
64.233.169.105
HTTP
TCP
IP
Eth
Phy
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
HTTP
TCP
IP
Eth
Phy
web server
64.233.169.105
IP datagram containing
HTTP request routed to
www.google.com
IP datagram containing
HTTP reply routed back to
client