This chapter explains the fundamentals of computer networks, including how data communication works, the roles of key protocols like TCP/IP, DNS, and DHCP, common network topologies, and the seven layers of the OSI model. It also covers how firewalls and encryption protect networks from unauthorized access.
Chapter Introduction
What this chapter is about, and why it matters
A network is what happens when computers stop being islands. Everything in this chapter exists to answer one question: how does a piece of data get from one machine to another, correctly and securely, when the two machines may be on opposite sides of the world and were built by different companies?
The answer is agreements — protocols. Nobody owns the internet, so it only works because every device follows the same published rules. The OSI model is the map of those rules, and it is worth learning properly because it turns "the internet is broken" into a question you can actually answer: which layer failed?
Topologies and the OSI model are heavily examined and easy to revise from a diagram. Draw each topology once by hand — the advantages and disadvantages become obvious from the picture rather than something you have to memorise.
What You Will Learn
The skills this chapter is assessed on
1Explain how data communication works and name its essential components.
2Describe the purpose of TCP/IP, HTTP, FTP, DNS and DHCP.
3Compare bus, star, ring and mesh topologies, including one advantage and one disadvantage of each.
4List the seven layers of the OSI model in order and state what each layer is responsible for.
5Explain how firewalls and encryption protect a network, and why they solve different problems.
Key Concepts Explained
9 core ideas — each with its definition and a separate worked example
1.Computer network
Definition
A computer network is a collection of two or more computing devices connected together by a transmission medium so they can exchange data and share resources.
Example
A school computer lab where thirty machines share one printer and one internet connection is a network. The sharing is the point — without it you would need thirty printers.
2.Protocol
Definition
A protocol is an agreed set of rules that governs how data is formatted, transmitted, received and acknowledged between devices on a network.
Example
Two people on a phone call follow an unwritten protocol: one speaks while the other listens, and "hello?" means "confirm you can hear me". HTTP does the same job for browsers — it defines exactly how a request for a page is written and what a valid reply looks like.
Detailed Explanation
Protocols matter because the devices at each end are usually made by different companies and run different software. The rules are the only thing they have in common.
3.TCP/IP
Definition
TCP/IP is the core protocol suite of the internet. IP (Internet Protocol) handles addressing and routing so data finds the right destination, while TCP (Transmission Control Protocol) breaks data into packets, checks they all arrive, and reassembles them in the correct order.
Example
Sending a large photo is like posting a book one page at a time. IP is the address on each envelope. TCP numbers the pages, notices that page 7 never arrived, asks for it again, and puts the book back together in order at the other end.
Detailed Explanation
Splitting the job in two is deliberate. IP alone is fast but unreliable — it will happily lose packets. TCP adds the reliability on top, which is why some applications such as live video deliberately skip TCP: for them, a dropped frame matters less than a delay.
4.DNS (Domain Name System)
Definition
DNS is the internet service that translates human-readable domain names into the numeric IP addresses that computers use to locate each other.
Example
You type iklearning.com. Your device asks a DNS server for the matching IP address, receives something like 192.0.2.10, and only then can it connect. It is the phone book of the internet — you remember the name, it supplies the number.
5.DHCP (Dynamic Host Configuration Protocol)
Definition
DHCP is a protocol that automatically assigns an IP address and other network settings to a device when it joins a network.
Example
When your phone connects to school Wi-Fi it does not ask you to type an IP address — the DHCP server hands it one from a pool, lends it for a fixed period, and takes it back when you leave so another device can use it.
Detailed Explanation
Without DHCP, someone would have to assign every address by hand and keep a register to prevent two devices claiming the same one. On a network of hundreds of phones that is impossible.
6.Network topology
Definition
A network topology is the arrangement of the devices, cables and connections that make up a network — that is, its physical or logical shape.
Example
In a star topology, every computer has its own cable running to a central switch. Unplug one computer and the rest carry on. In a bus topology, all devices share one backbone cable — break that cable and the entire network goes down.
Detailed Explanation
Almost every real office and school network today is a star, because the cost of extra cable is trivial compared with the cost of one fault taking down the whole building. Ring and bus survive mainly in exam questions and older industrial systems.
7.The OSI model
Definition
The OSI (Open Systems Interconnection) model is a seven-layer reference framework that describes how data moves through a network, with each layer providing a specific service to the layer above it.
Example
Sending a message travels down the layers on your device and back up on the receiver's: Application (the chat app) → Presentation (encryption and formatting) → Session (keeping the conversation open) → Transport (splitting into packets) → Network (addressing and routing) → Data Link (framing for the local link) → Physical (the actual electrical or radio signal).
Detailed Explanation
The value of the model is fault isolation. If your Wi-Fi icon is missing, the problem is Physical or Data Link. If Wi-Fi is connected but no site loads, suspect Network or DNS. If one site fails and everything else works, look at Application. Naming the layer narrows the search enormously.
8.Firewall
Definition
A firewall is a security system that monitors incoming and outgoing network traffic and allows or blocks it according to a set of configured rules.
Example
A school firewall may allow web traffic on port 443 but block online gaming ports entirely. The traffic physically reaches the school's router; the firewall simply refuses to pass it on.
9.Encryption
Definition
Encryption is the process of converting readable data (plaintext) into an unreadable form (ciphertext) using an algorithm and a key, so that only someone holding the correct key can read it.
Example
The padlock beside a web address means the connection is encrypted with HTTPS. Someone intercepting the Wi-Fi traffic still captures the data — but what they capture is unreadable noise rather than your password.
Detailed Explanation
A firewall and encryption are not alternatives; they defend against different attacks. A firewall decides who may connect. Encryption decides who can understand the data once it is moving. A network needs both, because a firewall cannot protect data that has already left it.
Where This Is Used in Real Life
The same ideas, outside the syllabus
Diagnosing "the internet is down" with the OSI model
Work upward. Is the cable in and the light on (Physical)? Does the device have an IP address (Network/DHCP)? Can it reach a numeric IP but not a domain name (DNS)? Each answer eliminates layers, which is far faster than restarting the router and hoping.
Why public Wi-Fi is risky
On an open network anyone nearby can capture the traffic. HTTPS encryption is what makes that capture worthless. This is the practical reason to check for the padlock before entering a password on a café network.
Star topology in your home
Your home router is the centre of a star. Every phone, laptop and TV has its own independent link to it, which is why one device crashing never disconnects the others.
Common Mistakes to Avoid
Errors that cost marks in this chapter, and the correction for each
Mistake
Describing DNS as something that "connects you to a website".
Correct Approach
DNS only translates a name into an IP address. The connection itself is made afterwards by TCP/IP. Confusing lookup with connection is a common definition error.
Mistake
Listing the OSI layers in the wrong order or missing one out.
Correct Approach
There are exactly seven, bottom to top: Physical, Data Link, Network, Transport, Session, Presentation, Application. Use a mnemonic and always say which direction you are listing them in.
Mistake
Saying a firewall encrypts data.
Correct Approach
It does not. A firewall filters traffic against rules; encryption scrambles the content. Two different jobs, two different marks.
Mistake
Claiming a star topology has no single point of failure.
Correct Approach
It has one: the central switch or hub. Its advantage is that a single *device or cable* failure does not affect the others — that is not the same claim.
Mistake
Treating TCP and IP as one protocol doing one job.
Correct Approach
IP addresses and routes; TCP segments, checks and reorders. Questions frequently ask for the difference, so keep the two roles separate in your notes.
Exam Preparation Tips
Technique specific to this chapter
Topology questions almost always ask for one advantage AND one disadvantage. Prepare both for all four topologies — half an answer scores half the marks.
Learn an OSI mnemonic and write it in the margin before you start the question, then label each layer from it.
When comparing protocols, structure the answer as "purpose, then example of use". It reads as a complete answer rather than a list.
Draw topology diagrams even when the question does not require one. A clear labelled sketch often earns a mark by itself.
If a question asks how to secure a network, mention both access control (firewall) and confidentiality (encryption). Most answers mention only one.
Quick Revision Summary
The whole chapter in one screen — read this the night before
A network = two or more connected devices sharing data and resources.
A protocol = the agreed rules for communication.
IP = addressing and routing. TCP = packets, error checking, reassembly.
DNS = domain name → IP address. DHCP = automatic IP assignment.
Topologies: bus (one backbone), star (central switch), ring (loop), mesh (many paths).
Star is the most common; its weak point is the central device.
OSI layers 1→7: Physical, Data Link, Network, Transport, Session, Presentation, Application.
Firewall = controls who may connect. Encryption = controls who can read.
HTTPS = HTTP carried over an encrypted connection.
Glossary of Terms
Words used in this chapter, defined plainly
Packet
A small block of data sent across a network, carrying its own address information.
IP address
A numeric label uniquely identifying a device on a network.
Bandwidth
The maximum amount of data a connection can carry per second.
Plaintext
Readable data before encryption.
Ciphertext
Scrambled data after encryption.
Switch
A device that forwards data only to the specific device it is addressed to.
Router
A device that forwards data between different networks.
Practice Questions
Now test yourself on the concepts above. Collapse the answers to make it a real practice run.
Multiple Choice Questions with Explanations
9 MCQs — pick an option to check yourself, then read why the answer is right
1The main goal of computer networks is:
Correct answer: B — Enable resource sharing and data communication
Computer networks mainly exist to enable resource sharing and data communication between devices.
2Which device connects multiple networks and directs data packets between them?
Correct answer: C — Router
A router connects different networks and directs data packets to their destinations using routing tables.
3Which layer of the OSI model handles node-to-node data transfer and error detection?
Correct answer: B — Data Link Layer
The Data Link Layer handles error detection/correction and node-to-node data transport.
4The Domain Name System (DNS) functions to:
Correct answer: B — Translate domain names to IP addresses
DNS converts human-readable domain names (like www.example.com) into IP addresses.
5Which method of data transmission uses a dedicated communication path?
Correct answer: B — Circuit Switching
Circuit switching sets up a dedicated communication path for the duration of the transmission.
6Which protocol handles reliable data transfer in the TCP/IP model?
Correct answer: C — TCP
TCP (Transmission Control Protocol) ensures reliable, ordered data transfer.
7The main purpose of a firewall in network security is to:
Correct answer: B — Monitor and control network traffic
A firewall monitors and controls incoming and outgoing network traffic based on security rules.
8Which network topology connects all devices to a central hub?
Correct answer: D — Star
In a Star topology, every device connects to a central hub or switch.
9What is a key benefit of using computer networks in businesses?
Correct answer: B — Enable resource sharing and efficient communication
Networks let businesses share resources and communicate efficiently across departments and locations.
Short Questions with Answers
10 short-answer questions
Data communication is the exchange of data between a sender and a receiver over a communication medium, allowing information to travel in the form of text, audio, video, or other formats.
The key components of data communication are:
- Message: Information being communicated.
- Sender (Source): Device that sends the message.
- Receiver (Destination): Device that receives the message.
- Transmission Medium: Path through which data travels (wired or wireless).
- Protocol: Set of rules governing data communication.
Routers connect different networks and direct data packets to their destinations by working out the best path using routing tables. They ensure data is delivered across networks efficiently and accurately.
The Network Layer is responsible for:
- Data transfer between different networks.
- Working out the best path for data (routing).
- Handling addressing using IP addresses to deliver packets from source to destination.
DHCP automatically assigns IP addresses to devices on a network, simplifying network management and letting devices communicate without manual configuration.
- TCP (Transmission Control Protocol): Reliable, connection-oriented, makes sure all data packets are delivered in order.
- UDP (User Datagram Protocol): Fast, connectionless, doesn't guarantee delivery or order, suitable for streaming or gaming.
Encryption turns data into a secure format so that only authorized users can read it. It protects sensitive information, maintains privacy, and blocks unauthorized access during transmission.
Star topology is a network layout where all devices (nodes) connect to a central device, such as a hub or switch. This central device manages and directs data traffic between the nodes, making communication efficient and easy to control.
A firewall monitors and controls incoming and outgoing network traffic based on security rules, blocking unauthorized access and protecting the network from attacks.
- Half Duplex: Data flows in both directions but only one device can transmit at a time (e.g., walkie-talkie).
- Full Duplex: Data flows in both directions at once, letting devices send and receive at the same time (e.g., telephone conversation).
Long Questions with Detailed Answers
6 in-depth answers
The main goal of a computer network is to enable resource sharing, data communication, and collaboration:
- Resource Sharing: Computer networks let devices share resources, such as printers, scanners, and storage, cutting costs and improving efficiency.
Example: In an office network, multiple computers can share a single printer, reducing the need for multiple printers.
- Data Communication: Networks enable data transfer, supporting communication through emails, instant messaging, and video conferencing.
Example: Employees in different locations can collaborate through video conferencing tools like Zoom or Microsoft Teams.
- Connectivity and Collaboration: Networks link devices together, allowing for remote access and collaboration, which boosts productivity and flexibility.
Example: A team can work on a shared document in real time using cloud-based services like Google Drive.
Note: Time = Data Size (Bits) / Data Rate (bps)
(a) It is of 10 kilobits
10 kilobits = 10 × 1000 = 10,000 bits
Time = 10,000 / 500 = 20 seconds
(b) It is of 10 kilobytes
1 byte = 8 bits
In a communication system, 1 Kilobyte = 1000 bytes (Decimal System)
So, 10 KB = 10 × 1000 bytes = 10,000 bytes
10,000 × 8 = 80,000 bits
Time = 80,000 / 500 = 160 seconds (2 minutes 40 seconds)
(OR)
1 KB = 1024 bytes (Binary System)
10 KB = 10 × 1024 = 10,240 bytes
1 byte = 8 bits
So, 10,240 × 8 = 81,920 bits
Time = 81,920 / 500 = 163.84 seconds
In data communication, a protocol is a set of rules and standards that governs how devices communicate over a network. Protocols make sure data is sent, received, and understood correctly between devices, regardless of differences in hardware or software.
Types of Protocols
Common protocols include: DNS, DHCP, TCP/IP, UDP, HTTP, FTP, SMTP.
- Domain Name System (DNS): DNS converts domain names into IP addresses, making it easier for users to reach websites. Example: When you type www.example.com in a browser, DNS converts it to the matching IP address.
- Dynamic Host Configuration Protocol (DHCP): DHCP automatically assigns IP addresses to devices on a network, simplifying network management. Example: When a device connects to a Wi-Fi network, DHCP assigns it an IP address.
- Transmission Control Protocol / Internet Protocol (TCP/IP): TCP/IP is the core suite of protocols for internet communication.
1. Transmission Control Protocol (TCP): Ensures reliable data transfer.
2. Internet Protocol (IP): Handles addressing and routing of data packets.
3. User Datagram Protocol (UDP): Provides faster, but less reliable, data transfer.
- HTTP (Hypertext Transfer Protocol): A protocol used for transferring web pages and resources over the internet, enabling communication between web browsers and servers. Example: HTTP is used for transferring web pages over the internet.
- FTP (File Transfer Protocol): A standard protocol for transferring files between computers over a network, allowing uploading and downloading of files.
- SMTP (Simple Mail Transfer Protocol): A protocol used for sending and routing emails between mail servers, ensuring delivery to the recipient's inbox.
Business: In business, computer networks enable efficient communication, resource sharing, and data management. Networks help employees communicate quickly through emails, video conferencing, and messaging systems. They also let businesses share printers, software, files, and internet connections among different departments. Different companies use networks to store and manage large amounts of data securely and to support online transactions and e-commerce activities. Example: Companies use intranets to share information and resources securely within the organization.
Education: Educational institutions use networks to provide online learning platforms, virtual classrooms, and access to educational resources. Students and teachers can attend virtual classes, share assignments, and access digital libraries through the internet. Networks also make collaboration easier by letting students work together on projects from different locations. Example: Universities use Learning Management Systems (LMS) like Blackboard and Moodle to deliver course content and assessments.
Healthcare: Healthcare networks support the sharing of patient information, telemedicine, and access to medical databases. Example: Hospitals use Electronic Health Records (EHR) systems to store and retrieve patient data efficiently.
Network Topologies
Network topologies are the methods used to define how different devices are arranged in a computer network, where each device is called a node. A network's reliability and performance are shaped by the way its devices are linked.
- Bus Topology: In a Bus topology, all devices share a single communication line called a bus. Each device connects to this central cable (main cable).
Did You Know? What is a disadvantage of a bus topology? — Bus topology is easy to set up, but if the main cable fails, the whole network goes down.
- Star Topology: In a star topology, each node in the network communicates with the others via a central switch or hub. The hub acts as a data flow repeater. Example: Think of a school principal's office connected to all classrooms through intercoms — the principal's office is the hub, and the classrooms are the nodes.
Did You Know? What is a disadvantage of star topology? — In star topology, if the hub/switch stops working, the whole network goes down.
- Ring Topology: In a Ring topology, each device connects in a circular pathway to two other devices. Data travels in one direction, passing through each device. Example: Consider a relay race where each runner passes the baton to the next runner in a circle until it reaches the starting point again.
Tidbits: What is a limitation of ring topology and how can it be improved? — Ring topology can handle high traffic, but if one connection fails, the whole network is affected. Using a 2-way ring can solve this issue to some extent.
- Mesh Topology: In a Mesh topology, each device connects directly to every other device. This provides high redundancy and reliability. Example: Imagine a city where every house is directly connected to every other house by roads — if one road is blocked, there are multiple alternative routes.
Did You Know? Why is mesh topology considered very reliable? — Mesh topology is very reliable because if one link fails, data can be rerouted through other links.
The OSI Networking Model
The Open Systems Interconnection (OSI) model is a framework used to understand how different networking protocols interact. It has 7 layers, each with a specific function.
Layer 1: Physical Layer — The Physical Layer handles the actual connection between devices. The focus here is on sending unprocessed data bits over a physical medium. Example: the hardware that connects computers, like network interface cables, repeaters, hubs and connectors.
Did You Know? — The Physical Layer covers everything from the cables to the voltage levels used to transmit data.
Layer 2: Data Link Layer — Error detection and correction, along with node-to-node data transport, are handled by the Data Link Layer. It ensures error-free data transmission from the Physical Layer. Example: Think of the Data Link Layer as traffic lights at intersections, which manage the flow of cars (data) and prevent collisions.
Layer 3: Network Layer — The Network Layer handles data transfer between different networks. It works out the best path for data to travel from the source to the destination. Example: a GPS system finding the best route for you to travel from home to school.
Did You Know? — The Network Layer uses IP addresses to route data between networks.
Layer 4: Transport Layer — The Transport Layer makes sure that data is transferred from the source system to the destination system. It manages data flow control and error checking. Example: Think of the Transport Layer as a delivery service that ensures your package arrives safely and on time.
Did You Know? — The Transport Layer uses protocols like Transmission Control Protocol (TCP) to ensure reliable data transfer.
Layer 5: Session Layer — The Session Layer manages sessions between applications. It establishes, maintains, and ends connections between devices. Example: a phone call where the session layer sets up the call, keeps it connected, and ends it when you hang up.
Layer 6: Presentation Layer — The Presentation Layer translates data between the application layer and the network. It compresses formats and encrypts data so it's readable by the receiving system. Example: Think of the Presentation Layer as a translator converting a book from one language to another so that more people can read it.
Did You Know? — The Presentation Layer handles data encryption and compression.
Layer 7: Application Layer — The Application Layer is the closest to the end user. It provides network services directly to applications, such as email, web browsing, and file transfer. Example: the Application Layer as a waiter taking your order in a restaurant and bringing your food.
Important Questions for Revision
5 high-priority questions
Data communication is the exchange of data between a sender and a receiver over a communication medium. Its key components are the message, sender, receiver, transmission medium, and protocol.
TCP is reliable and connection-oriented, making sure all packets are delivered in order; UDP is fast and connectionless, offering no delivery guarantee, which suits streaming or gaming.
Network topology is the arrangement of devices (nodes) in a network. Common types include Bus (all devices share one cable), Star (devices connect via a central hub), Ring (circular connection), and Mesh (every device connects to every other device).
DNS converts domain names to IP addresses; DHCP automatically assigns IP addresses; HTTP transfers web pages; FTP transfers files between computers.
The OSI model is a 7-layer framework describing how networking protocols interact: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
Frequently Asked Questions
6 quick answers to common questions about this chapter
A computer network is any group of connected devices that can share data, whether it's two laptops in a room or a school's whole lab. The Internet is simply the largest computer network in the world — a global network of networks connected using shared protocols like TCP/IP.
TCP's reliability comes at the cost of speed, because it checks and re-sends lost data. For tasks like live video calls or online gaming, a slightly dropped frame matters less than lag, so UDP is used instead — it sacrifices guaranteed delivery for speed, which is exactly what real-time applications need.
When you type "google.com" into a browser, you're using a name a human can remember. Behind the scenes, DNS looks up that name and converts it into the numeric IP address the network actually needs to find the right server — similar to looking up a contact's name to find their phone number.
It's very practical. The topology (star, bus, ring, or mesh) a school or office chooses affects how much it costs to wire up, how resilient the network is if one cable fails, and how easy it is to add new devices later — all real decisions network administrators make.
A firewall decides which traffic is allowed in or out of a network, acting like a gatekeeper. Encryption protects the data itself so that even if someone intercepts it, they can't read it. They work together: a firewall blocks unwanted access, and encryption protects the data that is allowed through.
Yes. Data communication basics, network protocols, topologies, the OSI model, and network security concepts like firewalls and encryption are all part of the syllabus and are tested through MCQs and short/long questions.
Chapter Test
9 questions with the answers hidden — check what you actually remember
You have just read the explanations above. This checks whether they stuck. The answers stay hidden until you finish, so it is closer to exam conditions than scrolling through the notes again.
9 questions, one at a time — no time limit.
You can move back and change an answer before submitting.
Afterwards you get your score, every explanation, and what to re-read.
Your score is saved in this browser only. No account, nothing sent anywhere.