Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

GTP-U (gtpu)

Reached from

Lower layerSelectorValue
udpdst_port / src_port2152 (0x0868)

Fields

FieldTypeDefaultAutoDescription
versionuint(3)1GTP version (1).
protocol_typeuint(1)1Protocol type (1 = GTP, 0 = GTP’).
spareuint(1)0
e_flaguint(1)0Extension-header-present flag.
s_flaguint(1)0Sequence-number-present flag.
pn_flaguint(1)0N-PDU-number-present flag.
message_typeenum(8)255 (g_pdu)GTP-U message type (255 = G-PDU).
lengthuint(16)Length of the payload in octetsLength of the payload after the mandatory header, in octets (Auto).
teiduint(32)0Tunnel Endpoint Identifier.

message_type

ValueName
1 (0x01)echo_request
2 (0x02)echo_response
26 (0x1a)error_indication
31 (0x1f)supported_extension_headers
254 (0xfe)end_marker
255 (0xff)g_pdu

Next layer

The next layer is selected by message_type; when the field is Auto the builder writes the value of the protocol stacked above.

First 4 bits of the payload when message_type = 255 (0xff)

ValueProtocol
4ipv4
6ipv6

Sample templates

  • gtpu-ipv4 — templates/protocols/encap/gtpu-ipv4.wpg.yaml