TLIV

Type Length Instance Value

Protocol →
Introduced in Rel-8

TLIV is a fundamental 3GPP encoding format that structures protocol information elements as a Type-Length-Instance-Value quadruplet to distinguish between multiple elements of the same type for efficient and unambiguous parsing.

Category
Protocol
Introduced
Rel-8
Where
Core Network › Evolved Packet Core
Specifications
1 specs
TLIV Description Purpose Related Classification Specifications

Description

Type Length Instance Value (TLIV) is a data encoding format that extends the common Type-Length-Value (TLV) scheme by incorporating an Instance field. It is extensively used within 3GPP protocols, most notably in the Information Elements (IEs) of the GPRS Tunneling Protocol (GTP) for both control (GTP-C) and user plane (GTP-U). Each TLIV-encoded IE consists of four consecutive fields. The Type field (1 or 2 octets) identifies the kind of information being carried (e.g., an IMSI, a QoS profile, or a TEID). The Length field (2 octets) specifies the total length in octets of the subsequent Instance and Value fields. The critical addition is the Instance field (1 octet), which acts as a discriminator. This allows multiple IEs of the same Type to be included in a single protocol message without ambiguity. For example, a GTP-C message could contain several Bearer Context IEs (same Type) for different bearers, each distinguished by a unique Instance value. Finally, the Value field contains the actual payload data, whose structure is defined by the specific IE's specification. The TLIV format provides a self-describing and flexible framework. Protocol decoders can parse messages by reading the Type, skipping forward based on the Length if the Type is unrecognized (ensuring backward compatibility), and correctly associating multiple instances of data. The encoding is byte-aligned and used for both mandatory and optional IEs. Its design is central to the extensibility of 3GPP core network signaling, allowing new IEs to be added in later releases without breaking existing implementations that can simply ignore unknown Types.

Purpose & Motivation

The TLIV format was created to address the need for a robust, extensible, and unambiguous encoding scheme for complex protocol signaling in mobile core networks. Simple TLV encoding can handle basic data, but control plane messages often require multiple instances of the same information type (e.g., multiple QoS profiles for a session). Without an Instance field, distinguishing these multiple occurrences would require complex and inefficient workarounds. The TLIV structure solves this by providing a clean, standardized way to pack and unpack nested or repeated information elements. Its introduction, particularly with GTP, provided a future-proof foundation for the Evolved Packet Core (EPC) and 5G Core (5GC) interfaces. As services evolved from basic GPRS to complex 5G network slicing and edge computing, hundreds of new IEs have been defined. The TLIV format ensures that new network functions can introduce new IE Types, and legacy nodes can safely ignore them by using the Length field to skip over the unknown data. This backward compatibility was crucial for the gradual, multi-vendor rollout of new 3GPP features across global networks.

Classification

Part ofGTP

Evolution Across Releases

Rel-8 Initial

Formally defined and mandated as the encoding format for Information Elements within the GPRS Tunneling Protocol version 2 (GTPv2-C) for the Evolved Packet Core (EPC). Established the fundamental Type-Length-Instance-Value structure to handle the increased complexity and multiplicity of session parameters compared to earlier GTPv1.

Explore further

Broader topics and technologies where TLIV plays a role.

Defining Specifications

3GPP specifications that define or reference TLIV, with the latest known release. Sourced from the 3GPP document catalog — see methodology.

SpecificationTitleRelease
TS 29.274 vj50 GTPv2-C Control Plane Protocol Specification Rel-19
Patrick Zandl

About the author: Patrick Zandl (b. 1974)

Telecommunications specialist, technology journalist (founder of the Mobil server), and developer who has been running since 2025 — the largest Czech-language resource on AI-assisted programming. Formerly Chief Wizard Architect at Prusa3D and head of development for Turris at CZ.NIC; currently a consultant and instructor on AI implementation in companies.