Got it

Understanding Processing of Outgoing Packets by ESP in IPSec VPN

Latest reply: Jan 17, 2022 12:41:33 1484 19 11 0 1

When IPSec VPN is deployed on security devices and encapsulation security payload (ESP) is used as the security protocol, how does a device sent out data packets after the IPSec SA negotiation is successful?

1. Transport Mode

Step 1: The protocol field in the original IP header is copied to the NextHeader field in the ESP trailer.

The protocol field in the original IP header is set to 50, indicating that the upper-layer protocol is ESP.

Values are written into Seq and IV fields.

Because block cipher is used here, pad characters are used to fill up remaining available character spaces in the content to be encrypted, and the Padding Length field is set accordingly.

141820b4bm5uhyuyymzyym.png

Step 2: The content following the ESP header is encrypted.

141820ylouxcvznucwcvlc.png

Step 3: Hash calculation is performed on the content following the original IP header, and the hash result is written into the ESP authentication field.

141820r6772uaq001qxhho.png

Step 4: CRC in the IP header is recalculated.

141821v4xyxzf4oy48xz8f.png

2. Tunnel Mode

The ESP header is added before the original IP packet. If the original packet is an IPv4 packet, the Next Header field in the ESP header is set to 4 (indicating the IP header), and the corresponding field is set. Then a new IP header is added before the ESP header. The protocol number in the IP header is set to 50 (indicating ESP).

 


Great
View more
  • x
  • convention:

thanks
View more
  • x
  • convention:

Detailed explanation
View more
  • x
  • convention:

Well done. Thanks for sharing
View more
  • x
  • convention:

smileymind
smileymind Created Aug 29, 2021 10:19:33 (0) (0)
 
COOL
View more
  • x
  • convention:

chenhui
chenhui Created Aug 4, 2021 08:32:04 (0) (0)
Thanks.  
Great
View more
  • x
  • convention:

Good post. Keep up the good work!
View more
  • x
  • convention:

hemin88
Moderator Author Created Aug 29, 2021 06:13:13

What an informative post, thanks for clarifying in such a good way.
View more
  • x
  • convention:

IndianKid
Moderator Author Created Aug 29, 2021 06:37:27

Informative post, thanks for sharing this knowledge with the community members
View more
  • x
  • convention:

12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.