beginner

Network Devices, Topologies and Cabling

The building blocks you can touch: hubs, switches, routers, firewalls, access points and servers; star, bus, ring, mesh and hybrid topologies; copper and fibre cabling with distance limits; PoE; and the difference between collision and broadcast domains. Then count broadcast and collision domains in a small network.

45 min

1. What you will learn

A network is built from a small set of device types joined by cables or radio. Knowing what each device does, and at which layer, lets you read any network diagram and predict what traffic will do. This lesson names the devices, shows how they are arranged (topologies), covers the common cable types and their limits, and explains two ideas that come up constantly: collision domains and broadcast domains.

2. The devices

Device Layer What it does
Network interface card (NIC) 1 and 2 Connects a computer to the network; has a MAC address
Hub 1 Repeats incoming bits out of every other port. No intelligence; obsolete
Switch 2 Learns which MAC address lives on which port and forwards frames only where needed
Layer 3 switch 2 and 3 A switch that can also route between VLANs/subnets at high speed
Router 3 Connects different networks, chooses paths using IP addresses, and separates broadcast domains
Firewall 3 to 7 Permits or blocks traffic by policy (addresses, ports, applications, users)
Wireless access point (AP) 1 and 2 Bridges wireless clients onto the wired network
Wireless controller management Configures and coordinates many APs
Modem / ONT 1 Converts between the provider’s medium (cable, DSL, fibre) and Ethernet
Load balancer 4 to 7 Spreads requests across several servers
Server, client, printer, camera, phone end devices The things the network exists to connect

Home “routers” combine several roles in one box: a router, a small switch, a wireless access point, a firewall and a DHCP server.

3. Collision and broadcast domains

A collision domain is the set of devices whose transmissions can interfere with each other. On a hub, every device shares one collision domain, so only one can talk at a time (half duplex, with CSMA/CD). Each switch port is its own collision domain, and modern full-duplex links have no collisions at all.

A broadcast domain is the set of devices that receive a broadcast frame (destination ffff.ffff.ffff) sent by any member. Hubs and switches forward broadcasts, so everything connected through them is one broadcast domain. A router does not forward broadcasts, so it splits the network into separate broadcast domains, one per router interface. VLANs (next lessons) divide a switch into several broadcast domains.

Why it matters: large broadcast domains waste bandwidth and CPU on every host (ARP, DHCP, discovery protocols), so networks are divided into subnets and VLANs of a sensible size.

4. Topologies

A topology describes how devices are connected. The physical topology is the cabling; the logical topology is how data flows.

  • Star / extended star (tree): every device connects to a central switch; switches connect to a core. The standard for wired LANs: easy to manage, a cable fault affects one device. The central switch is a single point of failure unless duplicated.
  • Bus: all devices share one cable (old coaxial Ethernet). A break stops everyone. Obsolete.
  • Ring: each device connects to two neighbours (Token Ring, FDDI, and some metro fibre rings, which use fast protection switching).
  • Full mesh: every node connects to every other. Maximum redundancy and cost: n(n-1)/2 links.
  • Partial mesh: extra links where they matter most. Typical for WANs and data-centre cores.
  • Hub and spoke: branch sites connect to a head office. Simple and cheap; the hub is a bottleneck and single point of failure.
  • Point to point: a dedicated link between two sites.
  • Hybrid: real networks mix the above; the common enterprise design is a three-tier (access, distribution, core) or a collapsed core for smaller networks, and spine-leaf in data centres.

Redundancy is a design choice: two uplinks to two switches costs more but removes single points of failure.

5. Cabling and distance limits

Medium Typical standard Speed Max length
Cat5e twisted pair 1000BASE-T 1 Gbps 100 m
Cat6 1000BASE-T / 10GBASE-T 1 to 10 Gbps 100 m (10G up to about 55 m)
Cat6A 10GBASE-T 10 Gbps 100 m
Multimode fibre (OM3/OM4) 10GBASE-SR 10 Gbps 300 to 400 m
Single-mode fibre (OS2) 10GBASE-LR 10 Gbps and up 10 km and far beyond with better optics
Coaxial cable broadband shared provider network
Wireless Wi-Fi varies tens of metres indoors
  • Straight-through cables connect unlike devices (PC to switch); modern ports use auto-MDI/MDIX, so you rarely need crossover cables.
  • Copper is cheap and powers devices over PoE; fibre has long reach, high speed and immunity to electrical interference.
  • Respect bend radius, avoid running data cable beside power cable, label both ends, and test links.
  • PoE (802.3af 15.4 W, 802.3at 30 W, 802.3bt up to 90 W) powers phones, cameras and access points from the switch, so budget the switch’s total power.

6. Reading a network diagram

When you see a diagram, ask: where are the routers (each separates broadcast domains)? Which links are trunks to other switches? Where does the internet connection enter, and is there a firewall? What is redundant, and what would cause an outage if it failed? Standard symbols: a cloud for the internet or provider, a cylinder-like shape for a switch, a circle with arrows for a router, a brick wall for a firewall.

7. Hands-on: count the domains

Devices are described as {name: kind} with kinds host, hub, switch, router; links are pairs of names.

  • broadcast_domains(devices, links) returns the number of broadcast domains: group devices connected through hosts, hubs and switches; routers separate groups and are not counted themselves.
  • collision_domains(devices, links): every link between two non-hub devices is its own collision domain; all hubs joined together, with everything plugged into them, share one collision domain.
  • max_cable_m(kind) returns the usual maximum for cat6 (100), om4_10g (400) and os2_lr (10000).
Count broadcast and collision domains — Python 3
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT
Replacing a hub with a switch in a small office makes the network noticeably faster. Why?

The hub put every device in one shared collision domain, so only one could transmit at a time and collisions wasted bandwidth. The switch learns MAC addresses and forwards each frame only to the destination port, gives every port its own collision domain and full-duplex capacity, so many conversations happen at once. The broadcast domain is unchanged, because switches still forward broadcasts.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Explain collision domains versus broadcast domains and which devices create each boundary.
  • Describe why the star topology dominates wired LANs and how you would add redundancy.
  • List the maximum lengths for Cat6 copper and single-mode fibre and what to do when a run is too long.

8. Key takeaways

  • Hubs repeat, switches forward by MAC, routers forward by IP and split broadcast domains, firewalls enforce policy, access points add wireless.
  • Each switch port is a collision domain; a router interface is a broadcast domain boundary.
  • Wired LANs are star/extended-star networks; WANs use hub-and-spoke or meshes; data centres use spine-leaf.
  • Twisted pair stops at 100 m; use fibre for distance and PoE to power edge devices.
  • Redundancy is a design decision: duplicate the links and devices whose failure you cannot accept.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Network Devices, Topologies and Cabling. What would you like to know?
📝

Knowledge Check

1 of 4

Which device separates broadcast domains?

Report a problem

About: /lessons/network-devices-topologies-and-cabling