Labs ICT
โญ Pro Login

Network Devices

Hubs, switches, routers, and the hardware that makes networks work.

The Hardware Behind Networks

Networks don't run on magic โ€” they need physical devices to connect, direct, and manage traffic. Let's look at the key network devices and understand what each one does.

Hub

A hub is the simplest network device. When it receives data on one port, it blindly broadcasts it out all other ports. It doesn't know or care where the data is supposed to go โ€” it just yells "hey everyone, someone said something!"

This is inefficient because every device receives every piece of data, even if it's not intended for them. It's like a megaphone in a crowded room โ€” everyone hears everything, even the conversations meant for someone else.

Hubs are largely obsolete. They've been replaced by switches, which are smarter about directing traffic.

Switch

A switch is a smarter version of a hub. It reads the destination MAC address on each frame and forwards it only to the correct port โ€” the device that's supposed to receive it.

When a switch first powers on, it doesn't know which device is on which port. It learns by observing the source MAC address of incoming frames. Over time, it builds a MAC address table that maps each MAC address to a physical port.

  • How it works: PC1 (MAC AA:AA:AA) sends data to PC3 (MAC CC:CC:CC). The switch looks up CC:CC:CC in its table, finds it's on port 3, and sends the frame only to port 3.
  • Advantage: Only the intended recipient gets the data. Other devices aren't bothered. Network efficiency improves dramatically.

Switches operate at the Data Link Layer (Layer 2) of the OSI model. They're the backbone of every modern LAN.

Router

A router connects different networks together and forwards data between them. While a switch connects devices within the same network (LAN), a router connects different networks (like your home network to the internet).

Routers use IP addresses (not MAC addresses) to make forwarding decisions. They maintain routing tables that tell them the best path to reach each destination network.

  • How it works: When you visit google.com, your router receives the request, looks up the destination in its routing table, and forwards it to your ISP's router. The data then hops through multiple routers across the internet until it reaches Google's servers.
  • Key difference from switch: Switches forward within a network; routers forward between networks.

Access Point (AP)

An access point is a device that allows wireless devices to connect to a wired network. It converts wired Ethernet signals into wireless radio signals (Wi-Fi) and vice versa.

Most home "routers" are actually a combination of a router, switch, and access point all in one box. In enterprise environments, access points are separate devices connected to switches.

Modem

A modem (modulator-demodulator) converts digital data from your computer into analog signals that can travel over phone lines, cable systems, or satellite links โ€” and vice versa. It's the bridge between your home network and your ISP's infrastructure.

When you "connect to the internet," your modem is what establishes that connection with your ISP.

Device Comparison


  Device     โ”‚ Layer    โ”‚ Address Used โ”‚ Purpose
  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Hub        โ”‚ Layer 1  โ”‚ None         โ”‚ Broadcast everything
  Switch     โ”‚ Layer 2  โ”‚ MAC Address  โ”‚ Forward within LAN
  Router     โ”‚ Layer 3  โ”‚ IP Address   โ”‚ Forward between LANs
  AP         โ”‚ Layer 1-2โ”‚ MAC Address  โ”‚ Wireless connectivity
  Modem      โ”‚ Layer 1  โ”‚ None         โ”‚ Connect to ISP

๐Ÿงช Quick Quiz

What is the main difference between a switch and a router?