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)

下位レイヤからの到達

下位レイヤ判別フィールド値
udpdst_port / src_port2152 (0x0868)

フィールド

フィールド型既定値Auto説明
versionuint(3)1GTP バージョン (1)。
protocol_typeuint(1)1プロトコルタイプ (1 = GTP、0 = GTP’)。
spareuint(1)0
e_flaguint(1)0拡張ヘッダ存在フラグ。
s_flaguint(1)0シーケンス番号存在フラグ。
pn_flaguint(1)0N-PDU 番号存在フラグ。
message_typeenum(8)255 (g_pdu)GTP-U メッセージ種別 (255 = G-PDU)。
lengthuint(16)ペイロードの長さ (オクテット単位)必須ヘッダ以降のペイロード長 (オクテット、自動)。
teiduint(32)0トンネルエンドポイント識別子。

message_type

値名前
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

次レイヤ

次レイヤは message_type で判別します。このフィールドが Auto のときは、上に積んだプロトコルの値を書き込みます。

message_type = 255 (0xff) のときのペイロード先頭 4 ビット

値プロトコル
4ipv4
6ipv6

サンプルテンプレート

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