03.connecting Devices
03.connecting Devices
03.connecting Devices
Connecting Devices
• Allow computers to
communicate over a
telephone line
• Enable communication
between networks or
connecting to the world
beyond the LAN
Here we have a
single collision
domain and a
single
broadcast
domain
A hub is a multi-port repeater, used in star-wired LANs (Ethernet).
Because of the amount of traffic and collisions, hubs can only be
used in small network configurations.
IT2210 Data Communication
Hubs Vs. Repeaters
Hub are different than repeaters in the following:
• The provide network management features by
gathering information about the network and report
them to a monitoring host connected to the hub so
some statistics about the network (bandwidth usages,
collision rates, average frame sizes) can be generated.
• If an adapter is not working the hub can disconnect it
internally and the network will not be affected.
Switch
•When using switches, the network should not contain any loop (there should be
exactly one path from any LAN to any other LAN
•Loops can cause number of frames in the LAN to increase indefinitely
Step 1: Every bridge has an ID. Select the bridge with smallest ID.This is the root
bridge.
Step 2: Mark one port of each bridge (except root bridge) as the root port. Root
port is the port with least-cost path from the bridge to the root bridge (marked with
one star).
Step 3: For each LAN, choose a designated bridge. A designated bridge has the
least-cost path between the LAN and root bridge (the arrows). Mark the
corresponding port that connects the LAN to its designated bridge the designated
port (two stars). IT2210 Data Communication
Forwarding ports and blocking ports
Step 4: Mark the root port and designated port as forwarding ports, the others as
blocking ports (every port with 1 or 2 stars keep, ports with no stars drop).
Note - there is only 1 path between any two bridges.
For any connected graph there is a spanning tree that maintains connectivity
but contains no closed loops
Loops are logically disabled by the minimum spanning tree algorithm
IT2210 Data Communication
Switch Forwarding Methods
Net B
Net A Net C
Router
A flat
Net D
network
IT2210 Data Communication
What does VLAN do?
Create smaller broadcast domains by grouping
users according to
• Location
• Department
• etc
Improve security by preventing anyone in the
same LAN from monitoring the network traffic
(eavesdropping)
Receive
Receive
Receive
Router Switch
Receive
Receive
Switch
BROADCAST
Switch
RECEIVE
Switch
BROADCAST
Routers
Console
RJ45 USB
Ports
Two 4 GB flash card slots Console
USB Type B
Route source – Identifies how the network was learned by the router.
• Layer-3 switches operate in both layer 2 (data link layer) and 3 (network
layer)
• Can perform both MAC switching and IP routing
• A combination of switch and router
There is a need of an access point that bridges wireless LAN traffic into the wired
LAN.
The access point (AP) can also act as a repeater for wireless nodes, effectively
doubling the maximum possible distance between nodes.