🎓 BookMCQ
← Back to 32. Internet Security

📝 SSL TLS transport layer security (13 MCQs)

From SSL to Modern Transport Layer Security

Secure Sockets Layer (SSL) was an early protocol for protecting client-server communication, but SSL versions are obsolete and must not be used. Transport Layer Security (TLS) replaced SSL and provides confidentiality, integrity, and peer authentication for application traffic. TLS 1.3 is specified by RFC 9846, published in July 2026, which supersedes the earlier TLS 1.3 specification. without changing the application protocol itself.

TLS Handshake and Protected Record Layer

TLS uses a handshake to negotiate cryptographic parameters, establish shared traffic keys, and authenticate the server, with optional client authentication. After the handshake, the record layer divides application data into records and protects them cryptographically. TLS normally operates over a reliable, ordered transport such as TCP, while the application protocol defines how TLS is used.

How a Secure Client-Server Session Begins

A client sends ClientHello with supported parameters and key-share information. The server replies with ServerHello and protected handshake messages, including EncryptedExtensions and usually certificate-based authentication. Both sides verify Finished messages before exchanging protected application data. The exact message flow can vary with negotiated extensions, authentication choices, and resumption. according to negotiated parameters and keys.

An HTTPS Connection to a Banking Website

When a browser opens an HTTPS site, it negotiates TLS with the web server before sending HTTP application data. The browser validates the certificate identity and chain, derives traffic keys, and then sends protected requests. A network observer can see connection metadata such as IP addresses, but cannot normally read the protected HTTP content.

TLS Across Web, Mail and Other Applications

TLS protects many application protocols, including HTTPS and secured mail submission or retrieval. It does not replace the application protocol; it supplies a protected channel beneath it. Certificates support peer identity checks, while the negotiated symmetric keys protect bulk data efficiently. Correct hostname verification and trusted certificate validation remain essential.

Misconceptions About SSL and TLS

‘SSL is the current name for TLS’ is historically misleading; TLS is the successor and SSLv3 is prohibited. ‘TLS encrypts IP headers’ is false because TLS protects data carried by the transport connection, not the network header. ‘A certificate encrypts all traffic’ is incorrect; certificates authenticate identities and support key establishment.

TLS Version, Authentication and Record Questions

Distinguish SSL from TLS and identify the handshake, record, and alert functions. Trace how ClientHello and ServerHello negotiate parameters, how certificates authenticate a peer, and when application data becomes protected. For current TLS 1.3 questions, use RFC 9846 and remember that TLS protects application data rather than the full IP datagram.

TLS Channel and Handshake Terminology

  • TLS - Secures application data in transit.
  • Handshake - Negotiates parameters and derives traffic keys.
  • Record layer - Protects protocol content in records.
  • Certificate - Binds a public key to an identity.
  • Finished - Confirms the handshake transcript.
  • HTTPS - HTTP protected using TLS.
4
Easy
5
Medium
4
Hard

📝 All SSL TLS transport layer security MCQs

Q1. In IPSec transport mode, which part of the original IP packet remains unprotected?

A.The payload
B.The IP header ✅
C.Both payload and header
D.None of the above
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Transport mode encrypts only the payload that comes from the transport layer, leaving the original IP header untouched. Because the header is not encapsulated, it can be read by intermediate routers, which is why the IP header remains unprotected in this mode.

Q2. Why can't traditional transport‑layer security protocols be directly applied to UDP traffic?

A.UDP provides reliable sequencing
B.UDP lacks a handshake mechanism
C.UDP is connectionless and does not maintain state ✅
D.UDP encrypts data by default
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Traditional transport‑layer security protocols, such as TLS, rely on a handshake that establishes stateful connections. UDP is connectionless and does not maintain session state, so the handshake cannot be reliably performed. Without a persistent connection, key exchange and sequence tracking become impossible, preventing direct application of those protocols to UDP traffic.

Q3. If IPSec is configured in transport mode and the packet passes through a NAT device that modifies the source IP address, what is the most likely outcome?

A.Integrity check fails because the IP header changed ✅
B.Confidentiality is lost but integrity remains
C.Both confidentiality and integrity remain intact
D.The packet is dropped before encryption
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: In transport mode only the payload is encrypted, leaving the original IP header exposed. When a NAT device modifies the source address, the header seen by the receiver differs from the one used when the packet was authenticated. Consequently, the integrity check fails, causing the packet to be rejected.

Q4. Which statement correctly describes the overhead difference between IPSec transport mode and tunnel mode?

A.Transport mode adds less overhead because only the payload is encapsulated ✅
B.Tunnel mode adds less overhead because it encrypts the whole packet
C.Both modes add identical overhead
D.Transport mode adds more overhead due to extra headers
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Transport mode encapsulates only the upper‑layer payload, so it adds the ESP or AH header but does not introduce a new outer IP header. Tunnel mode, however, wraps the entire original IP packet inside a new outer IP header, resulting in additional header bytes and therefore higher bandwidth and processing overhead compared with transport mode.

Q5. For a site‑to‑site VPN connecting two corporate networks, which IPSec mode is generally preferred and why?

