Interface management module
Collaboration between the track module and an application module
After being associated with an application module, when the status of the track entry changes, the track
module notifies the application module, which then takes proper action.
The following application modules can be associated with the track module:
In some cases, the status of a track entry changes while a route is still recovering. This leads to problems
if the track module immediately notifies the application modules of the status change and the application
modules begin using the route before it is ready.
For example, the master in a VRRP group monitors the uplink interface through the track module. When
the uplink interface fails, the track module notifies the master to reduce its priority so that a backup with
a higher priority can preempt as the master to forward packets. When failed uplink interface recovers, if
the track module immediately notifies the original master to restore its priority, the master immediately
will forward packets to that interface. However, this results in packet forwarding failure because the
uplink route has not yet been recovered.
To solve this problem, configure a delay before the track module notifies the application modules of the
track entry status changes.
Collaboration application example
The following is an example of collaboration between NQA, track, and static routing.
Configure a static route with next hop 192.168.0.88 on the device. If the next hop is reachable, the
static route is valid. If the next hop becomes unreachable, the static route should become invalid. For this
purpose, configure collaboration between the NQA, track, and static routing modules:
Create an NQA test group to monitor the reachability of IP address 192.168.0.88.
Create a track entry and associate it with the NQA test group. When the next hop 192.168.0.88
is reachable, the track entry is in the Positive state. When the next hop becomes unreachable, the
track entry is in the Negative state.
Associate the track entry with the static route. When the track entry turns to the Positive state, the
static route is valid. When the associated track entry turns to the Negative state, the static route is
Track configuration task list
To implement the collaboration function, establish associations between the track module and the
detection modules, and between the track module and the application modules.
Complete these tasks to configure the track module: