All Topics  
Tunneling protocol

 

   Email Print
   Bookmark   Link






 

Tunneling protocol



 
 
The term tunneling protocol is used to describe when one network protocol called the payload protocol is encapsulated
Encapsulation (networking)

In computer networking, encapsulation is a method of designing modular communication protocols in which logically separate functions in the network are abstraction from their underlying structures by inclusion or information hiding within higher level objects....
 within a different delivery protocol. Reasons to use tunneling include carrying a payload over an incompatible delivery network, or to provide a secure path through an untrusted network.

Tunneling typically contrasts with a layered protocol model such as those of OSI
Open Systems Interconnection

The Open Systems Interconnection was an effort to standardize Computer network that was started in 1982 by the International Organization for Standardization , along with the ITU-T....
 or TCP/IP.






Discussion
Ask a question about 'Tunneling protocol'
Start a new discussion about 'Tunneling protocol'
Answer questions from other users
Full Discussion Forum



Encyclopedia


The term tunneling protocol is used to describe when one network protocol called the payload protocol is encapsulated
Encapsulation (networking)

In computer networking, encapsulation is a method of designing modular communication protocols in which logically separate functions in the network are abstraction from their underlying structures by inclusion or information hiding within higher level objects....
 within a different delivery protocol. Reasons to use tunneling include carrying a payload over an incompatible delivery network, or to provide a secure path through an untrusted network.

Tunneling typically contrasts with a layered protocol model such as those of OSI
Open Systems Interconnection

The Open Systems Interconnection was an effort to standardize Computer network that was started in 1982 by the International Organization for Standardization , along with the ITU-T....
 or TCP/IP. The tunnel protocol is usually (but not always) at a higher level than the payload protocol, or at the same level. To understand a particular protocol stack, both the payload and delivery protocol sets must be understood. Protocol encapsulation that is carried out by conventional layered protocols, in accordance with the OSI model
OSI model

The Open Systems Interconnection Reference Model is an abstract description for layered communications and computer network protocol design. It was developed as part of the Open Systems Interconnection initiative....
 or TCP/IP model, for example HTTP over TCP over IP over PPP over a V.92 modem, should not be considered as tunneling.

As an example of network layer over network layer, Generic Routing Encapsulation
Generic Routing Encapsulation

Generic Routing Encapsulation is a tunneling protocol developed by Cisco Systems that can Encapsulation a wide variety of network layer Protocol packet types inside IP tunnels, creating a virtual Point-to-point to Cisco routers at remote points over an Internet Protocol internetwork....
 (GRE), which is a protocol running over IP (IP Protocol Number 47), often is used to carry IP packets, with RFC 1918 private addresses, over the Internet using delivery packets with public IP addresses. In this case, the delivery and payload protocols are compatible, but the payload addresses are incompatible with those of the delivery network.

In contrast, an IP payload might believe it sees a data link layer delivery when it is carried inside the Layer 2 Tunneling Protocol (L2TP), which appears to the payload mechanism as a protocol of the data link layer. L2TP, however, actually runs over the transport layer using User Datagram Protocol
User Datagram Protocol

The User Datagram Protocol is one of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer applications can send messages, sometimes known as datagram, to other hosts on an Internet Protocol network without requiring prior communications to set up special transmission cha...
 (UDP) over IP. The IP in the delivery protocol could run over any data link protocol from IEEE 802.2
IEEE 802.2

IEEE 802.2 is the IEEE 802 standard defining Logical Link Control , which is the upper portion of the data link layer of the OSI Model. The LLC sublayer presents a uniform interface to the user of the data link service, usually the network layer....
 over IEEE 802.3
IEEE 802.3

IEEE 802.3 is a collection of IEEE standards defining the physical layer, and the media access control of the data link layer, of wired Ethernet....
 (i.e., standards-based Ethernet
Ethernet

Ethernet is a family of Data frame-based computer networking technologies for local area networks . The name comes from the physical concept of the Luminiferous aether....
) to the Point-to-Point Protocol
Point-to-Point Protocol

In Computer network, the Point-to-Point Protocol, or PPP, is a Data Link Layer Protocol commonly used to establish a direct connection between two Node ....
 (PPP) over a dialup modem link.

Tunneling protocols may use data encryption to transport insecure payload protocols over a public network such as the Internet thereby providing VPN functionality. IPSec
IPsec

Internet Protocol Security is a Protocol suite for securing Internet Protocol communications by authentication and encryption each packet #Example: IP packets of a data stream....
 has an end-to-end Transport Mode, but also can be operated in a Tunneling Mode through a trusted security gateway.

Common tunneling protocols


