You are here:Home > Best VPN > Introduction to VPN Protocol

Introduction to VPN Protocol

Summary:When discussing VPN, definitions such as PPTP, L2TP, IPSec, and SSL VPN are often mentioned. What do these terms mean and what are the differences bet…
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

When discussing VPN, definitions such as PPTP, L2TP, IPSec, and SSL VPN are often mentioned. What do these terms mean and what are the differences between them before?

Here is an article from a Chinese IT laboratory that provides a detailed introduction to the definitions of PPTP, L2TP, IPSec, and SSLVPN, as well as their differences and similarities.

The development of VPN (Virtual Private Network) is no longer just a simple encrypted access tunnel. It has integrated various functions such as access control, transmission management, encryption, routing selection, and availability management, and plays an important role in the global information security system. On the internet, there are different opinions regarding the advantages and disadvantages of various VPN protocols. Many technicians, due to considerations such as access control, security, user friendliness, and flexible scalability, weigh the pros and cons and find it difficult to make a decision; Especially in the VOIP voice environment, network security is particularly important, so more and more network phones and voice gateways now support VPN protocol.

PPTP

Point to Point Tunneling Protocol (PPTP) is a peer-to-peer tunneling protocol developed by the PPTP Forum, which includes companies such as Microsoft and 3Com. It is based on dial-up PPP protocol using encryption algorithms such as PAP or CHAP, or using Microsoft's point-to-point encryption algorithm MPPE. It achieves secure transmission of data from remote clients to dedicated enterprise servers by creating VPN across TCP/IP based data networks. PPTP supports the establishment of on-demand, multi protocol, virtual private networks over public networks such as the Internet. PPTP allows encrypted IP communication and then encapsulates it in IP headers to be sent across corporate IP networks or public IP networks (such as the Internet).

L2TP

