๐ IP Security (IPSec) โ Exam Notes (Network Security)
๐ 1. Definition
IP Security (IPSec) is a suite of protocols used to secure Internet Protocol (IP) communications by providing encryption, authentication, and integrity at the network layer.
๐ Simple idea:
IPSec makes IP communication secure, private, and trusted over insecure networks like the Internet.
๐ฏ 2. Objectives of IPSec
- Ensure confidentiality (data encryption)
- Ensure data integrity (no modification)
- Provide authentication (verify sender identity)
- Prevent replay attacks
- Secure communication over public networks
๐งฑ 3. Key Features of IPSec
- Works at Network Layer (Layer 3 OSI model)
- Protects all IP-based applications
- Transparent to users and applications
- Used in VPNs (Virtual Private Networks)
๐ 4. IPSec Protocols
๐ธ 1. AH (Authentication Header)
-
Provides:
- Data integrity
- Authentication
- Anti-replay protection
โ Does NOT provide encryption
๐ธ 2. ESP (Encapsulating Security Payload)
-
Provides:
- Encryption (confidentiality)
- Authentication
- Integrity
โ Most commonly used protocol
๐ 5. IPSec Modes
๐น 1. Transport Mode
- Encrypts only the payload (data)
- Original IP header remains unchanged
โ Used for end-to-end communication
๐น 2. Tunnel Mode
- Encrypts the entire IP packet
- Adds a new IP header
โ Used in VPNs (site-to-site security)
๐ 6. Key Management in IPSec
๐ธ IKE (Internet Key Exchange)
- Used to create and manage security keys automatically
โ Ensures secure key exchange between devices
๐ง 7. Security Services Provided by IPSec
- Confidentiality (encryption using ESP)
- Integrity (hashing algorithms)
- Authentication (digital signatures)
- Anti-replay protection (sequence numbers)
โ ๏ธ 8. IPSec Architecture Components
๐น Security Association (SA)
๐น Security Policy Database (SPD)
- Defines what traffic should be protected
๐น Security Association Database (SAD)
- Stores active security connections
๐ 9. IPSec Operation Flow
- Device sends IP packet
- IPSec checks security policy
- Security Association is established
- Packet is encrypted/authenticated
- Secure packet is transmitted
๐ 10. IPSec vs Normal IP
| Feature |
IP |
IPSec |
| Security |
None |
High |
| Encryption |
No |
Yes (ESP) |
| Authentication |
No |
Yes |
| Integrity |
No |
Yes |
๐ผ๏ธ 11. Diagram Descriptions
๐ Transport Mode
- Sender โ Encrypted Payload โ Receiver
๐ Tunnel Mode (VPN)
- Original Packet โ Encrypted โ New IP Header โ Internet
๐ IPSec Architecture
- SPD โ SA โ SAD โ Secure Communication
๐งพ 12. Real-Life Examples
- ๐ VPN connections between offices
- ๐ฆ Secure banking transactions
- ๐ข Company remote employee access
- ๐ Secure site-to-site communication
๐ Likely Exam Questions
- Define IPSec and its importance.
- Explain security services provided by IPSec.
- What is AH and ESP? Differentiate them.
- Describe Transport and Tunnel modes.
- What is Security Association (SA)?
- Explain IKE in IPSec.
- Differentiate between IP and IPSec.
- How does IPSec ensure security?
- What are components of IPSec architecture?
- Write short notes on:
- VPN and IPSec
- ESP protocol
- Anti-replay protection
๐ Quick Summary / Conclusion
- IPSec secures IP communication at the network layer.
- It provides encryption, authentication, and integrity.
- Uses protocols like AH and ESP.
- Works in Transport and Tunnel modes (VPNs).
- Widely used for secure internet and enterprise communication.
๐ In short:
IPSec is a powerful framework that ensures secure communication over untrusted networks like the Internet.