| CPC H04L 45/22 (2013.01) [H04L 45/02 (2013.01); H04L 45/12 (2013.01); H04L 45/247 (2022.05); H04L 45/26 (2013.01); H04L 45/28 (2013.01); H04L 45/74 (2013.01); H04L 45/741 (2013.01)] | 29 Claims |

|
1. A method for generating forwarding entries, comprising:
obtaining, by a first network device, routing information advertised by a second network device;
determining, by the first network device, that the routing information matches a summary route stored in the first network device, wherein the summary route includes a summary that summarizes at least one route corresponding to a destination address; and
generating, based on a segment identifier of the second network device, a forwarding entry corresponding to the summary route, wherein the forwarding entry comprises the segment identifier of the second network device and a forwarding path corresponding to the forwarding entry passes through the second network device,
wherein the forwarding entry is a backup forwarding entry corresponding to the summary route, a primary forwarding entry corresponding to the summary route does not pass through the second network device, and the method further comprises:
setting, by the first network device, the primary forwarding entry to an unavailable state.
|