Provided by Colasoft Co., Ltd.

GTP ( GPRS Tunneling Protocol )

Home > Protocols > GTP Update: 2005-11-23 17:18:42    I have words to say about this protocol
On this page
SUMMARY
Protocol : GPRS Tunneling Protocol
Protocol suite : GPRS
Layer : Network Layer
DESCRIPTION
GTP (GPRS Tunneling Protocol) specifies a tunnel control and management protocol which allows the SGSN to provide GPRS network access for an MS. Signalling is used to create, modify and delete tunnels. In the transmission plane, GTP uses a tunneling mechanism to provide a service for carrying user data packets. The choice of path is dependent on whether the user data to be tunneled requires a reliable link or not.

The GTP protocol is implemented only by SGSNs and GGSNs. No other systems need to be aware of GTP. GPRS MSs are connected to a SGSN without being aware of GTP. It is assumed that there will be a many-to-many relationship between SGSNs and GGSNs. An SGSN may provide service to many GGSNs. A single GGSN may associate with many SGSNs to deliver traffic to a large number of geographically diverse mobile stations.

GPRS Tunnelling Protocol is a IP based protocol used within GSM and UMTS networks. The GTP protocol is layered on top of UDP. There are in fact three separate protocols, GTP-C, GTP-U and GTP'. GTP-C is used within the GPRS core network for signalling between GPRS Support Nodes (GGSNs and SGSNs). This allows the SGSN to activate a session on the users behalf (PDP context activation), to deactivate the same session, to adjust quality of service parameters or to update a session for a subscriber who has just arrived from another SGSN. GTP-U is used for carrying user data within the GPRS core network and between the Radio Access Network and the core network. The user data transported can be packets in any of IPv4, IPv6 or PPP formats.


Header Format
The GTP header is a fixed format 20 octet header used for all GTP messages.

8

7

6

5

4

3

2

1

Octets

Version

PT

Spare " 1 1 1 "

SNN

1

Message type

2

Length

3-4

Sequence Number

5-6

Flow label

7-8

SNDCP N-PDULLC Number

9

Spare " 1 1 1 1 1 1 1 1 "

10

Spare " 1 1 1 1 1 1 1 1 "

11

Spare " 1 1 1 1 1 1 1 1 "

12

TID

13-20


  • Version
    Set to 0 to indicate the first version of GTP.


  • Reserved
    Reserved bits for future use, set to 1.


  • LFN
    Flag indicating whether the LLC frame number is included or not.


  • Message Type
    Type of GTP message.


  • Length
    Indicates the length in octets of the GTP message (G-PDU).


  • Sequence number
    Transaction identity for signalling messages and an increasing sequence number for tunnelled T-PDUs.


  • Flow label
    Identifies unambiguously a GTP flow.


  • LLC frame number
    Used at the Inter SGSN Routing Update procedure to coordinate the data tranmsission on the link layer between the MS and the SGSN.


  • x
    Spare bits x indicate the unused bits which are set to 0 by the sending side and are ignored by the receiving side.


  • FN
    Continuation of LLC frame number.


  • TID
    Tunnel identifier that points out MM and PDP contexts.The format of the TID is as follows:


  • 8

    7

    6

    5

    4

    3

    2

    1

    Octets

    MCC digit 2

    MCC digit 1

    1

    MNC digit 1

    MCC digit 3

    2

    MSIN digit 1

    MNC digit 2

    3

    MSIN digit 3

    MSIN digit 2

    4

    MSIN digit 5

    MSIN digit 4

    5

    MSIN digit 7

    MSIN digit 6

    6

    MSIN digit 9

    MSIN digit 8

    7

    NSAPI

    MSIN digit 10

    8



  • MCC, MNC, MSIN digits
    Parts of the IMSI (defined in GMS 04.08).


  • NSAPI
    Network service access point identifier.


General Features
All variants of GTP have certain features in common. The structure of the messages is the same, with a GTP header following the UDP header and containing the following fields
  • version information and flags

  • message type

  • length

  • tunnel end point identification


