Which technology has two modes of operation: transport and tunnel?

IPSec can be run in either tunnel mode or transport mode. Each of these modes has its own particular uses and care should be taken to ensure that the correct one is selected for the solution:

  • Tunnel mode is most commonly used between gateways, or at an end-station to a gateway, the gateway acting as a proxy for the hosts behind it.

  • Transport mode is used between end-stations or between an end-station and a gateway, if the gateway is being treated as a host—for example, an encrypted Telnet session from a workstation to a router, in which the router is the actual destination.

As Figure 1 shows, basically transport mode should be used for end-to-end sessions and tunnel mode should be used for everything else. (Refer to the figure for the following discussion.)

Figure 1 Tunnel and transport modes in IPSec.

Figure 1 displays some examples of when to use tunnel versus transport mode:

  • Tunnel mode is most commonly used to encrypt traffic between secure IPSec gateways, such as between the Cisco router and PIX Firewall (as shown in example A in Figure 1). The IPSec gateways proxy IPSec for the devices behind them, such as Alice's PC and the HR servers in Figure 1. In example A, Alice connects to the HR servers securely through the IPSec tunnel set up between the gateways.

  • Tunnel mode is also used to connect an end-station running IPSec software, such as the Cisco Secure VPN Client, to an IPSec gateway, as shown in example B.

  • In example C, tunnel mode is used to set up an IPSec tunnel between the Cisco router and a server running IPSec software. Note that Cisco IOS software and the PIX Firewall sets tunnel mode as the default IPSec mode.

  • Transport mode is used between end-stations supporting IPSec, or between an end-station and a gateway, if the gateway is being treated as a host. In example D, transport mode is used to set up an encrypted Telnet session from Alice's PC running Cisco Secure VPN Client software to terminate at the PIX Firewall, enabling Alice to remotely configure the PIX Firewall securely.

AH Tunnel Versus Transport Mode

Figure 2 shows the differences that the IPSec mode makes to AH. In transport mode, AH services protect the external IP header along with the data payload. AH services protect all the fields in the header that don't change in transport. The header goes after the IP header and before the ESP header, if present, and other higher-layer protocols.

In tunnel mode, the entire original header is authenticated, a new IP header is built, and the new IP header is protected in the same way as the IP header in transport mode.

Figure 2 AH tunnel versus transport mode.

AH is incompatible with Network Address Translation (NAT) because NAT changes the source IP address, which breaks the AH header and causes the packets to be rejected by the IPSec peer.

ESP Tunnel Versus Transport Mode

Figure 3 shows the differences that the IPSec mode makes to ESP. In transport mode, the IP payload is encrypted and the original headers are left intact. The ESP header is inserted after the IP header and before the upper-layer protocol header. The upper-layer protocols are encrypted and authenticated along with the ESP header. ESP doesn't authenticate the IP header itself.

NOTE

Higher-layer information is not available because it's part of the encrypted payload.

When ESP is used in tunnel mode, the original IP header is well protected because the entire original IP datagram is encrypted. With an ESP authentication mechanism, the original IP datagram and the ESP header are included; however, the new IP header is not included in the authentication.

When both authentication and encryption are selected, encryption is performed first, before authentication. One reason for this order of processing is that it facilitates rapid detection and rejection of replayed or bogus packets by the receiving node. Prior to decrypting the packet, the receiver can detect the problem and potentially reduce the impact of denial-of-service attacks.

Figure 3 ESP tunnel versus transport mode.

ESP can also provide packet authentication with an optional field for authentication. Cisco IOS software and the PIX Firewall refer to this service as ESP hashed message authentication code (HMAC). Authentication is calculated after the encryption is done. The current IPSec standard specifies SHA-1 and MD5 as the mandatory HMAC algorithms.

The main difference between the authentication provided by ESP and AH is the extent of the coverage. Specifically, ESP doesn't protect any IP header fields unless those fields are encapsulated by ESP (tunnel mode). Figure 4 illustrates the fields protected by ESP HMAC.

The manner in which the original IP packet is modified depends on the encapsulation mode used. There are two encapsulation modes used by AH and ESP, transport and tunnel.

Transport mode encapsulation retains the original IP header. Therefore, when transport mode is used, the IP header reflects the original source and destination of the packet. Transport is most often used in a host-to-host scenario, where the data endpoints and the security endpoints are the same. A transport mode encapsulated datagram is routed, or transported, in the same manner as the original packet.

shows an IPv4 packet that is encapsulated using AH in transport mode:

Figure 1. IPv4 packet encapsulated using AH in transport mode

Which technology has two modes of operation: transport and tunnel?

shows an IPv4 packet that is encapsulated using ESP in transport mode:

Figure 2. IPv4 packet encapsulated using ESP in transport mode

Which technology has two modes of operation: transport and tunnel?

shows an IPv6 packet that is encapsulated using AH in transport mode:

Figure 3. IPv6 packet encapsulated using AH in transport mode

Which technology has two modes of operation: transport and tunnel?

For a description of the IPv6 mutable fields, see RFC 2402. For information about accessing RFCs, see .

shows an IPv6 packet that is encapsulated using ESP in transport mode:

Figure 4. IPv6 packet encapsulated using ESP in transport mode

Which technology has two modes of operation: transport and tunnel?

Tunnel mode encapsulation builds a new IP header containing the source and destination address of the security endpoints. When tunnel mode is used, the outer IP header reflects the source and destination of the security endpoints, which might or might not be the same as the original source and destination IP address of the data connection. The choice of transport or tunnel mode depends on the structure of the network and relies heavily on logical connections between the endpoints. Tunnel mode is required if one of the IKE peers is a security gateway that is applying IPSec on behalf of another host or hosts. A datagram that is encapsulated in tunnel mode is routed, or tunneled, through the security gateways, with the possibility that the secure IPSec packet will not flow through the same network path as the original datagram. To successfully encapsulate and send an outbound packet, the route table must contain a route that can be used to reach the security gateway, as well as a route that can be used to reach the data endpoint. If policy-based routing is being used on a TCP/IP stack where IP security is active, it is important to understand how the two functions interact. For more information, see .

shows an IPv4 packet that is encapsulated using AH in tunnel mode:

Figure 5. IPv4 packet encapsulated using AH in tunnel mode

Which technology has two modes of operation: transport and tunnel?

shows an IPv4 packet that is encapsulated using ESP in tunnel mode:

Figure 6. IPv4 packet encapsulated using ESP in tunnel mode

Which technology has two modes of operation: transport and tunnel?

shows an IPv6 packet that is encapsulated using AH in tunnel mode:

Figure 7. IPv6 packet encapsulated using AH in tunnel mode

Which technology has two modes of operation: transport and tunnel?

For a description of the IPv6 mutable fields, see RFC 2402.

shows an IPv6 packet that is encapsulated using ESP in tunnel mode:

Figure 8. IPv6 packet encapsulated using ESP in tunnel mode

Which technology has two modes of operation: transport and tunnel?

Do not confuse tunnel mode encapsulation with IKE tunnel or IPSec tunnel. In this context, tunnel refers only to the method by which IPSec packets are constructed, while IKE and IPSec tunnels are conceptually defined as secure logical connections between hosts. IPSec tunnels can use transport mode or tunnel mode encapsulation.

For a dynamic tunnel, the choice of encapsulation mode is configured using the IpDataOffer statement in an IP security policy configuration file. For a manual tunnel, the choice of IPSec protocol is configured using the IpManVpnAction statement in an IP security policy configuration file. For more details about the and the , see z/OS Communications Server: IP Configuration Reference.

What is the difference between the transport mode and the tunnel mode in ipsec quizlet?

What is the difference between tunnel and transport mode? Transport Mode - Only the original payload is encrypted, leaving the original IP headers intact. Tunnel Mode - Entire packet is encrypted, and a new ESP header (and footer) is added.

Which technology employs sockets to map internal private network addresses to a public address using one to many mapping?

Which technology employs sockets to map internal private network addresses to a public address using a one-to-many mapping? Secure Shell (SSH) provides security for remote access connections over public networks by creating a secure and persistent connection..

Which type of device can react to network traffic and create or modify configuration rules to adapt?

A firewall type that can react to network traffic and create or modify configuration rules to adapt. A firewall type that keeps track of each network connection between internal and external systems using a state table and that expedites the filtering of those communications.

Which type of firewall keeps track of each network connection established between internal and external systems?

Stateful firewalls are capable of monitoring and detecting states of all traffic on a network to track and defend based on traffic patterns and flows. Stateless firewalls, however, only focus on individual packets, using preset rules to filter traffic.