Examples of tunneling protocols include:

  • Datagram-based:
    • IPsec
      IPsec

      Internet Protocol Security is a Protocol suite for securing Internet Protocol communications by authentication and encryption each packet #Example: IP packets of a data stream....
    • GRE
      Generic Routing Encapsulation

      Generic Routing Encapsulation is a tunneling protocol developed by Cisco Systems that can Encapsulation a wide variety of network layer Protocol packet types inside IP tunnels, creating a virtual Point-to-point to Cisco routers at remote points over an Internet Protocol internetwork....
       (Generic Routing Encapsulation) supports multiple protocols and multiplexing
    • IP in IP
      IP in IP

      IP tunneling uses IP in IP protocol to encapsulate the IP packet in another IP packet. To encapsulate IP packet in a IP packet, an outer header is added with SourceIP, the entry point of the tunnel and the Destination point, the exit point of the tunnel....
       Tunneling Lower overhead than GRE and used when only 1 IP stream is to be tunneled
    • L2TP (Layer 2 Tunneling Protocol)
    • MPLS
      Multiprotocol Label Switching

      In computer networking and telecommunications, Multi Protocol Label Switching refers to a highly scalable, protocol agnostic, data-carrying mechanism....
       (Multi-Protocol Label Switching)
    • GTP
      GPRS Tunnelling Protocol

      GPRS Tunneling Protocol is a group of Internet Protocol-based communications tunneling protocol used to carry General Packet Radio Service within GSM and UMTS networks....
       (GPRS Tunnelling Protocol)
    • PPTP
      Point-to-point tunneling protocol

      The Point-to-Point Tunneling Protocol is a method for implementing virtual private networks. PPTP does not provide confidentiality or encryption; It relies on the protocol being tunneled to provide privacy....
       (Point-to-Point Tunneling Protocol)
    • PPPoE
      Point-to-Point Protocol over Ethernet

      PPPoE, Point-to-Point Protocol over Ethernet, is a network protocol for Encapsulation Point-to-Point Protocol frames inside Ethernet frames....
       (point-to-point protocol
      Point-to-Point Protocol

      In Computer network, the Point-to-Point Protocol, or PPP, is a Data Link Layer Protocol commonly used to establish a direct connection between two Node ....
       over Ethernet
      Ethernet

      Ethernet is a family of Data frame-based computer networking technologies for local area networks . The name comes from the physical concept of the Luminiferous aether....
      )
    • PPPoA
      Point-to-Point Protocol over ATM

      PPPOA or PPPoA, Point-to-Point Protocol over Asynchronous Transfer Mode, is a network protocol for Encapsulation PPP frames in Asynchronous Transfer Mode AAL5....
       (point-to-point protocol over ATM
      Asynchronous Transfer Mode

      Asynchronous Transfer Mode is an electronic digital data transmission technology. ATM is implemented as a network protocol and was first developed in the mid 1980s....
      )
    • IEEE 802.1Q
      IEEE 802.1Q

      IEEE 802.1Q was a project in the IEEE 802 standards process to develop a mechanism to allow multiple network bridged networks to transparently share the same physical network link without leakage of information between networks....
       (Ethernet VLANs)
    • DLSw (SNA
      Systems Network Architecture

      Systems Network Architecture is IBM's proprietary computer network architecture created in 1974. It is a complete protocol stack for interconnecting computers and their resources....
       over IP
      Internet protocol

      Internet protocol may refer to:*The Internet Protocol, a specific protocol implementation in the Internet protocol suite*The Internet protocol suite, a set of communications protocols that are used for the Internet...
      )
    • XOT
      XOT

      XOT is a protocol developed by Cisco that enables X.25 packets to be encapsulated and routed through TCP/IP connections instead of LAPB links....
       (X.25
      X.25

      X.25 is an ITU-T standard network layer protocol for Packet switched network wide area network communication. An X.25 WAN consists of Packet switching nodes as the networking hardware, and leased lines, Plain old telephone service connections or ISDN connections as physical links....
       datagrams over TCP
      Transmission Control Protocol

      The Transmission Control Protocol is one of the core protocols of the Internet Protocol Suite. TCP is so central that the entire suite is often referred to as "TCP/IP"....
      )
    • IPv6
      IPv6

      Internet Protocol version 6 is the next-generation Internet layer protocol for packet -switched internetworking and the Internet. IPv4 is the dominant Internet Protocol version, and was the first to receive widespread use....
       tunneling: 6to4
      6to4

      6to4 is a system that allows IPv6 packets to be transmitted over an IPv4 network without the need to configure explicit tunneling protocols. Routing conventions are also in place that allow 6to4 hosts to communicate with hosts on the IPv6 internet....
      ; 6in4
      6in4

      6in4 is an Internet IPv6#Transition mechanisms for migrating from Internet Protocol version 4 to version 6 .6in4 uses Tunneling protocol techniques by encapsulating IPv6 traffic within explicitly-configured IPv4 tunnels as defined in RFC 2893 ....
      ; Teredo
      Teredo tunneling

      Teredo is a tunneling protocol designed to grant IPv6 connectivity to nodes that are located behind IPv6-unaware Network address translation devices....
    • Anything In Anything
      Anything In Anything

      Anything In Anything or AYIYA is a draft tunneling protocol.The protocol addresses the following problems:* Tunneling of any protocol in any protocol* Security* Network Address Translation awareness* Mobility...
       (AYIYA; e.g. IPv6 over UDP over IPv4, IPv4 over IPv6, IPv6 over TCP IPv4, etc.)
  • Stream-based:
    • TLS
      Transport Layer Security

      Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
    • SSH
      Secure Shell

      Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET and other Computer security remote Shell s, which send information, notably passwords, in...
    • SOCKS
      SOCKS

      SOCKS is an Internet Protocol that facilitates the routing of Packet between client-server applications via a proxy server. SOCKS is an abbreviation for "Secured Over Credential-based Kerberos Services." SOCKS performs at Layer 5 of the OSI model - the Session layer ....
    • HTTP CONNECT command
    • Various circuit-level proxy protocols, such as Microsoft Proxy Server's Winsock Redirection Protocol, or WinGate
      WinGate (computing)

      WinGate is an Integrated Gateway Management system for Microsoft Windows, providing firewall and network address translation services, along with a number of integrated proxy server and email services ....
       Winsock Redirection Service.


