Annex B - Encoding of Sequence Number Packets
The Integrated IS-IS protocol defined in this specification makes use of the ISO Draft Proposed standard for Intra-domain routing (ISO DP 10589 [1]) as the base routing protocol, upon which IP support may be added.
However, DP 10589 contains a bug regarding encoding of the variable length fields in Sequence Number Packets. In particular, DP 10589 encodes the variable length fields in SNPs in a manner which is not flexible (additional variable length fields cannot be defined for sequence number packets), and which is inconsistent with the encoding of the variable length fields in all other IS-IS and ES-IS packets.
The encoding of the variable length fields in SNPs is expected to be fixed in future versions of 10589. Also, this bug represents the only expected change to 10589 which cannot be made backward compatible with existing DP 10589 implementations. For these reasons, the current version of the Integrated IS-IS will use the anticipated future encoding of the variable length part of the SNPs. This should allow future versions of this specification to be compatible with implementations based on this specification.
This annex specifies the encoding of SNPs, as amended to fix the encoding of variable length fields. This annex is an integral part of the Integrated IS-IS specification.
The encoding of SNPs for OSI-only use is shown in this section. For IP-only or Integrated use, the additional variable length fields specified in sections 5.3.6 through 5.3.9 are also applicable to SNPs.
B.1 Level 1 Complete Sequence Numbers PDU
No. of Octets
+--------------------------------+
| INTRA-DOMAIN ROUTEING | 1
| PROTOCOL DISCRIMINATOR |
+--------------------------------+
| LENGTH INDICATOR | 1
+--------------------------------+
| VERSION/PROTOCOL ID EXT | 1
+--------------------------------+
| RESERVED | 1
+--------------------------------+
| R | R | R | TYPE | 1
+--------------------------------+
| VERSION | 1
+--------------------------------+
| ECO | 1
+--------------------------------+
| USER ECO | 1
+--------------------------------+
| PDU LENGTH | 2
+--------------------------------+
| SOURCE ID | 7
+--------------------------------+
| START LSP ID | 8
+--------------------------------+
| END LSP ID | 8
+================================+====================
| VARIABLE LENGTH FIELDS | VARIABLE
+--------------------------------+
-
INTRADOMAIN ROUTEING PROTOCOL DISCRIMINATOR - architectural constant
-
LENGTH INDICATOR - Header Length in octets (33.)
-
VERSION/PROTOCOL ID EXTENSION - 1
-
RESERVED - transmitted as 0, ignored on receipt
-
TYPE (bits 1 through 5) - 24. Note bits 6, 7 and 8 are Reserved, which means they are transmitted as 0 and ignored on receipt.
-
VERSION - 1
-
ECO - transmitted as zero, ignored on receipt
-
USER ECO - transmitted as zero, ignored on receipt
-
PDU LENGTH - Entire Length of this PDU, in octets, including header
-
SOURCE ID - 7 octet ID of Intermediate System (with zero Circuit ID) generating this Sequence Numbers PDU.
-
START LSP ID - 8 octet ID of first LSP in the range covered by this Complete Sequence Numbers PDU.
-
END LSP ID - 8 octet ID of last LSP in the range covered by this Complete Sequence Numbers PDU.
-
VARIABLE LENGTH FIELDS - fields of the form:
No. of Octets
+--------------------------------+
| CODE | 1
+--------------------------------+
| LENGTH | 1
+--------------------------------+
| VALUE | LENGTH
+--------------------------------+
Any codes in a received CSNP that are not recognised are ignored.
Currently defined codes are:
7 LSP Entries -- This may appear multiple times. The option fields, if they appear more than once, shall appear sorted into ascending LSPID order.
x CODE - 9
x LENGTH - total length of the value field.
x VALUE - a list of LSP entries of the form:
No. of Octets
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
: :
: :
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
7 REMAINING LIFETIME - Remaining Lifetime of LSP.
7 LSP ID - 8 octet ID of the LSP to which this entry refers.
7 LSP SEQ NUMBER - Sequence number of LSP.
7 CHECKSUM - Checksum reported in LSP.
The entries shall be sorted into ascending LSPID order (the LSP number octet of the LSPID is the least significant octet).
B.2 Level 2 Complete Sequence Numbers PDU
No. of Octets
+--------------------------------+
| INTRA-DOMAIN ROUTEING | 1
| PROTOCOL DISCRIMINATOR |
+--------------------------------+
| LENGTH INDICATOR | 1
+--------------------------------+
| VERSION/PROTOCOL ID EXT | 1
+--------------------------------+
| RESERVED | 1
+--------------------------------+
| R | R | R | TYPE | 1
+--------------------------------+
| VERSION | 1
+--------------------------------+
| ECO | 1
+--------------------------------+
| USER ECO | 1
+--------------------------------+
| PDU LENGTH | 2
+--------------------------------+
| SOURCE ID | 7
+--------------------------------+
| START LSP ID | 8
+--------------------------------+
| END LSP ID | 8
+================================+====================
| VARIABLE LENGTH FIELDS | VARIABLE
+--------------------------------+
-
INTRADOMAIN ROUTEING PROTOCOL DISCRIMINATOR - architectural constant
-
LENGTH INDICATOR - Header Length in octets (33.)
-
VERSION/PROTOCOL ID EXTENSION - 1
-
RESERVED - transmitted as 0, ignored on receipt
-
TYPE (bits 1 through 5) - 25. Note bits 6, 7 and 8 are Reserved, which means they are transmitted as 0 and ignored on receipt.
-
VERSION - 1
-
ECO - transmitted as zero, ignored on receipt
-
USER ECO - transmitted as zero, ignored on receipt
-
PDU LENGTH - Entire Length of this PDU, in octets, including header
-
SOURCE ID - 7 octet ID of Intermediate System (with zero Circuit ID) generating this Sequence Numbers PDU.
-
START LSP ID - 8 octet ID of first LSP in the range covered by this Complete Sequence Numbers PDU.
-
END LSP ID - 8 octet ID of last LSP in the range covered by this Complete Sequence Numbers PDU.
-
VARIABLE LENGTH FIELDS - fields of the form:
No. of Octets
+--------------------------------+
| CODE | 1
+--------------------------------+
| LENGTH | 1
+--------------------------------+
| VALUE | LENGTH
+--------------------------------+
Any codes in a received CSNP that are not recognised are ignored.
Currently defined codes are:
7 LSP Entries -- this may appear multiple times. The option fields, if they appear more than once, shall appear sorted into ascending LSPID order.
x CODE - 9
x LENGTH - total length of the value field.
x VALUE - a list of LSP entries of the form:
No. of Octets
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
: :
: :
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
7 REMAINING LIFETIME - Remaining Lifetime of LSP.
7 LSP ID - 8 octet ID of the LSP to which this entry refers.
7 LSP SEQ NUMBER - Sequence number of LSP.
7 CHECKSUM - Checksum reported in LSP.
The entries shall be sorted into ascending LSPID order (the LSP number octet of the LSPID is the least significant octet).
B.3 Level 1 Partial Sequence Numbers PDU
No. of Octets
+--------------------------------+
| INTRA-DOMAIN ROUTEING | 1
| PROTOCOL DISCRIMINATOR |
+--------------------------------+
| LENGTH INDICATOR | 1
+--------------------------------+
| VERSION/PROTOCOL ID EXT | 1
+--------------------------------+
| RESERVED | 1
+--------------------------------+
| R | R | R | TYPE | 1
+--------------------------------+
| VERSION | 1
+--------------------------------+
| ECO | 1
+--------------------------------+
| USER ECO | 1
+--------------------------------+
| PDU LENGTH | 2
+--------------------------------+
| SOURCE ID | 7
+================================+====================
| VARIABLE LENGTH FIELDS | VARIABLE
+--------------------------------+
-
INTRADOMAIN ROUTEING PROTOCOL DISCRIMINATOR - architectural constant
-
LENGTH INDICATOR - Header Length in octets (17.)
-
VERSION/PROTOCOL ID EXTENSION - 1
-
RESERVED - transmitted as 0, ignored on receipt
-
TYPE (bits 1 through 5) 26. Note bits 6, 7 and 8 are Reserved, which means they are transmitted as 0 and ignored on receipt.
-
VERSION - 1
-
ECO - transmitted as zero, ignored on receipt
-
USER ECO - transmitted as zero, ignored on receipt
-
PDU LENGTH - Entire Length of this PDU, in octets, including header
-
SOURCE ID - 7 octet ID of Intermediate system (with zero Circuit ID)
generating this Sequence Numbers PDU.
- VARIABLE LENGTH FIELDS - fields of the form:
No. of Octets
+--------------------------------+
| CODE | 1
+--------------------------------+
| LENGTH | 1
+--------------------------------+
| VALUE | LENGTH
+--------------------------------+
Any codes in a received PSNP that are not recognised are ignored.
Currently defined codes are:
7 LSP Entries - this may appear multiple times. The option fields, if they appear more than once, shall appear sorted into ascending LSPID order.
x CODE - 9
x LENGTH - total length of the value field.
x VALUE - a list of LSP entries of the form:
No. of Octets
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
: :
: :
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
7 REMAINING LIFETIME - Remaining Lifetime of LSP.
7 LSP ID - 8 octet ID of the LSP to which this entry refers.
7 LSP SEQ NUMBER - Sequence number of LSP.
7 CHECKSUM - Checksum reported in LSP.
The entries shall be sorted into ascending LSPID order (the LSP number octet of the LSPID is the least significant octet).
B.4 Level 2 Partial Sequence Numbers PDU
No. of Octets
+--------------------------------+
| INTRA-DOMAIN ROUTEING | 1
| PROTOCOL DISCRIMINATOR |
+--------------------------------+
| LENGTH INDICATOR | 1
+--------------------------------+
| VERSION/PROTOCOL ID EXT | 1
+--------------------------------+
| RESERVED | 1
+--------------------------------+
| R | R | R | TYPE | 1
+--------------------------------+
| VERSION | 1
+--------------------------------+
| ECO | 1
+--------------------------------+
| USER ECO | 1
+--------------------------------+
| PDU LENGTH | 2
+--------------------------------+
| SOURCE ID | 7
+================================+====================
| VARIABLE LENGTH FIELDS | VARIABLE
+--------------------------------+
-
INTRADOMAIN ROUTEING PROTOCOL DISCRIMINATOR - architectural constant
-
LENGTH INDICATOR - Header Length in octets (17.)
-
VERSION/PROTOCOL ID EXTENSION - 1
-
RESERVED - transmitted as 0, ignored on receipt
-
TYPE (bits 1 through 5) - 27. Note bits 6, 7 and 8 are Reserved, which means they are transmitted as 0 and ignored on receipt.
-
VERSION - 1
-
ECO - transmitted as zero, ignored on receipt
-
USER ECO - transmitted as zero, ignored on receipt
-
PDU LENGTH - Entire Length of this PDU, in octets, including header
-
SOURCE ID - 7 octet ID of Intermediate system (with zero Circuit ID)
generating this Sequence Numbers PDU.
- VARIABLE LENGTH FIELDS - fields of the form:
No. of Octets
+--------------------------------+
| CODE | 1
+--------------------------------+
| LENGTH | 1
+--------------------------------+
| VALUE | LENGTH
+--------------------------------+
Any codes in a received PSNP that are not recognised are ignored.
Currently defined codes are:
7 LSP Entries -- this may appear multiple times. The option fields, if they appear more than once, shall appear sorted into ascending LSPID order.
x CODE - 9
x LENGTH - total length of the value field.
x VALUE - a list of LSP entries of the form:
No. of Octets
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
: :
: :
+--------------------------------+
| REMAINING LIFETIME | 2
+--------------------------------+
| LSP ID | 8
+--------------------------------+
| LSP SEQ NUMBER | 4
+--------------------------------+
| CHECKSUM | 2
+--------------------------------+
7 REMAINING LIFETIME - Remaining Lifetime of LSP.
7 LSP ID - 8 octet ID of the LSP to which this entry refers.
7 LSP SEQ NUMBER -Sequence number of LSP.
7 CHECKSUM - Checksum reported in LSP.
The entries shall be sorted into ascending LSPID order (the LSP number octet of the LSPID is the least significant octet).