You are here:Home > Best VPN > Exchange of main mode packets 5-6

Exchange of main mode packets 5-6

Summary:The exchange process of main mode packets 5-6The main task of the first stage of IKE is authentication, and IKE5-6 packet exchange is to authenticate…
horizonVPN Official website sandVPN Official website VPNhood Official website hailianVPN Official website
GoduckVPN Official website Fast Wind VPN Official website Fast Orange VPN Official website(Recommend) NetShekanVPN Official website

This book is available as an e-book in EPUB format

PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email

Email: shuxueha@outlook.com

PayPal: https://paypal.me/zhipinglei

You can also scan the PayPal QR code below to sponsor

You can also purchase this book on Amazon: click to enter the Amazon official website

The exchange process of main mode packets 5-6

The main task of the first stage of IKE is authentication, and IKE5-6 packet exchange is to authenticate in a secure environment (starting from the 5th and 6th packets of IKE main mode, encryption and HAC algorithms negotiated by IKE 1-2 packet exchange are used for security protection). The schematic diagram of IKE5-6 packet exchange, which we learned earlier about IKE 1-2 and 3-4 packet exchange, only lays the foundation for authentication of IKE5-6 packet exchange. IKE 1-2 packet exchange prepares policies for authentication (such as authentication policies, encryption policies, hash functions, etc.), and IKE 3-4 packet exchange provides key resources for protecting the security algorithms of IKE 5-6 packets!

There are three types of authentication for IPSec VPN, namely pre shared key authentication, certificate authentication, and RSA encrypted random number authentication. This certificate only focuses on pre shared key authentication, which, as the name suggests, requires both the sender and receiver to pre configure the same shared secret. During authentication, they exchange hash values generated by this shared secret to achieve authentication. This idea is basically the same as OSPF's authentication for route updates.

Here is a schematic diagram of pre shared key authentication!

We will now use the fifth packet of the IKE main mode introduced in the figure, which is how the recipient uses the pre shared key authentication method to authenticate the initiator!

Step 1: The initiator queries the local IPSec configuration based on the recipient's IP address and finds the corresponding pre shared secret!

Step 2: The initiator performs hash calculation on the pre shared secret (cisco), IKE policy content, DH calculated key resources, and other content known to both parties. The result obtained is the "authenticated hash value"!

Step 3: The initiator places the "authentication hash value" and local encryption point IP address into the 5th IKE packet, encrypts it, and sends it to the receiver!

Step 4: The receiver first decrypts the received 5th IKE packet, extracts the IP address of the initiator, and queries the local IPSec configuration based on the initiator's IP address to find the corresponding pre shared secret!

Step 5: The receiver calculates the hash value of the shared secret queried, along with other known content from both parties, to obtain the "authenticated hash value"!

Step 6: The receiver compares the "authentication hash value" extracted from the 5th IKE packet with the "authentication hash value" calculated in step 5. If they are equal, the receiver has successfully authenticated the initiator. Of course, the receiver also needs to use the same method to send the 6th IKE packet and have the initiator authenticate the receiver!

Summary of Phase One

The main task of the first stage is mutual authentication. The completion of the first stage not only indicates the authentication of both the sender and receiver, but also establishes a bidirectional ISAKMP/IKE security association (SA), which maintains the relevant policies for handling ISAKMP/IKE traffic (note: these policies will not handle the actual flow of interest), and peer parties will continue to use this SA to securely protect subsequent IKE Fast Mode 1-3 packet exchanges!


High-speed VPN Fast VPN Preferred Accelerator VPN Reliable VPN
High quality VPN Old fashioned VPN Stable VPN(Recommend) Smooth VPN
Share with Friends: