Current Affairs updated daily
KalviGavaniKalviGavani

Network Examples and Protocols Exercise Solutions | KalviGavani

Samacheer Kalvi Class 12 Computer Applications Chapter 11 Network Examples and Protocols exercise solutions — HTTP, FTP, SMTP, POP3, IMAP, TCP, UDP, IP addressing (IPv4, IPv6), subnetting, domain names with detailed explanations and exam tips.

Updated 13 June 202617 min read

Exercise Solutions Available

Step-by-step answers for all textbook questions in this chapter

View Solutions →

Chapter 11 — Network Examples and Protocols: Exercise Solutions Guide

How to Use This Page

1. Attempt every exercise on your own before reading the solutions. 2. Compare your method with the answer shown — focus on the concept, not just memorising terms. 3. Memorise protocol port numbers and OSI layers — they frequently appear in exams.


Key Concepts (Quick Recap)

  • A protocol is a set of rules governing data communication between devices.
  • HTTP (HyperText Transfer Protocol) — transfers web pages; port 80; stateless.
  • HTTPS — secure version of HTTP using SSL/TLS; port 443.
  • FTP (File Transfer Protocol) — transfers files between client and server; port 21 (control), port 20 (data).
  • SMTP (Simple Mail Transfer Protocol) — sends emails from client to server; port 25.
  • POP3 (Post Office Protocol v3) — downloads emails from server to client; port 110; deletes from server by default.
  • IMAP (Internet Message Access Protocol) — accesses emails on the server without downloading; port 143; syncs across devices.
  • TCP (Transmission Control Protocol) — connection-oriented, reliable, ensures ordered delivery.
  • UDP (User Datagram Protocol) — connectionless, fast, no guarantee of delivery or order.
  • IP address — unique numeric identifier for each device on a network; IPv4 (32-bit) and IPv6 (128-bit).
  • Subnetting — dividing a large network into smaller sub-networks for efficiency and security.
  • Domain name — human-readable address (e.g., www.example.com) mapped to an IP address via DNS.

I. Choose the Best Answer (MCQs)

1. Which protocol is used to transfer web pages from a server to a browser?
Answer

(a) FTP    (b) SMTP    (c) HTTP    (d) POP3

Answer(c) HTTP

Explanation: HTTP (HyperText Transfer Protocol) is the foundation of data communication on the World Wide Web. It defines how web pages are requested and transmitted.


2. SMTP operates on which port?
Answer

(a) 80    (b) 21    (c) 25    (d) 110

Answer(c) 25

Explanation: SMTP (Simple Mail Transfer Protocol) uses port 25 for sending emails. Port 80 is HTTP, 21 is FTP, and 110 is POP3.


3. Which protocol allows accessing emails on the server without downloading them?
Answer

(a) POP3    (b) SMTP    (c) IMAP    (d) FTP

Answer(c) IMAP

Explanation: IMAP (Internet Message Access Protocol) lets users read and manage emails directly on the server. POP3 downloads and typically deletes them from the server.


4. Which protocol is connection-oriented and ensures reliable data delivery?
Answer

(a) UDP    (b) TCP    (c) IP    (d) ICMP

Answer(b) TCP

Explanation: TCP (Transmission Control Protocol) establishes a connection before data transfer, acknowledges received packets, retransmits lost ones, and ensures ordered delivery.


5. An IPv4 address consists of how many bits?
Answer

(a) 16    (b) 32    (c) 64    (d) 128

Answer(b) 32

Explanation: IPv4 addresses are 32-bit, written as four octets (e.g., 192.168.1.1). IPv6 addresses are 128-bit.


6. Which protocol uses port 443?
Answer

(a) HTTP    (b) HTTPS    (c) FTP    (d) Telnet

Answer(b) HTTPS

Explanation: HTTPS (HTTP Secure) uses port 443 with SSL/TLS encryption for secure web browsing. Regular HTTP uses port 80.


7. UDP is suitable for which type of applications?
Answer

(a) File transfer    (b) Email    (c) Video streaming    (d) Web browsing

