π IPSec security services (12 MCQs)
Security Objectives Applied to IP Datagrams
IPsec can protect IP communication against eavesdropping, packet modification, forged sources, and replay of previously captured traffic. Its available services include confidentiality, connectionless integrity, data-origin authentication, access control, and anti-replay protection. Limited traffic-flow confidentiality may also be supported. The exact combination depends on whether AH or ESP is selected and on the parameters negotiated for each Security Association. for individual directions and traffic selectors.
Confidentiality, Integrity and Peer Authentication
Confidentiality uses encryption to conceal packet contents from unauthorized observers. Integrity allows a receiver to detect unauthorized changes, while data-origin authentication links accepted traffic to a holder of the appropriate cryptographic key. Anti-replay checks use sequence information to reject repeated packets. These properties are related but distinct; encryption alone should not be treated as proof of integrity.
Applying Services Through a Security Association
An administrator defines policy for selected traffic, and IPsec uses AH or ESP under an SA to apply the required services. The sender protects each matching datagram with keys and algorithms associated with that SA. The receiver checks the applicable integrity, authentication, and sequence information, then decrypts ESP data when confidentiality has been selected.
Protecting a Confidential Business Application
A financial office sends database requests across the Internet through an ESP tunnel. Encryption prevents intermediate networks from reading the protected inner packet, while an integrity check helps the receiving gateway detect modification. Sequence-number checks reject accepted duplicates outside the replay window. Together, these mechanisms protect more than secrecy alone during packet delivery.
Services and Their Relationship to Network Architecture
IPsec security is independent of individual application formats because it operates at the IP layer. TCP sessions, UDP queries, and other IP traffic can receive the same policy-based protection. Routing still needs usable IP headers, and key management must establish the cryptographic state required by the selected services before protected traffic can flow.
Misconceptions About Network-Layer Security Services
Γ’β¬ΛConfidentiality guarantees integrityΓ’β¬β’ is incorrect because ciphertext can require a separate integrity mechanism. Γ’β¬ΛAuthentication means the user has logged inΓ’β¬β’ confuses packet origin authentication with application user authentication. Γ’β¬ΛAnti-replay prevents every network attackΓ’β¬β’ overstates its role; it rejects reused protected packets but does not stop denial of service or compromised endpoints.
Distinguishing IPsec Services in Assessments
For each scenario, identify whether the requirement is secrecy, modification detection, source authentication, replay rejection, or policy enforcement. Match AH and ESP capabilities to those objectives, and note optional service selection within an SA. Explain why IPsec does not replace application authorization, endpoint security, or secure key management. rather than assuming all services are always active.
IPsec Security-Service Terminology
- Confidentiality - Prevents unauthorized disclosure of data.
- Integrity - Detects changes to transmitted data.
- Data-origin authentication - Verifies packet source using keys.
- Anti-replay - Rejects repeated packets by sequence.
- Access control - Applies policy to network traffic.
- Traffic-flow confidentiality - Hides some packet timing patterns.
π All IPSec security services MCQs
Q1. In the delta modulation encoder, what does the parameter D represent?
π Explanation: The parameter D is the step size that determines how much the reconstructed value y_n changes each iteration. It multiplies the quantized direction q_n in the update rule , directly influencing the slope of the reconstructed signal.
Q2. If the error signal e_n is positive at iteration n, what is the resulting value of q_n?
π Explanation: When the encoder decides to increase the reconstruction, so it sets the quantized direction to +1. This choice makes the decoder add in the next step, moving y_n upward toward the original signal.
Q3. For a slowly increasing input x_n, why does quantizing produce a selfβcorrecting reconstruction?
π Explanation: The term measures the current mismatch between the true signal and its reconstruction. When this difference is quantized, the resulting q_n forces the decoder to add or subtract D, reducing the error in the next iteration and thus selfβcorrecting the trajectory.
Q4. Which statement best compares quantizing with quantizing for a slowβvarying signal?
π Explanation: Quantizing uses the previous reconstructed value y_{n-1} as a reference, so each update corrects the accumulated deviation. In contrast, quantizing the raw difference does not account for past reconstruction errors, allowing those errors to accumulate.
Q5. How does selecting a large step size D affect stability when the input signal is a fastβfalling function?
π Explanation: A large D causes the decoder to change y_n by a big amount each iteration. For a rapidly decreasing x_n, this can make y_n overshoot the true value, producing alternating large errors that grow rather than diminish, ultimately leading to instability in the reconstruction.
Q6. If the control flag C_n equals 0, what is the update rule for y_n?
π Explanation: When C_n = 0 the encoder indicates a negative direction, so the decoder subtracts the step size. The update becomes , moving the reconstructed value downward to follow a decreasing portion of the original signal.
Q7. Given an alternating sequence of q_n = +1, -1, +1, -1,β¦ and D = 0.5, what is the longβterm behavior of y_n?
π Explanation: Each iteration adds or subtracts 0.5, so y_n moves up half a unit then down half a unit, repeatedly. The net change over two steps is zero, keeping y_n confined to a narrow band. Thus the reconstruction oscillates but never grows without bound.
Q8. With y_{n-1}=3, q_n=+1, D=2, and C_n=1, what is the next reconstructed value y_n?
π Explanation: Using the update rule (since C_n=1 indicates a positive direction), we compute . This moves the reconstruction upward toward the original signal.
Q9. When x_n is a linear ramp, how does the staircase obtained by quantizing compare with the original function?
π Explanation: Quantizing the difference between successive samples produces a step of fixed height D each time the ramp exceeds the previous step. Consequently the staircase trails the ideal linear ramp, creating a lag of roughly one quantization interval.
Q10. Why must the encoder know the initial value y_0 and the step size D before encoding begins?
π Explanation: The error signal is defined as . Without an initial reconstruction y_0, the first error cannot be calculated. Similarly, D determines how much y_n changes for each quantized direction, so both parameters are essential for accurate encoding.
Q11. If at iteration n the error e_n is negative and C_n = 0, what are the values of q_n and the subsequent change in y_n?
π Explanation: A negative error indicates the reconstruction is above the true signal. With C_n = 0 the encoder signals a negative direction, so q_n is set to 0 (representing a negative step). The decoder then updates , decreasing the reconstruction.
Q12. In delta modulation, what does the term βselfβcorrectingβ imply about the relationship between successive errors e_n and e_{n+1}?
π Explanation: βSelfβcorrectingβ means that each quantized update reduces the magnitude of the error. When is positive, q_n pushes y_n upward; when negative, it pushes downward. This feedback drives the subsequent error toward zero, gradually improving the reconstruction.