Skip to content
AD-602 · Computer Networks/Quick Revision Short Notes

Computer Networks (AD-602) - Unit 5 Short Notes

How unit 5 is examined

Application-layer protocols (HTTP, FTP, SSH, email, DNS, SNMP) and the basics of cryptography; email, modern ciphers, DNS and SNMP carry the marks.

WWW and HTTP

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>

Definition. The WWW is a collection of linked hypertext documents served by web servers and viewed in browsers; HTTP (HyperText Transfer Protocol) is the application-layer protocol that carries them.

Key points.

  1. HTTP follows the client-server request-response model: the browser sends a request and the server returns a response with a status code (200 OK, 404 Not Found).
  2. It runs over TCP on port 80 (HTTPS uses port 443 with TLS).
  3. Common methods are GET (fetch), POST (send data), PUT (store), DELETE (remove) and HEAD (headers only).
  4. HTTP is stateless, so the server keeps no memory between requests; cookies are used to add state.
  5. Example: GET /index.html HTTP/1.1 with Host: www.rgpv.ac.in returns HTTP/1.1 200 OK followed by the page.

Asked: [7 marks] (Jun 2025) Explain the following application layer protocols: i) HTTP ii) DNS

FTP

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>

Definition. FTP (File Transfer Protocol) copies files between a client and a server over TCP.

Key points.

  1. It uses two connections: a control connection on port 21 for commands and replies, and a data connection on port 20 for the file.
  2. The user must log in with a username and password, and these travel unencrypted.
  3. Because control and data are kept separate, commands can be sent while a transfer is running.
  4. TFTP is the simpler UDP-based version without login.

SSH

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>

Definition. SSH (Secure Shell) gives a secure remote login and command session over an insecure network, on TCP port 22.

Key points.

  1. It replaces Telnet, which sent passwords in plain text, by encrypting the whole session.
  2. The server is authenticated by its host key, and the user by password or public-key pair.
  3. It provides confidentiality and integrity, and supports secure file copy (SCP, SFTP) and port forwarding.

Email (SMTP, MIME, IMAP)

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">High weight</span>

Definition. Email is an application-layer service in which a user agent composes a message, mail servers relay it using SMTP, and the receiver fetches it using a mailbox-access protocol such as IMAP.

Diagram. <figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u5-01" viewBox="0 0 517 226.2" width="517" height="226.2" role="img" aria-label="Email flow. UA = user agent (sender, receiver), MTA = mail transfer agent (mail server), MB = receiver mailbox"><style>#dsfig-u5-01 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u5-01 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u5-01 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u5-01 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u5-01 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u5-01 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u5-01 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u5-01 .t{fill:#16181D;font-weight:500}#dsfig-u5-01 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u5-01 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u5-01 .dot{fill:#16181D}#dsfig-u5-01 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u5-01 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u5-01 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u5-01 .ah{fill:#454C5A}#dsfig-u5-01 .ah.hi{fill:#2340B8}#dsfig-u5-01 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u5-01 .wl .t{font-size:12px;font-weight:700}#dsfig-u5-01 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u5-01 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u5-01 .e{stroke:#B1B7C3}html.dark #dsfig-u5-01 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u5-01 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u5-01 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u5-01 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u5-01 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u5-01 .t{fill:#E6E8ED}html.dark #dsfig-u5-01 .t.inv{fill:#0F1115}html.dark #dsfig-u5-01 .kd{stroke:#E6E8ED}html.dark #dsfig-u5-01 .dot{fill:#E6E8ED}html.dark #dsfig-u5-01 .ann{fill:#8FA3FF}html.dark #dsfig-u5-01 .lbl{fill:#858D9C}html.dark #dsfig-u5-01 .ptr{fill:#8FA3FF}html.dark #dsfig-u5-01 .ah{fill:#B1B7C3}html.dark #dsfig-u5-01 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u5-01 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u5-01 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u5-01 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah5" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh5" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M59,40 L158.2,40" marker-end="url(#ah5)"/><path class="e" d="M212.2,40 L304.4,40" marker-end="url(#ah5)"/><path class="e" d="M358.4,40 L449,40" marker-end="url(#ah5)"/><path class="e" d="M470,59 L470,165.2" marker-end="url(#ah5)"/><g class="wl"><rect x="92.7" y="31" width="40.8" height="18" rx="9"/><text class="t" x="113.1" y="40" dy=".35em" text-anchor="middle">SMTP</text></g><g class="wl"><rect x="238.9" y="31" width="40.8" height="18" rx="9"/><text class="t" x="259.3" y="40" dy=".35em" text-anchor="middle">SMTP</text></g><g class="wl"><rect x="449.6" y="104.1" width="40.8" height="18" rx="9"/><text class="t" x="470" y="113.1" dy=".35em" text-anchor="middle">IMAP</text></g><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">UA1</text><rect class="n" x="161.2" y="25" width="50" height="30" rx="15"/><text class="t" x="186.2" y="40" dy=".35em" text-anchor="middle">MTA1</text><rect class="n" x="307.4" y="25" width="50" height="30" rx="15"/><text class="t" x="332.4" y="40" dy=".35em" text-anchor="middle">MTA2</text><circle class="n" cx="470" cy="40" r="18"/><text class="t" x="470" y="40" dy=".35em" text-anchor="middle">MB</text><circle class="n" cx="470" cy="186.2" r="18"/><text class="t" x="470" y="186.2" dy=".35em" text-anchor="middle">UA2</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Email flow. UA = user agent (sender, receiver), MTA = mail transfer agent (mail server), MB = receiver mailbox</figcaption></figure>

