📝 Security Association in IPSec (19 MCQs)
The State That Defines IPsec Packet Protection
A Security Association (SA) is a logical, unidirectional relationship that defines how IPsec traffic is protected. It records such information as the selected AH or ESP protocol, mode, cryptographic algorithms, keys, sequence-number state, and lifetime. An SA applies consistent security processing to a selected traffic flow; it is not simply a general label for an entire VPN. between a defined pair of IPsec peers.
SPI, Destination and the SA Database
For unicast traffic, the receiver locates an SA using the Security Parameters Index together with the destination address and IPsec protocol identifier. The SA Database stores the parameters needed to process packets. The Security Policy Database separately determines which traffic requires protection, which policy applies, and whether traffic should bypass or be discarded.
Establishing and Using an SA
IKEv2 can negotiate the cryptographic parameters and establish SAs between peers. Once an SA is installed, outbound packets matching policy receive the chosen IPsec processing and carry the appropriate SPI and sequence information. The peer uses those values to select its inbound SA, verify packet protection, update replay state, and deliver acceptable traffic.
Why Two SAs Are Normally Used for Two-Way Traffic
Suppose gateway A sends protected packets to gateway B using an ESP SA with SPI 0x10203040. B has a separate inbound SA for that flow. For return traffic, B needs another SA with its own SPI and outbound keys, while A maintains the matching inbound state; each direction is managed independently.
Relationship Between SAs, VPNs and Key Management
A VPN connection may rely on one or more SAs depending on traffic selectors, protocols, and directions. IKE manages negotiation, authentication, rekeying, and deletion, while the SA stores operational packet-protection state. Multiple SAs can carry different traffic classes or use different algorithms without requiring applications to understand IPsec internals. and may be re-established during rekeying.
Common SA Misinterpretations
‘An SA is bidirectional’ is incorrect because each IPsec SA protects traffic in one direction. ‘SPI alone identifies every SA globally’ ignores the destination and protocol context used for lookup. ‘The SPD stores encryption keys’ confuses policy selection with the SAD, which holds active SA parameters including keying material. and inbound policies are distinct decisions.
SA Lookup and Directional-State Questions
Identify the roles of the SPD and SAD, and explain how the receiver selects an SA for an incoming packet. Remember that a bidirectional exchange normally uses two unidirectional SAs with distinct parameters. Questions may ask you to interpret SPI values, sequence state, mode, lifetime, keys, and the AH or ESP protocol associated with an SA.
Security Association Database and Identifier Terms
- Security Association - Unidirectional IPsec security state.
- SPI - Identifies the selected SA at receiver.
- SAD - Stores parameters for active IPsec SAs.
- SPD - Selects policy for inbound and outbound traffic.
- Traffic selector - Matches addresses and protocols for protection.
- Rekeying - Replaces keys before their expiration.
📝 All Security Association in IPSec MCQs
Q1. What does the symbol represent in delta modulation?
📖 Explanation: The symbol denotes the quantization step size used to approximate the slope of the input signal. In delta modulation the step size determines how far the reconstructed staircase moves at each sample, directly affecting tracking accuracy and error types.
Q2. In DPCM, which option correctly identifies the role of the coefficient ?
📖 Explanation: The coefficient is the weight applied to a past reconstructed sample in the predictor sum. It determines how much influence each delayed sample has on the predicted value, making it the predictor’s coefficient.
Q3. If is too small relative to the signal slope, which distortion becomes dominant?
📖 Explanation: When the step size cannot keep up with a rapidly changing slope, the staircase lags behind the true signal, producing slope‑overload distortion. The error grows because each step is insufficient to follow the steep portion of the waveform.
Q4. Why does adaptive DM adjust from one step to the next?
📖 Explanation: Adaptive DM changes in response to recent bit patterns so that the system can trade off slope‑overload distortion against granular noise. By balancing the two error sources, the overall reconstruction error is minimized.
Q5. Given and increases by 10 % when stays the same, what is the approximate increase after three identical bits?
📖 Explanation: Each identical bit multiplies by 1.10. After three steps the factor is , meaning the step size grows by roughly 33 %, which matches the third option.
Q6. When a region’s predictor error variance is high, which adaptation best reduces overall distortion?
📖 Explanation: A higher predictor order incorporates more past samples, improving the model’s ability to follow rapid changes. This reduces the variance of the prediction error, leading to lower overall distortion despite the increased computational load.
Q7. Which statement best describes the error behavior of DPCM compared with DM for signals containing both high‑ and low‑slope segments?
📖 Explanation: DPCM uses a higher‑order predictor, allowing it to better follow both steep and flat portions of the waveform. Consequently it generally yields lower reconstruction error than simple DM, which relies on a single‑sample predictor.
Q8. How does delaying the coding process in ADM to include future samples affect the stability of adaptation?
📖 Explanation: By looking ahead, the algorithm can anticipate rapid slope changes and adjust more accurately, smoothing abrupt variations. This predictive insight reduces oscillations in the step‑size sequence, thereby enhancing stability.
Q9. Which relationship correctly describes granular noise and slope overload distortion with respect to ?
📖 Explanation: A larger step size makes the staircase jump farther, which raises granular noise because the quantizer overshoots flat regions. Conversely, a larger helps the staircase keep up with steep slopes, reducing slope‑overload distortion.
Q10. Why does minimizing cumulative squared error lead to optimal predictor coefficients in LPC?
📖 Explanation: The squared‑error criterion gives a least‑squares formulation that heavily penalizes large prediction errors. Solving the resulting normal equations yields coefficients that minimize the overall error energy, providing the optimal linear predictor under this metric.
Q11. In ADPCM, how does varying achieve higher compression for speech signals?
📖 Explanation: Quiet portions contain low‑amplitude variations; using a larger step size there reduces the number of bits needed to represent the signal while preserving intelligibility, thereby increasing compression efficiency.
Q12. Given a predictor of order with coefficients and , which equation correctly predicts the current sample?
📖 Explanation: The predictor sum uses each coefficient multiplied by its corresponding delayed sample. Substituting the given values yields , which is the first option.
Q13. What is the primary benefit of jointly optimizing adaptive step‑size and predictor coefficients?
📖 Explanation: When both the quantizer step size and the predictor are tuned to the local signal characteristics, the codec can simultaneously reduce granular noise and slope‑overload errors, resulting in noticeably lower overall distortion compared with adapting only one component.
Q14. Why is the method of square error still relevant to predictor design even if its derivation is omitted?
📖 Explanation: The least‑squares approach yields analytical expressions for the optimal coefficients, allowing designers to compute them directly from sample statistics without resorting to costly iterative methods.
Q15. In a signal with alternating steep and flat sections, which adaptation rule for best minimizes total error?
📖 Explanation: Increasing the step‑size multiplier after detecting a flat region (to reduce granular noise) and decreasing it after a steep region (to avoid slope overload) directly addresses the two dominant error sources, yielding the lowest combined error.
Q16. The statement \In DM, the predictor order is always 1\ is:
Q17. How does the computational complexity of ADPCM compare with that of DPCM?
📖 Explanation: ADPCM must update both the predictor coefficients and the step‑size multiplier at runtime, requiring additional arithmetic and memory accesses beyond the fixed‑coefficient operations of standard DPCM, thus increasing computational load.
Q18. What trade‑off arises when the percentage change applied to is increased in ADM?
📖 Explanation: A larger adjustment factor lets the step size react quickly to changing signal dynamics, shortening the adaptation period. However, aggressive changes can cause overshoot and oscillations, potentially destabilizing the modulation process.
Q19. Why are adaptive quantizer and predictor coefficients often jointly encoded in speech codecs?
📖 Explanation: By adapting both the quantizer and the predictor to the same signal characteristics, the codec can represent the signal more efficiently, allowing fewer bits to convey the same perceptual quality, which directly reduces the overall bitrate.