Problem of switching and bridging
How hosts find each other on a subnet, how subnets are interconnected
How 2 hosts connect
ARP
Encapsulation
Host puts IP packet in an ethernet frame with the corresponding destination MAC address from the ARP table, as well as its own source MAC address
What are the queries and responses in ARP?
Query: broadcast asking about IP
Response: unicast with MAC address
Simplest way a LAN can be connected
A hub (the simplest form of interconnection). In some sense they don’t even exist in networks anymore today. uses broadcast medium.
Switches
Learning switch
Maintains a table between destination addresses and output port so that it knows how to forward
Spanning tree
A loop-free topology that covers every node in a graph.
Switches operate at layer…
Routers operate at…
layer 3, where IP is common protocol.
-Router level topologies are not restricted to a spanning tree.
Multi-path rounding
a single packet could be sent along one of multiple possible paths in underlying router level topology.
-In many ways, layer 2 switching is a lot more convenient, but one of the major limitations is broadcast.
Buffer sizing
-Fairly well-known that routers and switches need packet buffers to accommodate for statistical multiplexing, but unclear just how much is necessary
The only variable of packet delay on the internet
Queueing delay
Buffering equation
2T is the roundtrip propagation delay
Capacity is C (bottleneck link)
2TC was the rule of thumb, and the guideline mandated in routers for many years. Turns out it’s incorrect and doesn’t apply in practice.
-Really only holds if all flows perfectly synchronized. Helps with central limit theorem: the more variables we have (in this case, unique congestion windows), the narrower the Gaussian will be. Width decreases with 1/root(n) where n is the number of unique congestion windows of flows that we have. We can get away with way less buffering (2TC/root(n)) where n is the # of flows passing through the router
AIMD
Additive increase, multiplicative decrease
-For every W acks received, we send W+1 packets