1/28
Looks like no tags are added yet.
what do bridges do
interconnect LANs (local area networks) at the link layer
how do bridges function
frame forward from one LAN to another based on the MAC address without making any changes to the frame
what is a MAC address
link level address, media access control
do bridges need to be configured
no
why might one install a bridge
to break a LAN into LAN segments
what are hubs
connect hosts into a single shared medium to send to the bridge
what are 3 types of bridges
transparent
source-routing
shortest-path
what is the purpose of transparent bridges
keep frame forwarding functionality transparent to hosts
what are the three components of a transparent bridge
spanning tree: of the network to eliminate packet looping
address of a station: LAN over which packets from that station came last
station cache: source address it hears and the IDs of the ports over which the packets were found (host @ port)
what happens when the bridge doesn’t know the address of a station
a bridge broadcasts packets for a station over all its ports/those in the spanning tree
how does addressing in transparent bridges work? — empty cache
assume tree topology for internet
bridge listens to every packet it receives over any LAN
bridge recieves packet from station
station cache is empty,
bridge builds cache by assigning port as address of station
builds station cache
since cache is empty, flood packet over all ports
how does addressing in transparent bridges work? — station cache has information
packet recieved
station cache updated
bridge looks up its station cache for the destination MAC address in the packet
match found between MAC ID and port
if MAC ID (port in cache) is the same port the packet came from, packet is filtered/dropped, will be handled locally instead of by the bridge
otherwise, forward packet to MAC ID
does addressing in transparent bridges traverse loops? if yes, how?
yes, if a packet is sent to a port, and that port is silent, bridges do not know about that port and might send multiple of the same packets
what is an STA
spanning tree algorithm: defines a single spanning tree in the internet where packet flow doesn’t loop — distributed election
how does STA work
elect a single bridge as the root
calculate distance (in hops) on a shortest path to root
elect a designated bridge for each LAN (eg. closest to the root in the LAN)
allow only designated bridge to forward packets to and from its LAN
STA operation: what are HELLOs
messages used to build a tree, sent to all bridges of a LAN
STA operation: what do HELLOs specify
root ID: MAC address of bridge assumed to be the root
cost: length (in hops) of path from bridge to root
transmitting bridge ID: MAC address of bridge sending HELLO
which HELLO do bridges adopt
the smallest hello they here: minimum root ID, smallest distance to root, minimum reporting bridge ID
how do STAs work?
bridge starts by considering itself the proposed root ]
starts election process by sending: HELLO = own ID, 0, own ID
bridge chooses smallest HELLO from neighbors by comparing with its own HELLO: looks at root ID, costs if same, bridge ID
if HELLO is bigger, bridge becomes that LANs designated bridge
root port becomes port to neighbor bridge with smallest HELLO
bridge puts root port and designated ports in forwarding state: puts all other ports in blocking state
bridge composes a new HELLO, over all ports of “larger“ HELLOs adding 1 to the distance to the adopted root
data packets, control packets, and learning of addresses take place over ports in forwarding state in the spanning tree
how do we handle failures in STA
age fields for each HELLO
when is the age of a HELLO incrememented
over each hop and each time limit while in storage
when does a HELLO get discarded
when age reaches a max value
how do roots send HELLOS and with what age
periodicially with 0 age
what happens if a stored HELLO is deleted/recieved from port
redo STA with valid age
what happens if a root/other bridge fails
bridges down tree stop receiving HELLOs originated by root
why might STA have loops
bridges select their root port without an ordering constraint, only based on what it knows currently
how to solve looping in STA?
make bridge wait long time (twice the max transit time) before moving a port to forwarding mode — doesn’t work in large internets
why might we need to refresh a station cache
tree can change due to link and bridge failures/stations moving slowly
how do we refresh station caches
bridge changes state of port
bridge sends topology change notification (TCN) to “parent bridge“ persistently until it acks with flag in its HELLO
parent bridge receives TCN and forwards to root
if root detects topology change/receives TCN, sets the TCN flag in its own HELLO for a period of time
the HELLOs w/ TCN force bridges to refresh their station cache until TCN is reset