15 Min Read • Study Chapter

Unit 6: Network Security, Modern Cryptography & Perimeter Defense

CIA security triad, mathematical derivation of RSA public-key cryptosystems, cryptographic hashes, digital certificates, and packet-filter firewall architectures

As enterprise systems and AI model inference endpoints migrate to distributed cloud architectures, securing network packets across untrusted physical media is paramount. In the SPPU Autonomous curriculum (ADES203 Unit 6), students are evaluated on cryptographic mathematics, symmetric and asymmetric key infrastructure, hash authentication, and perimeter defense layers. This module carries 14–16 marks in the End-Term Examination (ETE), with compulsory numerical problems on RSA public-key generation and protocol handshake traces.

1. The Fundamental CIA Security Triad

Information security models rest upon three core pillars known as the CIA Triad:

  • Confidentiality: Ensures data packets cannot be read or understood by unauthorized interceptors. Achieved via symmetric/asymmetric encryption algorithms (AES, RSA).
  • Integrity: Guarantees that transmitted data has not been modified, injected, or tampered with in transit. Enforced via cryptographic hash functions (SHA-256) and Message Authentication Codes (MAC).
  • Availability: Guarantees authenticated users retain timely and reliable access to systems and bandwidth. Defended against Distributed Denial of Service (DDoS) through load balancers, rate-limiting, and firewalls.

2. Symmetric vs. Asymmetric Cryptography

Ciphers are categorized based on whether the sender and receiver share identical or complementary keys:

🔐 Cryptographic Comparison Matrix

  • Symmetric Key Cryptography: Employs a single secret key for both encryption and decryption. Fast and computationally lightweight, making it ideal for bulk data transfer. Major standards include DES (56-bit key), 3DES, and AES (128/192/256-bit keys). The critical vulnerability is key distribution: sharing the key across an untrusted network requires out-of-band communication.
  • Asymmetric (Public Key) Cryptography: Employs mathematically linked key pairs—a Public Key made visible to the world, and a Private Key guarded securely by the owner. Solves key distribution challenges. Primary algorithms: RSA, Diffie-Hellman Key Exchange, and Elliptic Curve Cryptography (ECC). Computationally heavier than symmetric ciphers.

3. Mathematical Derivation of the RSA Cryptosystem

Proposed in 1977 by Ron Rivest, Adi Shamir, and Leonard Adleman, RSA's security relies on the computational difficulty of factoring the product of two large prime numbers.

Algorithm Trace RSA Key Generation & Transformation Formulas
1. Select two distinct prime numbers: p and q.
2. Compute modulus n: n = p * q.
3. Compute Euler's totient: phi(n) = (p - 1) * (q - 1).
4. Choose public exponent e such that:
   1 < e < phi(n) and gcd(e, phi(n)) == 1  (e is coprime to phi(n))
5. Calculate private exponent d:
   d * e = 1 (mod phi(n))  (d is modular multiplicative inverse of e)

Encryption: Ciphertext C = (M^e) mod n  (where M < n is plaintext)
Decryption: Plaintext  M = (C^d) mod n

Worked Examination Problem: RSA Numerical

Problem: In an RSA cryptosystem, choose prime numbers \(p = 3\) and \(q = 11\). Given public exponent \(e = 7\), encrypt the plaintext message \(M = 2\) and verify decryption.

Step-by-Step Solution:

  1. Calculate modulus: \(n = p \times q = 3 \times 11 = 33\).
  2. Calculate Euler's totient: \(\phi(n) = (3 - 1) \times (11 - 1) = 2 \times 10 = 20\).
  3. Check \(e = 7\): \(\gcd(7, 20) = 1\) (valid public key \(\{7, 33\}\)).
  4. Find private key \(d\): \(d \times 7 \equiv 1 \pmod{20}\). Since \((3 \times 7 = 21 \equiv 1 \pmod{20})\), we have \(d = 3\). (Private key is \(\{3, 33\}\)).
  5. Encryption: \(C = M^e \bmod n = 2^7 \bmod 33 = 128 \bmod 33\). Since \(33 \times 3 = 99\) and \(128 - 99 = 29\), \(C = \mathbf{29}\).
  6. Decryption Verification: \(M = C^d \bmod n = 29^3 \bmod 33\). Note \(29 \equiv -4 \pmod{33}\). Then \((-4)^3 = -64\). \(-64 \bmod 33 = -64 + 66 = \mathbf{2}\). Matches original plaintext \(M = 2\)!

