1
CS 3640: Introduction to Networks and Their Applications
Fall 2018, Lecture 8: The Link Layer III – Addressing Protocols (animations from Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
CS 3640: Introduction to Networks and Their Applications Fall 2018, - - PowerPoint PPT Presentation
CS 3640: Introduction to Networks and Their Applications Fall 2018, Lecture 8: The Link Layer III Addressing Protocols (animations from Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain 1 You
1
Fall 2018, Lecture 8: The Link Layer III – Addressing Protocols (animations from Christo Wilson @ NEU) Instructor: Rishab Nithyanand Teaching Assistant: Md. Kowsar Hossain
2
You should…
Recap: Medium access control protocols
based access.
in half. This basically doubles the achievable throughput.
The link layer: The CSMA/CA MAC protocol (1990s)
at the receiver. Why?
wireless signals may not carry to far away hosts.
can reach C.
The link layer: The CSMA/CA protocol
The link layer: The CSMA/CA protocol
The link layer: The CSMA/CA MAC protocol
go to step 1 and try again.
The link layer: The CSMA/CA MAC protocol – Hidden terminals
The link layer: The CSMA/CA MAC protocol – Hidden terminals
The link layer: The CSMA/CA MAC protocol (with RTS/CTS)
The link layer: The CSMA/CA MAC protocol (with RTS/CTS)
“Request To Send” (RTS) message. Wait for “timeout” seconds for a “Clear To Send” (CTS) message from the receiver.
1 and try again.
The link layer: The CSMA/CA MAC protocol – Exposed terminals
The link layer: The CSMA/CA MAC protocol – Exposed terminals
isn’t) but doesn’t prevent false-positives (thinking the medium is busy when it isn’t) because we never actually reach the RTS stage when we have a false-positive.
The link layer: The CSMA/CA MAC protocol – Exposed terminals
faster, you send more RTS/CTS packets per second because you can handle more transmissions per second.
worse.
too high to be a feasible solution to the exposed terminal problem.
Recap: Medium access control protocols
always accurate.
these and improves throughput by stopping transmission as soon as it is detected.
from the receiver before transmission.
16
This week in class
Addressing in the link layer
link-layer hardware.
efficiency-gain.
Link layer and network interface technologies: Hubs
Link layer and network interface technologies: Bridges and switches
which wire to put packets on.
Link layer and network interface technologies: Bridges and hubs in the real world
Link layer and network interface technologies: Bridges and hubs in the real world
better (Windows XP in most federal agency computers).
Link layer and network interface technologies: Bridges vs. Hubs (the internals)
Switch Fabric
How do switches/bridges know what packet goes on which wire?
address to ensure forwarding is done correctly.
How do switches/bridges know what packet goes on which wire?
accessible through which ports. Records expire after a “timeout”.
00:00:00:00:00:DD 1 3 minutes MAC address port age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds
How do switches/bridges know what packet goes on which wire?
00:00:00:00:00:AA 00:00:00:00:00:BB Port 1 Port 2 00:00:00:00:00:BB 2 0 minutes MAC Address Port Age 00:00:00:00:00:AA 1 0 minutes
How do switches/bridges know what packet goes on which wire?
table, send the frame out the corresponding port.
forwarding table broadcast the frame through all ports (except the incoming one).
Forwarding tables in action
EE DD CC BB AA Port 1 Port 2 Port 1 Port 2
AA 1 AA 1 CC 2 CC 1 EE 2 EE 2
Bridge 1 Bridge 2
How loops can break forwarding protocols
AA Port 1
Port 1
Port 2 Port 2 AA 1 AA 1 BB CC DD AA 2 AA 2 AA 1 AA 1
What is a spanning tree?
1 4 2 5 6 3 7 1 4 2 5 6 3 7 5 1 4 2 6 3 7
How do spanning trees help?
1 4 2 5 6 3 7 1 4 2 5 6 3 7 5 1 4 2 6 3 7
How do nodes construct a spanning tree from any network topology?
the smallest random number is the root.
How do nodes construct a spanning tree from any network topology?
Bridges vs. Switches
net.
another switch).
How does the link layer frame travel from source to destination within a LAN?
destination IP address and fetches the corresponding record from the ARP table.
address.
Discussion
disaster!
the memory that would required!