You are here:Home > Best VPN > Tunnel technology in free VPN Technology

Tunnel technology in free VPN Technology

Summary:The classification of VPN tunnel technology, VPN tunnel technology and in-depth analysis of network tunnel protocol talk about the tunnel technology i…
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 classification of VPN tunnel technology, VPN tunnel technology and in-depth analysis of network tunnel protocol talk about the tunnel technology in free VPN technology.

1、 Summary

Tunnel technology is the key technology to realize VPN. Common tunnel protocols include GRE, l2pt and IPSec. PPTP and L2TP protocols work in the second layer of OSI model, which is also called layer 2 Tunneling Protocol; IPSec is the layer 3 tunneling protocol and the most common protocol. L2TP combined with IPSec is the most widely used one with the best performance at present. The research conclusion of this paper provides a theoretical basis for the reasonable selection of tunnel technology.

2、 Classification of VPN Tunnel Technology

According to the tunnel protocol types used by VPN, VPN tunnels can be divided into many types, mainly including LSP, GRE tunnel, IPSec tunnel and L2TP. They are as follows:

1 LSP

In MPLS network, the edge router labels the message with MPLS label, and the internal router forwards the message according to the label. The path through which the label message passes is called label switched path (LSP). The tunnel type used in rfc2547 is LSP. If the core network only provides pure IP function, and the PE router at the edge of the network has MPLS function, you can use GRE or IPSec to replace LSP and provide layer 3 or layer 2 VPN solutions in the core network.

2. GRE tunnel

GRE tunnel uses GRE protocol to encapsulate the original data message, and realizes the transparent transmission of data based on the public IP network. GRE tunnels cannot be configured with layer 2 information, but IP addresses can be configured. Forwarding is done using the actual physical interface specified for the tunnel. The forwarding process can be briefly described as follows:

All messages to the remote VPN are sent to the tunnel source first;

GRE encapsulation is carried out at the source end of the tunnel, and the source address and destination address of the tunnel determined when the tunnel is established are filled in;

Sent to the tunnel destination through the public IP network;

The gre at the tunnel destination is unpacked and the message is forwarded to the remote VPN network according to the ordinary IP forwarding process.

The current GRE tunnel scheme has the following disadvantages:

Complex networking and configuration: GRE tunnel technology adopts a point-to-point tunnel scheme. When the number of access points is n and a fully connected VPN needs to be established, the entire network needs to be manually configured with n × (n-1)&pile; 2 point-to-point connections;

Poor maintainability and scalability: for a VPN network that has been built, if you need to add nodes or modify the configuration of a node, all other nodes must modify the local configuration for this node, and the maintenance cost is high;

Unable to penetrate NAT (network address translation) gateway: GRE is used to establish the tunnel. If there is a NAT gateway at the exit, a public address corresponds to a private address, which requires a large number of public IP addresses, which leads to the fact that GRE cannot be applied inside the NAT gateway.

3. IPSec tunnel

IPSec is a framework protocol developed by IETF to ensure the security and confidentiality of data transmitted over the Internet. IPSec provides two operation modes: transmission mode and tunnel mode. The encapsulation process of tunnel mode is as follows:

First, define an IP flow for the two private network addresses that need to communicate. The establishment of the flow can use the port of a protocol above the IP layer;

Define the source and destination address information of IPSec tunnel, which are public network information;

Configure the default route, and the next hop points to the opposite address of the link where the IPSec tunnel source address is located.

During VPN communication, all packets to the peer VPN are encapsulated in IPSec at the outgoing interface, unpacked at the peer, and then forwarded.

4 L2TP

L2tpv2 supports two-layer encapsulation in PPP mode and is hosted through UDP. L2tpv2 is applied to VPDN. As long as L2TP is implemented, the function of VPDN can be completed. L2TP tunnel supports congestion control and tunnel endpoint verification.

Various types of tunnels can also be mixed. For example, using IPSec Security mechanism when establishing GRE tunnels can improve the security of data; Establishing IPSec Security Mechanism at both ends of L2TP tunnel can ensure the security of VPDN.

3、 In depth analysis of VPN Tunneling Protocol

Network tunnel refers to the establishment of a data channel (tunnel) in the public network, through which data packets are transmitted. There are two types of network tunneling protocols. The first is layer-2 tunneling protocol, which is used to transmit layer-2 network protocols. It is mainly used to build remote access virtual private network (accessvpn); The other is the three-layer tunnel protocol, which is used to transmit the three-layer network protocol. It is mainly used to build the intranet VPN and the extended extranet VPN.

Layer 2 Tunneling protocol layer 2 Tunneling Protocol encapsulates various network protocols into PPP, and then packages the entire data into the tunneling protocol. The data packets formed by this double-layer encapsulation method are transmitted by the second layer protocol. There are three main layer 2 tunneling protocols: the first is PPTP (point to point Tunneling Protocol) supported by Microsoft, ascend, 3Com and other companies, which is supported in windowsnt4.0 and above.

The second is L2F (layer2forwarding) supported by Cisco, Northern Telecom and other companies, which is supported in Cisco routers. The third is the L2TP (layer 2tunnelingprotocol), drafted by IETF and participated by Microsoft ascend, Cisco, 3Com and other companies, which combines the advantages of the above two protocols. L2TP protocol is the current IETF standard and is formed by the integration of PPTP and L2F. Here we mainly introduce L2TP network protocol.

Lac refers to L2TP access concentrator, which is attached to the switching network and has the processing capability of PPP end system and L2TP protocol. Lac is generally a network access server NAS (network access server), which is used to provide network access services for users through pstn/ISDN; LNs refers to L2TP network server, which is the software used to process L2TP protocol server part on PPP side system.

There are two types of connections between an LNs and lac pair. One is tunnel connection, which defines an LNs and lac pair; The other is session connection, which is reused on the tunnel connection to represent each PPP session process carried in the tunnel connection.

The maintenance of L2TP connection and the transmission of PPP data are completed through the exchange of L2TP messages, which are then carried on tcp/ip through UDP port 1701. L2TP messages can be divided into two types: control messages and data messages.

The control message is used to establish and maintain the tunnel connection and session connection. The data message is used to carry the PPP session packet of the user. The maintenance of L2TP connection and the transmission of PPP data are completed through the exchange of L2TP messages, which are then carried on tcp/ip through UDP port 1701.

The parameters in the control message are represented by attributevaluepair, which makes the protocol very extensible; In the transmission process of control messages, mechanisms such as message loss retransmission and timing detection channel connectivity are also applied to ensure the reliability of L2TP layer transmission.


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