You are here:Home > Best VPN > Main mode IKE 1-2 packet exchange

Main mode IKE 1-2 packet exchange

Summary:Main mode IKE 1-2 packet exchange process!The main mode requires the exchange of a total of 6 ISAKMP packets, which can be divided into 3 packet excha…
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

Main mode IKE 1-2 packet exchange process!

The main mode requires the exchange of a total of 6 ISAKMP packets, which can be divided into 3 packet exchanges: 1-2, 3-4, and 5-6. The schematic diagram of the main mode packet 1-2 exchange shows that the main mode packet 1-2 exchange is mainly responsible for completing 2 tasks: the first is to confirm whether the received ISAKMP packet originates from a legitimate peer by checking the source IP address of the received ISAKMP packet, and the second task is to negotiate IKE policies!

Let's first discuss the operation process of the first task. Suppose that an IPSec VPN needs to be established between Site 1 (Internet IP address 202.100.1.1) and Site 2 (Internet IP address 61.128.1.1). Site 1 configures Peer as 61.128.1.1, and Site 2 configures Peer as 202.100.1.1. Then when Site 2 receives the first ISAKMP packet, it will check the source IP address of the ISAKMP packet. If the source IP address is 202.100.1.1, it will accept the packet. Otherwise, it will terminate the entire negotiation process, because Site 2 does not want to establish an IPSec VPN with the peer!

Due to the fact that this IP address appears in the IP header and is not part of the ISAKMP data, it is not reflected in it. By the way, another issue to note is that ISAKMP packets are transmitted using UDP, with both the source and destination port numbers being 500!

In the process of exchanging 1-2 packets in IKE, IKE policy negotiation is its main task, and the policy includes the following 5 items!

Encryption strategy!

Hash function!

DH team!

Authentication method!

Key expiration date!

Since it is called IKE policy, it means that it is a policy for processing IKE packets. Taking encryption policy as an example, it determines the policy for encrypting 5-6 packets in main mode (MM) and 1-3 packets in fast mode (QM)!

However, this strategy is definitely not used to encrypt the traffic between actual communication points (Cisco also refers to the traffic between communication points as the flow of interest). The two parties of communication will negotiate another encryption strategy in the second stage of fast mode, and this strategy negotiated in fast mode will be used to process the flow of interest. In the first data packet, the initiator will send all locally configured policies together to the receiver, and the receiver will pick out a policy that can be received from it. And send it back to the sender through the second IKE packet, indicating to the sender which strategy it has chosen!

A detailed introduction was given to the order in which the receiver selects policies. The receiver first uses the local priority policy (Policy 10) to check all policies sent by the other party. If there is no match, the next priority strategy will check until a matching strategy is found. It is obvious that the IKE 1-2 packet exchange and negotiation resulted in the following IKE strategy!

The encryption strategy is DES!

The hash function is MD5!

DH group is 1!

The authentication method is pre shared key!

The key is valid for one day!

With these results, this strategy can be used to handle the exchange of subsequent IKE 3-4 and 5-6 packets!


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