The invention discloses an
encryption and decryption method based on a user mode
IPSec protocol, which relates to the technical field of data communication, and specifically comprises the following steps: integrating
encryption and decryption equipment into network card equipment to form an
encryption network card, and directly carrying out encryption and decryption operation on a data packet by utilizing a high-performance encryption and decryption
algorithm of the encryption and decryption equipment. And after the operation is completed, directly forwarding the data to the
IPSec server from the encryption network card, and forwarding the data to the target
machine by the
IPSec server. According to the encryption and decryption method based on the user mode
IPSec protocol, the encryption and decryption operation is adjusted from an ESP
protocol processing stage to a data packet receiving and transmitting stage, and the encryption and decryption equipment processes the whole
network packet in a data offset manner, so that the
concurrency is increased, the IPSec forwarding performance is greatly improved, the
processing of an encryption card on a
protocol stack is shielded, and the security of the encryption card is improved. In addition, the method can better adapt to the requirements of cloud environment and
containerization deployment, and a more efficient, flexible and reliable solution is provided for secure
data transmission.