MarzleyTech Learn

Home / Learn / Networking / What is a computer network? Types, devices, topologies, models of sharing and speed explained

What is a computer network? Types, devices, topologies, models of sharing and speed explained

A network is two or more devices connected so they can share data and resources: files, printers, an internet connection, a school management system or an M-Pesa till. Your phone on Wi-Fi at a café, the computers in a cyber, the CCTV cameras in a supermarket and the servers behind Safaricom, KRA's iTax and your bank are all parts of networks. The internet itself is a network of networks: millions of them connected together.

Networking is the foundation for almost every IT career: network and system administration, cybersecurity, cloud, telecoms, and even software development (every app talks over a network). This first unit gives you the vocabulary and big picture you'll build on in every later lesson.

Why do we need networks?

NeedExample
Share resourcesOne printer or internet line for a whole office
Share dataA school's student records accessed from every staff computer
CommunicateEmail, WhatsApp, video calls, VoIP phones
Centralise and back upFiles stored on a server instead of 30 separate laptops
Run business systemsPoint-of-sale tills, M-Pesa, banking, hospital records, KRA eTIMS
Remote accessWorking from home, managing a server in another city

Without networks, every computer would be an island and data would move on flash disks.

Who uses networks, and where?

  • Homes: a Wi-Fi router connecting phones, TVs and laptops to a fibre or 4G/5G internet line.
  • Schools and universities: computer labs, staff networks, campus Wi-Fi, e-learning systems.
  • Businesses: offices, supermarkets with tills and CCTV, banks linking branches, factories with sensors.
  • Hospitals: patient records, lab machines and imaging systems.
  • Government: eCitizen, KRA, county offices, the National Optic Fibre Backbone (NOFBI).
  • Internet service providers (ISPs): Safaricom, Airtel, Zuku, Faiba and others running huge networks of fibre, towers and data centres.
  • Data centres and cloud: thousands of servers connected by high-speed switches.

Types of networks by size

TypeCoversExample
PAN (Personal Area Network)A few metresPhone to Bluetooth earphones or a smartwatch
LAN (Local Area Network)A room, building or campusA school's computer lab, an office floor
WLAN (Wireless LAN)Same as LAN, over Wi-FiHome or café Wi-Fi
CAN (Campus Area Network)Several buildings on one siteA university campus
MAN (Metropolitan Area Network)A cityA fibre ring linking a company's branches across Nairobi
WAN (Wide Area Network)Countries and continentsThe internet; a bank linking all its branches countrywide

Two more terms you'll meet:

  • SAN (Storage Area Network): a fast network connecting servers to shared storage in data centres.
  • VPN (Virtual Private Network): an encrypted "tunnel" that makes a remote device or branch act as if it were on the private network (covered in the firewalls and VPN lesson).

The devices you will meet

DeviceJobWorks with
RouterConnects different networks and decides where traffic goesIP addresses (layer 3)
SwitchConnects devices inside one LANMAC addresses (layer 2)
Access point (AP)Lets Wi-Fi devices join a wired networkRadio + Ethernet
Modem / ONTConverts the provider's signal (fibre, DSL, cable, 4G/5G)ISP connection
FirewallFilters traffic to keep attackers outRules about addresses and ports
ServerProvides a service: website, files, email, databaseAny
ClientUses a service: your laptop's browser, a phone appAny
Hub (old)Repeats every signal to every portReplaced by switches

Home "routers" from Safaricom, Zuku, Airtel or Faiba are usually modem/ONT + router + switch + access point + firewall in one box. In offices these are usually separate devices so each can be bigger and better managed.

Media: how the signal travels

MediumTypical useNotes
Copper twisted pair (Cat5e, Cat6)Office and home wiringUp to 100 m per run; RJ45 connectors
Fibre opticISP lines, building backbones, long distancesLight signals; very fast; immune to electrical interference
Wireless (Wi-Fi)Laptops, phonesConvenient; affected by walls and interference
Mobile (4G/5G)Phones, MiFi routers, rural sitesCoverage-dependent
Microwave and satelliteRemote areas, backhaul linksLong distances without cables

The devices and cables lesson covers these in detail.

Network topologies

The topology is the shape of the network: how devices are connected.