These mandatory fields give a minimum length of 8 octets. depending whether any flags are present, these may be followed by sequence number, n-pdu number, next extension type and then by extension headers if needed.

Apart from the common message structure, there is also a common mechanism for verifying connectivity from GSN to GSN. This uses two messages.
  • echo request

  • echo response


As often as every 60 seconds, a GSN can send an echo request to each other GSN with which it has an active connection. If the other end does not respond it can be treated as down and active connections to it deleted.

Apart from the two messages previously mentioned, there are no other messages common across all GTP variants meaning that, for the most part, they effectively form three completely separate protocols.

History
GTP was originally standardised within ETSI (GSM standard 09.60). With the creation of the UMTS standards this was moved over to the 3GPP which, as of 2005 maintains it as 3GPP standard 29.060. GTP' uses the same message format, but it's special uses are covered in standard 32.295 along with the standardised formats for the charging data it transfers.

The original version of GTP (version 0) had considerable differences from the current version (version 1).
  • the tunnel identification was non random

  • options were provided for transporting X.25

  • the fixed port number 3386 was used for all functions (not just charging as in GTPv1)

  • TCP was allowed as a transport option instead of UDP, but support for this was optional

  • subscription related fields such as Quality of Service were more limited


The non random TEID in version 0 represented a security problem if an attacker had access to any roaming partner's network, or could find some other way to remotely send packets to the GPRS backbone. Version 0 is going out of use and being replaced by version 1 in almost all networks. Even so, the standard for the newer version states that the older version must be supported by the GSN. Fortunately, however the use of different port numbers allows easy blocking of version 0 through simple IP access lists.


GTP-C - GTP Control
The GTP-C protocol is the control section of the GTP standard. When a subscriber requests a PDP context, the SGSN will send an Activate PDP Context GTP-C message to the GGSN giving details of the subscriber's request. The GGSN will then respond with an Activate PDP Context Response message which will either give details of the PDP context actually activated or will indicate a failure and give a reason for that failure.

GTP-U - GTP User Data Tunnelling
GTP-U is, in effect a relatively simple IP based tunnelling protocol which permits many tunnels between each set of end points. When used in the UMTS, each subscriber will have one or more tunnel, one for each PDP context they have active plus, possibly separate tunnels for specific connections with different Quality of service requirements.

The separate tunnels are identified by a TEID (Tunnel Endpoint Identifier) in the GTP-U messages, which should be a dynamically allocated random number. If this random number is of cryptographic quality, then it will provide a measure of security against certain attacks. Even so, the requirement of the 3GPP standard is that all GTP traffic, including user data should be sent within secure private networks, not directly connected to the Internet.

GTP' - Charging Transfer
The GTP' (pronounced GTP prime) protocol is used to transfer charging data to the Charging Gateway Function. GTP' uses UDP port 3386.

Within in the GPRS Core Network
GTP is the primary protocol used in the GPRS core network it is the protocol which allows end users of a GSM or UMTS network to move from place to place whilst continuing to connect to the Internet as if from one location at the GGSN. It does this by carrying the subscriber's data from the subscriber's current SGSN to the GGSN which is handling the subscriber's session. Three forms of GTP are used by the GPRS core network.
  • GTP-U for transfer of user data in separated tunnels for each PDP context

  • GTP-C for control reasons including:

    • setup and deletion of PDP contexts
      verification of GSN reachability
      updates, e.g. as subscribers move from one SGSN to another.

  • GTP' for transfer of charging data from GSNs to the charging function.


GGSNs and SGSNs (collectively known as GSNs) listen for GTP-C messages on UDP port 2123 and for GTP-U messages on port 2152. This communication happens within a single network or may, in the case of international roaming, happen internationally, probably across a GPRS Roaming Exchange (GRX).

