Glossary

Track and SLA

What is Track and SLA

Track and SLA are two functions that work together to detect link failures and withdraw affected routes promptly.

SLA is the probing function. An SLA instance sends ICMP echo requests to a specified IP address and measures network performance, reliability, and packet loss rate. From these results it determines whether the address is reachable, which helps administrators judge the best data transmission path.

Track is the monitoring function. A track instance is bound to an SLA instance and to a static route. When the SLA probe finds the destination unreachable, the track instance notifies the static route to be deleted, so packets are no longer forwarded through it. When the probe result recovers, the static route is restored automatically.

Why Track and SLA are Needed

To improve reliability, networks commonly use redundancy, with two devices backing each other up and sharing the workload. If a link on one device fails, the other device takes over forwarding. This means a device connects to both a primary and a backup device, which raises questions about link reliability and load balancing between them.

A problem arises when some or all of the network-side links fail. The bandwidth of those links drops, but the access side may not notice the failure right away. The result is network congestion or lost traffic. By configuring track monitoring, routes can be withdrawn immediately after a link failure, so traffic is not forwarded through the failed link.

How Track and SLA Work

The administrator configures static routes that tell the switch how to forward packets to a destination network, and also configures a monitoring group for those routes. The process then works like this:

  1. Probe: The switch actively sends ICMP echo requests to the monitored IP address.

  2. Judge: Based on network performance and the packet loss rate, the switch decides whether the address is reachable.

  3. Withdraw: When the address becomes unreachable, the switch automatically withdraws the static route that depends on it. Traffic then follows the remaining routes, which gives the network fault tolerance and helps keep it highly available and stable.

  4. Restore: When the probe results return to normal, the static route is restored automatically.

SLA can also act as a link quality check for intelligent route selection. When link quality metrics are referenced in a global route selection policy or a multi-exit policy route, the switch keeps checking whether the interface links meet the quality requirements for delay, jitter, and packet loss rate. A link that does not meet them stays out of route selection until its quality meets the requirements again.

Why Track and SLA are Beneficial

  • Fast reaction to link failures: Routes are withdrawn as soon as probing shows a failure, so traffic does not keep flowing into a broken path and cause congestion or loss.

  • Detects failures the access side may miss: The switch checks reachability itself, instead of waiting for the access side to notice reduced bandwidth.

  • Faster convergence with redundant paths: In a network that uses ECMP with several next hops, a failed path is removed and traffic continues on the remaining ones.

  • Automatic recovery: When the monitored address is reachable again, the route returns without manual action.

  • Higher availability: Fault tolerance in the routing table helps keep the network stable.

At Asteraix

What We Can Do at Asteraix

AsterNOS provides SLA and Track through the command line.

  • SLA instances with ICMP probes: Create an instance with sla sla-id icmp_echo ip-address, using an ID from 1 to 4294967295. The target can be an IPv4 or IPv6 address. Optionally set the source port for probes with set src_port, using an Ethernet interface, a link aggregation, or a VLAN.

  • Track instances bound to SLA and routes: Create a track instance bound to an SLA instance with track track-id sla sla-id, then bind it to a static route with ip route A.B.C.D/M A.B.C.D track track-id. When the SLA target is unreachable, the route is withdrawn.

  • Clear visibility: show sla summary displays each SLA instance with its destination IP, minimum, average, and maximum round-trip time, and packet loss rate. show track summary displays each track instance, its bound SLA instance, and its state, which is success or failure.

  • Verified in a redundant topology: In a typical example, two switches each use ECMP with two next-hop switches. When a link on one path fails, the SLA packet loss rate reaches 100%, the track state changes to failure, and the static route through that path is withdrawn, so traffic continues on the other path.