Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Policy-Based GTPv2 and Path Restart

Learn about policy-based GTPv2, comparison of GTP versions and network functions, enabling GTPv2 inspection in policies and GTPv2 Path Restart.

GTPv2 Overview

The GPRS tunneling protocol (GTP) establishes a GTP tunnel between a Serving GPRS Support Node (SGSN) and a Gateway GPRS Support Node (GGSN) for individual Mobile Stations (MS) and GTP version 2 (GTPv2).

GTPv2 is part of LTE, a fourth generation (4G) wireless broadband technology developed by Third-Generation Partnership Project (3GPP). 3GPP is the standard body for developing GPRS standards. LTE is designed to increase the capacity and speed of mobile telephone networks. GTPv2 is a protocol designed for LTE networks. An LTE network comprises network elements, LTE interfaces, and protocols.

GTPv0 and GTPv1 are implemented using SGSNs and GGSNs. However, in GTPv2, the traditional SGSNs and GGSNs are replaced by three logical nodes—a serving gateway (SGW), a packet data network gateway (PGW), and a mobility management entity (MME).

Table 1: Comparison of GTP Versions and Network Functions
Mobile Generation GTP Version Used Node Types Involved Purpose
GTPv1 - 3G (UMTS) GTPv2 (Used in 4G/LTE Networks – Control Plane Only) SGSN, GGSN Signalling + user-plane tunnelling
GTPv2 - 4G (LTE) GTPv2 (control plane), GTPv1‑U (user plane) MME, SGW, PGW Session management (control plane) + user traffic (user plane)

Figure 1 shows the following LTE interfaces deployed in the public land mobile network (PLMN).

Figure 1: LTE Interfaces LTE Interfaces
Table 2:
Interface Connects Main Functions 3G Equivalent Notes
S5 SGW and PGW
  • User plane tunneling

  • Tunnel management

  • SGW relocation due to UE mobility

  • SGW connection to non-collocated PGW

Gn Used within the same PLMN
S8 SGW (visited PLMN) and PGW (home PLMN)
  • User plane tunneling

  • Tunnel management

  • Inter-PLMN connectivity

Gp Inter-PLMN version of S5
S4 S4-SGSN and SGW
  • Control & mobility support between GPRS core and 3GPP anchor

  • User plane tunneling (if direct tunneling not established)

None Enables 3G-4G Interoperability. No direct 3G equivalent

Policy-Based GTPv2

GPRS tunneling protocol version 2 (GTPv2) implements a policy mechanism that checks every GTPv2 packet against security policies that regulate GTPv2 traffic. Based on the security policy, the packet is then forwarded, dropped, or tunneled.

A GTPv2 security policy allows you to forward, deny, or tunnel GTPv2 traffic. However, the security policy does not enable GTPv2 traffic inspection on the device. To enable traffic inspection, you must apply a GTPv2 inspection object to a security policy. A GTPv2 inspection object is a set of configuration parameters for processing GTPv2 traffic.

You can apply only one GTPv2 inspection object per security policy. However, you can apply an inspection object to multiple security policies.

By default, a GTPv2 inspection object is not applied to a security policy. You need to explicitly apply an inspection object to a security policy.

Using GTPv2 security policies, you can permit or deny GTPv2 tunnel establishment from certain peers, such as a SGW. You can configure GTPv2 security policies that specify multiple source and destination addresses, address groups, or an entire zone.

Example: Enable GTPv2 Inspection in Policies

This example shows how to enable GTPv2 inspection in policies.

Requirements

Before you begin, you must restart the device after GTPv2 is enabled. By default, GTPv2 is disabled on the device.

Overview

In this example, you configure interfaces as ge-0/0/1 and ge-0/0/2, and assign them the interface addresses 4.0.0.254/8 and 5.0.0.254/8, respectively. You then configure the security zones and specify the global addresses as 4.0.0.5/32 and 5.0.0.6/32, respectively. You enable GTPv2 inspection in security policies to allow bidirectional traffic between two networks within the same PLMN.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

To configure GTPv2 inspection in policies:

  1. Create the GTPv2 inspection object.

  2. Configure the interfaces.

  3. Configure the security zones.

  4. Specify the addresses.

  5. Enable GTPv2 inspection in the security policies.

Results

From configuration mode, confirm your configuration by entering the show security policies command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verify GTPv2 Inspection in Policies

Purpose

Verify that GTPv2 inspection is enabled.

Action

From operational mode, enter the show security policies command.

GTP Path Restart

Restarting a GTP path terminates all GTP tunnels between two devices. Each GTP gateway is associated with a restart number. You can obtain a restart number from the Recovery information element (IE) of a GTP message.

You can detect a restart by comparing the locally stored restart number with the newly obtained one. The locally stored restart number is a nonzero value and does not match with the new restart number.

You can use the set security gtp profile name restart-path (echo | create | all) command to restart a GTP path.

After you configure this command, the device detects the changed restart number obtained from the Recovery IE in the messages. You can use the echo option to obtain a new restart number from echo messages, the create option to obtain a restart number from create-session messages, or the all option to obtain a new restart number from all types of GTP messages.

Example: Restart a GTPv2 Path

This example shows how to restart a GTPv2 path.

Requirements

No special configuration beyond device initialization is required before configuring this feature.

Overview

For brevity, this example uses GTPv2.

In this example, you restart the GTPv2 path for the GTPv2 inspection object named gtp2. You obtain a new restart number from the Recovery IE in an echo message.

Configuration

Step-by-Step Procedure

To restart the GTPv2 path:

  1. Specify the GTPv2 profile.

  2. Restart the path.

  3. If you are done configuring the device, commit the configuration.