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

MPLS (mpls)

Reached from

Lower layerSelectorValue
ethernet2ethertype34887 (0x8847)
ethernet2ethertype34888 (0x8848)
udpdst_port / src_port6635 (0x19eb)
greprotocol_type34887 (0x8847)
mplss0

Fields

FieldTypeDefaultAutoDescription
labelenum(20)1620-bit MPLS label value. 0-15 are reserved (0 / 2 explicit null, 1 router alert, 3 implicit null, 7 entropy label indicator, 13 GAL, 14 OAM alert, 15 extension); SR-MPLS SIDs are SRGB base + SID index.
tcuint(3)03-bit traffic class (QoS / ECN).
suint(1)1Protocol number of the next layer (see Next layer)Bottom-of-stack bit (1 = last label; Auto from the next layer).
ttluint(8)64MPLS time to live.

label

ValueName
0 (0x00000)ipv4_explicit_null
1 (0x00001)router_alert
2 (0x00002)ipv6_explicit_null
3 (0x00003)implicit_null
7 (0x00007)entropy_label_indicator
13 (0x0000d)gal
14 (0x0000e)oam_alert
15 (0x0000f)extension

Next layer

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

ValueProtocolNote
0mpls

First 4 bits of the payload when s = 1

ValueProtocol
4ipv4
6ipv6

Sample templates