Main mode IKE 3-4 packet exchange
Summary:The main mode IKE3-4 packet exchange process is shown!IKE 1-2 packet exchange has negotiated IKE policies, but relying on these encryption policies an…
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 main mode IKE3-4 packet exchange process is shown!
IKE 1-2 packet exchange has negotiated IKE policies, but relying on these encryption policies and hash functions to protect IKE data still lacks an important element - the key. Encryption and KBC both require a key, where does this key come from? It will be generated from the DH exchange, and now we will introduce this magical algorithm Diffie Hellman!
The calculation process of the Diffie Hellman algorithm is shown here!
DH is an asymmetric key algorithm based on a well-known one-way function, the discrete logarithmic function A=gamod p, where mod is the remainder. This function has a characteristic that, in the case where both g and p are large, it is known that finding A with a will quickly yield a result (of course, calculated by a computer), but finding a with A is almost impossible. This is the characteristic of all one-way functions, where one direction of operation is fast and easy, while the other direction is almost impossible to complete!
After understanding this characteristic, let's take a look at how DH works. The initiator (Alice) first randomly generates g, p, a, and g, which are determined by the size of the DH group exchanged between 1-2 packets. DH group 1 is represented as 768 bits in length, and DH group 2 is represented as 1024 bits in length. The larger the group, the stronger the DH exchange. Then the initiator calculates A using a discrete logarithmic function and sends g, p, A to the receiver (Bob) in the third IKE packet. After receiving it, the receiver (Bob) randomly generates a small b and uses the g and p received from the third IKE packet to calculate B through a discrete logarithmic function. Then, B is sent back to the initiator (Alice) through the fourth IKE packet.
Now the magic of the DH algorithm is about to be demonstrated. The result obtained by the receiver (Bob) through Ab mod p is equal to the result calculated by the initiator (Alice) through Ba mod p, and is also equal to Gab mod p. In this way, both the sender and receiver obtain a shared secret Gab mod p through the DH algorithm. This value cannot be calculated by intermediaries, as it requires at least one party's private information (a and b) (discrete logarithm property) to calculate it. With this shared secret Gab mod p, we can use a series of key derivation algorithms to obtain the keys for encrypting and processing IKE information with HMAC. The key for encrypting the stream of interest is also derived from this shared secret, which can be said to be the ancestor of all keys!
1 2
Recommended secure VPN for you:
[Paid VPN]
[Current limiting VPN1]
[Current limiting VPN2]
【 Free VPN 】
This article is from: CISCO IPSEC VPN Practical Guide - Qin Ke
IPsec Basic Theory - Introduction to Basic Principles
IPsec
Hash function
Encryption algorithm
Symmetric key algorithm
Asymmetric key algorithm
Clever encryption solution
Encapsulation Protocol
ESP protocol
AH protocol
Encapsulation mode
Key validity period
Internet Key Exchange Protocol
IKE and ISAKMP
IKE's 2 stages and 3 modes
Main mode IKE 1-2 packet exchange
Main mode IKE 3-4 packet exchange
Exchange of main mode packets 5-6
Quick Mode - Packet 1-3 Exchange
Summary of Phase 2
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

