PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) (IPsec आर्किटेक्चर: AH बनाम ESP प्रोटोकॉल में अंतर) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: IPsec (Internet Protocol Security, RFC 4301) provides end-to-end cryptographic security directly at OSI Layer 3 using two core protocols: Authentication Header (AH, IP Protocol 51) and Encapsulating Security Payload (ESP, IP Protocol 50). While AH guarantees integrity and authentication across immutable outer IP header fields without encryption, ESP delivers payload confidentiality alongside integrity and works seamlessly behind NAT.
अध्याय सार: IPsec (RFC 4301) OSI लेयर 3 पर सीधे IP पैकेट को सुरक्षित करने वाला प्रोटोकॉल समूह है, जिसके दो मुख्य भाग हैं: ऑथेंटिकेशन हेडर (AH, IP प्रोटोकॉल 51) और एनकैप्सुलेटिंग सिक्योरिटी पेलोड (ESP, IP प्रोटोकॉल 50)। जहाँ AH बिना एन्क्रिप्शन के बाहरी IP हेडर सहित संपूर्ण पैकेट की अखंडता जांचता है, वहीं ESP गोपनीयता (एन्क्रिप्शन) और प्रमाणीकरण दोनों देता है तथा NAT के साथ भी काम करता है।
IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation): Detailed Notes & Architecture (IPsec आर्किटेक्चर: AH बनाम ESP प्रोटोकॉल में अंतर)
1. IPsec Architecture: SPD, SAD & Security Associations (SAs) (IPsec संरचना: SPD, SAD और सिक्योरिटी एसोसिएशन (SA))
[EN] Defined in RFC 4301, IPsec secures IPv4 and IPv6 traffic transparently at OSI Layer 3 for every upper TCP/UDP application without modifying app code. Two databases govern packet handling: the Security Policy Database (SPD) decides whether each flow is Bypassed, Discarded, or Protected, while the Security Association Database (SAD) tracks active unidirectional Security Associations (SAs). Every SA is uniquely identified by a 3-tuple: the 32-bit Security Parameters Index (SPI), Destination IP Address, and Security Protocol ID (AH=51 or ESP=50). Because SAs are strictly unidirectional, bidirectional communication requires at least two SAs (inbound and outbound).
[HI] RFC 4301 में परिभाषित IPsec किसी ऐप कोड को बदले बिना लेयर 3 पर सभी IPv4/IPv6 पैकेट्स को सुरक्षित करता है। इसमें दो डेटाबेस होते हैं: SPD तय करता है कि पैकेट को छोड़ना है, बिना बदले भेजना है या एन्क्रिप्ट करना है, और SAD सक्रिय एकतरफा सिक्योरिटी एसोसिएशन (SA) सहेजता है। प्रत्येक SA की पहचान 3-टपल (32-बिट SPI, डेस्टिनेशन IP और प्रोटोकॉल AH=51 या ESP=50) से होती है; दोतरफा संवाद के लिए कम से कम 2 SA आवश्यक होते हैं।
2. IKEv1 vs IKEv2 Key Negotiation & Anti-Replay Sequence (IKEv1 बनाम IKEv2 की-नेगोशिएशन और एंटी-रीप्ले विंडो)
[EN] Manual static key entry does not scale, so IPsec relies on IKE (Internet Key Exchange, UDP 500 or UDP 4500 with NAT-T) to authenticate peers via Pre-Shared Keys (PSK) or X.509 certificates and derive session keys via Diffie-Hellman. Legacy IKEv1 used a verbose two-phase process (Phase 1 Main Mode 6 messages + Phase 2 Quick Mode 3 messages). Modern IKEv2 (RFC 7296) streamlines negotiation into just 4 messages (`IKE_SA_INIT` + `IKE_AUTH`), natively integrates Dead Peer Detection (DPD) and MOBIKE roaming, and seeds a 32-bit/64-bit sliding Sequence Number inside AH/ESP headers to defeat replay attacks.
[HI] IPsec में अस्थायी गुप्त कुंजियाँ बनाने के लिए IKE (UDP 500 या NAT-T पर UDP 4500) प्रयुक्त होता है जो PSK या सर्टिफिकेट से पहचान प्रमाणित कर डिफ़ी-हेलमैन से कुंजियाँ निकालता है। पुराने IKEv1 में फेज 1 (6 संदेश) और फेज 2 (3 संदेश) लगते थे, जबकि आधुनिक IKEv2 (RFC 7296) मात्र 4 संदेशों में सुरक्षित टनल स्थापित कर लेता है और इसमें एंटी-रीप्ले के लिए क्रम संख्या (Sequence Number) विंडो होती है।
3. AH (IP Protocol 51) vs ESP (IP Protocol 50) Capabilities (AH (प्रोटोकॉल 51) बनाम ESP (प्रोटोकॉल 50) की क्षमताएं)
[EN] Authentication Header (AH, RFC 4302, IP Protocol number 51) inserts an Integrity Check Value (ICV / HMAC) guaranteeing data origin authentication, connectionless integrity, and anti-replay protection across BOTH the payload and immutable fields of the outer IP header (such as Source/Dest IP)—but AH provides ZERO encryption/confidentiality. Conversely, Encapsulating Security Payload (ESP, RFC 4303, IP Protocol number 50) encrypts the payload + ESP trailer using AES-GCM or ChaCha20 AND optionally authenticates the ESP header through trailer via HMAC/AEAD, while intentionally leaving the outer IP header unauthenticated.
[HI] ऑथेंटिकेशन हेडर (AH, IP प्रोटोकॉल 51) केवल डेटा स्रोत प्रमाणीकरण, अखंडता (HMAC ICV) और रीप्ले सुरक्षा देता है—यह पैकेट पेलोड के साथ-साथ बाहरी IP हेडर के स्थिर हिस्सों की भी जाँच करता है, लेकिन इसमें कोई एन्क्रिप्शन (गोपनीयता) नहीं होती। इसके विपरीत ESP (IP प्रोटोकॉल 50) डेटा पेलोड को एन्क्रिप्ट कर गोपनीयता देता है और ESP हेडर से ट्रेलर तक प्रमाणीकरण भी करता है, लेकिन बाहरी IP हेडर को खुला व अनहैश्ड छोड़ देता है।
4. Transport Mode vs Tunnel Mode & Why AH Breaks Behind NAT (ट्रांसपोर्ट बनाम टनल मोड और NAT के साथ AH क्यों टूटता है)
[EN] In Transport Mode, AH or ESP inserts directly between the original IP header and the TCP/UDP header, preserving the original host IP routing—ideal for host-to-host intranet protection. In Tunnel Mode, the entire original IP packet (including its original IP header) is wrapped inside a brand-new outer IP header linking two VPN gateways—mandatory for Site-to-Site VPNs hiding private LAN IPs. Crucially, because AH computes its cryptographic HMAC across Source/Dest IP fields of the outer IP header, any NAT router rewriting those IP addresses invalidates AH's signature and causes packet rejection; ESP ignores outer IP headers and works cleanly over NAT via UDP 4500.
[HI] ट्रांसपोर्ट मोड में मूल IP हेडर के ठीक बाद AH/ESP जोड़ा जाता है (दो कंप्यूटरों के सीधे संवाद के लिए), जबकि टनल मोड में पूरे मूल IP पैकेट को एक नए बाहरी IP हेडर में बंद किया जाता है (साइट-टू-साइट VPN गेटवे के लिए अनिवार्य)। अत्यंत महत्वपूर्ण परीक्षा तथ्य: चूंकि AH बाहरी IP हेडर के सोर्स/डेस्टिनेशन IP पर हैश बनाता है, इसलिए रास्ते में NAT द्वारा IP बदलते ही AH की जाँच फेल हो जाती है; जबकि ESP बाहरी IP की जाँच न करने के कारण NAT (UDP 4500) के साथ सुचारु चलता है।
Syntax, Formula & Technical Example (IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation))
# IPsec Packet Layouts (Transport Mode vs Tunnel Mode)
# 1. Original Packet: [ Orig IP Hdr | TCP/UDP Hdr | Data ]
# 2. AH Transport (51): [ Orig IP Hdr | AH Hdr | TCP/UDP Hdr | Data ] <-- Auth covers Orig IP + Payload (NO Encrypt)
# 3. ESP Transport(50): [ Orig IP Hdr | ESP Hdr | <Encrypted: TCP/UDP | Data | ESP Trailer> | ESP Auth ]
# 4. ESP Tunnel (50): [ New Outer IP | ESP Hdr | <Encrypted: Orig IP | TCP/UDP | Data | Trailer> | ESP Auth ]
# Note: IP Protocol 51 = AH, IP Protocol 50 = ESP (NOT TCP/UDP ports!); IKE runs on UDP 500 / 4500
IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) Quick Reference & Comparison Table
| IPsec Protocol / Mode | IP Protocol ID & Protected Scope | Confidentiality & NAT Exam Note |
|---|---|---|
| AH (Authentication Header) | IP Protocol 51; authenticates payload and outer IP header | Zero encryption; breaks across NAT routers rewriting IPs |
| ESP (Encapsulating Security Payload) | IP Protocol 50; encrypts/auths payload and ESP trailer | Full confidentiality + integrity; NAT-compatible via UDP 4500 |
| Transport Mode | Inserts AH/ESP after original IP header (host-to-host) | Lower overhead; exposes real endpoint IPs in outer header |
| Tunnel Mode | Wraps entire original IP packet inside a new outer IP header | Required for Site-to-Site VPN gateways hiding LAN IPs |
IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) Top 20 Bilingual MCQs with Answers
Q1. What are the exact IP Protocol numbers assigned by IANA to IPsec AH and ESP in the IPv4 Next Header / Protocol field?
(IPv4 हेडर में IPsec AH और ESP के लिए IANA द्वारा निर्धारित सटीक IP प्रोटोकॉल नंबर कौन से हैं?)
(A) AH = TCP Port 51, ESP = TCP Port 50
(B) AH = UDP Port 500, ESP = UDP Port 4500
(C) AH = Protocol 6, ESP = Protocol 17
(D) AH = Protocol 51, ESP = Protocol 50
Correct Answer: (D)
[EN] AH and ESP are direct Layer 3 IP protocols (51 and 50), not TCP/UDP port numbers; only IKE key negotiation uses UDP ports 500/4500.
[HI] AH (प्रोटोकॉल 51) और ESP (प्रोटोकॉल 50) सीधे लेयर 3 IP प्रोटोकॉल नंबर हैं, न कि TCP/UDP पोर्ट (केवल IKE UDP 500/4500 पर चलता है)।
Q2. Which security services does IPsec Authentication Header (AH) provide, and which crucial service does it completely LACK?
(IPsec ऑथेंटिकेशन हेडर (AH) कौन सी सुरक्षा सेवाएं देता है और किस प्रमुख सेवा का इसमें पूर्णतः अभाव होता है?)
(A) Provides Layer 2 switching; LACKS IP routing
(B) Provides integrity, origin authentication, and anti-replay; LACKS encryption (confidentiality)
(C) Provides compression; LACKS authentication
(D) Provides encryption; LACKS integrity checking
Correct Answer: (B)
[EN] AH leaves the payload entirely readable in plaintext while protecting it against tampering and spoofing via an HMAC.
[HI] AH पैकेट की अखंडता (Integrity), स्रोत प्रमाणन और एंटी-रीप्ले तो देता है, लेकिन डेटा को एन्क्रिप्ट (गोपनीयता) बिल्कुल नहीं करता।
Q3. Why does IPsec AH fail to traverse standard Network Address Translation (NAT) gateways?
(IPsec AH मानक नेटवर्क एड्रेस ट्रांसलेशन (NAT) गेटवे के पार क्यों विफल हो जाता है?)
(A) NAT strips the encrypted AES payload from AH
(B) AH uses IPv6 exclusively
(C) AH consumes TCP port 80
(D) AH calculates its HMAC integrity hash over immutable outer IP header fields including Source and Destination IP, which NAT modifies
Correct Answer: (D)
[EN] When a NAT router replaces the private source IP with its public IP, the receiving peer's HMAC verification immediately rejects the packet as tampered.
[HI] चूंकि AH बाहरी IP हेडर के सोर्स व डेस्टिनेशन IP को भी हैश में शामिल करता है, इसलिए NAT द्वारा IP बदलते ही रिसीवर पैकेट को छेड़छाड़ मानकर अस्वीकार कर देता है।
Q4. Why can ESP (Encapsulating Security Payload) survive NAT traversal cleanly using UDP port 4500?
(ESP प्रोटोकॉल UDP पोर्ट 4500 के माध्यम से NAT ट्रावर्सल को सफलतापूर्वक कैसे पार कर लेता है?)
(A) ESP excludes the outer IP header from its integrity hash and authentication tag, allowing NAT IP rewrites without invalidating signatures
(B) ESP disables all integrity checking globally
(C) ESP sends its keys in plaintext inside the outer IP header
(D) ESP converts IP packets into ICMP pings
Correct Answer: (A)
[EN] Wrapping ESP in UDP 4500 gives PAT routers standard UDP ports while ESP's authentication covers only the inner ESP header through trailer.
[HI] ESP बाहरी IP हेडर पर हैश नहीं लगाता, और UDP 4500 में लिपटने के कारण PAT/NAT राउटर बिना हैश तोड़े इसे आसानी से आगे भेज देते हैं।
Q5. Because IPsec Security Associations (SAs) are strictly unidirectional, how many SAs are needed for one bidirectional encrypted ESP session between two hosts?
(IPsec सिक्योरिटी एसोसिएशन (SA) एकतरफा होते हैं; दो होस्ट्स के बीच एक दोतरफा एन्क्रिप्टेड ESP संवाद के लिए न्यूनतम कितने SA बनेंगे?)
(A) 4 SAs even when using only ESP
(B) 2 SAs (one inbound SA and one outbound SA)
(C) 0 SAs because ESP is stateless
(D) 1 single shared bidirectional SA
Correct Answer: (B)
[EN] Each direction carries its own distinct SPI and symmetric keys; using both AH and ESP simultaneously would double that to 4 SAs.
[HI] हर दिशा (आने और जाने) के लिए अलग SPI व कुंजी वाला एक SA बनता है, अतः दोतरफा ESP संवाद में कुल 2 SA बनते हैं।
Q6. Which 3-tuple uniquely identifies an IPsec Security Association inside the Security Association Database (SAD)?
(Security Association Database (SAD) में किसी IPsec SA की अद्वितीय पहचान किस 3-टपल से होती है?)
(A) Source MAC, VLAN ID, and TCP Port
(B) Security Parameters Index (SPI), Destination IP Address, and Security Protocol (AH or ESP)
(C) TTL, Checksum, and MTU
(D) Username, Password, and DNS Hostname
Correct Answer: (B)
[EN] The receiving IPsec engine extracts the 32-bit SPI from the AH/ESP header alongside Destination IP and Protocol ID to look up the decryption key in its SAD.
[HI] प्राप्तकर्ता कंप्यूटर पैकेट से 32-बिट SPI, डेस्टिनेशन IP और प्रोटोकॉल (AH या ESP) देखकर SAD से डिक्रिप्शन कुंजी निकालता है।
Q7. Which IPsec mode is mandatory for Site-to-Site gateway VPNs connecting two private corporate subnets (`10.1.0.0/16` and `10.2.0.0/16`) across the public Internet?
(पब्लिक इंटरनेट पर दो निजी कॉर्पोरेट सबनेट को जोड़ने वाले साइट-टू-साइट गेटवे VPN के लिए कौन सा IPsec मोड अनिवार्य है?)
(A) Tunnel Mode
(B) Promiscuous Span Mode
(C) Passive Tap Mode
(D) Transport Mode
Correct Answer: (A)
[EN] Private RFC 1918 addresses cannot route across the public Internet, so Tunnel Mode encrypts the entire original IP packet inside a new public gateway outer IP header.
[HI] निजी IP इंटरनेट पर रूट नहीं हो सकते, इसलिए टनल मोड पूरे मूल पैकेट को एन्क्रिप्ट कर गेटवे के नए सार्वजनिक IP हेडर में लपेटकर भेजता है।
Q8. In Transport Mode, where does the IPsec ESP or AH header sit inside the transmitted packet?
(IPsec के ट्रांसपोर्ट मोड में ESP या AH हेडर पैकेट के भीतर किस स्थान पर लगाया जाता है?)
(A) Between the original IP header and the Layer 4 (TCP/UDP) transport header
(B) Only after the entire packet ends as a separate ICMP message
(C) Ahead of the Ethernet MAC header
(D) Inside the HTTP HTML body
Correct Answer: (A)
[EN] Transport mode keeps the original source/destination IP header exposed on the outside and protects only the Layer 4+ payload.
[HI] ट्रांसपोर्ट मोड में मूल IP हेडर बाहर ही रहता है और ठीक उसके बाद व TCP/UDP हेडर से पहले AH/ESP लगाया जाता है।
Q9. What does the Security Policy Database (SPD) decide before any packet enters an IPsec SA?
(किसी पैकेट के IPsec SA में जाने से पहले Security Policy Database (SPD) क्या निर्णय लेता है?)
(A) What DNS TTL value to assign
(B) Which web browser theme the user prefers
(C) Which BGP ISP peer costs less money
(D) Whether matching traffic should be Discarded, Bypassed unencrypted, or Protected via IPsec
Correct Answer: (D)
[EN] SPD evaluates traffic selectors (IP/subnet/protocol/port) to enforce one of three policies: DISCARD, BYPASS, or PROTECT.
[HI] SPD ट्रैफिक के नियमों के आधार पर तय करता है कि पैकेट को रोकना (Discard) है, बिना सुरक्षा भेजना (Bypass) है या IPsec से एन्क्रिप्ट (Protect) करना है।
Q10. Which UDP ports are used by IKE (Internet Key Exchange) for peer authentication and automatic SA negotiation?
(पीयर प्रमाणीकरण और स्वचालित SA कुंजी विनिमय के लिए IKE प्रोटोकॉल किन UDP पोर्ट्स का उपयोग करता है?)
(A) TCP port 22 and TCP port 443
(B) UDP port 53 and UDP port 67
(C) UDP port 500 (standard IKE) and UDP port 4500 (IKE + NAT-T)
(D) TCP port 50 and TCP port 51
Correct Answer: (C)
[EN] IKE begins negotiation on UDP 500 and seamlessly floats to UDP 4500 whenever NAT is detected along the path.
[HI] IKE शुरुआत में UDP पोर्ट 500 पर बात करता है और रास्ते में NAT मिलने पर UDP पोर्ट 4500 (NAT-T) पर स्विच हो जाता है।
Q11. How does IKEv2 (RFC 7296) improve handshake efficiency compared to legacy IKEv1?
(पुराने IKEv1 की तुलना में आधुनिक IKEv2 (RFC 7296) हैंडशेक की कार्यक्षमता कैसे बढ़ाता है?)
(A) IKEv2 limits keys to 40-bit DES
(B) IKEv2 removes Diffie-Hellman encryption entirely
(C) IKEv2 completes mutual authentication and initial SA setup in just 4 messages (2 exchanges) instead of 9 messages in IKEv1 Main+Quick Mode
(D) IKEv2 uses plaintext Telnet commands
Correct Answer: (C)
[EN] IKEv2's `IKE_SA_INIT` (2 msgs) and `IKE_AUTH` (2 msgs) halve setup latency and simplify firewall/NAT recovery.
[HI] जहाँ IKEv1 में Phase 1 और Phase 2 मिलाकर 9 संदेश लगते थे, वहीं IKEv2 मात्र 4 संदेशों में पूरा सुरक्षित टनल तैयार कर लेता है।
Q12. How does IPsec prevent an attacker from capturing an encrypted ESP packet and replaying it 10 minutes later to duplicate actions?
(IPsec किसी हमलावर को एन्क्रिप्टेड ESP पैकेट पकड़कर 10 मिनट बाद दोबारा भेजने (Replay Attack) से कैसे रोकता है?)
(A) Using an authenticated monotonically increasing Sequence Number inside the ESP/AH header checked against a sliding receive window
(B) Changing the MAC address every 10 seconds
(C) Disabling TCP ACKs inside the tunnel
(D) Appending the current local time in plain ASCII
Correct Answer: (A)
[EN] Even if the attacker replays a valid encrypted packet, its Sequence Number is already marked seen (or below the sliding window) and rejected.
[HI] ESP/AH हेडर में मौजूद प्रमाणित सीक्वेंस नंबर को रिसीवर एक स्लाइडिंग विंडो में जांचता है और पुराने/दोहराए गए पैकेट को तुरंत गिरा देता है।
Q13. Why is deploying ESP with Encryption ONLY (`null` authentication) considered cryptographically dangerous?
(बिना प्रमाणीकरण (Null Authentication) के केवल एन्क्रिप्शन के साथ ESP चलाना क्रिप्टोग्राफिक रूप से खतरनाक क्यों माना जाता है?)
(A) Encryption without authentication slows down the CPU 100x
(B) It exposes the pre-shared key in plaintext inside SPI
(C) It makes packets exceed 65,535 bytes automatically
(D) Unauthenticated CBC/CTR ciphertexts are vulnerable to bit-flipping and padding-oracle plaintext recovery attacks
Correct Answer: (D)
[EN] In modern IPsec, ESP should always enforce integrity via HMAC-SHA256 or use an AEAD cipher like AES-GCM.
[HI] बिना अखंडता टैग (HMAC/AEAD) के हमलावर सिफरटेक्स्ट के बिट्स में हेरफेर करके पैडिंग ऑरेकल हमले से डेटा पढ़ सकता है, इसलिए ESP में ऑथेंटिकेशन अनिवार्य रखा जाता है।
Q14. Which fields sit inside the encrypted portion of an ESP Transport Mode packet, and why does ESP add an 'ESP Trailer'?
(ESP ट्रांसपोर्ट मोड पैकेट के एन्क्रिप्टेड हिस्से में क्या होता है और 'ESP Trailer' क्यों जोड़ा जाता है?)
(A) The outer IPv4 Source/Destination IP addresses
(B) The X.509 Certificate Authority root signature
(C) TCP/UDP header + Data + ESP Trailer (Padding, Pad Length, and Next Header field hiding original protocol ID)
(D) Only the 32-bit SPI and Sequence Number
Correct Answer: (C)
[EN] Hiding Next Header inside the encrypted trailer conceals whether the inner payload is TCP, UDP, or ICMP (Traffic Flow Confidentiality) and aligns cipher blocks.
[HI] ESP ट्रेलर ब्लॉक साइज के लिए पैडिंग देता है और Next Header फ़ील्ड को एन्क्रिप्ट करके यह भी छिपाता है कि अंदर TCP है या UDP।
Q15. Which statement correctly summarizes why most real-world IPsec VPNs deploy ESP Tunnel Mode instead of AH + ESP combined?
(अधिकांश वास्तविक IPsec VPN में AH+ESP दोनों की बजाय केवल ESP (Authentication सहित) टनल मोड क्यों अपनाया जाता है?)
(A) ESP Tunnel Mode works without any IP headers
(B) AH is faster than AES hardware engines
(C) ESP with authentication/AEAD already provides integrity, authentication, anti-replay, AND encryption while remaining NAT-compatible
(D) Combined AH+ESP only works on token-ring LANs
Correct Answer: (C)
[EN] Adding AH adds outer-IP authentication that breaks NAT while offering little practical gain over ESP + HMAC/GCM.
[HI] ऑथेंटिकेशन युक्त ESP अकेले ही गोपनीयता, अखंडता व रीप्ले सुरक्षा सब कुछ दे देता है और NAT के साथ भी चलता है, जबकि AH NAT को तोड़ देता है।
Q16. Which of the following statements about IPsec AH and ESP is FALSE?
(IPsec के AH और ESP प्रोटोकॉल्स के बारे में निम्नलिखित में से कौन सा कथन असत्य (FALSE) है?)
(A) Tunnel Mode encapsulates the entire original IP packet inside a new outer IP header
(B) AH uses IP Protocol number 51 and ESP uses IP Protocol number 50
(C) Authentication Header (AH) encrypts the IP payload using AES-256 while ESP provides only integrity checksums
(D) Security Associations in IPsec are unidirectional
Correct Answer: (C)
[EN] It is the exact opposite: ESP encrypts the payload (and optionally authenticates), whereas AH provides integrity/authentication with ZERO encryption.
[HI] यह ठीक उल्टा लिखा है: गोपनीयता (एन्क्रिप्शन) ESP देता है, जबकि AH केवल प्रमाणीकरण व अखंडता देता है और बिल्कुल एन्क्रिप्ट नहीं करता।
Q17. Within IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation), which ipsec protocol / mode directly maps to: "IP Protocol 51; authenticates payload and outer IP header"?
(IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) में कौन सा IPsec Protocol / Mode सीधे "IP Protocol 51; authenticates payload and outer IP header" से संबंधित है?)
(A) Transport Mode
(B) Tunnel Mode
(C) ESP (Encapsulating Security Payload)
(D) AH (Authentication Header)
Correct Answer: (D)
[EN] In IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation), 'AH (Authentication Header)' handles 'IP Protocol 51; authenticates payload and outer IP header' (Zero encryption; breaks across NAT routers rewriting IPs).
[HI] IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) में 'AH (Authentication Header)' का कार्य/विवरण 'IP Protocol 51; authenticates payload and outer IP header' (Zero encryption; breaks across NAT routers rewriting IPs) है।
Q18. Which option accurately describes 'ESP (Encapsulating Security Payload)' in IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation)?
(IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) के संदर्भ में 'ESP (Encapsulating Security Payload)' की सही विशेषता कौन सी है?)
(A) Inserts AH/ESP after original IP header (host-to-host)
(B) IP Protocol 51; authenticates payload and outer IP header
(C) Wraps entire original IP packet inside a new outer IP header
(D) IP Protocol 50; encrypts/auths payload and ESP trailer
Correct Answer: (D)
[EN] 'ESP (Encapsulating Security Payload)' provides 'IP Protocol 50; encrypts/auths payload and ESP trailer' — key point: Full confidentiality + integrity; NAT-compatible via UDP 4500.
[HI] 'ESP (Encapsulating Security Payload)' का मुख्य विवरण 'IP Protocol 50; encrypts/auths payload and ESP trailer' है (Full confidentiality + integrity; NAT-compatible via UDP 4500)।
Q19. In IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation), identify the correct parameter for the specification: "Inserts AH/ESP after original IP header (host-to-host)".
(IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) में "Inserts AH/ESP after original IP header (host-to-host)" विवरण किस विकल्प के लिए सही है?)
(A) AH (Authentication Header)
(B) ESP (Encapsulating Security Payload)
(C) Tunnel Mode
(D) Transport Mode
Correct Answer: (D)
[EN] 'Transport Mode' corresponds to 'Inserts AH/ESP after original IP header (host-to-host)' (Lower overhead; exposes real endpoint IPs in outer header).
[HI] 'Transport Mode' का संबंध 'Inserts AH/ESP after original IP header (host-to-host)' (Lower overhead; exposes real endpoint IPs in outer header) से है।
Q20. Considering IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation), what key behavior defines 'Tunnel Mode'?
(IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) में 'Tunnel Mode' की मुख्य भूमिका या मान क्या है?)
(A) IP Protocol 50; encrypts/auths payload and ESP trailer
(B) Wraps entire original IP packet inside a new outer IP header
(C) IP Protocol 51; authenticates payload and outer IP header
(D) Inserts AH/ESP after original IP header (host-to-host)
Correct Answer: (B)
[EN] 'Tunnel Mode' represents 'Wraps entire original IP packet inside a new outer IP header' (Required for Site-to-Site VPN gateways hiding LAN IPs).
[HI] 'Tunnel Mode' का अर्थ/मान 'Wraps entire original IP packet inside a new outer IP header' है (Required for Site-to-Site VPN gateways hiding LAN IPs)।
IPsec Architecture: AH (Authentication Header) vs ESP (Encapsulation) — Exam FAQs
Q1: What is the easiest way to remember the difference between IPsec AH and ESP?
IPsec AH और ESP का अंतर याद रखने का सबसे सरल तरीका क्या है?
[EN] Think of AH (Protocol 51) as 'Authenticates Header/Payload, NO Encryption, Breaks NAT', and ESP (Protocol 50) as 'Encrypts + Authenticates Payload, Works with NAT via UDP 4500'.
[HI] सरल सूत्र: AH (प्रोटोकॉल 51) = केवल प्रमाणीकरण, कोई एन्क्रिप्शन नहीं, NAT पर फेल; जबकि ESP (प्रोटोकॉल 50) = एन्क्रिप्शन + प्रमाणीकरण दोनों, और NAT (UDP 4500) के साथ सफल।
Q2: When should I choose IPsec Transport Mode over Tunnel Mode?
टनल मोड के बजाय IPsec ट्रांसपोर्ट मोड कब चुना जाना चाहिए?
[EN] Use Transport Mode only for direct end-to-end host communication inside trusted/routable networks (or when wrapping GRE/L2TP tunnels); use Tunnel Mode for Site-to-Site gateway VPNs and remote access.
[HI] ट्रांसपोर्ट मोड केवल दो सीधे जुड़े होस्ट्स के बीच (या GRE/L2TP टनल के भीतर) प्रयुक्त होता है, जबकि गेटवे-टू-गेटवे और रिमोट VPN के लिए टनल मोड अनिवार्य है।
Q3: Does IPsec encrypt TCP or UDP port numbers in Tunnel Mode?
क्या IPsec टनल मोड में TCP या UDP पोर्ट नंबर भी एन्क्रिप्ट हो जाते हैं?
[EN] Yes! In Tunnel Mode, the original IP header, TCP/UDP ports, and data are all encrypted inside ESP, so eavesdroppers only see the public VPN gateway IPs and UDP 4500 / Protocol 50.
[HI] हाँ! टनल मोड में मूल IP हेडर, सोर्स/डेस्टिनेशन पोर्ट और डेटा सब कुछ ESP के भीतर एन्क्रिप्ट हो जाता है; बाहर से केवल दो गेटवे के पब्लिक IP दिखते हैं।
Post a Comment
Post a Comment