A.Transport mode, because it preserves original IP headers
B.Transport mode, because it reduces processing load
C.Tunnel mode, because it hides internal addressing ✅
D.Tunnel mode, because it eliminates the need for security associations
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Site‑to‑site VPNs aim to connect entire networks while hiding internal addressing schemes. Tunnel mode encapsulates the original IP packet inside a new outer IP header, effectively masking internal IP addresses from the public Internet. This encapsulation, together with optional encryption, makes tunnel mode the preferred choice for most corporate VPN deployments.

Q6. Which of the following correctly differentiates the Authentication Header (AH) and Encapsulating Security Payload (ESP) protocols?

A.AH provides confidentiality, ESP provides only integrity
B.Both provide confidentiality and integrity
C.AH provides integrity and anti‑replay protection only; ESP provides confidentiality with optional integrity ✅
D.ESP provides integrity only, AH provides confidentiality only
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The Authentication Header (AH) provides integrity protection and anti‑replay services but does not encrypt the payload, so confidentiality is absent. The Encapsulating Security Payload (ESP) can encrypt the payload for confidentiality and also offers optional integrity protection via an authentication trailer. Therefore, ESP can deliver both confidentiality and integrity, while AH offers only integrity.

Q7. At which layer of the OSI model does IPSec primarily operate?

A.Transport layer
B.Network layer ✅
C.Data link layer
D.Application layer
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: IPSec is defined as a suite of protocols that operate at the network layer (Layer 3) of the OSI model. It secures IP packets by providing authentication, integrity, and optional confidentiality, which makes it fundamentally a network‑layer security mechanism rather than a transport‑ or application‑layer solution.

Q8. How does the choice of IPSec mode affect packet encapsulation?

A.Transport mode adds an extra outer IP header
B.Tunnel mode encrypts only the TCP/UDP segment
C.Both modes encrypt the original IP header
D.Tunnel mode adds a new outer IP header while transport mode encrypts only the payload ✅
💡 Difficulty: easy | ✅ Correct: D

📖 Explanation: In transport mode, IPSec encrypts only the payload that originates from the transport layer, leaving the original IP header untouched. Tunnel mode, on the other hand, wraps the entire original IP packet inside a new outer IP header and then applies encryption, resulting in a double‑encapsulated packet.

Q9. To secure a real‑time video stream that uses UDP, which combination of protocols would provide both transport‑layer security and application‑layer protection?

A.IPSec in transport mode with TLS
B.IPSec in tunnel mode together with DTLS ✅
C.Only DTLS, because IPSec cannot protect UDP
D.IPSec ESP only, without any additional protocol
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: DTLS (Datagram TLS) is the UDP‑compatible counterpart of TLS, providing handshake, authentication, and encryption for datagram traffic. Combining DTLS with IPSec in tunnel mode adds a network‑layer protective envelope around the UDP packets, ensuring both application‑layer security (via DTLS) and network‑layer confidentiality and integrity (via IPSec).

Q10. For a multicast application that requires both authentication and confidentiality, which IPSec protocol(s) and mode should be selected?

A.ESP in tunnel mode with both encryption and authentication flags set ✅
B.AH in transport mode combined with ESP in transport mode
C.ESP in transport mode without authentication
D.AH in tunnel mode only
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: ESP is capable of both encrypting the payload for confidentiality and adding an authentication trailer for integrity. When configured in tunnel mode, ESP encapsulates the entire original IP packet, which is essential for multicast traffic that traverses multiple networks. This combination satisfies the requirement for both authentication and confidentiality in a multicast scenario.

Q11. When comparing AH and ESP in tunnel mode, which statement about their processing overhead is most accurate?

A.AH has higher overhead because it encrypts the payload
B.ESP has lower overhead because it does not add an outer IP header
C.ESP typically incurs higher overhead due to encryption and optional authentication, while AH adds only authentication ✅
D.Both have identical overhead since they use the same header size
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: AH adds only an authentication header to the original packet, which incurs processing for integrity verification but no encryption. ESP, especially in tunnel mode, adds an outer IP header and encrypts the encapsulated payload, leading to additional CPU cycles for encryption and decryption. Consequently, ESP usually has higher processing overhead than AH.

Q12. If two IPSec peers negotiate Security Associations (SAs) with mismatched encryption algorithms, what is the most likely result during data exchange?

A.Packets are dropped because the receiver cannot decrypt them ✅
B.The sender automatically switches to the receiver's algorithm
C.Integrity checks succeed but confidentiality fails
D.Negotiation restarts until algorithms match
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Security Associations define the cryptographic parameters used between peers. If the peers negotiate mismatched encryption algorithms, the receiver will not be able to decrypt the incoming ciphertext, causing decryption failures. As a result, the packets are discarded, and communication cannot proceed until the SA parameters are renegotiated to match.

Q13. Design a secure client‑server communication that uses IPSec transport mode while traversing NAT. Which additional mechanism is required to maintain security?

A.Use of NAT‑Traversal (NAT‑T) with UDP encapsulation of ESP ✅
B.Switch to tunnel mode to avoid NAT issues
C.Disable NAT and use static IP addresses
D.Apply IPsec only on the application layer
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: NAT devices modify IP address and port information, which interferes with ESP’s direct encapsulation of IP packets. NAT‑Traversal (NAT‑T) encapsulates ESP inside UDP packets, allowing NAT devices to translate addresses without breaking the security association. This technique enables IPSec transport mode to function correctly across NAT while preserving confidentiality and integrity.

🔗 Related Topics (MCQs)