The "Charging Gateway Function" (CGF) listens to GTP' messages sent from the GSNs on UDP port 3386. The core network sends charging information to the CGF, typically including PDP context activation times and the quantity of data which the end user has transferred. However, this communication which occurs within one network is less standardised and may, depending on the vendor and configuration options, use proprietary encoding or even an entirely proprietary system.

Use on the IuPS interface
GTP-U is used on the IuPS between the GPRS core network and the Radio Access Network, however the GTP-C protocol is not used. In this case, RANAP is used as a control protocol and establishes GTP-U tunnels between the SGSN and the RNC.

GTP-U Protocol Stack
All variations of GTP are transported over UDP.

As of 2004 there are two versions defined, version 0 and version 1. Interestingly version 0 and version 1 are considerably different in structure. In version 0 the signalling protocol (the protocol which sets up the tunnels by activating the PDP context) is combined with the tunnelling protocol on one port. Version 1 is actually effectively two protocols, one for control (called GTP-C) and one for user data tunnelling (called GTP-U).

GTP-U is also used to transport user data from the RNC to the SGSN in UMTS networks. However, in this case signalling is done using RANAP instead of GTP-C.

Top of Page

EXAMPLES

Top of Page


PROTOCOL RELATIONS
Parent layer
Child layer
TCP/UDP
GTP
Top of Page

GLOSSARY
3GPP
The 3GPP (3rd Generation Partnership Project) is a collaboration agreement that was established in December 1998. It's a co-operation between ETSI (Europe), ARIB/TTC (Japan), CCSA (China), ATIS (North America) and TTA (South Korea).

Access
(v.)
*To use. For example, programs can access memory , which means they read data from or write data to main memory. A user can access files, directories, computers, or peripheral devices.
*More specifically, access often means to read data from or write data to a mass storage device. The time it takes to locate a single byte of information on a mass-storage device is called the access time.
*To visit a Web site.

(n.)
*The act of reading data from or writing data to a storage device.
*A privilege to use computer information in some manner. For example, a user might be granted read access to a file, meaning that the user can read the file but cannot modify or delete it. Most operating systems have several different types of access privileges that can be granted or denied to specific users or groups of users.
*When capitalized as Access, short for Microsoft Access.

Data
* Distinct pieces of information, usually formatted in a special way. All software is divided into two general categories: data and programs. Programs are collections of instructions for manipulating data. Data can exist in a variety of forms -- as numbers or text on pieces of paper, as bits and bytes stored in electronic memory, or as facts stored in a person's mind. Strictly speaking, data is the plural of datum, a single piece of information. In practice, however, people use data as both the singular and plural form of the word.

* The term data is often used to distinguish binary machine-readable information from textual human-readable information. For example, some applications make a distinction between data files (files that contain binary data) and text files (files that contain ASCII data).

* In database management systems, data files are the files that store the database information, whereas other files, such as index files and data dictionaries, store administrative information, known as metadata.

ETSI
The ETSI (European Telecommunications Standards Institute) is a standardization organization of the telecommunications industry (equipment makers and network operators) in Europe, with worldwide projection. ETSI has been successful in standardizing the GSM cell phone system and the TETRA professional mobile radio system.

GGSN
The GGSN (Gateway GPRS Support Node) is the node which carries out the role in GPRS equivalent to the Home Agent in Mobile IP. It is a router which detunnels user data from GPRS Tunnelling Protocol and sends out normal user data IP packets.

GPRS
GPRS (General Packet Radio Service) is a mobile data service available to users of GSM mobile phones. It is often described as "2.5G", that is, a technology between the second (2G) and third (3G) generations of mobile telephony. It provides moderate speed data transfer, by using unused TDMA channels in the GSM network.

GPRS Core Network
The GPRS system is used by GSM Mobile phones, as of 2004 the most common mobile phone system in the world, for transmitting IP packets. The GPRS Core Network is the centralised part of the GPRS system and also provides support for UMTS based 3G networks. The GPRS core network is an integrated part of the GSM core network.

