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

CLNP (clnp)

Reached from

Lower layerSelectorValue
llcFirst 8 bits of the payload when dsap = 254 (0xfe)129 (0x81)
pppFirst 8 bits of the payload when protocol = 35 (0x0023)129 (0x81)

Fields

FieldTypeDefaultAutoDescription
nlpidenum(8)129 (clnp)Network layer protocol identifier (0x81 = CLNP).
length_indicatoruint(8)Length of the header in octetsHeader length in octets, up to the end of the options (Auto).
versionuint(8)1Version / protocol ID extension (1).
lifetimeuint(8)32Remaining lifetime in units of 500 ms.
spuint(1)Number of items of segmentationSP: segmentation permitted; the segmentation part is present (Auto from the segmentation part).
msuint(1)0MS: more segments follow.
eruint(1)1E/R: send an error report if the PDU is discarded.
pdu_typeenum(5)28 (dt)PDU type: 0x1c DT (data), 0x1d MD (multicast data), 0x01 ER (error report), 0x1e ERQ / 0x1f ERP (echo request / reply).
segment_lengthuint(16)Length of the header and payload in octetsLength of the whole PDU, header and data (Auto).
checksumuint(16)Fletcher checksum over the headerISO 8473 Fletcher checksum of the header (Auto). 0 = checksum not used.
destinationnsap49.0001.0000.0000.0002.00Destination NSAP address.
sourcensap49.0001.0000.0000.0001.00Source NSAP address.
segmentationlist<struct> — sp items[]Segmentation part (data unit identifier, segment offset, total length), present when SP is set. The total length is not computed.
optionstlv — up to offset length_indicator of the group[]Options (8-bit code / 8-bit length) up to the length indicator: security, QoS maintenance, priority, source routing, recording of route, padding, reason for discard.

nlpid

ValueName
129 (0x81)clnp

pdu_type

ValueName
1er
28dt
29md
30erq
31erp

segmentation

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
data_unit_identifieruint(16)
segment_offsetuint(16)
total_lengthuint(16)

options

  • Type 8 bits, length 8 bits.
  • The length counts the value only.
  • Unknown types are kept as raw value octets.
TypeNameValue fieldsDescription
197 (0xc5)securityvalue
195 (0xc3)qos_maintenancevalue
205 (0xcd)priorityvalue
200 (0xc8)source_routingroute_type, next_address, addresses
203 (0xcb)recording_of_routeroute_type, next_address, addresses
204 (0xcc)paddingdata
193 (0xc1)reason_for_discardreason, pointer

options › security

FieldTypeDefaultAutoDescription
valuebytes — rest of the PDU

options › qos_maintenance

FieldTypeDefaultAutoDescription
valuebytes — rest of the PDU

options › priority

FieldTypeDefaultAutoDescription
valueuint(8)

options › source_routing

FieldTypeDefaultAutoDescription
route_typeenum(8)
next_addressuint(8)
addresseslist<struct> — rest of the PDU
options › source_routing › route_type
ValueName
0 (0x00)partial
255 (0xff)complete
options › source_routing › addresses

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
addressnsap

options › recording_of_route

FieldTypeDefaultAutoDescription
route_typeenum(8)
next_addressuint(8)
addresseslist<struct> — rest of the PDU
options › recording_of_route › route_type
ValueName
0 (0x00)partial
255 (0xff)complete
options › recording_of_route › addresses

Each item is a group of the fields below.

FieldTypeDefaultAutoDescription
addressnsap

options › padding

FieldTypeDefaultAutoDescription
databytes — rest of the PDU

options › reason_for_discard

FieldTypeDefaultAutoDescription
reasonenum(8)
pointeruint(8)
options › reason_for_discard › reason
ValueName
0 (0x00)general
1 (0x01)checksum
2 (0x02)congestion
3 (0x03)header_syntax
4 (0x04)segmentation_needed
5 (0x05)incomplete_pdu
6 (0x06)duplicate_option
128 (0x80)destination_unreachable
129 (0x81)destination_unknown
144 (0x90)source_routing_unspecified
145 (0x91)source_routing_syntax
146 (0x92)source_routing_unknown_address
147 (0x93)source_routing_path_not_acceptable
160 (0xa0)lifetime_expired_in_transit
161 (0xa1)lifetime_expired_reassembly
176 (0xb0)unsupported_option
177 (0xb1)unsupported_version
178 (0xb2)unsupported_security
179 (0xb3)unsupported_source_routing
180 (0xb4)unsupported_recording_of_route
192 (0xc0)reassembly_interference

Sample templates

  • clnp-dt — templates/protocols/l3/clnp-dt.wpg.yaml
  • clnp-er — templates/protocols/l3/clnp-er.wpg.yaml
  • clnp-erq — templates/protocols/l3/clnp-erq.wpg.yaml