Routing & Switching

What is a Network? Types, Components and How It Works

G Gurpreet Singh April 2, 2024 7 min read
Animated diagram for What is a Network? Types, Components and How It Works, showing five stack layers from application down to physical with a highlight sweeping through each in turn

A network is two or more devices connected so they can exchange data and share resources. That is the whole definition, the rest is detail about scale, medium and purpose. Two laptops joined by one cable are a network. So is the internet.

What makes a network useful is not the wire, it is the agreement: every device follows the same set of rules (protocols) about how to address, package and acknowledge data. Without that agreement you have devices in the same room, not a network.

Network vs Networking, the Difference

People use these interchangeably and they are not the same:

  • Network, the noun. The interconnected set of devices itself.
  • Networking, the verb. The practice of designing, building, configuring and maintaining that set of devices.

Types of Networks

Networks are classified mainly by geographic scope, and secondarily by purpose.

TypeFull nameTypical reachWhere you see it
PANPersonal Area NetworkA few metresBluetooth earbuds, smartwatch, wireless keyboard
LANLocal Area NetworkOne building or floorHome network, office, school computer lab
WLANWireless LANSame as a LANWi-Fi. It is a LAN, just over radio instead of copper
CANCampus Area NetworkA cluster of buildingsUniversity campus, hospital complex, industrial park
MANMetropolitan Area NetworkA cityMunicipal fibre rings, cable ISP distribution networks
WANWide Area NetworkCountries or continentsCorporate branch connectivity; the internet is the largest WAN
SANStorage Area NetworkData centreBlock-level storage over Fibre Channel or iSCSI
VPNVirtual Private NetworkLogical, not physicalAn encrypted tunnel that makes a remote device behave as if it were on the LAN

One common mix-up: a WLAN is not a separate category from a LAN. It is a LAN whose access layer happens to be wireless. Almost every home network is both, Wi-Fi devices and Ethernet devices sharing one broadcast domain behind the same router.

Components of a Network

ComponentOSI layerWhat it does
NIC (Network Interface Card)1–2Gives a device its physical port and its MAC address. Every networked device has one, wired or wireless.
Hub1Repeats every incoming signal out of every other port. No intelligence, no MAC learning. Effectively obsolete.
Switch2Learns which MAC address lives on which port and forwards frames only where they need to go. The backbone of every modern LAN.
Router3Connects different networks and forwards packets between them using IP addresses. Your home router also does NAT, DHCP and firewalling.
Access Point1–2Bridges Wi-Fi clients onto the wired LAN. In business networks it has a wired uplink; in a home router it is built into the same box.
Modem1Converts the ISP’s signal (DSL, cable, fibre) into Ethernet the router can use. They are long-lived but not permanent, see how long modems last, and the guides to the best modems for Cox and router-modem combos for Xfinity when it is time to replace one.
Firewall3–7Enforces which traffic is allowed between network zones.
ServerA host that provides a service, files, DNS, DHCP, web, email, to other hosts.
Cabling1Twisted pair (Cat5e/6/6a), fibre optic, or coax. Fibre for distance and immunity to interference; copper for everything else.

A typical home network uses exactly three of these: a modem, a combined router/switch/AP, and NICs in each device. An enterprise network separates them into dedicated boxes so each can be scaled independently.

Hub vs Switch vs Router, the Distinction That Matters Most

These three get confused constantly, and the difference is not size or port count:

  • A hub repeats a signal blindly to every port. Everyone hears everything, and two devices talking at once causes a collision. An Ethernet splitter is cruder still, it is not a network device at all.
  • A switch reads the destination MAC address and forwards the frame to that one port. Each port is its own collision domain.
  • A router reads the destination IP address and moves the packet between separate networks. It also stops broadcasts, which a switch does not.

The full breakdown, with the myths corrected, is in Hub vs Switch vs Router.

Network Topologies

Topology is the arrangement of the connections, the shape of the network.