Answer(c) Video streaming

Explanation: UDP is fast but unreliable, making it ideal for real-time applications like video streaming and online gaming where speed matters more than perfect delivery.


8. Which class of IPv4 address starts with 192.168.x.x?
Answer

(a) Class A    (b) Class B    (c) Class C    (d) Class D

Answer(c) Class C

Explanation: Class C addresses range from 192.0.0.0 to 223.255.255.255. The 192.168.x.x range is a private Class C address block.


9. What is the default subnet mask for a Class B network?
Answer

(a) 255.0.0.0    (b) 255.255.0.0    (c) 255.255.255.0    (d) 255.255.255.255

Answer(b) 255.255.0.0

Explanation: Class A = 255.0.0.0 (/8), Class B = 255.255.0.0 (/16), Class C = 255.255.255.0 (/24).


10. FTP uses which ports?
Answer

(a) 25 and 110    (b) 20 and 21    (c) 80 and 443    (d) 53 and 67

Answer(b) 20 and 21

Explanation: FTP uses port 21 for control commands and port 20 for data transfer.


II. Fill in the Blanks

1. HTTP stands for HyperText Transfer Protocol and is used to transfer web pages.

2. SMTP is used for sending emails from a client to a mail server.

3. POP3 downloads emails from the server and typically deletes them from the server.

4. IMAP allows users to manage emails directly on the server without downloading.

5. TCP is a connection-oriented protocol that ensures reliable data delivery.

6. UDP is a connectionless protocol that is faster but does not guarantee delivery.

7. An IPv4 address is 32 bits long and written in dotted-decimal notation.

8. An IPv6 address is 128 bits long and written in hexadecimal notation.

9. The default subnet mask for a Class A network is 255.0.0.0.

10. A domain name is a human-readable name that maps to an IP address (e.g., www.google.com).


III. True or False

1. HTTP is a secure protocol for transferring web data. — False. HTTP is not secure; it sends data in plain text. HTTPS is the secure version that uses SSL/TLS encryption.

2. POP3 deletes emails from the server by default after downloading. — True. POP3's default behaviour is to download and delete. IMAP keeps emails on the server.

3. TCP is faster than UDP. — False. UDP is faster because it doesn't establish a connection, acknowledge packets, or retransmit lost data. TCP is more reliable but slower.

4. IPv6 was developed because IPv4 addresses were running out. — True. IPv4's 32-bit address space (~4.3 billion addresses) is insufficient; IPv6 provides 128-bit addresses (virtually unlimited).

5. FTP uses a single port for both control and data transfer. — False. FTP uses two ports: port 21 for control commands and port 20 for data transfer.

6. IMAP allows multiple devices to access the same mailbox. — True. Since IMAP stores emails on the server, multiple devices can access and sync the same mailbox.

7. UDP guarantees that all packets arrive in order. — False. UDP does not guarantee delivery or order. TCP guarantees both.

8. The subnet mask 255.255.255.0 corresponds to a /24 network. — True. 255.255.255.0 has 24 bits set to 1, giving a /24 CIDR notation.

9. SMTP is used for receiving emails. — False. SMTP is for sending emails. POP3 or IMAP is for receiving (downloading/accessing) emails.

10. HTTPS uses port 80. — False. HTTPS uses port 443. HTTP uses port 80.


IV. Match the Following

Set A

No.Column ANo.Column B
1HTTPdPort 80, web pages
2HTTPSePort 443, secure web
3FTPaPort 20/21, file transfer
4SMTPcPort 25, send email
5POP3bPort 110, download email

Set B

No.Column ANo.Column B
1TCPdConnection-oriented, reliable
2UDPeConnectionless, fast
3IPv4a32-bit address
4IPv6c128-bit address
5Subnet maskbDivides network and host portions

V. Short Answer Questions

1. Explain HTTP and HTTPS with differences.
Answer
FeatureHTTPHTTPS
Full formHyperText Transfer ProtocolHyperText Transfer Protocol Secure
Port80443
SecurityNo encryptionSSL/TLS encryption
DataSent in plain textEncrypted
URL prefixhttp://https://
Use caseGeneral websitesBanking, login, e-commerce
CertificateNot requiredSSL/TLS certificate required

