Bridges
Bridges
Bridge LLC
LLC
Bridging is done at MAC level thus operating in the data link layer
To have frame filtering capability , a bridge has to monitor MAC address of
each frame.
Types of Bridges
There are two types of bridges which are
widely used:
◦ Transparent Bridges: These bridges are widely
used in Ethernet LANs
◦ Source Routing Bridges: These bridges are widely
used in Token Ring LANs and FDDI networks
Transparent Bridges
◦ These bridges were defined by the 802.1d committee.
◦ The term transparent refers to the fact that the stations
are completely unaware of the presence of the bridges in
the network
◦ Thus introducing a bridge doesn’t require the stations to
be configured.
◦ Following are the functions of the transparent bridges:
◦ Forward Frames from one LAN to another
◦ Learn which stations are attached to a given LAN
◦ Avoid Loops in the topology
Bridge Learning
When frame arrives on one of the ports of the bridge, the
bridge has to decide whether it has to forward the frame.
To do so it needs to maintain a table called as the forwarding
table or forwarding database
Use table lookup, and
◦ discard frame, if source & destination in same LAN
◦ forward frame, if source & destination in different LAN
◦ use flooding, if destination unknown
Use backward learning to build table
◦ observe source address of arriving LANs
◦ handle topology changes by removing old entries
S1 S2 S3 S4 S5
S4 S3
B1 B2
B3
LAN2
B4
LAN3
B5
LAN4
Spanning Tree
(1) (1)
B1 B2
(2)
B3
LAN2
B4
LAN3
B5
LAN4
Spanning Tree Algorithm
1. Select a root bridge among all the bridges.
• root bridge = the lowest bridge ID.
2. Determine the root port for each bridge except the root bridge
• root port = port with the least-cost path to the root bridge
3. Select a designated bridge for each LAN
• designated bridge = bridge has least-cost path from the LAN to the
root bridge.
• designated port connects the LAN and the designated bridge
4. All root ports and all designated ports are placed into a
“forwarding” state. These are the only ports that are allowed to
forward frames. The other ports are placed into a “blocking”
state.
LAN1
(1) (1)
B1 B2
(1)
(2) (2) (3)
B3
LAN2 (1) (2)
B4
(2)
LAN3 (1)
B5
(2)
LAN4
LAN1
(1) (1)
Bridge 1 selected as root bridge
B1 B2
(1)
(2) (2) (3)
B3
LAN2 (1) (2)
B4
(2)
LAN3 (1)
B5
(2)
LAN4
LAN1
(1) R (1)
B4
(2)
LAN3 R (1)
B5
(2)
LAN4
LAN1
D (1) R (1)
B5
(2)
LAN4
LAN1
D (1) R (1)
B5
(2)
LAN4
Adaptive Learning
In a static network, tables eventually store all
addresses & learning stops
In practice, stations are added & moved all
the time
◦ Introduce timer (minutes) to age each entry &
force it to be relearned periodically
◦ If frame arrives on port that differs from frame
address & port in table, update immediately
Source Routing Bridges
•To interconnect IEEE 802.5 token ring networks.
•Presence of routing information field is indicated by I/G bit source address field.
1= present. 0 indicates destination is in the same LAN.
•Each source station determines route to destination
•Routing information inserted in frame if and only if the two stations are on different
LANs
•The routing control field defines the type of the frame, the length of the routing
information, the direction of route (i.e. L2R or R2L) and the largest frame supported
by the path
•The route designator contains a 12 bit LAN number and a 4 bit bridge number.
Routing Route 1 Route 2 Route m
control designator designator designator
2 bytes 2 bytes 2 bytes 2 bytes
LAN 2 B4 LAN 4
S1
B1 S2
LAN 1
B3 B5 B7
B2 S3
LAN 3 B6 LAN 5
Find routes from S1 to S3
LAN 2 B4 LAN 4
S1
B1 S2
LAN 1
B3 B5 B7
B2 S3
LAN 3 B6 LAN 5
LAN1 B1 LAN2
B4 LAN4
LAN 2 B4 LAN 4
S1
B1 S2
LAN 1 B5
B3 B7
B2 S3
LAN 3 B6 LAN 5
B3
Find the mistake !!
Five LANs are connected using source routing bridges. Assume that the bridges 3 and
4 are not part of the initial spanning tree.
1. show the single route broadcast frames when S1 wants to learn the route to S2
2. Show the path to all routes broadcast frames returned by S2.
3.List all possible routes from S1 to S2 from part (2)
4. How many LAN frames are required to learn the possible routes
1.
2.
3. List all possible routes from S1 to S2 from part (2)
4.