The following errata report has been submitted for RFC9843,
"IGP Flexible Algorithms: Bandwidth, Delay, Metrics, and Constraints"

--------------------------------------
You may review the report below and at:
https://errata.rfc-editor.org/eid9343/

--------------------------------------
Type: Technical
Reported by: Yan Chen <[email protected]>

Section 4.1.4.2 says:

Original Text
-------------
Length (2 octets):
      A 16-bit field indicating the total length, in octets, of the
      subsequent fields.  For this sub-TLV, Length is set to 2 + N*8
      octets.  Here, N is equal to the number of Threshold Metrics
      specified.  N MUST be greater than or equal to 1.

   Flags (1 octet):
                       0 1 2 3 4 5 6 7
                      +-+-+-+-+-+-+-+-+
                      |G|             |
                      +-+-+-+-+-+-+-+-+

      G-flag:  When set, Interface Group Mode MUST be used to derive
         total link bandwidth.  Unassigned bits MUST be set to zero and
         MUST be ignored by the receiver.

   Following is the staircase bandwidth threshold and associated metric
   values.

   Bandwidth Threshold 1 (4 octets):
      Minimum Link Bandwidth is encoded in IEEE floating point format
      (32 bits)[IEEE754-2019].  The units are bytes per second.

   Threshold Metric 1 (4 octets):
      Metric value range (1 - 4,294,967,296 (0xFFFFFFFF))

   Bandwidth Threshold N (4 octets):
      Maximum Link Bandwidth is encoded in IEEE floating point format
      (32 bits)[IEEE754-2019].  The units are bytes per second.

   Threshold Metric N (4 octets):
      Metric value range (1 - 4,294,967,296 (0xFFFFFFFF))

   When the G-flag is set, the cumulative bandwidth of the parallel
   links is computed as described in Section 4.1.1.2.  If the G-flag is
   not set, the advertised Maximum Link Bandwidth is used.

   The assignment of the Bandwidth Metric based on computed link
   bandwidth is described below.

   During the Flex-Algorithm SPF calculation, the Bandwidth Metric for a
   link MUST be assigned according to the following rules:

   1.  When the computed link bandwidth is less than Bandwidth Threshold
       1:

       The Bandwidth Metric MUST be set to the maximum metric value of
       4,294,967,296.

Corrected Text
--------------
Length (2 octets):
      A 16-bit field indicating the total length, in octets, of the
      subsequent fields.  For this sub-TLV, Length is set to 4 + N*8
      octets.  Here, N is equal to the number of Threshold Metrics
      specified.  N MUST be greater than or equal to 1.

   Flags (1 octet):
                       0 1 2 3 4 5 6 7
                      +-+-+-+-+-+-+-+-+
                      |G|             |
                      +-+-+-+-+-+-+-+-+

      G-flag:  When set, Interface Group Mode MUST be used to derive
         total link bandwidth.  Unassigned bits MUST be set to zero and
         MUST be ignored by the receiver.

   Following is the staircase bandwidth threshold and associated metric
   values.

   Bandwidth Threshold 1 (4 octets):
      Minimum Link Bandwidth is encoded in IEEE floating point format
      (32 bits)[IEEE754-2019].  The units are bytes per second.

   Threshold Metric 1 (4 octets):
      Metric value range (1 - 4,294,967,295 (0xFFFFFFFF))

   Bandwidth Threshold N (4 octets):
      Maximum Link Bandwidth is encoded in IEEE floating point format
      (32 bits)[IEEE754-2019].  The units are bytes per second.

   Threshold Metric N (4 octets):
      Metric value range (1 - 4,294,967,295 (0xFFFFFFFF))

   When the G-flag is set, the cumulative bandwidth of the parallel
   links is computed as described in Section 4.1.1.2.  If the G-flag is
   not set, the advertised Maximum Link Bandwidth is used.

   The assignment of the Bandwidth Metric based on computed link
   bandwidth is described below.

   During the Flex-Algorithm SPF calculation, the Bandwidth Metric for a
   link MUST be assigned according to the following rules:

   1.  When the computed link bandwidth is less than Bandwidth Threshold
       1:

       The Bandwidth Metric MUST be set to the maximum metric value of
       4,294,967,295.

Notes
-----
Section 4.1.4.2 (OSPF FADBT Sub-TLV, Figure 11) contains two normative 
arithmetic errors that cause wire-framing and 32-bit integer overflow failures:

1. Sub-TLV Length formula ("2 + N*8" -> "4 + N*8"):
   Following the 4-octet Type (2 octets) and Length (2 octets) header, Figure 
11 contains a 32-bit word consisting of Flags (1 octet) and Reserved (3 octets) 
— totaling 4 octets, not 2 octets — followed by N pairs of Bandwidth Threshold 
(4 octets) and Threshold Metric (4 octets), totaling N*8 octets. The total 
length of subsequent fields is therefore 4 + N*8 octets (e.g., 12 octets for N 
= 1, 20 octets for N = 2).
   Setting Length to 2 + N*8 understates the payload by 2 octets for every N >= 
1 (e.g., Length = 10 for N = 1), truncating the last 2 octets of Threshold 
Metric N and breaking 4-octet OSPF sub-TLV alignment (RFC 3630 Section 2.3.2, 
RFC 9350 Section 7).

2. Maximum 32-bit OSPF metric value ("4,294,967,296" -> "4,294,967,295"):
   0xFFFFFFFF equals 2^32 - 1 = 4,294,967,295, whereas 4,294,967,296 equals 
2^32 = 0x100000000, which requires 33 bits and cannot be represented in a 
4-octet (32-bit) unsigned integer (wrapping to 0 on uint32 assignment). Both 
the Threshold Metric range descriptions ("1 - 4,294,967,296 (0xFFFFFFFF)") and 
normative Rule 1 ("MUST be set to the maximum metric value of 4,294,967,296") 
contradict RFC 9843 Section 2.2 ("4,294,967,295 (0xFFFFFFFF)"), Section 4.1.4.1 
("0xFFFFFFFF"), and RFC 9350 Section 15.3 ("(2^32 - 1) in OSPF").

Instructions:
-------------
This erratum is currently posted as "Reported". Please
use "Reply All" to discuss whether it should be verified or
rejected. When a decision is reached, the verifying party  
will log in to change the status and edit the report, if necessary.

--------------------------------------
RFC9843 (draft-ietf-lsr-flex-algo-bw-con)
--------------------------------------
Title               : IGP Flexible Algorithms: Bandwidth, Delay, Metrics, and 
Constraints
Publication Date    : September 2025
Author(s)           : S. Hegde, W. Britto, R. Shetty, B. Decraene, P. Psenak, 
T. Li
Category            : Proposed Standard
Source              : lsr (rtg)
Stream              : IETF
Verifying Party     : IESG
_______________________________________________
Lsr mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to