HTTPS is HTTP + SSL/TLS encryption, making it essential for any site that handles sensitive data like passwords or credit card numbers.


2. Differentiate between POP3 and IMAP.
Answer
FeaturePOP3IMAP
Full formPost Office Protocol v3Internet Message Access Protocol
Port110143
Email storageDownloads to local deviceKeeps on server
Default behaviourDeletes from server after downloadKeeps on server
Multi-deviceNot suitable (emails stored locally)Suitable (syncs across devices)
SpeedFaster (downloads once)Depends on connection
Use caseSingle device, limited storageMultiple devices, always-connected

3. Compare TCP and UDP.
Answer
FeatureTCPUDP
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityReliable (acknowledgements, retransmission)Unreliable (no guarantee)
OrderGuarantees ordered deliveryNo ordering guarantee
SpeedSlower (overhead for reliability)Faster (no overhead)
Header size20 bytes8 bytes
Use caseWeb (HTTP), email (SMTP), file transfer (FTP)Video streaming, DNS, online gaming

4. What is an IP address? Explain IPv4 and IPv6.
Answer

An IP address is a unique numerical identifier assigned to each device on a network for communication.

IPv4:

  • 32-bit address, written in dotted-decimal notation (e.g., 192.168.1.1).
  • Four octets, each ranging from 0 to 255.
  • Approximately 4.3 billion unique addresses.
  • Classes: A (large networks), B (medium), C (small), D (multicast), E (reserved).

IPv6:

  • 128-bit address, written in hexadecimal (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).
  • Eight groups of four hexadecimal digits separated by colons.
  • Virtually unlimited addresses (3.4 x 10^38).
  • Built-in security (IPsec), better multicast, and auto-configuration.

5. What is subnetting? Explain with an example.
Answer

Subnetting is the practice of dividing a large network into smaller sub-networks (subnets) for better management, security, and performance.

Subnet mask determines which part of an IP address is the network portion and which is the host portion.

Example: For IP 192.168.1.100 with subnet mask 255.255.255.0 (/24):

  • Network portion: 192.168.1.0
  • Host portion: 0.0.0.100
  • Usable host range: 192.168.1.1 to 192.168.1.254
  • Broadcast address: 192.168.1.255
  • Maximum hosts: 254 (256 - 2 for network and broadcast)

Benefits of subnetting:

  • Reduces network congestion by limiting broadcast domains.
  • Improves security by isolating network segments.
  • Efficient use of IP addresses.

6. What is a domain name? How does it relate to an IP address?
Answer

A domain name is a human-readable address used to access websites (e.g., www.google.com). It maps to a numeric IP address through the Domain Name System (DNS).

How it works: 1. User types www.example.com in the browser. 2. The browser queries a DNS server to resolve the domain name. 3. DNS returns the IP address (e.g., 93.184.216.34). 4. The browser connects to that IP address to load the website.

Structure of a domain name:

  • Top-Level Domain (TLD): .com, .org, .in, .edu
  • Second-Level Domain: example
  • Subdomain: www
  • Full: www.example.com

Domain names are easier to remember than IP addresses, which is why DNS exists to translate between them.


VI. Detailed Answer Questions

1. Explain the following protocols in detail: HTTP, FTP, SMTP, POP3, and IMAP.
Answer

HTTP (HyperText Transfer Protocol):

  • Purpose: Transfers web pages and resources between a web server and a browser.
  • Port: 80 (HTTP), 443 (HTTPS).
  • Stateless: Each request is independent; the server doesn't remember previous requests.
  • Methods: GET (retrieve), POST (submit), PUT (update), DELETE (remove).
  • Example: When you visit a website, your browser sends an HTTP GET request, and the server responds with the HTML page.