Key points.

  1. SMTP (Simple Mail Transfer Protocol) is a push protocol that moves mail from the sender's user agent to its server and between servers, over TCP port 25.
  2. SMTP commands are text lines such as HELO, MAIL FROM, RCPT TO, DATA and QUIT, and each is answered by a numeric reply code (250 means OK).
  3. SMTP transfers only 7-bit ASCII text, so it cannot carry images, audio or non-English text directly.
  4. MIME (Multipurpose Internet Mail Extensions) extends the message format by adding headers such as MIME-Version, Content-Type and Content-Transfer-Encoding, so binary data is converted to ASCII (for example Base64) and sent by SMTP.
  5. MIME allows attachments, multiple parts, and content types like text/html, image/jpeg and audio/mpeg.
  6. IMAP (Internet Message Access Protocol, port 143) is a pull protocol that lets the receiver read mail stored on the server.
  7. IMAP keeps mail on the server, supports folders, partial download and searching, and syncs the same mailbox across many devices; POP3 (port 110) instead downloads and usually deletes it.
  8. Advantages are fast, cheap and asynchronous delivery; limitations are spam and lack of built-in security, so TLS is added.

Answer frame. Open with the definition of email and its three protocols; draw the flow diagram; then develop SMTP, MIME and IMAP in that order (points 1-7), naming port and function for each; close with one line: SMTP sends, MIME formats, IMAP retrieves. The 14-mark question needs any two of four topics, so answer this one plus one more.

Asked: [14 marks] (Jun 2025) Write a short note on (any two): a) SMTP, MIME and IMAP email protocols b) Bellman-ford algorithm c) IEEE Standards 802 series d) Types of transmission media (guided and unguided)

DNS

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>

Definition. <mark>The Domain Name System is a hierarchical, distributed naming database that translates domain names into IP addresses and back.</mark>

Key points.

  1. It lets users remember names such as www.rgpv.ac.in instead of numeric IP addresses, and uses UDP port 53 (TCP for large transfers).
  2. The hierarchy is root, top-level domain (.in, .com), then authoritative servers for each domain.
  3. Forward lookup: the resolver asks root, then TLD, then the authoritative server, which returns the IP; answers are cached.
  4. Reverse lookup maps an IP to a name using PTR records under in-addr.arpa.
  5. Record types: A (IPv4), AAAA (IPv6), MX (mail server), NS (name server), CNAME (alias), PTR.

Asked: [7 marks] (May 2024) What is the Domain Name System (DNS) and what role does it play in computer networking? Explain how DNS translates domain names to IP addresses and vice versa.

Network Management (SNMP)

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>

Definition. SNMP (Simple Network Management Protocol) is an application-layer protocol that lets a manager monitor and control network devices such as routers and switches.

Key points.

  1. Architecture has a manager (the management station), agents running on each device, and the MIB (Management Information Base), the database of variables the agent exposes.
  2. It runs over UDP on ports 161 (agent) and 162 (traps).
  3. PDUs: GetRequest reads a value, GetNextRequest reads the next, SetRequest changes a value, Response returns the result, and Trap is an unsolicited alarm from the agent.
  4. Functions are monitoring (traffic, CPU), configuration (setting values), and fault management (traps on failures).

Asked: [7 marks] (May 2023) Explain Simple Network Management Protocol (SNMP) and its functions.

Introduction to security

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>

Definition. Network security protects data and systems from unauthorised access, alteration and loss.

Key points.

  1. The CIA triad: confidentiality (only authorised users read data), integrity (data is not altered) and availability (service is usable when needed).
  2. Attacks are passive (eavesdropping, traffic analysis) or active (masquerade, replay, modification, denial of service).
  3. Cryptography, firewalls and authentication are the main defences.

Traditional Ciphers

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>

Definition. <mark>Traditional ciphers are character-oriented ciphers that hide plaintext by substituting or rearranging letters using a secret key.</mark>

