Last updated: 4 December 2026 · Punjab Board 9th Class Computer Science and Entrepreneurship (new syllabus 2025-26) · Unit 6
Easy, exam-focused notes for Unit 6: Introduction to Computer Networks of the new Punjab Board 9th class Computer Science book. Short answers are written to fit the board e-sheet answer space. All exercise MCQs are checked against the textbook answer key.
In this unit
- Network as a system and its objectives
- Data communication components
- Networking devices: switch, router, access point
- Network topologies
- Transmission modes
- OSI model (7 layers)
- IPv4, IPv6, protocols, DNS and DHCP
- Network security
- Types of networks: PAN, LAN, MAN, WAN, CAN
- Exercise: MCQs, short and long questions
- FAQs
6.1 Network as a system
A computer network is a system of linked computers and devices that exchange data and work together. The Internet is the largest network of all.
- Nodes: devices on the network (computers, phones, printers).
- Links: wired (Ethernet cable) or wireless (Wi-Fi) connections.
- Switches: connect nodes inside one network.
- Routers: connect different networks and direct packets between them.
Packet switching: data is broken into small packets; each carries the destination address and may take a different route, then they are reassembled at the end (like passengers flying in groups on different flights to one city). Circuit switching: a dedicated path is set up for the whole communication, like an old telephone call.
| Objective | Example |
|---|---|
| Resource sharing | Many office computers share one printer |
| Data communication | Email, messaging, Zoom or Teams calls |
| Connectivity and collaboration | A team edits one Google Drive document together |
6.2 Components of data communication
| Component | Meaning | Example |
|---|---|---|
| Sender | Device that sends data | Computer sending an email |
| Receiver | Device that receives data | Smartphone receiving it |
| Message | The data itself | Text of the email |
| Protocol | Rules for communication | HTTP for web pages |
| Medium | Path the data travels on | Ethernet cable or Wi-Fi |
6.3 Networking devices
- Switch – connects devices within a LAN. Works at OSI Layer 2 (Data Link) using MAC addresses; sends each packet only to the destination device (first time it broadcasts, then it learns addresses). Like a smart traffic conductor.
- Hub – an older device that broadcasts data to all connected devices.
- Router – connects different networks and finds the best path for each packet using a routing table. A home router often includes a switch and wireless access point. (A mobile Wi-Fi router uses a SIM – Subscriber Identity Module.)
- Access Point (AP) – lets wireless devices join a wired network using radio waves; place it centrally for best coverage.
6.4 Network topologies
| Topology | Layout | Advantage | Disadvantage | Analogy |
|---|---|---|---|---|
| Bus | All devices on one main cable (bus) | Easy and cheap to set up | If the main cable fails, the whole network fails | Classroom chalkboard |
| Star | All devices connect to a central switch/hub | Easy to add devices; one cable fault affects only one device | If the central device fails, all stop | Principal’s office with intercoms |
| Ring | Each device linked to two others in a circle; data goes one way | Handles high traffic | One broken link affects the whole ring (a two-way ring helps) | Relay race |
| Mesh | Every device connected to every other | Very reliable; data can be rerouted | Expensive, many cables | City where every house has a road to every other |
6.5 Transmission modes
| Mode | Direction | Example |
|---|---|---|
| Simplex | One direction only | Keyboard to computer |
| Half-duplex | Both directions, but one at a time | Walkie-talkie |
| Full-duplex | Both directions at the same time | Telephone call, video call |
6.6 OSI model (7 layers)
| Layer | Job | Example / analogy |
|---|---|---|
| 7 Application | Network services for users: email, web, file transfer | Waiter taking your order |
| 6 Presentation | Translates, formats, encrypts and compresses data | A translator of a book |
| 5 Session | Starts, maintains and ends sessions | Setting up and ending a phone call |
| 4 Transport | Process-to-process delivery, flow control, error checking (TCP) | Delivery service ensuring the parcel arrives |
| 3 Network | Routing between networks using IP addresses; best path | GPS finding the best route |
| 2 Data Link | Node-to-node transfer, error detection and correction (MAC) | Traffic lights preventing collisions |
| 1 Physical | Sends raw bits through cables, connectors, signals | Cables, hubs, repeaters |
Memory trick (7 → 1): All People Seem To Need Data Processing.
6.7–6.8 IP addresses, protocols, DNS and DHCP
| IPv4 | IPv6 | |
|---|---|---|
| Size | 32 bits (4 bytes) | 128 bits |
| Number of addresses | 2³² = 4,294,967,296 (~4.3 billion) | Almost unlimited |
| Format | Four decimal numbers 0–255, e.g. 192.168.1.1 | Eight hex groups, e.g. 2001:0000:130F:0000:0000:0900:876A:130B |
| Why | Most widely used today | Made because IPv4 addresses are running out |
| Protocol | Purpose |
|---|---|
| TCP | Reliable, ordered data transfer |
| IP | Addressing and routing of packets |
| UDP | Faster but less reliable (no delivery check) |
| HTTP | Transfers web pages |
| FTP | Transfers files |
| SMTP | Sends email |
| DNS | Translates domain names (www.example.com) into IP addresses |
| DHCP | Automatically gives IP addresses to devices joining a network |
Encapsulation: as data moves down the layers, each layer wraps it with its own protocol information (headers), like putting a letter in an envelope and then in a parcel.
6.9 Network security
- Why: data protection, preventing attacks, privacy and availability for authorised users.
- Firewall: monitors and controls incoming and outgoing traffic by security rules – a checkpoint between trusted and untrusted networks.
- Encryption: turns data into a secret form (ciphertext) that only someone with the key can read; decryption turns it back. Shift cipher with key 3: “Hello” → “Khoor”.
- Passwords and authentication allow only authorised users. Antivirus detects and removes malware.
- Threats: malware (viruses, worms, ransomware), phishing (fake emails/sites), Denial of Service (flooding a network with traffic), man-in-the-middle (intercepting messages).
6.10 Types of networks
| Type | Area | Example |
|---|---|---|
| PAN – Personal Area Network | A few metres | Phone + Bluetooth headset |
| LAN – Local Area Network | Home, school or office building | School computer lab |
| CAN – Campus Area Network | University or business campus (several LANs) | All departments of a university |
| MAN – Metropolitan Area Network | A city (up to ~50 km) | University branches across a city |
| WAN – Wide Area Network | Countries and continents | The Internet; a company’s offices worldwide |
Applications: business (intranets, sharing resources), education (online learning, LMS like Moodle), healthcare (Electronic Health Records, telemedicine). A VPN secures your connection on public networks.
Unit 6 exercise (solved)
A. Multiple choice questions
1. What is the primary objective of computer networks?
(a) Increase computational power (b) Enable resource sharing and data communication (c) Enhance graphic capabilities (d) Improve software development
Answer: (b) Enable resource sharing and data communication – Networks exist to share and communicate.
2. Which device is used to connect multiple networks and direct data packets between them?
(a) Switch (b) Hub (c) Router (d) Modem
Answer: (c) Router – A switch works inside one network.
3. Which layer of the OSI model is responsible for node-to-node data transfer and error detection?
(a) Physical Layer (b) Data Link Layer (c) Network Layer (d) Transport Layer
Answer: (b) Data Link Layer – Layer 2.
4. What is the function of the Domain Name System (DNS)?
(a) Assign IP addresses dynamically (b) Translate domain names to IP addresses (c) Secure data communication (d) Monitor network traffic
Answer: (b) Translate domain names to IP addresses – Assigning IPs is DHCP.
5. Which method of data transmission uses a dedicated communication path?
(a) Packet Switching (b) Circuit Switching (c) Full-Duplex (d) Half-Duplex
Answer: (b) Circuit Switching – Circuit switching reserves one path.
6. What is encapsulation in the context of network communication?
(a) Converting data into a secure format (b) Wrapping data with protocol information (c) Monitoring network traffic (d) Translating domain names to IP addresses
Answer: (b) Wrapping data with protocol information – Each layer adds a header.
7. Which protocol is used for reliable data transfer in the TCP/IP model?
(a) HTTP (b) FTP (c) TCP (d) UDP
Answer: (c) TCP – UDP is fast but not reliable.
8. What is the main purpose of a firewall in network security?
(a) Convert data into a secure format (b) Monitor and control network traffic (c) Assign IP addresses (d) Translate domain names
Answer: (b) Monitor and control network traffic – Converting data is encryption.
9. Which network topology connects all devices to a central hub?
(a) Ring (b) Mesh (c) Bus (d) Star
Answer: (d) Star – The hub/switch is the centre of the star.
10. What is a key benefit of using computer networks in businesses?
(a) Increase computational power (b) Enable resource sharing and efficient communication (c) Enhance graphic capabilities (d) Improve software development
Answer: (b) Enable resource sharing and efficient communication – E.g. shared printers and intranets.
B. Short questions
C. Long questions (key points)
- Resource sharing: one printer or internet connection for a whole office.
- Data communication: email, chat, video conferencing (Zoom, Teams).
- Connectivity and collaboration: remote access, shared cloud documents (Google Drive).
(b) 10 kilobytes = 10,000 × 8 = 80,000 bits → 80,000 ÷ 500 = 160 seconds (with 1 KB = 1024 bytes: 81,920 ÷ 500 = 163.84 s).
- Packet switching: message split into packets with destination IP; routers send each by the best available route; packets may arrive out of order and are reassembled. Efficient, used by the Internet.
- Circuit switching: a fixed path is set up first, all data uses it, then it is released. Steady quality but wastes capacity when idle (traditional telephone).
- Firewall: filters traffic by rules.
- Encryption: makes intercepted data unreadable without the key.
- Antivirus: finds and removes malware.
- Used together (with strong passwords) they give strong protection.
- Business: intranets, shared files and printers, email, online sales.
- Education: online classes, virtual classrooms, LMS (Moodle, Blackboard).
- Healthcare: Electronic Health Records, telemedicine, sharing test results.
(b) Move each letter 4 back: W→S, M→I, X→T, Y→U, V→R, M→I, I→E → SITURIE.
(b) Reserved 10% = 429,496,729.6; left = 90% × 4,294,967,296 = ≈ 3,865,470,566 addresses.
9th class computer unit 6 MCQs with answers
Unit 6 (Introduction to Computer Networks) exercise MCQ answers: 1-b, 2-c, 3-b, 4-b, 5-b, 6-b, 7-c, 8-b, 9-d, 10-b.
What are the 7 layers of the OSI model?
Physical, Data Link, Network, Transport, Session, Presentation and Application.
Difference between IPv4 and IPv6
IPv4 uses 32-bit addresses (about 4.3 billion); IPv6 uses 128-bit addresses (almost unlimited).
What is the difference between switch and router?
A switch connects devices within one network using MAC addresses; a router connects different networks and routes packets using IP addresses.
What are simplex, half-duplex and full-duplex?
Simplex: one direction (keyboard). Half-duplex: both directions, one at a time (walkie-talkie). Full-duplex: both at once (phone call).
📄 Download these notes as PDF
Save this chapter to your phone or computer and read it offline, or share it with your friends.
The PDF downloads directly. Long chapters may take a few seconds.
More 9th Class Computer Science
Need a Computer Science home tutor?
Male & female Computer Science tutors in all major cities of Pakistan, home or online. 3-day free demo.
