NQA for Static Routes
As mentioned previously, static routes do not have a dedicated fault detection mechanism. If a fault occurs on a non-directly connected link, the corresponding static route will not be automatically deleted from the IP routing table. This cannot ensure in-time link switchover and can interrupt services for a significant amount of time. The network administrator must delete the corresponding static route to allow traffic to switch to an available link.
An effective method is required to detect faults in links related to static routes. BFD for static routes is applicable only to the scenario where both communicating devices support BFD. If either of the two communicating devices supports NQA, NQA for static routes can be used to detect link faults.
- If the NQA test instance detects a link fault, the system sets the static route to inactive. The route becomes unavailable and is deleted from the IP routing table.
- If the NQA test instance finds that the link recovers, the system sets the static route to active. The route becomes available and is added to the IP routing table.
For details about NQA, see "NQA Configuration - Principles" in the Configuration Guide - Network Management and Monitoring.
When a static route is associated with an NQA test instance, only ICMP test instances are used to test whether there are reachable routes between the source and destination.
Each static route can be associated with only one NQA test instance.
Application Scenario
On the network shown in Figure 2-1, each access switch provides access services for 10 users, and a total of 100 users are connected to the network. Because dynamic routing protocols are unavailable for communication between RouterB and users, static routes destined for users are configured on RouterB. For network stability, RouterC, functioning as the backup for RouterB, is configured with static routes to the same destination. RouterA, RouterB, and RouterC run a dynamic routing protocol to learn routes from each other. RouterB and RouterC import static routes using a dynamic routing protocol and have different costs for these static routes. After the configuration is complete, RouterA can use the dynamic routing protocol to learn routes destined for users from RouterB and RouterC. RouterA uses the link related to the static route with a lower cost as the active link and the other link as the standby link.
NQA for static routes is configured on RouterB. NQA tests are performed to check the active link of RouterB → SwitchA → SwitchC (SwitchD). If the active link fails, the corresponding static route is deleted from the routing table, and traffic diverts to the standby link of RouterC → SwitchB → SwitchC (SwitchD). If both links work properly, traffic travels along the active link.