Skip to content
Unit 4 Syllabus Note· Computer Networks

Computer Networks

Comprehensive exam revision notes for BCA-208N Unit 4 (Application Layer Protocols & Network Management). Includes Section A (2M), Section B (5M), and Section C (15M) questions, answers, and diagrams.

Computer Networks

Application Layer Protocols & Network Management

Core Definitions & Key Concepts

What is the primary role of the Domain Name System (DNS)

DNS is a globally distributed hierarchical database that resolves human-readable domain names (e.g., www.google.com) into numerical machine IP addresses (e.g., 142.250.190.46).

On which port and transport protocol does DNS operate

DNS operates on UDP port 53 for standard queries (for speed and low overhead) and TCP port 53 for zone transfers and responses exceeding 512 bytes.

An 'A' Record and an 'AAAA' Record in DNS

  • A Record: Maps a domain name to a 32-bit IPv4 address.
  • AAAA Record: Maps a domain name to a 128-bit IPv6 address.

SMTP, POP3, and IMAP4

  • SMTP (Port 25/587): Push protocol used to send emails from client to server and between servers.
  • POP3 (Port 110): Pull protocol that downloads emails to local client and deletes from server.
  • IMAP4 (Port 143): Pull protocol that keeps emails synchronized on the server across multiple devices.

Why does FTP utilize two separate connections

FTP uses an out-of-band architecture:

  1. Control Connection (Port 21): Remains open throughout the session for issuing commands.
  2. Data Connection (Port 20): Opens dynamically to transfer individual files and closes upon completion.

HTTP status codes 200, 301, 404, and 500

  • 200 OK: Request succeeded.
  • 301 Moved Permanently: Resource permanently assigned new URI.
  • 404 Not Found: Server cannot find requested URI.
  • 500 Internal Server Error: Unhandled server-side application crash.

What is the difference between HTTP/1.1 and HTTP/2

HTTP/1.1 uses persistent plaintext connections but suffers from Head-of-Line blocking. HTTP/2 uses binary framing, multiplexes multiple bidirectional request streams over a single TCP connection, and provides HPACK header compression.

What are SNMP Manager, Agent, and MIB

  • Manager (NMS): Central monitoring console.
  • Agent: Daemon running on managed network devices gathering metrics.
  • MIB (Management Information Base): Hierarchical database of monitored objects accessed via Object Identifiers (OIDs).

Conceptual & Architectural Analysis

DNS Hierarchy and the DNS Resolution Process (Recursive vs Iterative)

1. The DNS Distributed Hierarchy

  • Root Domain (`.` / 13 logical root server clusters): Directs queries to appropriate TLD servers.
  • Top-Level Domains (TLD): .com, .org, .edu, .in.
  • Authoritative Name Servers: Hold master DNS records for the registered domain.

2. Resolution Workflow:

  1. Client asks Local Resolving DNS Server recursively ('Give me the final answer').
  2. Local Resolver queries Root Server iteratively ('Where is .com?').
  3. Root refers to .com TLD Server.
  4. Local Resolver queries TLD Server iteratively ('Where is example.com?').
  5. TLD refers to Authoritative Server for example.com.
  6. Authoritative server returns target IP; Local Resolver caches and returns to client.

Compare SMTP vs POP3 vs IMAP4 in an Architecture Matrix

FeatureSMTPPOP3IMAP4
DirectionPush (Sending mail)Pull (Retrieving mail)Pull (Retrieving mail)
Default Ports25 (Plain), 587 (TLS)110 (Plain), 995 (SSL)143 (Plain), 993 (SSL)
Mail LocationTransits across MTAsDownloaded to local disk; deleted on serverStored permanently on server
Multi-Device SyncN/APoor (marks unread on 2nd device)Excellent (Folders, flags synchronized)
Offline AccessN/AFull local access once downloadedHeaders first; full mail cached on demand

FTP Active Mode vs Passive Mode (PASV) and Firewall Traversal

Active vs Passive FTP

System Architecture / Concept DiagramHorizontal Scroll Enabled
Active FTP: Client opens Port 21 (Control) ---> Server Port 21
            Server initiates Data connection <--- Blocked by Client Firewall!

Passive FTP: Client opens Port 21 (Control) ---> Server Port 21
             Client sends 'PASV'; Server opens random high Port P
             Client initiates Data connection ---> Server Port P (Passes Firewall!)
  • In Active Mode, the server connects back to the client, which is blocked by client-side NAT/firewalls.
  • In Passive Mode (`PASV`), the client initiates BOTH control and data connections, resolving firewall blocks.