4. Cryptographic Hashes & Digital Signatures

A cryptographic hash function maps arbitrary-length input data into a fixed-length hexadecimal digest. Crucial security properties include:

  • Deterministic: The exact same input message always produces the exact same output digest.
  • Pre-image Resistance (One-Way): Computationally infeasible to reverse-engineer \(M\) from given hash \(H(M)\).
  • Collision Resistance: Computationally impossible to find two distinct inputs \(M_1 \ne M_2\) such that \(H(M_1) = H(M_2)\).
  • Avalanche Effect: Flipping a single input bit alters over 50% of output hash bits.

Digital Signatures: Provide non-repudiation and authenticity. The sender hashes the message \(H(M)\), encrypts this hash with their own Private Key, and attaches it as the signature. Any receiver verifies it by decrypting the signature using the sender's Public Key and comparing it with their independently computed hash of \(M\).

5. Network Perimeter Defense: Firewalls & DMZ

A firewall is a network security device that monitors and filters incoming and outgoing network traffic based on an organization's previously established security policies:

🛡️ Firewall Architectures

  • Packet-Filtering Firewalls: Operates at OSI Layer 3 & 4 (Network & Transport). Inspects individual packet headers (Source/Destination IP, Port numbers, Protocol flags) against access control lists (ACLs). Stateless—evaluates packets in isolation without session memory.
  • Stateful Inspection Firewalls: Tracks active TCP connection state tables (SYN, SYN-ACK, ACK, ESTABLISHED). Packets arriving without matching active outgoing sessions are dropped immediately.
  • Proxy / Application-Level Gateway: Operates at OSI Layer 7 (Application). Inspects actual payload contents (HTTP headers, SQL queries, SMTP attachments) to prevent application layer exploits.
  • Demilitarized Zone (DMZ): A physical or logical subnet separating an internal private local area network (LAN) from untrusted external networks (the Internet). Public-facing services (Web, DNS, Mail servers) reside in the DMZ so that a compromise of these servers does not expose the internal core network.

6. Typical Autonomous ETE Exam Questions & Marking Schemas

Q1: Differentiate between Symmetric and Asymmetric Cryptography across 5 parameters. (5 Marks)

Answer Strategy: Structure a clean comparative table with columns: Parameter, Symmetric Ciphers, Asymmetric Ciphers. Compare on: Number of keys (1 shared vs 2 complementary), Speed/Computational Overhead (Fast/Low vs Slow/High), Key Distribution (Severe challenge vs Straightforward public distribution), Primary Use Cases (Bulk data encryption vs Key exchange & digital signatures), and Standard Algorithms (AES/DES vs RSA/ECC).

Q2: Explain the Transport Layer Security (TLS) 1.2 / 1.3 handshake sequence. (6 Marks)

Answer Strategy: Draw the step-by-step diagram showing ClientHello (supported cipher suites), ServerHello (selected cipher + digital certificate with public key), Client Key Exchange (pre-master secret encrypted with server public key), Session Key Derivation, and Finished verification handshake.

📥 Printable Chapter Reference (PDF Supplement)

Prefer an offline physical copy for revision or exam night preparation? You can download our verified, printer-friendly PDF synthesis for Unit 6 below:

Networking: Unit 6 Network Security & Cryptography Notes (PDF) Handwritten & typeset curriculum guide • RSA derivations, ciphers, firewalls & Solved PYQs
Download Printable PDF ↗

🔗 Related Study Resources