SSH tunneling


An SSH tunnel is an encrypted tunnel created through an SSH protocol
Secure Shell

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET and other Computer security remote Shell s, which send information, notably passwords, in...
 connection. SSH tunnels may be used to tunnel unencrypted traffic over a network through an encrypted channel. For example, Windows machines can share files using the SMB
Server Message Block

In computer networking, Server Message Block operates as an Application layer mainly used to provide shared access to Computer file, Computer printer, serial ports, and miscellaneous communications between nodes on a network....
 protocol, which is not encrypted. If you were to mount a Windows filesystem remotely through the Internet, someone snooping on the connection could see your files. To mount the Windows filesystem securely, you can establish an SSH tunnel that routes all SMB traffic to the remote fileserver through an encrypted channel. Even though the SMB protocol itself is unencrypted it is secure because it travels through the encrypted SSH channel.

To create an SSH tunnel, an SSH client is configured to forward a specified local port to a port on the remote machine. Once the SSH tunnel has been established, the user can connect to the specified local port to access the network service. The local port need not be the same as the remote port.

SSH tunnels provide a means to bypass firewalls that prohibit certain Internet services provided that outgoing connections are allowed. For example, an organization may prohibit a user from accessing Internet web pages (port 80) directly without passing through the organization's proxy filter which provides the organization a means of monitoring and controlling what the user sees through the web. The user may not wish to have their web traffic monitored or blocked by the organization's proxy filter. If a user is able to connect to an external SSH server, it is possible for them to create an SSH tunnel to forward a given port on their local machine to port 80 on a remote web server. To access the remote web server the user would point their browser
Web browser

A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
 to http://localhost/.

Some SSH clients support dynamic port forwarding that allows the user to create a SOCKS 4/5 proxy
SOCKS

SOCKS is an Internet Protocol that facilitates the routing of Packet between client-server applications via a proxy server. SOCKS is an abbreviation for "Secured Over Credential-based Kerberos Services." SOCKS performs at Layer 5 of the OSI model - the Session layer ....
. The user can configure his/her applications to use their local SOCKS proxy server. This is more flexible than creating an SSH tunnel to a single port as previously described. With SOCKS the user is not limited to connecting only to a predefined remote port and server.

Tunneling to circumvent firewall policy


Tunneling can also be used to "sneak through" a firewall. A protocol that is blocked by the firewall is "wrapped" inside a protocol that is NOT blocked by the firewall, such as HTTP. If the firewall policy has not been written to exclude this kind of "wrapping", this trick can be used to get around the intended firewall policy.

Another HTTP-based tunneling method uses the HTTP CONNECT method/command. A client issues the HTTP CONNECT command to an HTTP proxy. The proxy then makes a TCP connection to a particular server:port, and relays data between that server:port and the client connection. Because this creates a security hole, CONNECT-capable HTTP proxies commonly restrict access to the CONNECT method. The proxy allows access only to TLS/SSL-based HTTPS services.

See also

  • Tunnel broker
    Tunnel broker

    A tunnel broker is a service which provides a network tunnel. These tunnels can provide encapsulated connectivity over existing infrastructure to a new infrastructure....
  • Virtual private network
    Virtual private network

    VPN which stands for Virtual Private Networks are used as secure extranets and Internets . It protects its network by using encryption, firewalls and other security strategies....
  • HTTP tunnel (software)


External links