TopologyShapeProsCons
StarEvery device connects to a central switchEasy to add devices; one cable failing affects only one deviceThe central switch is a single point of failure
BusAll devices share one cableCheap (old networks)One break takes everything down
RingEach device connects to two neighboursPredictable; used in some fibre networksA break can disrupt the ring (unless it's a dual ring)
MeshDevices have many links to each otherVery reliable; many pathsExpensive, complex
HybridA mixFits real buildingsMore planning

Real networks are usually hybrids: a star in each office, connected by a ring or partial mesh of fibre between buildings.

Physical vs logical topology: the physical topology is how cables run; the logical topology is how data actually flows. Wi-Fi looks like a star physically (everyone to the AP) but devices share the same radio channel.

Client–server vs peer-to-peer

Client–serverPeer-to-peer (P2P)
HowCentral servers provide services; clients request themEvery computer can share with every other
Best forBusinesses, websites, schools2–5 computers at home, file sharing apps
Security and backupCentralised, easierEach machine managed separately
CostNeeds servers and adminCheap to start

Speed and quality words

TermMeaningExample
BandwidthMaximum data per second100 Mbps (megabits per second)
ThroughputSpeed you actually get70 Mbps on a 100 Mbps line
LatencyTime for a message to arrive, in milliseconds (ms)20 ms to a Nairobi server, 150+ ms to a US server
JitterVariation in latencyCauses choppy video calls
Packet lossShare of data that never arrives1–2% loss makes calls break up

Bits vs bytes: 8 bits = 1 byte. Internet packages are sold in Mbps (megabits), but downloads show MB/s (megabytes). Divide by 8:

Python · runs live in the interactive lesson
for mbps in [10, 20, 40, 100, 1000]:
    print(f"{mbps} Mbps package -> about {mbps / 8:.1f} MB/s at best")

size_gb = 4                       # a 4 GB movie
speed_mbps = 20
seconds = size_gb * 1000 * 8 / speed_mbps
print(f"Downloading {size_gb} GB at {speed_mbps} Mbps takes about {seconds / 60:.0f} minutes")

How a request travels: opening a website

When you type www.example.co.ke on your phone:

  1. Your phone is connected to the Wi-Fi access point (wireless LAN).
  2. It asks a DNS server for the website's IP address.
  3. It sends the request to its default gateway (the home router).
  4. The router forwards it to your ISP, which routes it across many routers and fibre links (the WAN/internet) to the web server's data centre.
  5. The server replies; the reply travels back the same way, possibly through different routes.
  6. All of this usually takes well under a second.

Each later lesson zooms into one part of this journey: addresses, DNS, routing, switching, Wi-Fi and security.

Careers that use networking

Network technician, network administrator/engineer, systems administrator, NOC (network operations centre) engineer at an ISP, cybersecurity analyst, cloud engineer, field engineer installing fibre and CCTV, IT support officer. Certifications like CompTIA Network+ and Cisco CCNA are covered in the careers lesson.

Think about it: A small hotel in Naivasha has a reception PC, a manager's laptop, a printer, 8 CCTV cameras and guest Wi-Fi. Which devices would the network need, and what topology is most likely?Show answer

An ISP modem/ONT, a router with a firewall, a switch (ideally PoE to power cameras), one or more Wi-Fi access points (with a separate guest network), and the end devices. Physically it would be a star (everything cabled to the switch), with Wi-Fi as wireless stars around each AP.

Summary

  • A network connects devices to share data and resources; the internet is a network of networks.
  • By size: PAN, LAN/WLAN, CAN, MAN, WAN; plus SAN and VPN.
  • Routers join networks, switches connect devices in a LAN, APs add Wi-Fi, modems/ONTs connect to the ISP, firewalls filter traffic.
  • Topologies: star (most common), bus, ring, mesh, hybrid; client–server vs peer-to-peer.
  • Bandwidth is the maximum, throughput is what you get, latency is delay; divide Mbps by 8 for MB/s.

Check yourself

  1. Which device connects different networks, for example your home network to the internet?

    Show answer

    router

  2. Which device connects computers inside the same LAN?

    Show answer

    switch

  3. A computer lab in one school building is which type of network (PAN, LAN, MAN or WAN)?

    Show answer

    LAN

  4. Which topology connects every device to one central switch?

    Show answer

    star

  5. About how many megabytes per second can a 40 Mbps connection download at best?

    Show answer

    5 · Divide megabits by 8.

  6. What is the variation in latency that makes calls choppy called?

    Show answer

    jitter

Learn more: Cloudflare Learning Center: What is a LAN? · Cisco Networking Academy (free courses)

Lesson 1 of 24 in Networking · Printable course notes