logo

Routers, switches, hubs, and bridges

These devices are critical components in networking, used to manage and direct traffic between devices in a network. Here’s a brief description of each:


1. Routers

  • Purpose:
    • A router is a device that routes data between different networks. It connects multiple networks (such as a local network to the internet) and forwards data packets between them based on their IP addresses.
    • Routers use routing tables and protocols to determine the most efficient path for data to travel.
  • Key Functions:
    • Traffic management: Routes data packets between devices on different networks.
    • IP addressing: Each device on the network is assigned an IP address, which the router uses to send data to the correct destination.
    • Network segmentation: Routers create separate broadcast domains and prevent broadcast traffic from one network from affecting another.
  • Example Use Case:
    • A router in a home connects the local network (e.g., your computers, phones, etc.) to the internet via an ISP (Internet Service Provider).

2. Switches

  • Purpose:
    • A switch is a device used to connect multiple devices within the same local area network (LAN), such as computers, printers, and servers. It works at the Data Link Layer (Layer 2) of the OSI model.
    • It uses MAC addresses (hardware addresses) to forward data to the correct destination device on the local network.
  • Key Functions:
    • Packet switching: A switch receives incoming data frames, checks the destination MAC address, and forwards the data only to the appropriate device.
    • Full-duplex communication: Unlike hubs, switches allow multiple devices to communicate simultaneously without collisions.
    • Segmentation: Switches create separate collision domains, improving network efficiency.
  • Example Use Case:
    • In a corporate office, a switch connects computers, printers, and other devices, allowing communication within the local network.

3. Hubs

  • Purpose:
    • A hub is a simple networking device that connects multiple devices in a LAN. It works at the Physical Layer (Layer 1) of the OSI model and is used to broadcast data to all devices connected to it.
  • Key Functions:
    • Broadcasting: Hubs receive data from one device and broadcast it to all other devices connected to the hub.
    • Collision domains: Hubs create a single collision domain, meaning if two devices try to communicate at the same time, a collision can occur.
  • Limitations:
    • No filtering: Hubs don’t check the destination of the data, so data is sent to all connected devices, which can lead to network congestion.
    • Low performance: Due to broadcasting and collisions, hubs are less efficient compared to switches.
  • Example Use Case:
    • Hubs are generally obsolete in modern networks but might still be found in older setups, where multiple devices needed to share the same bandwidth.

4. Bridges

  • Purpose:
    • A bridge is a device that connects two or more network segments to form a single network. It operates at the Data Link Layer (Layer 2) and is used to divide large networks into smaller segments.
    • Bridges filter traffic based on MAC addresses and forward traffic only if necessary.
  • Key Functions:
    • Traffic filtering: Bridges examine incoming data and determine whether to forward it to another segment based on the MAC address.
    • Collision domain segmentation: Bridges help in reducing collisions by creating separate collision domains for each network segment.
  • Limitations:
    • Not scalable for large networks: Bridges are not as efficient as routers in managing large networks and often cannot handle as many devices or high traffic as routers can.
  • Example Use Case:
    • A bridge might be used to connect two segments of a network in an office, where they are physically distant from each other, but the goal is to ensure they behave like one large network.

Comparison of Routers, Switches, Hubs, and Bridges

DevicePurposeWorks at LayerUsesBest for
RouterRoutes data between different networksNetwork Layer (Layer 3)Connecting different networks (e.g., LAN to WAN)Internet access, routing traffic between networks
SwitchConnects devices within the same networkData Link Layer (Layer 2)Connecting devices in a LAN, filtering trafficEfficient local networking, reducing collisions
HubBroadcasts data to all devices in a networkPhysical Layer (Layer 1)Simple, old-school network connectionSmall, simple networks (rarely used today)
BridgeConnects different network segments within the same networkData Link Layer (Layer 2)Connecting two network segmentsReducing collision domains, improving performance in smaller networks

logo

বিসিএস, ব্যাংক, শিক্ষক নিয়োগ, পিএসসি ও অন্যান্য চাকরির পরীক্ষার জন্য একটি সহায়ক প্লাটফর্ম।

Contact Us

Email: contact@openexamschool.com


© 2025 Open Exam School. All rights reserved. Developed By Nuton.