Key points.

  1. Substitution replaces letters: Caesar shifts each letter by a fixed key k, so with k = 3 HELLO becomes KHOOR.
  2. Monoalphabetic cipher uses one arbitrary letter-to-letter mapping (26! keys) but is broken by letter-frequency analysis.
  3. Polyalphabetic ciphers (Vigenere) use several mappings, hiding frequencies.
  4. Transposition keeps letters but changes positions: rail fence with depth 2 writes MEETMENOW in two rows and reads M E M N W then E T E O, giving MEMNWETEO.
  5. Columnar transposition writes the text in rows and reads columns in key order.

Asked: [7 marks] (May 2023) What are Traditional ciphers? What are the different techniques used in traditional cipher? Explain.

Modern Ciphers

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>

Definition. Modern ciphers are bit-oriented ciphers that process binary data as block ciphers (DES, AES) or stream ciphers, and include public-key systems such as RSA.

Key points.

  1. Block ciphers encrypt fixed blocks (DES 64-bit block with 56-bit key; AES 128-bit block with 128/192/256-bit key); stream ciphers encrypt bit by bit.
  2. Symmetric encryption uses one shared secret key; asymmetric uses a public key to encrypt and a private key to decrypt.
  3. Modern ciphers have huge key spaces (2^128 for AES) versus 26! for monoalphabetic, so brute force is impractical.
  4. They give diffusion and confusion, so one plaintext change alters many ciphertext bits and frequency analysis fails.
  5. They work on bits by computer, so they encrypt any data, and are fast.
  6. Public-key ciphers solve key distribution and enable digital signatures.
Basis Symmetric Asymmetric
Keys One shared secret Public and private pair
Speed Fast Slower
Problem Key distribution Computation cost
Examples DES, AES RSA
Basis Traditional Modern
--- --- ---
Unit Characters Bits
Key space Small Very large
Security Broken by frequency analysis Resists it

Answer frame. Define modern ciphers; give both tables; for Q3 stress advantages (points 3-5), for Q4 the symmetric-asymmetric table first; close: modern ciphers give strong, fast, key-managed security.

Asked: [7 marks] (May 2024) Define modern ciphers and explain their advantages over traditional ciphers. Asked: [7 marks] (Jun 2025) Explain the differences between symmetric and asymmetric encryption techniques. How do modern ciphers improve network security compared to traditional ciphers?

Message Integrity and Authentication

<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>

Definition. Message integrity ensures a message is unchanged in transit, and authentication proves who sent it.

Key points.

  1. A hash function (MD5, SHA) turns a message into a fixed-size digest; any change in the message changes the digest.
  2. A MAC (message authentication code) is a hash computed with a shared secret key, so it proves both integrity and sender.
  3. A digital signature is a hash encrypted with the sender's private key, so anyone can verify it with the public key and the sender cannot deny it.

Last-minute revision

  • HTTP: port 80, stateless, GET/POST/PUT/DELETE; HTTPS port 443.
  • FTP: control port 21, data port 20.
  • SSH: port 22, secure replacement for Telnet.
  • SMTP port 25 (push), IMAP port 143 (pull), POP3 port 110; MIME allows non-ASCII content.
  • DNS: port 53, records A, AAAA, MX, NS, CNAME, PTR.
  • SNMP: manager, agent, MIB; ports 161/162; PDUs Get, Set, Response, Trap.
  • CIA triad: confidentiality, integrity, availability.
  • Caesar: HELLO with k = 3 gives KHOOR; monoalphabetic has 26! keys.
  • DES 64-bit block, 56-bit key; AES 128-bit block, key 128/192/256.
  • Symmetric one key and fast; asymmetric two keys and slower.
  • MAC uses a shared key; digital signature uses a private key.

Memory hooks

  • SMTP Sends, MIME Makes-ready, IMAP Inspects on server.
  • Ports: FTP 20/21, SSH 22, SMTP 25, DNS 53, HTTP 80, IMAP 143, SNMP 161.
  • SNMP = Manager asks, Agent answers, MIB stores.
  • Substitution swaps letters, transposition moves them.
  • CIA = Confidential, Intact, Available.

Coverage checklist

  • WWW and HTTP: Jun 2025 HTTP and DNS question.
  • FTP: definition and ports.
  • SSH: definition and port.
  • Email (SMTP, MIME, IMAP): Jun 2025 short note.
  • DNS: May 2024 DNS question and Jun 2025 part ii.
  • Network Management (SNMP): May 2023 SNMP question.
  • Introduction to security: CIA triad and attacks.
  • Traditional Ciphers: May 2023 question.
  • Modern Ciphers: May 2024 and Jun 2025 questions.
  • Message Integrity and Authentication: hash, MAC, signature.
Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in