A computer network is a collection of computers and other devices connected together so that they can share data, software and hardware resources. The Internet itself is the largest network of all, interconnecting billions of devices worldwide. Networks enable email, web browsing, file sharing, online banking, video conferencing and countless other services that have become part of daily life. A network exists because sharing is cheaper and more convenient than duplicating resources on every machine.
Networks are built from hardware components and software rules. The hardware includes network interface cards (NIC), cables, switches, routers and modems. The software rules, called protocols, define how devices communicate, for example how a message is formatted, addressed and checked for errors. Protocols such as TCP/IP, HTTP and FTP make it possible for devices of different makes and operating systems to exchange data reliably.
This chapter explains network advantages and types, the topologies used to connect devices, the transmission media over which signals travel, important network devices, addressing through IP addresses and MAC addresses, the layered reference models, and the protocols that operate at each layer. Network questions in the board examination include definitions, protocol-to-purpose matching, identifying topologies from diagrams, and choosing the right medium for a given scenario.
2. Advantages of Networking
Networking offers several practical benefits. Resource sharing allows multiple users to share expensive hardware such as printers, scanners and storage. Data sharing lets authorised users access files from anywhere on the network. Communication becomes fast through email, chat and video calls. Networks also provide reliability through redundant paths, and they enable centralised backup and security management so data can be protected in one place. In examinations, these advantages are often asked as one-mark definition or benefit questions.
3. Types of Networks
Networks are classified by their geographic span.
PAN (Personal Area Network): Covers a very small area, such as a person's workspace, connecting devices like a phone, laptop and earphones, typically over Bluetooth or a few metres of cable.
LAN (Local Area Network): Connects computers within a limited area such as an office, school or building, using wired Ethernet or Wi-Fi. A LAN offers high speed and low cost.
MAN (Metropolitan Area Network): Spans a city, connecting multiple LANs, such as a city-wide cable network or a university's campus across the city.
WAN (Wide Area Network): Spans countries or continents by connecting many LANs and MANs, typically using leased telecommunication lines or satellite links. The Internet is the largest WAN.
PAN < 10 m (Bluetooth, personal)
LAN building (Ethernet, Wi-Fi)
MAN city (cable operators, campus)
WAN world (Internet)
4. Network Topologies
Topology refers to the arrangement of computers and the connecting cables in a network. The main topologies are:
Star Topology: All computers connect to a central hub or switch. Data travels via the hub. Failure of the hub disables the whole network, but a broken cable affects only one computer. Easy to install and extend.
Bus Topology: All computers connect to a single backbone cable. It is cheap and simple, but a break in the backbone brings down the entire network, and heavy traffic slows it.
Ring Topology: Each computer connects to two neighbours, forming a closed ring. Data circulates in one direction, passing through each computer. A single failure can break the ring unless it is a dual ring.
Mesh Topology: Every computer connects to every other computer. It is highly reliable because multiple paths exist, but it requires a large number of cables and is expensive.
# A simple adjacency matrix for a mesh network of 4 nodes
nodes = ["A", "B", "C", "D"]
adjacency = [[0, 1, 1, 1],
[1, 0, 1, 1],
[1, 1, 0, 1],
[1, 1, 1, 0]]
for i in range(len(nodes)):
for j in range(len(nodes)):
if adjacency[i][j]:
print(nodes[i], "-", nodes[j])
5. Transmission Media
Transmission media is the physical path over which data travels between devices. It is divided into guided media (cables) and unguided media (wireless).
Twisted Pair Cable: Two insulated copper wires twisted together, used in telephone lines and LANs. Inexpensive and easy to install, but vulnerable to interference and limited in distance.
Coaxial Cable: A central copper conductor surrounded by insulation and a braided shield. It carries cable television and was used in early LANs, offering better noise immunity than twisted pair.
Optical Fibre: Thin strands of glass carrying data as pulses of light. It offers very high bandwidth, long distances and immunity to electromagnetic interference, but it is expensive and delicate.
Radio Waves (Wireless): Data travels through the air as electromagnetic waves. Wi-Fi and Bluetooth use radio waves, giving mobility at the cost of possible interference and lower security.
Several hardware devices build and connect networks. Modem (modulator-demodulator) converts digital signals to analogue and back for transmission over telephone lines. Ethernet Card (NIC) provides the physical interface for a computer to join a LAN. Switch connects computers within a LAN and forwards data intelligently to the correct destination based on MAC addresses. Router connects different networks and forwards data between them based on IP addresses; home broadband routers connect the home LAN to the Internet. Repeater regenerates weak signals to extend the distance, and Gateway connects networks that use different protocols.
7. Addressing: IP and MAC
Every device on a network needs an address so that data reaches the correct destination.
IP Address: A logical address used at the network layer to identify a device on a network. IPv4 addresses are 32-bit numbers written as four octets, such as 192.168.1.10. The shortage of IPv4 addresses led to IPv6, a 128-bit address format offering a vastly larger address space.
MAC Address: A physical address burned into the network interface card by its manufacturer. It is a 48-bit (6 byte) hexadecimal number, written like 00:1A:2B:3C:4D:5E, and it uniquely identifies the hardware device on a LAN.
Communication between devices is broken into layers so that each layer handles one aspect of the process. The OSI (Open Systems Interconnection) reference model has seven layers: Physical, Data Link, Network, Transport, Session, Presentation and Application. The TCP/IP model condenses this into four layers: Network Interface (Link), Internet, Transport and Application.
Each layer serves the layer above and uses the layer below. At the sending end, data moves down the layers being wrapped in headers (encapsulation); at the receiving end, it moves up with headers removed (decapsulation). This layered design makes protocols modular and easier to design and maintain.
Layer
Function
Example Protocols
Application
User-facing services
HTTP, FTP, SMTP, DNS
Transport
End-to-end delivery, error control
TCP, UDP
Internet / Network
Addressing and routing
IP, ICMP
Link / Network Interface
Physical frames, MAC addresses
Ethernet, Wi-Fi
9. Protocols
A protocol is a set of rules that governs communication between devices. Key protocols include:
TCP (Transmission Control Protocol): A connection-oriented, reliable protocol that establishes a connection, breaks data into segments, ensures ordered delivery and retransmits lost segments.
UDP (User Datagram Protocol): A connectionless, unreliable but fast protocol with no acknowledgment, suitable for streaming and voice calls where speed matters more than perfect delivery.
IP (Internet Protocol): Handles addressing and routing of packets between networks.
HTTP/HTTPS: Transfers web pages; HTTPS adds encryption via SSL/TLS for secure communication.
FTP (File Transfer Protocol): Transfers files between computers.
SMTP (Simple Mail Transfer Protocol): Sends email.
POP3/IMAP: Receive and manage email from a mail server.
DNS (Domain Name System): Translates domain names like www.example.com into IP addresses.
flowchart TD
A[Computer Networks] --> B[Advantages]
B --> B1[Resource sharing]
B --> B2[Data sharing and communication]
A --> C[Types]
C --> C1[PAN LAN MAN WAN]
A --> D[Topologies]
D --> D1[Star Bus Ring Mesh]
A --> E[Transmission Media]
E --> E1[Guided: twisted, coaxial, fibre]
E --> E2[Unguided: radio waves]
A --> F[Network Devices]
F --> F1[Modem Switch Router Repeater]
A --> G[Addressing]
G --> G1[IP address IPv4 IPv6]
G --> G2[MAC address]
A --> H[Models and Protocols]
H --> H1[OSI 7 layers]
H --> H2[TCP IP model]
H --> H3[HTTP FTP SMTP DNS]
Important Diagrams (SVG)
Diagram 1: Star and Bus Topology
Diagram 2: OSI vs TCP/IP Layers
Common Mistakes
Confusing LAN, MAN and WAN coverage: LAN is a building, MAN a city, WAN a country or the world; PAN is personal area.
Saying the hub failure affects only one computer in a star: The hub (or switch) is the centre; its failure stops the entire star network.
Confusing IP and MAC addresses: IP is logical and can change; MAC is physical, burned into the NIC, and cannot change.
Stating IP as the address on the NIC: The NIC carries the MAC address; the IP is assigned to the interface.
Mixing up TCP and UDP: TCP is connection-oriented and reliable; UDP is connectionless and fast with no guarantee of delivery.
Treating a switch and a router as identical: A switch forwards within one LAN using MAC addresses; a router forwards between networks using IP addresses.
Forgetting the ordering of OSI layers: The seven layers must be memorised in the correct order; top-to-bottom order matters in questions.
Exam Tips
Memorise the OSI 7-layer order using a mnemonic and the TCP/IP 4-layer equivalent.
Know each protocol's one-line purpose: HTTP (web), FTP (files), SMTP (send mail), DNS (name to IP), TCP (reliable), UDP (fast).
Draw star and bus topologies and state which failure is localised to which topology.
Be ready to pick a topology or medium from a scenario: e.g. fibre for long distance high speed, twisted pair for cheap short links.
State the IP versions: IPv4 (32-bit, 4 octets) and IPv6 (128-bit, 16 bytes).
Link protocol to layer: TCP/IP work at transport/internet; HTTP, FTP, SMTP at application.
Give the role of each network device in one sentence for the definition questions.
Conclusion
Computer networks connect devices to share resources, data and communication across any distance. Their types span from personal area networks to the global Internet, and their topologies trade cost against reliability. Signals travel through guided media like twisted pair and optical fibre or through unguided radio waves, carried by devices from modems to routers. Logical IP addresses and physical MAC addresses identify every node, while layered models such as OSI and TCP/IP organise the complex process of communication into manageable functions. Protocols define the exact rules by which all this happens. Together these concepts explain how data moves from one machine to another. The next chapter examines the security aspects of networking, protecting this valuable data from the threats that travel along the same wires and waves.