L2TP Layer 2 Tunneling Protocol (L2TP) is a successor version of PPTP developed by IETF based on L2F (Cisco's Layer 2 Forwarding Protocol). It is an industrial standard Internet tunneling protocol that provides encapsulation for sending point-to-point protocol (PPP) frameworks across packet oriented media. Both PPTP and L2TP use PPP protocol to encapsulate data, and then add additional headers for data transmission on the Internet. PPTP can only establish a single tunnel between two endpoints. L2TP supports the use of multiple tunnels between endpoints, allowing users to create different tunnels for different service qualities. L2TP can provide tunnel authentication, while PPTP does not support tunnel authentication. However, when L2TP or PPTP is used in conjunction with IPSEC, tunnel authentication can be provided by IPSEC without the need to verify the tunnel using L2TP on the Layer 2 protocol. PPTP requires the Internet to be an IP network. L2TP only requires tunnel media to provide point-to-point connections for data packets, and can be used on IP (using UDP), Frame Relay Permanent Virtual Circuits (PVCs), X.25 Virtual Circuits (VCs), or ATM VCs networks.

IPSec

IPSec tunnel mode is the entire process of encapsulation, routing, and decapsulation. The tunnel hides (or encapsulates) the original data packet inside a new data packet. The new packet may have new addressing and routing information, allowing it to be transmitted over the network. When tunnels are combined with data confidentiality, people eavesdropping on communication on the network will not be able to obtain the original packet data (as well as the original source and destination). After the encapsulated packet arrives at the destination, the encapsulation will be deleted, and the original packet header will be used to route the packet to the final destination.

The tunnel itself is a logical data path that encapsulates data passing through. To the original source and destination ends, the tunnel is invisible, and only point-to-point connections in the network path can be seen. Both parties are not concerned about any routers, switches, proxy servers, or other security gateways between the starting and ending points of the tunnel. When combining tunnel and data confidentiality, it can be used to provide VPN.

The encapsulated data packet is transmitted within the tunnel of the network. In this example, the network is the Internet. A gateway can be a perimeter gateway between the external Internet and a private network. The perimeter gateway can be a router, firewall, proxy server, or other security gateway. Additionally, two gateways can be used within a dedicated network to protect untrusted communication within the network.

When using IPSec in tunnel mode, it only provides encapsulation for IP communication. The use of IPSec tunneling mode is mainly for interoperability with other routers, gateways, or terminal systems that do not support L2TP or PPTP VPN tunneling technology on IPSec.

SSLVPN

SSL VPN provides features such as data privacy, endpoint authentication, and information integrity. The SSL protocol consists of many sub protocols, among which the two main sub protocols are the handshake protocol and the record protocol. The handshake protocol allows the server and client to confirm and negotiate an encryption algorithm and password key with each other before transmitting the first data byte in the application protocol. During data transmission, the recording protocol encrypts and decrypts the exchanged data using the key generated by the handshake protocol.

SSL is application independent, so any application can enjoy its security without worrying about execution details. SSL is located between the transport layer and the application layer of the network architecture system. In addition, SSL itself is supported by almost all web browsers. This means that the client does not need to install additional software to support SSL connections. These two characteristics are the key points that SSL can be applied to VPN.

Typical SSL VPN applications such as OpenVPN are good open-source software. Our product offers two applications: PPTP and OpenVPN. PPTP is mainly designed for users who frequently travel or work from home; And OpenVPN is mainly aimed at uninterrupted on-demand VPN connections between the headquarters and subsidiaries of enterprises in different locations, such as the application of ERP in enterprises.

OpenVPN allows single points involved in establishing a VPN to use pre-set private keys, third-party certificates, or usernames/passwords for authentication. It extensively utilizes the OpenSSL encryption library and the SSLv3/TLSv1 protocols. OpenVPN can run on Linux, xBSD, Mac OS X, and Windows 2000/XP. It is not a web-based VPN software, nor is it compatible with IPsec and other VPN packages.

Tunnel encryption

OpenVPN uses the OpenSSL library to encrypt data and control information: it utilizes the encryption and authentication capabilities of OpesSSL, meaning it can use any algorithm supported by OpenSSL. It provides optional packet HMAC functionality to enhance the security of the connection. In addition, OpenSSL's hardware acceleration can also improve its performance.

Verify

OpenVPN provides multiple authentication methods to confirm the identities of both parties involved in the connection, including pre shared private keys, third-party certificates, and username/password combinations. Pre shared keys are the simplest, but they can only be used to establish a peer-to-peer VPN; Third party certificates based on PKI provide the most comprehensive functionality, but require additional effort to maintain a PKI certificate system. After OpenVPN 2.0, a username/password combination authentication method was introduced, which can omit client certificates, but still requires a server certificate to be used for encryption

Network

All communication in OpenVPN is based on a single IP port, and UDP protocol is the default and recommended protocol for communication, while TCP is also supported. OpenVPN connections can pass through most proxy servers and work well in NAT environments. The server has the function of "pushing" certain network configuration information to the client, including IP address, routing settings, etc. OpenVPN provides two types of virtual network interfaces: the Universal Tun/Tap driver, through which a Layer 3 IP tunnel can be established, or a Virtual Layer 2 Ethernet, which can transmit any type of Layer 2 Ethernet data. The transmitted data can be compressed using the LZO algorithm. The official port assigned to OpenVPN by IANA (Internet Assigned Numbers Authority) is 1194. After OpenVPN 2.0, each process can manage multiple concurrent tunnels simultaneously.

The use of universal network protocols (TCP and UDP) in OpenVPN makes it an ideal alternative to protocols such as IPsec, especially when ISPs (Internet service providers) filter certain specific VPN protocols. When choosing a protocol, it is important to pay attention to the network conditions between the two encrypted tunnels. In cases of high latency or high packet loss, TCP protocol should be chosen as the underlying protocol. UDP protocol, due to its connectionless and retransmission mechanisms, requires the upper layer protocol of the tunnel to retransmit, resulting in very low efficiency.

Safety

OpenVPN is born with many security features: it runs in user space without the need to modify the kernel and network protocol stack; Run in chroot mode after initialization, giving up root privileges; Use mlockall to prevent sensitive data from being swapped to disk.

OpenVPN supports hardware encryption identifiers such as smart cards through PKCS # 11. (via China IT Laboratory)

If you want to learn more about VPN, you can read the knowledge introduction about virtual private networks provided by Microsoft Technical Resource Library, including what VPN is, VPN tunneling protocol, VPN and firewall, VPN network access protection enforcement and configuration of VPN remote access servers.

There are also introductions to virtual private networks on Wikipedia and Baidu Baike.


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