Repeaters, Bridges, Hubs, Switches: Mahadev Gawas
Repeaters, Bridges, Hubs, Switches: Mahadev Gawas
[email protected]
Network hub
2
[email protected]
Hubs connecting segments
3
[email protected]
Bridges
4
Bridges operate at the data link layer (Layer 2) of the OSI model.
[email protected] 5
Bridge interconnecting two identical LANs
[email protected] 6
To determine the network segment a MAC address
belongs to, bridges use one of the following:
7
[email protected]
Disadvantages of network bridges
8
[email protected]
Bridges: traffic isolation
5a-9
[email protected]
Filtering/Forwarding
5a-
10
[email protected]
71:2B:13:45:61:41 71:2B:13:45:61:13
71:2B:13:45:61:42 71:2B:13:45:61:12
1 2
Bridge
71:2B:13:45:61:13
71:2B:13:45:61:41 71:2B:13:45:61:13
LAN 1 LAN 2
Address Port
71:2B:13:45:61:41 1
71:2B:13:45:61:41 1 Forwarding
71:2B:13:45:61:12 2 Table
71:2B:13:45:61:13 2
Bridge example
5a-
12
Suppose C sends frame to D and D replies back with
frame to C.
[email protected]
Spanning Tree
5a-
14
5: DataLink Layer
Frame forwarding
5a-
15
5: DataLink Layer
Address Learning
5a-
16
5: DataLink Layer
Loop of Bridges
5a-
17
5: DataLink Layer
LAN 1
A B
AD
AD
1 1
Address Port Address Port
A 1 Bridge1 Bridge2 A 1
2 2
AD AD
C D
Loops
Loop Resolving
5a-
19
5: DataLink Layer
Spanning Tree Algorithm
5a-
20
5: DataLink Layer
Spanning tree
(a) (b)
5: DataLink Layer
Spanning tree algorithm
5: DataLink Layer
Spanning Tree Algorithm
5a-
23
5: DataLink Layer
Algorithm...
5: DataLink Layer
Example:
A A
B B
B3 B3
C B5 C B5
D B7 D B7
B2 K B2 K
E F E F
B1 B1
G H G H
B6 B6
B4 B4
I I
J J
5: DataLink Layer
Example: working
5: DataLink Layer
Topology Initialization
5a-
27
The bridge adds 1 to the received RPC in the above update and
saves this info.
5: DataLink Layer
Initialization...
5: DataLink Layer
Example:
A A
B B
B3 B3
C B5 C B5
D B7 D B7
B2 K B2 K
E F E F
B1 B1
G H G H
B6 B6
B4 B4
I I
J J
5: DataLink Layer
Bridges vs. Routers
5a-
30
both store-and-forward devices
routers: network layer devices (examine network layer headers)
bridges are link layer devices
routers maintain routing tables, implement routing
algorithms
bridges maintain bridge tables, implement filtering,
learning and spanning tree algorithms
5: DataLink Layer
Repeater
Transport Transport
Network Network
Segment 1 Segment 2
Repeater
Connects two LAN segments
Does not connect two LANs
Repeater forwards all packets
Does not filter the packets
It is a regenerator
It is not an amplifier
Repeater
Amplifier