GSM
The GSM (Global System for Mobile Communications) is the most popular standard for mobile phones in the world. GSM phones are used by over a billion people across more than 200 countries. The ubiquity of the GSM standard makes international roaming very common between mobile phone operators which enables phone users to access their services in many other parts of the world as well as their own country.

GTP
GTP (GPRS Tunneling Protocol) creates a secure connection in the IP environment, by encapsulating encrypted data in an IP packet. GTP handles the flow of user packet data and signaling information between the SGSN and GGSN in a GPRS network.

IP
The IP (Internet Protocol) is a protocol which uses datagrams to communicate over a packet-switched network. IP specifies the format of packets, also called datagrams, and the addressing scheme. Most networks combine IP with a higher-level protocol called Transmission Control Protocol (TCP), which establishes a virtual connection between a destination and a source.

IP by itself is something like the postal system. It allows you to address a package and drop it in the system, but there's no direct link between you and the recipient. TCP/IP, on the other hand, establishes a connection between two hosts so that they can send messages back and forth for a period of time.

The current version of IP is IPv4. A new version, called IPv6 or IPng, is under development.

Network
Network is a group of two or more computer systems linked together. There are many types of computer networks, including:
LANs (local-area networks), WANs (wide-area networks), CANs (campus-area networks), MANs (metropolitan-area networks) and HANs (home-area networks).

In addition to these types, the following characteristics are also used to categorize different types of networks: Topology, protocol and architecture.

Packet
A packet is the unit of data that is routed between an origin and a destination on the Internet or any other packet-switched network. When any file (e-mail message, HTML file, Graphics Interchange Format file, Uniform Resource Locator request, and so forth) is sent from one place to another on the Internet, the Transmission Control Protocol (TCP) layer of TCP/IP divides the file into "chunks" of an efficient size for routing. Each of these packets is separately numbered and includes the Internet address of the destination. The individual packets for a given file may travel different routes through the Internet. When they have all arrived, they are reassembled into the original file (by the TCP layer at the receiving end).

Path
The route taken by the SCTP packets sent by one SCTP endpoint to a specific destination transport address of its peer SCTP endpoint. Sending to different destination transport addresses does not necessarily guarantee getting separate paths.

Quality of service
In the fields of packet-switched networks and computer networking, the traffic engineering term Quality of Service (QoS) refers to the probability of the telecommunication network meeting a given traffic contract, or in many cases is used informally to refer the probability of a packet succeeding in passing between two points in the network.

RANAP
RANAP Radio Access Network Application Part) protocol is used in UMTS signaling between the Core Network, which can be a MSC or SGSN, and the UTRAN. RANAP is carried over Iu-interface.

RNC
The RNC (Radio Network Controller) is the governing element in the UMTS radio access network (UTRAN) responsible for control of the Node-Bs, that is to say the base stations which are connected to the controller. The RNC carries out radio resource management, some of the mobility management functions and is the point where encryption is done before user data is sent to and from the mobile.

SGSN
The SGSN (Serving GPRS Support Node) is the node which in some sense carries out the same function as the Local Agent in Mobile IP. However, an SGSN is actually considerably more complex since it also does the full set of interworking with the connected radio network. This means that the functions carried out by the SGSN vary quite considerably between GSM and UMTS.

Service
The NAS provides a service to the dial-in user, such as PPP or Telnet.

Tunnel
A tunnel is defined by a PNS-PAC pair. The tunnel protocol is defined by a modified version of GRE. The tunnel carries PPP datagrams between the PAC and the PNS. Many sessions are multiplexed on a single tunnel. A control connection operating over TCP controls the establishment, release, and maintenance of sessions and of the tunnel itself.

UDP
UDP (User Datagram Protocol) is a connectionless protocol that, like TCP, runs on top of IP networks. Unlike TCP/IP, UDP/IP provides very few error recovery services, offering instead a direct way to send and receive datagrams over an IP network. It's used primarily for broadcasting messages over a network.

