ECE361 Midterm 2: Bridges

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

29 Terms

1
New cards

what do bridges do

interconnect LANs (local area networks) at the link layer

2
New cards

how do bridges function

frame forward from one LAN to another based on the MAC address without making any changes to the frame

3
New cards

what is a MAC address

link level address, media access control

4
New cards

do bridges need to be configured

no

5
New cards

why might one install a bridge

to break a LAN into LAN segments

6
New cards

what are hubs

connect hosts into a single shared medium to send to the bridge

7
New cards

what are 3 types of bridges

  1. transparent

  2. source-routing

  3. shortest-path


8
New cards

what is the purpose of transparent bridges

keep frame forwarding functionality transparent to hosts

9
New cards

what are the three components of a transparent bridge

  1. spanning tree: of the network to eliminate packet looping

  2. address of a station: LAN over which packets from that station came last

  3. station cache: source address it hears and the IDs of the ports over which the packets were found (host @ port)


10
New cards

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

11
New cards

how does addressing in transparent bridges work? — empty cache

  1. assume tree topology for internet

  2. bridge listens to every packet it receives over any LAN

  3. bridge recieves packet from station

  4. station cache is empty,

    1. bridge builds cache by assigning port as address of station

    2. builds station cache

  5. since cache is empty, flood packet over all ports


12
New cards

how does addressing in transparent bridges work? — station cache has information

  1. packet recieved

  2. station cache updated

  3. bridge looks up its station cache for the destination MAC address in the packet

  4. match found between MAC ID and port

    1. 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

    2. otherwise, forward packet to MAC ID


13
New cards

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

14
New cards

what is an STA

spanning tree algorithm: defines a single spanning tree in the internet where packet flow doesn’t loop — distributed election

15
New cards

how does STA work

  1. elect a single bridge as the root

  2. calculate distance (in hops) on a shortest path to root

  3. elect a designated bridge for each LAN (eg. closest to the root in the LAN)

  4. allow only designated bridge to forward packets to and from its LAN


16
New cards

STA operation: what are HELLOs

messages used to build a tree, sent to all bridges of a LAN

17
New cards

STA operation: what do HELLOs specify

  1. root ID: MAC address of bridge assumed to be the root

  2. cost: length (in hops) of path from bridge to root

  3. transmitting bridge ID: MAC address of bridge sending HELLO


18
New cards

which HELLO do bridges adopt

the smallest hello they here: minimum root ID, smallest distance to root, minimum reporting bridge ID

19
New cards

how do STAs work?

  1. bridge starts by considering itself the proposed root ]

  2. starts election process by sending: HELLO = own ID, 0, own ID

  3. bridge chooses smallest HELLO from neighbors by comparing with its own HELLO: looks at root ID, costs if same, bridge ID

    1. if HELLO is bigger, bridge becomes that LANs designated bridge

  4. root port becomes port to neighbor bridge with smallest HELLO

  5. bridge puts root port and designated ports in forwarding state: puts all other ports in blocking state

  6. bridge composes a new HELLO, over all ports of “larger“ HELLOs adding 1 to the distance to the adopted root

  7. data packets, control packets, and learning of addresses take place over ports in forwarding state in the spanning tree


20
New cards

how do we handle failures in STA

age fields for each HELLO

21
New cards

when is the age of a HELLO incrememented

over each hop and each time limit while in storage

22
New cards

when does a HELLO get discarded

when age reaches a max value

23
New cards

how do roots send HELLOS and with what age

periodicially with 0 age

24
New cards

what happens if a stored HELLO is deleted/recieved from port

redo STA with valid age

25
New cards

what happens if a root/other bridge fails

bridges down tree stop receiving HELLOs originated by root

26
New cards

why might STA have loops

bridges select their root port without an ordering constraint, only based on what it knows currently

27
New cards

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

28
New cards

why might we need to refresh a station cache

tree can change due to link and bridge failures/stations moving slowly

29
New cards

how do we refresh station caches

  1. bridge changes state of port

  2. bridge sends topology change notification (TCN) to “parent bridge“ persistently until it acks with flag in its HELLO

  3. parent bridge receives TCN and forwards to root

  4. if root detects topology change/receives TCN, sets the TCN flag in its own HELLO for a period of time

  5. the HELLOs w/ TCN force bridges to refresh their station cache until TCN is reset