A computer network is a collection of computers and other devices connected together so that they can share resources and exchange information. The devices, called nodes, communicate with each other over a transmission medium such as cables or radio waves, guided by a set of rules known as protocols. Networking is the technology behind everything from a small home Wi-Fi setup to the global Internet, and every student of informatics needs a solid understanding of how these systems are built.
Networks are classified by their geographical reach into PAN, LAN, MAN, and WAN, and by their physical layout into topologies such as bus, star, ring, mesh, and tree. The hardware that builds these networks, including hubs, switches, routers, modems, and gateways, each has a distinct role, and the transmission media that carries the signals, from twisted pair cables to optical fibres and satellite links, differ in speed, cost, and reliability.
This chapter introduces the essential vocabulary and concepts of computer networks. We will study the categories of networks, the characteristics of each topology, the major transmission media, the key network devices, the two principal switching techniques, and the common protocols that govern data exchange. Special attention is paid to choosing the right topology or medium for a given scenario, since such reasoning questions appear regularly in the examination.
2. Network Basics and Terminology
Node: Any device connected to a network, such as a computer, printer, or router.
Server: A computer that provides services or resources to other computers.
Client: A computer that requests services from a server.
Protocol: A set of rules that governs how data is transmitted and received over a network.
Bandwidth: The maximum amount of data that can be transmitted per unit time, measured in bits per second (bps).
Data Transfer Rate: The actual speed of data transmission, typically measured in bps, Kbps, Mbps, or Gbps.
3. Types of Networks
3.1 PAN (Personal Area Network)
A PAN covers the smallest area, typically a few metres, connecting personal devices such as a smartphone, laptop, and wireless earbuds. Bluetooth and infrared are common technologies used to build a PAN.
3.2 LAN (Local Area Network)
A LAN connects computers within a limited geographical area such as a school, office, or building. It is owned by a single organisation, offers high speed, and is relatively inexpensive to set up. A school's computer laboratory is the classic example of a LAN.
3.3 MAN (Metropolitan Area Network)
A MAN spans a city or a large campus, typically tens of kilometres. It connects several LANs, often using optical fibre, and is larger than a LAN but smaller than a WAN. Cable television networks and city-wide Wi-Fi grids are examples.
3.4 WAN (Wide Area Network)
A WAN covers a very large geographical area, possibly a country or the whole world, connecting LANs and MANs across long distances. The Internet is the largest WAN. WANs rely on leased telephone lines, satellites, and optical fibres, and have the lowest speed per connection but the greatest reach.
4. Network Topologies
The arrangement of nodes and connections in a network is called its topology.
4.1 Bus Topology
All nodes are connected to a single backbone cable called the bus. Data travels in both directions along the bus. A break in the backbone disables the whole network, but the cost is low and wiring is simple.
4.2 Star Topology
Every node connects directly to a central device, usually a hub or switch. Data passes through the central device. If one node's cable fails, only that node is affected, but the central device is a single point of failure. The star is the most common LAN topology.
4.3 Ring Topology
Nodes are connected in a closed loop, and data travels in one direction around the ring, passing through each node. Each node regenerates the signal. One failing node can disrupt the entire ring.
4.4 Mesh Topology
Every node is connected to every other node. The mesh provides multiple paths between any two nodes, so it is highly fault tolerant and reliable, but it requires a large number of cables and is expensive. The Internet's core uses a mesh-like structure.
4.5 Tree Topology
A tree combines several star networks connected by a common backbone bus, forming a hierarchy. It is suitable for organisations with departments, but the failure of the backbone affects all connected star segments.
5. Transmission Media
5.1 Wired Media
Twisted Pair Cable: Two insulated copper wires twisted together. It is cheap and easy to install, used in telephone lines and LANs, but vulnerable to interference and limited in bandwidth.
Coaxial Cable: A central copper conductor surrounded by insulation and a braided shield. It carries more data than twisted pair and is used for cable television and older networks.
Optical Fibre: Transmits data as pulses of light through thin glass fibres. It offers extremely high bandwidth, immunity to electromagnetic interference, and long distances, but is expensive and hard to install.
5.2 Wireless Media
Radio Waves: Used by Wi-Fi and cellular networks; signals travel through the air and can cover large areas.
Microwaves: Line-of-sight signals used for point-to-point links such as between buildings or for satellite communication.
Infrared: Short-range, line-of-sight signals used in remotes and PAN devices; they cannot pass through walls.
Satellite Communication: Uses satellites orbiting the Earth to relay signals over very long distances, connecting geographically remote areas.
6. Network Devices
Modem: Modulates and demodulates signals, converting digital data from a computer into analogue signals for transmission over telephone lines and back.
Hub: A simple device that broadcasts incoming data to all connected nodes.
Switch: A smarter version of the hub that sends data only to the intended node, reducing traffic.
Repeater: Regenerates a weak signal so it can travel a longer distance.
Router: Connects two or more networks and directs data packets between them based on IP addresses.
Gateway: Connects networks that use different protocols, translating between them.
7. Switching Techniques
Switching decides how data is routed from source to destination.
Circuit Switching: A dedicated physical path is established between sender and receiver for the entire duration of the call. It is reliable but inefficient because the path stays reserved even when no data flows. The traditional telephone network uses circuit switching.
Packet Switching: Data is broken into packets, each carrying the destination address, and packets travel independently through the network to be reassembled at the destination. It uses bandwidth efficiently and is the technique behind the Internet.
Message Switching: The entire message is stored at intermediate nodes and forwarded when the next link is free (store-and-forward).
8. Common Network Protocols
TCP/IP: The fundamental protocol suite of the Internet. TCP breaks data into packets and ensures reliable delivery, while IP handles addressing and routing.
HTTP / HTTPS: Used by web browsers and servers to transfer web pages; HTTPS adds encryption.
FTP: File Transfer Protocol, used to upload and download files.
SMTP / POP3 / IMAP: Protocols used for sending and receiving email.
Telnet: Allows a user to log in remotely to another computer.
The categories of networks can be represented simply in Python, for example by mapping each network type to its approximate coverage:
network_types = {"PAN": 10, "LAN": 1000, "MAN": 100000, "WAN": 10000000}
for name, meters in network_types.items():
print(name, "covers up to", meters, "metres")
Such a model helps to compare the scale of each network at a glance and reinforces the ordering PAN, LAN, MAN, WAN.
Quick Revision Tables
Table 1: Types of Networks
Type
Area
Example
PAN
A few metres
Bluetooth devices
LAN
A building / campus
School computer lab
MAN
A city
Cable TV network
WAN
Country or world
The Internet
Table 2: Network Topologies and Their Features
Topology
Central Device
Best Feature
Main Disadvantage
Bus
None (backbone)
Cheap, simple
Backbone failure stops all
Star
Hub / Switch
Fault tolerant per node
Central device failure
Ring
None (loop)
Orderly data flow
One node fails the ring
Mesh
None
Highly reliable
Expensive, many cables
Tree
Root backbone
Hierarchical expansion
Backbone failure
Mind Map
graph TD
A["Computer Networks"] --> B["Types"]
A --> C["Topologies"]
A --> D["Transmission Media"]
A --> E["Devices"]
A --> F["Switching"]
A --> G["Protocols"]
B --> B1["PAN, LAN"]
B --> B2["MAN, WAN"]
C --> C1["Bus, Star, Ring"]
C --> C2["Mesh, Tree"]
D --> D1["Twisted pair, Coaxial, Optical fibre"]
D --> D2["Radio, Microwave, Infrared, Satellite"]
E --> E1["Modem, Hub, Switch"]
E --> E2["Repeater, Router, Gateway"]
F --> F1["Circuit switching"]
F --> F2["Packet switching"]
G --> G1["TCP/IP, HTTP, FTP"]
G --> G2["SMTP, POP3, Telnet"]
Important Diagrams (SVG)
Diagram 1: Network Types by Coverage
Diagram 2: Star and Bus Topology Comparison
Common Mistakes
Calling the Internet a LAN; the Internet is a WAN because it spans the entire globe.
Confusing a hub with a switch: a hub broadcasts to all nodes while a switch sends data only to the intended destination.
Believing that ring topology data flows in both directions; in a ring it normally travels in one direction only.
Forgetting that star topology has a single point of failure in its central device, even though it is otherwise fault tolerant.
Using "coaxial cable" when referring to optical fibre's speed advantage, or vice versa; they differ greatly in bandwidth and immunity to interference.
Thinking packet switching needs a dedicated path; that is the feature of circuit switching.
Mixing up LAN, MAN, and WAN by area: LAN for a building, MAN for a city, WAN for a country.
Believing a modem is used in a LAN; it converts digital to analogue for telephone lines, a WAN technology.
Forgetting that a repeater does not route data, it only amplifies or regenerates the signal.
Exam Tips
Practise one-line definitions of PAN, LAN, MAN, and WAN, since 1-mark definition questions are common.
Memorise a pro and a con for each topology so you can answer "which topology and why" questions confidently.
Learn to match scenarios to media: long distance and high speed means optical fibre; short-range device pairing means Bluetooth.
Remember the ordering of network sizes: PAN less than LAN less than MAN less than WAN.
Be able to distinguish circuit switching (telephone) from packet switching (Internet) with one example each.
Know the classic devices by role: modem connects to telephone line, router joins networks, switch directs within a LAN, gateway translates protocols.
In reason-based questions, name the topology first and then justify it with one advantage relevant to the situation described.
Conclusion
Computer networks bring computers together to share data and resources, and a firm grasp of their vocabulary is essential for understanding how the Internet works. Networks are classified by area into PAN, LAN, MAN, and WAN, and by layout into bus, star, ring, mesh, and tree topologies, each with its own trade-offs between cost, reliability, and simplicity. Data travels through twisted pair, coaxial, optical fibre, or wireless media such as radio, microwave, and satellite links, and is directed by devices including modems, hubs, switches, routers, repeaters, and gateways. Packet switching, the technology behind the Internet, and the protocol families such as TCP/IP, HTTP, FTP, and SMTP, define how that data actually moves. Together these ideas prepare the student for the final chapters on the Internet and the Web.