UMTS
UMTS (Universal Mobile Telecommunications System) is one of the third-generation (3G) mobile phone technologies. It uses W-CDMA as the underlying standard, is standardized by the 3GPP, and represents the European/Japanese answer to the ITU IMT-2000 requirements for 3G Cellular radio systems.

User
User is an individual who uses a computer. This includes expert programmers as well as novices. An end user is any individual who runs an application program.

Top of Page

REFERENCES


Top of Page

OTHER PROTOCOLS OF TCP/IP SUITE
AARP   RRP   RTP Video   RTP Audio   RTP   COPS   Gopher   HSRP   ICP   MPLS   IEEE 802.2   CIP   FTP - Data   FTP - Ctrl   IMAPS   IP Fragment   LDAPS   PUP   MSSQL   RSH   SQL   POP3s   RTELNET   RSVP   STP   VLAN   MSN   H.323   MSRDP   HTTPS   WINS   LPD   GTP   ICMPv6   POP   TELNET   H.225   VRRP   PIM   RARP   SAP   OSPF   RLOGIN   SCTP   SIP   RTCP   PPPoE   Mobile IP   IMAP3   WhoIs   SLP   NCP   PPTP   MGCP   LDAP   L2TP   Kerberos   IPv6   GRE   Ethernet SNAP   AFP   CIFS   IEEE 802.3   Finger   NBDGM   NetBEUI   NBSSN   ESP   EIGRP   EGP   DHCP   CGMP   CDP   BOOTP   AH   NBNS   EthernetII   ICQ   PPP   ARP   RIP   IPX   IGRP   IGMP   SSH   RPC   NetBIOS   TFTP   SNMP   SNA   SMB   RADIUS   NTP   NNTP   UDP   TCP   BGP   DNS   SOCKS   IMAP   RTSP   NFS   ICMP   IP   FTP   Telnet   POP3   SMTP   HTTP  
Search RFCs:

Advanced Search
Search Glossary:
Exact search
Fuzzy search


All Protocols
Submit a Request

Recommend an Article

 Layer 7 Application Layer
  AFP
  BOOTP
  CIFS
  CIP
  COPS
  DHCP
  DNS
  Finger
  FTP
  FTP - Ctrl
  FTP - Data
  Gopher
  HSRP
  HTTP
  HTTPS
  ICP
  ICQ
  IMAP
  IMAP3
  IMAPS
  Kerberos
  LPD
  MGCP
  MSN
  MSRDP
  MSSQL
  NCP
  NFS
  NNTP
  NTP
  POP
  POP3
  POP3s
  RADIUS
  RLOGIN
  RRP
  RSH
  RTCP
  RTELNET
  RTP
  RTP Audio
  RTP Video
  RTSP
  SAP
  SIP
  SLP
  SMB
  SMTP
  SNA
  SNMP
  SOCKS
  SSH
  Telnet
  TELNET
  TFTP
  WhoIs
  WINS
 Layer 6 Presentation Layer
  NBNS
  NBSSN
  NCP
  NetBIOS
 Layer 5 Session Layer
  LDAP
  LDAPS
  NCP
  NetBEUI
  RPC
 Layer 4 Transport Layer
  H.225
  H.323
  NBDGM
  NetBEUI
  PUP
  SCTP
  TCP
  UDP
 Layer 3 Network Layer
  AARP
  AH
  BGP
  EGP
  EIGRP
  ESP
  GRE
  GTP
  ICMP
  ICMPv6
  IGMP
  IGRP
  IP
  IP Fragment
  IPv6
  IPX
  Mobile IP
  MPLS
  OSPF
  PIM
  PPPoE
  RIP
  RSVP
  STP
  VRRP
 Layer 2 Data Link Layer
  ARP
  CDP
  CGMP
  Ethernet SNAP
  EthernetII
  IEEE 802.2
  IEEE 802.3
  L2TP
  PPP
  PPTP
  RARP
  SQL
  VLAN
 Layer 1 Physical Layer
© 2006 - 2007 Colasoft Co., Ltd. All rights reserved.