SNMP Architecture and Protocol Operations (Get, Set, Trap)

SNMP Protocol Operations

  • `GetRequest`: Manager retrieves value of an OID from Agent.
  • `GetNextRequest`: Manager traverses MIB tree sequentially.
  • `SetRequest`: Manager configures or modifies parameter on Agent.
  • `GetResponse`: Agent returns requested data to Manager.
  • `Trap` (Port 162): Agent asynchronously pushes an unrequested alert to Manager notifying of critical events (e.g., interface down, link flapping).

In-Depth Analysis & Implementation

The Complete World Wide Web Architecture, HTTP Protocol Lifecycle, Headers, and Web Caching

1. HTTP Request/Response Lifecycle

When a user visits https://www.example.com/index.html:

  1. DNS Lookup: Browser resolves domain to IP via UDP 53.
  2. TCP Connection: Three-way handshake (SYN \to SYN-ACK \to ACK) on port 80/443.
  3. TLS Handshake: Negotiates cipher suite, verifies X.509 certificate, derives symmetric session key.
  4. HTTP Request:
HTTP
1GET /index.html HTTP/1.1
2Host: www.example.com
3User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)
4Accept: text/html,application/xhtml+xml
5Accept-Encoding: gzip, deflate, br
6Cookie: session_id=abc123xyz
  1. HTTP Response:
HTTP
1HTTP/1.1 200 OK
2Date: Sat, 18 Oct 2024 12:00:00 GMT
3Content-Type: text/html; charset=UTF-8
4Content-Length: 4096
5Cache-Control: max-age=3600, public
6ETag: "33a64df551425fcc3"
7
8<!DOCTYPE html><html>...</html>

2. Web Caching & Conditional Requests

  • `Cache-Control: max-age=3600`: Informs browser/proxy cache that resource is fresh for 1 hour.
  • Conditional Revalidation: When expired, browser sends If-None-Match: "33a64df551425fcc3". If unchanged, server replies 304 Not Modified with 0-byte body, saving bandwidth.

MIME (Multipurpose Internet Mail Extensions) and How Non-ASCII Binary Media is Transmitted via SMTP

MIME Architecture

Traditional SMTP is restricted to 7-bit ASCII text. MIME enables transmission of binary images, audio, video, and non-English scripts over SMTP.

MIME Header Extensions:

HTTP
1MIME-Version: 1.0
2Content-Type: multipart/mixed; boundary="====XYZ123===="
3
4--====XYZ123====
5Content-Type: text/plain; charset="UTF-8"
6
7Please find attached the Semester 4 examination syllabus.
8
9--====XYZ123====
10Content-Type: application/pdf; name="Syllabus.pdf"
11Content-Transfer-Encoding: base64
12Content-Disposition: attachment; filename="Syllabus.pdf"
13
14JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFI... [Base64 Encoded Binary Data]
15--====XYZ123====--
  • Base64 Encoding: Converts binary data into printable ASCII characters by mapping 6-bit binary chunks into 64 ASCII characters (A-Z, a-z, 0-9, +, /).

Dynamic DNS (DDNS) and DNS Security Extensions (DNSSEC)

1. Dynamic DNS (DDNS)

In residential and small-business environments, ISPs assign dynamic IPv4 addresses that change periodically. DDNS clients run a daemon that monitors local public IP changes and automatically issues cryptographic updates to authoritative DNS servers, ensuring domains consistently point to the live IP.

2. DNSSEC (DNS Security Extensions)

  • Vulnerability: Standard DNS lacks authentication, allowing DNS Cache Poisoning where attackers forge fake IP mappings.
  • DNSSEC Solution: Uses public-key cryptography to digitally sign DNS records:
  • RRSIG: Resource Record Signature containing digital signature of DNS data.
  • DNSKEY: Public key used to verify RRSIG.
  • DS (Delegation Signer): Hash of child key stored in parent zone, establishing a cryptographic Chain of Trust up to the Root Zone (.).

Important Exam Points & Quick Revision

Be ready to explain the DNS resolution hierarchy, HTTP request/response headers, and Active vs Passive FTP.

Your reading progress
0%

100% left on this page — finishing it closes the gap for Application Layer Protocols & Network Management.

Weak topic hint

Application Layer Protocols & Network Management still counts as a weak topic until you finish this note and answer its questions.

Practise this unit
What Should You Do Next?

Test Your Understanding

Now that you've read through these notes, practice unit MCQs to identify weak points and solidify your learning before exams.