Professional Documents
Culture Documents
Computer Networks
Lecture 17: Link Layer – Part 2
Mina Tahmasbi Arashloo
Fall 2023
A note on the slides
Computer Networking: A
Top-Down Approach
8th edition
Jim Kurose, Keith Ross
Pearson, 2020
Link layer: roadmap
§ Link layer overview
• Local Area Networks (LANs)
§ Switched LANs
• Ethernet and Addressing
• Address Resolution Protocol (ARP)
• Switches
Link layer: roadmap
§ Link layer overview
• Local Area Networks (LANs)
§ Switched LANs
• Ethernet and Addressing
• Address Resolution Protocol (ARP)
• Switches
§ Virtual LANs (VLANs)
Disclaimer
§ Scalability/efficiency issues
§ Non-trivial overhead from broadcast for
larger LANs
§ Security/privacy/admin issues
Computer
Science EE § Diverse groups of users
§ It may not be ok for different groups to
see each other’s traffic.
Computer
Science EE
Computer
Science EE
2 8 10 16
1 7 9 15
2 8 10 16
… …
EE (VLAN ports 1-8) CS (VLAN ports 9-15)
Forwarding between VLANs
physical router 2 8 10 16
… …
§ The vendors sell combined switches EE (VLAN ports CS (VLAN ports 9-15)
… …
EE (VLAN ports 1-8) CS (VLAN ports 9-15)
§ How do we forward traffic between A and C?
Port-based
§ Both belong to CSVLANs
VLAN, not attached to the same switch
§ How about between B and D?
Ports 4, 6, 7, 8 belong to CS VLAN
All ports Ports 2, 3, 5 belong to EE VLAN
belong to the
CS VLAN 4 8
C
6 5
D
Computer
Science EE
Ports 1-8 belong to the EE VLAN
Ports 9-15 belong to the CS VLAN
1 2
3 12
5
An example institutional network. A
B
§ How do we forward traffic between A and C?
Port-based
§ Both belong to CSVLANs
VLAN, not attached to the same switch
§ How about between B and D?
Ports 4, 6, 7, 8 belong to CS VLAN
All ports Traffic on these ports can
be from multiple VLANs
Ports 2, 3, 5 belong to EE VLAN
belong to the
CS VLAN 4 8
C
6 5
D
Computer
Science EE
Ports 1-8 belong to the EE VLAN
Ports 9-15 belong to the CS VLAN
1 2
3 12
5
An example institutional network. A
B
VLANS spanning multiple switches
1 7 9 15 1 3 5 7
2 8 10 16 2 4 6 8
… … …
EE (VLAN ports 1-8) CS (VLAN ports 9-15) Ports 2,3,5 belong to EE VLAN
Ports 4,6,7,8 belong to CS VLAN
type
dest. source CRC
preamble address address data (payload) 802.1Q frame
1 7 9 15 1 3 5 7
2 8 10 16 2 4 6 8
… … …
EE (VLAN ports 1-8) CS (VLAN ports 9-15) Ports 2,3,5 belong to EE VLAN
Ports 4,6,7,8 belong to CS VLAN
B C D
5
1 7 9 15 1 3 7
2 8 10 16 IP Ethernet 2 4 6 8
datagram frame
… … …
Sunnyvale Bangalore
data center Ethernet data center