FTP (File Transfer Protocol):

  • Purpose: Transfers files between a client and a server.
  • Ports: 21 (control), 20 (data).
  • Modes: Active and Passive.
  • Commands: PUT (upload), GET (download), DELETE, RENAME.
  • Example: Uploading website files to a hosting server using FileZilla.

SMTP (Simple Mail Transfer Protocol):

  • Purpose: Sends emails from a client to a mail server or between mail servers.
  • Port: 25 (standard), 587 (submission), 465 (SMTP over SSL).
  • Push protocol: It pushes emails to the receiving server.
  • Example: When you click "Send" in Gmail, SMTP transfers your email to the recipient's mail server.

POP3 (Post Office Protocol version 3):

  • Purpose: Downloads emails from a mail server to a local client.
  • Port: 110 (standard), 995 (over SSL).
  • Downloads and deletes: By default, emails are removed from the server after download.
  • Example: Downloading emails to Outlook on a single computer.

IMAP (Internet Message Access Protocol):

  • Purpose: Accesses and manages emails on the server without downloading.
  • Port: 143 (standard), 993 (over SSL).
  • Server-based: Emails stay on the server; multiple devices can access the same mailbox.
  • Example: Reading Gmail on both your phone and computer with synced read/unread status.

2. Explain IP addressing — classes, subnet mask, and private IP addresses.
Answer

IP Address Classes (IPv4):

ClassRangeDefault Subnet MaskNetworksHosts per Network
A1.0.0.0 – 126.255.255.255255.0.0.0 (/8)126~16 million
B128.0.0.0 – 191.255.255.255255.255.0.0 (/16)~16,000~65,000
C192.0.0.0 – 223.255.255.255255.255.255.0 (/24)~2 million254
D224.0.0.0 – 239.255.255.255Multicast——
E240.0.0.0 – 255.255.255.255Reserved——

Private IP Address Ranges (not routable on the Internet):

ClassPrivate Range
A10.0.0.0 – 10.255.255.255
B172.16.0.0 – 172.31.255.255
C192.168.0.0 – 192.168.255.255

Private IPs are used within local networks (homes, offices) and translated to public IPs via NAT.

Subnet Mask:

  • Determines the network and host portions of an IP address.
  • Example: IP 192.168.1.50 with mask 255.255.255.0
  • Network: 192.168.1.0
  • Host: 50
  • Broadcast: 192.168.1.255
  • Usable hosts: 192.168.1.1 to 192.168.1.254 (254 hosts)

3. Compare TCP and UDP in detail with use cases.
Answer
FeatureTCPUDP
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityGuaranteed delivery with acknowledgementsBest-effort, no guarantee
OrderingPackets arrive in orderNo ordering guarantee
Flow controlYes (sliding window)No
Error checkingExtensive (checksum, retransmission)Basic (checksum only)
Header size20 bytes minimum8 bytes
SpeedSlower due to overheadFaster (no overhead)
BroadcastNot supportedSupported

TCP Use Cases:

  • Web browsing (HTTP/HTTPS)
  • Email (SMTP, IMAP, POP3)
  • File transfer (FTP)
  • SSH (secure remote access)
  • Any application where data integrity matters more than speed.

UDP Use Cases:

  • Video streaming (YouTube, Netflix)
  • Online gaming (real-time updates)
  • DNS queries (quick lookups)
  • VoIP (Skype, WhatsApp calls)
  • Any application where speed matters more than perfect delivery.

TCP 3-Way Handshake: 1. Client sends SYN (synchronise). 2. Server responds with SYN-ACK (synchronise-acknowledge). 3. Client sends ACK (acknowledge). Connection is now established.


4. Explain IPv4 and IPv6 addressing with examples and the need for IPv6.
Answer

IPv4 Addressing:

  • 32-bit address divided into 4 octets.
  • Written in decimal: 192.168.1.1
  • Each octet: 0–255 (8 bits each).
  • Total addresses: 2^32 = ~4.3 billion.
  • Example: 172.16.254.1

