Course contents

Unit 4: Advanced AARLesson 4.6 (6 of 7 in this unit)20 of 63 in the Advanced Cisco SD-WAN course

Brownout and fallback behaviour

Tell a brownout from a blackout, see how long a sustained loss takes to push the average over an SLA limit, what the policy does while no tunnel qualifies, and how to spot two transports that fail together.

Advanced · 17 min read

You'll learn to tell a brownout from a blackout, calculate how long a sustained loss takes to push the average over an SLA limit, describe what the policy does while no tunnel qualifies, and recognise two transports that fail together.

Technical definition

Brownout in a WAN is a path that still answers but performs badly: it loses packets, adds delay or varies in delay, without going down. A blackout is a path that stops answering. SD-WAN finds a blackout with BFD liveness within seconds and finds a brownout from averaged quality measurements, which is slower.

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.

Diagram
Three faults and how they are found
Three faults and how they are found
FaultWhat the tunnel doesFound byTypical speed
BlackoutStops answeringBFD livenessSeconds
BrownoutAnswers, with loss or delayAveraged quality against the SLA classMinutes, depending on the window
FlapAlternates between up and downBFD transitions and the logsEach cycle, so a counter is the clue
A design that only plans for blackouts leaves users to find every brownout.
Diagram
The fast clock and the slow clock
The fast clock and the slow clock

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.

Blackouttunnel stopsanswering, foundin seconds
Brownouttunnel answers badly,found in minutesor more
Users notice a brownout long before the edge acts on it. Tune the window with that gap in mind.

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.

Diagram
Time until the average exceeds 2 percent
Time until the average exceeds 2 percent
Sustained lossWindow of 5 intervals of 120 sWindow of 6 intervals of 600 s
5 percent3 intervals, 6 minutes3 intervals, 30 minutes
10 percent2 intervals, 4 minutes2 intervals, 20 minutes
25 percent1 interval, 2 minutes1 interval, 10 minutes
A simplified model that counts completed intervals only. A real edge may also use the interval in progress, so treat the figures as an upper bound for a steady fault.

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.

Diagram
What a brownout looks like to the edge
What a brownout looks like to the edge

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.

  1. Onsetquality getsworse
  2. Averagecrosses thelimit
  3. Movetunnel noteligible
  4. Recoveraverage fallsinside limits
  5. Returnflows go backto preferred
Both the move away and the return wait for the average, so the second tunnel carries traffic for a while after the problem ends.

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.

Diagram
Options when every path is poor
Options when every path is poor

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.

No tunnel qualifies
  • Backup colora chosen secondchoice
  • Strictdrop rather thanuse a poor path
  • Normal forwardingspread overall tunnels
  • Local protectionqueueing, lossrecovery
Choose in advance, per application. The incident is the wrong time to find out what the policy does.

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.

Example output written for this lesson, simplified; real output has more fields and a different layout
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
Both tunnels went bad in the same three intervals, six minutes in all, and recovered in the same two. After the second bad interval the average of each was above the voice limit of 2 percent (2.6 and 2.6), so from about the fourth minute neither tunnel qualified. After five intervals the averages are 3.8 and 4.0 percent. The two providers fail at the same times, which is what a shared cause looks like. The numbers are examples.
Diagram
Evidence from the case
Evidence from the case

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.

  1. SymptomChoppy calls for about 6 minutesNo move to a better path
  2. Tunnel ALoss 6, 7, 6, then 0, 0Average 3.8 percent
  3. Tunnel BLoss 7, 6, 7, then 0, 0Average 4.0 percent
  4. ReadingSame intervals, same recoveryA shared cause, not two
The policy behaved as designed. The design assumed two failures where there was one.
Diagram
Why the return is slower than the fault (tunnel A in the case)
Why the return is slower than the fault (tunnel A in the case)
Interval ends atLoss in that intervalAverage of the last 5Meets the 2 percent limit?
2 minutes6 percent1.2 percentYes
4 minutes7 percent2.6 percentNo: voice is moved
6 minutes6 percent3.8 percentNo
8 minutes0 percent3.8 percentNo
10 minutes0 percent3.8 percentNo
12 minutes0 percent2.6 percentNo
14 minutes0 percent1.2 percentYes: voice may return
Worked out by script from the loss values in the example output, using the simple model of completed intervals divided by 5. The fault lasted 6 minutes, but the tunnel stayed ineligible until minute 14, 8 minutes after the loss ended.

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.

Diagram
Tests for shared fate
Tests for shared fate
TestWhat to compareShared fate looks like
Line up the interval statisticsLoss and jitter of both tunnels by intervalBoth degrade in the same intervals
Check the logs of both edgesTimes of BFD transitions or errorsEvents at the same moment
Ask the providers for the physical routeEntrance, duct, aggregation pointThe same building entrance or aggregation point
Look at the siteShared router, switch, power or cableOne device or feed behind both circuits
Run the first test during every incident. It costs one command per tunnel and it answers the question that decides the fix.

Learn more: BFD-derived Loss, Latency and JitterSLA Classes and Policy ThresholdsMPLS, Internet and LTE/5G Transport Trade-offs

Test yourself

Predict · scenario 1

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?

Predict · scenario 2

Two Internet tunnels from different providers both show loss in the same three intervals and recover together. What does that suggest?

Predict · scenario 3

No tunnel qualifies for voice, there is no backup color, and the policy is not strict. What happens to the calls?

Predict · scenario 4

Why do flows stay on the second-choice tunnel for a while after the preferred tunnel recovers?

Predict · scenario 5

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?

Predict · scenario 6

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?

Predict · scenario 7

Which test answers whether two supposedly separate circuits share fate, and costs one command per tunnel?

FAQ

Why is a brownout harder than a blackout?
A blackout is clear-cut: the tunnel stops answering and traffic moves within seconds. A brownout is a matter of degree, so the edge has to measure for a while and compare an average with a limit before it acts. Meanwhile users feel the problem.
Does the policy move traffic back when the preferred path recovers?
Yes, once the averaged values of the preferred tunnel are back inside the class limits. The same window that delays the move away delays the move back, so flows can stay on the second choice for a while after the problem ends.
What if every tunnel is in a brownout?
No tunnel qualifies, so the result depends on the policy: a backup color is used if one is named, strict drops the flow, and otherwise normal forwarding takes over. The policy cannot create a good path, so the lasting fix is a path that fails separately.
Can two transports from different providers fail together?
Yes. They can share a building entrance, a duct, a last-mile aggregator or a power feed, or a single device at the site. Different names on the invoice do not prove different paths.