TopologyLayoutStrengthWeaknessStill used?
BusAll devices tap one shared cableCheap, minimal cablingOne cable break kills the whole segment; shared bandwidth; hard to fault-findLegacy only
StarEvery device has its own cable to a central switchOne failed cable affects one device; easy to troubleshoot and extendThe central switch is a single point of failureYes, the standard
RingEach device connects to two neighbours in a loopPredictable, no collisions with token passingA single break splits the ring unless it is dual-ringRare; survives in some metro fibre rings
MeshMany redundant paths between nodesExtremely resilient, traffic reroutes around failuresCabling and configuration cost grows fastYes, WAN cores, wireless mesh, data centre fabrics
Tree / HierarchicalStars linked into layers (access, distribution, core)Scales cleanly to thousands of portsAn upper-layer failure isolates everything below itYes, the enterprise standard

In practice, nearly every modern network is a tree of stars: switches in a star at the access layer, uplinked into a hierarchy, often with a mesh between core devices for redundancy.

Protocols, the Rules Devices Agree On

  • Ethernet (IEEE 802.3), how frames are formatted and moved over wire. Layer 2.
  • Wi-Fi (IEEE 802.11), the same job over radio.
  • TCP/IP, the suite the internet runs on. IP handles addressing and routing; TCP or UDP handles delivery. The pairing of an address and a port is what forms a socket.
  • DHCP, hands out IP addresses automatically so you do not configure each device by hand.
  • DNS, translates names into IP addresses.
  • ARP, maps an IP address to the MAC address on the local segment, caching the result in the ARP table.

The OSI model is the framework that organises all of these into seven layers, and it is worth learning early, most troubleshooting is really the question “which layer is broken?”

Why Networks Exist, the Real Benefits

  • Resource sharing. One printer, one storage array, one internet connection serving many devices instead of one each.
  • Centralised data. One authoritative copy of a file, backed up once, rather than divergent copies on every machine.
  • Communication. Email, VoIP, video conferencing and messaging all depend on the network layer beneath them.
  • Central management. Software deployment, patching, access control and monitoring can be done from one place instead of desk by desk.
  • Cost. Sharing infrastructure is cheaper per user than duplicating it, and that gap widens with scale.

Securing a Network

A network that connects everything also exposes everything, so security is not a bolt-on. The basics:

  • Firewalls control which traffic crosses between zones, internet, internal LAN, guest, servers.
  • Segmentation with VLANs limits how far an intruder can move if one device is compromised.
  • Encryption (WPA3 on Wi-Fi, TLS for web traffic, IPsec for site-to-site links) protects data in transit.
  • Intrusion detection flags traffic patterns that match known attacks.
  • Access control, 802.1X, strong credentials, and least-privilege rules on who reaches what.

Our network security guide covers each of these properly.

Basic Network Troubleshooting

Work bottom-up through the layers, it is faster than guessing:

  1. Physical. Is the cable in? Are the link lights on? Swap the cable before you suspect anything cleverer.
  2. Addressing. Run ipconfig (Windows) or ip addr (Linux). A 169.254.x.x address means DHCP failed.
  3. Local reachability. ping your default gateway. Failure here means the problem is on your own LAN.
  4. Internet reachability. ping 8.8.8.8. If that works but names do not resolve, it is DNS.
  5. Path. tracert / traceroute shows where the path breaks or where latency jumps.

The full command list is in network troubleshooting commands.

Frequently Asked Questions

What is the simplest possible network?

Two devices connected directly by a single cable, each with an IP address in the same subnet. No switch or router required.

Is Wi-Fi a different type of network from a LAN?

No. Wi-Fi is the wireless access method for a LAN. A WLAN and a wired LAN can be, and usually are, the same network.

What is the difference between a LAN and a WAN?

Scope and ownership. A LAN covers one site and you own all of it. A WAN links sites across distance and normally rides on circuits leased from a service provider.

Do I need a switch if I already have a router?

A home router already contains a small switch, that is what the four LAN ports are. You add a separate switch only when you need more ports or want managed features such as VLANs and PoE.

What is the difference between a network and the internet?

The internet is a network, specifically, a global interconnection of millions of independently operated networks that agree to route to each other using BGP.

GU
Written by

Gurpreet Singh

Hey! I"m Gurpreet Singh and I Have 7+ Years of experience in the Network & Security Domain as well as the Cloud Infra Domain. I am Certified with Cisco ( CCNA ), CheckPoint ( CCSA ), 1xAWS, 3xAZURE, and 3xNSE. So I love to share my tech knowledge with you.

Leave a Reply

Your email address will not be published. Required fields are marked *