IPv6 Addressing:

  • 128-bit address divided into 8 groups of 4 hexadecimal digits.
  • Written in hexadecimal: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  • Can be abbreviated: 2001:db8:85a3::8a2e:370:7334
  • Total addresses: 2^128 = 3.4 x 10^38 (virtually unlimited).
  • Example: ::1 (loopback), fe80::1%eth0 (link-local).

Why IPv6 was needed: 1. Address exhaustion — IPv4's 4.3 billion addresses are depleted due to Internet growth. 2. No more NAT — IPv6 provides enough addresses for every device to have a public IP. 3. Built-in security — IPsec is mandatory in IPv6. 4. Simplified header — IPv6 headers are simpler, improving router performance. 5. Auto-configuration — Devices can generate their own IPv6 addresses. 6. Better multicast — IPv6 has improved multicast and quality of service features.

IPv4 vs IPv6 Comparison:

FeatureIPv4IPv6
Address length32 bits128 bits
Address formatDecimal (192.168.1.1)Hexadecimal (2001:db8::1)
Address space~4.3 billion3.4 x 10^38
SecurityOptional (IPsec)Built-in (IPsec required)
ConfigurationManual or DHCPAuto-configuration
HeaderVariable lengthFixed length (simpler)

5. Explain the role of SMTP in the email system with a diagram description.
Answer

SMTP (Simple Mail Transfer Protocol) is responsible for sending emails from a client to a mail server and between mail servers.

Email flow using SMTP:

1. Sender's email client (e.g., Outlook, Gmail web) composes an email and sends it to the sender's SMTP server. 2. The sender's SMTP server looks up the recipient's domain (e.g., gmail.com) in DNS to find the recipient's SMTP server (MX record). 3. The sender's SMTP server transfers the email to the recipient's SMTP server using SMTP. 4. The recipient's SMTP server stores the email in the recipient's mailbox. 5. The recipient retrieves the email using POP3 or IMAP.

Key SMTP commands:

  • HELO/EHLO — identifies the client to the server.
  • MAIL FROM — specifies the sender's email address.
  • RCPT TO — specifies the recipient's email address.
  • DATA — begins the email content.
  • QUIT — ends the SMTP session.

Important distinction: SMTP is only for sending emails. POP3 and IMAP are for receiving/accessing emails. Together, they form the complete email system.


Common Mistakes

1. Confusing SMTP with POP3/IMAP — SMTP is for sending emails; POP3 and IMAP are for receiving/accessing them.

2. Mixing up HTTP and HTTPS ports — HTTP uses port 80; HTTPS uses port 443.

3. Saying UDP is reliable — UDP is connectionless and unreliable; TCP is the reliable protocol.

4. Confusing subnet mask with IP address — The subnet mask determines the network/host split; the IP address identifies a specific device.

5. Forgetting private IP ranges — 10.x.x.x, 172.16.x.x–172.31.x.x, and 192.168.x.x are private and not routable on the Internet.

6. Mixing up IPv4 and IPv6 address lengths — IPv4 is 32-bit; IPv6 is 128-bit.

7. Confusing FTP's two ports — Port 21 is for control commands; port 20 is for data transfer.


Exam Checklist

  • [ ] Can explain HTTP, HTTPS, FTP, SMTP, POP3, and IMAP with port numbers
  • [ ] Can differentiate POP3 vs IMAP (download vs server-based email access)
  • [ ] Can compare TCP vs UDP (connection-oriented vs connectionless, reliability, speed)
  • [ ] Know IPv4 address classes (A, B, C, D, E) with ranges and subnet masks
  • [ ] Can explain IPv4 (32-bit) vs IPv6 (128-bit) with examples
  • [ ] Understand subnet masks and can calculate network and host portions
  • [ ] Know private IP address ranges and their purpose
  • [ ] Can explain domain names and their structure (TLD, SLD, subdomain)
  • [ ] Can describe the email flow: sender → SMTP server → SMTP server → POP3/IMAP → recipient
  • [ ] Can match protocols to their port numbers and functions

Frequently Asked Questions

A set of rules and conventions that govern how data is transmitted between devices on a network, e.g. HTTP, TCP, IP.