Communication Networks · Visualized

Network Devices

Network Basics

What a communication network is, the shapes it can take, and the geographic scales it spans.

4 interactive subtopics — each one animated, step-through and explained.

Network Devices

Network Basics

Every box in a network works at a specific layer, and the layer decides how clever it is. A repeater/hub merely regenerates electrical signals (Layer 1); a bridge/switch learns MAC addresses and forwards frames selectively (Layer 2); a router reads IP addresses and chooses routes between networks (Layer 3). Stacking them builds the internet, one decision level at a time.

How Network Devices Works

  1. Repeater (L1): cleans and re-amplifies a weakening signal — extends cable reach, understands nothing else.
  2. Hub (L1): a multi-port repeater — copies every bit to every port, so all ports share one collision domain.
  3. Bridge/Switch (L2): learns source MACs as frames arrive and forwards only toward the destination port — one collision domain per port.
  4. Router (L3): reads IP headers, consults its routing table, and forwards between different networks; it also blocks broadcasts.
  5. Higher still: gateways/NAT boxes translate addresses, and firewalls filter up to Layer 7.

Network Devices Worked Example

Try it: Send a frame from PC1 and watch how far it travels through each device.

Through a hub the frame floods to every PC — bandwidth is shared. Through a switch only PC2's port lights up — bandwidth is dedicated. At the router, the frame is stripped and a fresh packet is routed toward another network entirely.

PC1PC2SWITCHLayer 2 — learns MACsPC2PC4
frame path unwanted copy (hub) routed onward
Stage 1 / 3
PC1 sends a frame to PC2 through the SWITCH.

Network Devices: Key Facts to Remember

Layersrepeater/hub = L1 · bridge/switch = L2 · router = L3 · gateway = L4–7
Collision domainshub: one for all · switch: one per port · router: also splits broadcast domains
Rememberswitch = smart multi-port bridge; router = protocol-aware path chooser

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses

See how packets really travel

Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.