Blackout, brownout and flap
Three different faults get called an outage. A blackout is a tunnel that stops answering, and BFD liveness removes it within seconds. A brownout is a tunnel that answers but loses packets or delays them. A flap is a tunnel that alternates between working and failing. Each is found by a different mechanism and needs a different response.
| Fault | What the tunnel does | Found by | Typical speed |
|---|---|---|---|
| Blackout | Stops answering | BFD liveness | Seconds |
| Brownout | Answers, with loss or delay | Averaged quality against the SLA class | Minutes, depending on the window |
| Flap | Alternates between up and down | BFD transitions and the logs | Each cycle, so a counter is the clue |
A blackout is found by the BFD liveness timers within seconds. A brownout is found by the quality average over several intervals, which takes minutes or more.
How long the average takes to notice
The edge compares an average over several intervals with the class limit, so a brownout is noticed only when enough of the window is bad. A simple model shows the effect. Assume a voice limit of 2 percent loss and a loss that starts at the beginning of an interval and stays at a steady level. The average after each completed interval is that level multiplied by the number of bad intervals and divided by the number of intervals kept.
| Sustained loss | Window of 5 intervals of 120 s | Window of 6 intervals of 600 s |
|---|---|---|
| 5 percent | 3 intervals, 6 minutes | 3 intervals, 30 minutes |
| 10 percent | 2 intervals, 4 minutes | 2 intervals, 20 minutes |
| 25 percent | 1 interval, 2 minutes | 1 interval, 10 minutes |
Two things follow. A worse problem is noticed sooner, because the average crosses the limit in fewer intervals. And the choice of window matters more than the choice of limit: the same 10 percent loss takes 4 minutes to act on with the short window and 20 minutes with the long one. The numbers for your own network come from the poll interval and the number of intervals in your release.
Quality gets worse, enough intervals are bad for the average to cross the limit, the tunnel stops being eligible and flows move, then the quality recovers, the average falls back inside the limit and flows return.
- Onsetquality getsworse
- Averagecrosses thelimit
- Movetunnel noteligible
- Recoveraverage fallsinside limits
- Returnflows go backto preferred
When no tunnel qualifies
If every tunnel is outside the class, the policy has nowhere better to send the flow. A backup color, if the policy names one, is used. A strict policy drops the flow. Otherwise normal forwarding takes over, and the flow may use any of the tunnels, including the worst. None of these creates a good path. They decide how the failure looks to the user: degraded, stopped or shared.
Use a backup color that was chosen in advance, drop the flow if it must not use a poor path, let normal forwarding spread it, or protect it locally with queueing and loss recovery.
- Backup colora chosen secondchoice
- Strictdrop rather thanuse a poor path
- Normal forwardingspread overall tunnels
- Local protectionqueueing, lossrecovery
A worked case: two transports, one fate
The branch BR-06 has two Internet circuits from two providers, and the design assumed they fail separately. On Tuesday at 10:00 calls became choppy and stayed that way for about six minutes. The AAR policy did not move the calls anywhere better. The interval statistics for both tunnels show why.
BR-06#show sdwan app-route stats TUNNEL: inet-a to HUB-01 inet-a 5 intervals of 120 s INTERVAL LOSS LATENCY JITTER (oldest first) 0 6 71 35 1 7 74 38 2 6 70 36 3 0 52 6 4 0 50 5 AVERAGE 3.8 63 24 TUNNEL: inet-b to HUB-01 inet-b 5 intervals of 120 s INTERVAL LOSS LATENCY JITTER (oldest first) 0 7 69 34 1 6 72 37 2 7 71 35 3 0 51 5 4 0 49 6 AVERAGE 4.0 62 23
Calls were choppy for about six minutes. Both Internet tunnels lost packets in the same intervals and recovered together. Neither qualified for voice, so the policy had nowhere better to go. The two circuits share something.
- SymptomChoppy calls for about 6 minutesNo move to a better path
- Tunnel ALoss 6, 7, 6, then 0, 0Average 3.8 percent
- Tunnel BLoss 7, 6, 7, then 0, 0Average 4.0 percent
- ReadingSame intervals, same recoveryA shared cause, not two
| Interval ends at | Loss in that interval | Average of the last 5 | Meets the 2 percent limit? |
|---|---|---|---|
| 2 minutes | 6 percent | 1.2 percent | Yes |
| 4 minutes | 7 percent | 2.6 percent | No: voice is moved |
| 6 minutes | 6 percent | 3.8 percent | No |
| 8 minutes | 0 percent | 3.8 percent | No |
| 10 minutes | 0 percent | 3.8 percent | No |
| 12 minutes | 0 percent | 2.6 percent | No |
| 14 minutes | 0 percent | 1.2 percent | Yes: voice may return |
The Manager cannot fix this. The work is to find what the circuits share: the building entrance, the duct, a last-mile aggregator or one device on site. Ask both providers for the route and the handoff location, and compare. In the meantime a path that fails separately is worth more than a third circuit of the same kind. A cellular link is separate by technology, which is why many designs add one, and a backup color then gives it a defined role for voice.
| Test | What to compare | Shared fate looks like |
|---|---|---|
| Line up the interval statistics | Loss and jitter of both tunnels by interval | Both degrade in the same intervals |
| Check the logs of both edges | Times of BFD transitions or errors | Events at the same moment |
| Ask the providers for the physical route | Entrance, duct, aggregation point | The same building entrance or aggregation point |
| Look at the site | Shared router, switch, power or cable | One device or feed behind both circuits |
Learn more: BFD-derived Loss, Latency and JitterSLA Classes and Policy ThresholdsMPLS, Internet and LTE/5G Transport Trade-offs
Test yourself
A tunnel has a steady loss of 10 percent. The voice limit is 2 percent and the edge averages 5 intervals of 120 seconds. After how long does the average first exceed the limit?
Two Internet tunnels from different providers both show loss in the same three intervals and recover together. What does that suggest?
No tunnel qualifies for voice, there is no backup color, and the policy is not strict. What happens to the calls?
Why do flows stay on the second-choice tunnel for a while after the preferred tunnel recovers?
A tunnel has a steady loss of 3 percent. The voice limit is 2 percent and the edge averages 5 intervals of 120 seconds. After how long does the average first exceed the limit?
Loss of 6, 7 and 6 percent in three intervals is followed by clean intervals. The window is 5 intervals of 120 seconds and the limit is 2 percent. When does the tunnel meet the limit again, counting from the start of the fault?
Which test answers whether two supposedly separate circuits share fate, and costs one command per tunnel?