For the delay-based Flex-Algo algorithm, the difference in delay between links is basically different and may be very small. However, according to the existing SPF algorithm, only one optimal path can be generated even if the difference is very small, and load balancing cannot be implemented within a certain delay tolerance range. Consequently, link resources on a network cannot be fully utilized.
To solve this problem to the greatest extent, the delay on the link needs to be normalized and then is advertised in the IS-IS LSP. The following concepts are involved in the normalization:
The following formula is used to calculate the normalized value:
As shown in Figure 1, if the TWAMP measured delay between P1 and P3 is 28 ms and that between P2 and P4 is 32 ms, only one primary path can forward traffic when the SRv6 Flex-Algo calculates paths based on the delay.
On P1 and P2, after the normalized interval and offset are set to 10 ms and 4 ms, respectively, the Flex-Algo delay is normalized.
As shown in Figure 2, the normalized delay values of the P1-P3 and P2-P4 links are the same. When the SRv6 Flex-Algo calculates paths based on delay, both paths can work in load balancing mode.