SR Anycast SID
Load basic.isis.sr.enabled.cfg
SR is already enabled using ISIS.
Configure an anycast prefix of 46.46.46.1/32 on Lo46 of both R4 and R6. Using an Anycast SID, ensure that TI-LFA will work properly for this prefix.
Answer
Explanation
By default, when a prefix-SID is configured, the N (node) flag is set. However, an Anycast SID cannot have the N flag set, as it is not specific to one single node.
Interestingly, traffic will still work fine if you forget to clear the N flag for any Anycast SID. You’ll just see a logging message like below. But ECMP traffic to both R4 and R6 works just fine.
A problem will appear when you try to use TI-LFA. TI-LFA assumes that the N flag set means the prefix is actually specific to only one node, so TI-LFA will break if you forget to clear the N flag. The problem is that TI-LFA will think that the SID belongs to one single node, and the LSP might use the prefix SID to get to a specific node, and then use that node’s Adj SID. If the LSP actually goes through the other node in the anycast set, the Adj SID will be meaningless to that node, and the LSP will be broken. If TI-LFA knows that the prefix SID does not belong to a single node (because the N flag is unset), this mistake will not happen.
We can see that the N flag is cleared on the LSPs of R4 and R6:
Last updated