Cyber Services / All lessons / Diploma in Network Technology / Roles of Routers, Switches, Hubs & WAPs

Roles of Routers, Switches, Hubs & WAPs

Module 6 of 36 · 3 min read · Free to read

MODULES ↓ Command blocks have a COPY button

Your Gateway to a Career in Network Engineering

Roles of Routers, Switches, Hubs, and Wireless Access Points

If a network is like a city's road system, then its hardware devices are the intersections, traffic lights, and on-ramps that control the flow of traffic. Understanding the specific role of each device is fundamental to building and troubleshooting any network. Each piece of hardware operates at different layers of the OSI model and makes decisions based on different information.

Hub - The Unintelligent Repeater

The hub is the most basic and least intelligent of all network devices. Its only job is to take a signal that comes in on one port and regenerate it out of every other port, regardless of the destination.

  • OSI Layer: Layer 1 (Physical Layer). It only understands electrical signals (bits), not addresses.
  • How it Works: It acts as a simple multiport repeater. This creates a single, large collision domain, meaning if two devices talk at the same time, their data collides and becomes corrupted.
  • Status: Obsolete. Hubs have been almost entirely replaced by switches due to their inefficiency and inability to handle modern network traffic.

Switch - The Intelligent LAN Director

A switch is a much more intelligent device that is the foundation of most modern Local Area Networks (LANs). Unlike a hub, a switch learns which devices are connected to which of its ports and forwards traffic intelligently.

  • OSI Layer: Layer 2 (Data Link Layer). It makes decisions based on physical MAC Addresses.
  • How it Works: A switch builds and maintains a MAC address table. When a frame arrives, the switch reads the destination MAC address and forwards the frame *only* to the port where the destination device is located.
  • Key Benefit: Each port on a switch is its own separate collision domain. This dramatically reduces network congestion and improves performance compared to a hub.

Router - The Gateway Between Networks

While a switch is designed to connect devices on the *same* network, a router is designed to connect *different* networks together. It's the device that allows you to connect your local office network to the internet.

  • OSI Layer: Layer 3 (Network Layer). It makes decisions based on logical IP Addresses.
  • How it Works: A router maintains a routing table, which is a map of different networks. When a packet arrives, the router inspects the destination IP address and uses its routing table to determine the best path to forward the packet toward its final destination network.
  • Key Benefit: Routers create a boundary for broadcasts. They do not forward broadcast traffic, which is essential for segmenting networks and preventing broadcast storms.

Wireless Access Point (WAP) - The Wireless Bridge

A Wireless Access Point (WAP) allows wireless-capable devices (like laptops and smartphones) to connect to a wired network. It acts as a bridge between the wireless world and the wired Ethernet world.

  • OSI Layer: Operates at both Layer 1 (radio frequencies) and Layer 2 (MAC addresses).
  • How it Works: A WAP takes wireless signals (IEEE 802.11) and converts them into wired Ethernet frames (IEEE 802.3), and vice versa. It essentially functions like a switch for wireless clients.
  • Important Note: The "wireless router" found in most homes is actually a combination device that includes a router, a switch, and a WAP all in one box.

Summary: Device Roles at a Glance

Device Primary OSI Layer Decision Based On Function / Scope Key Analogy
Hub Layer 1 (Physical) Nothing (repeats all signals) Connect devices in a single segment (inefficiently). A simple megaphone.
Switch Layer 2 (Data Link) MAC Address Connect devices on the same network (intelligently). A local post office sorting mail for one zip code.
Router Layer 3 (Network) IP Address Connect different networks together. A regional post office directing mail between cities.
WAP Layer 1 & 2 MAC Address Bridge wireless devices to a wired network. An on-ramp to the network highway for wireless cars.
Modules (36) ← Diploma in Network Technology