The goal
A design that has not been broken on purpose is a design nobody has measured. This lab uses the network built in the first SD-WAN course: three controllers on the Internet transport, HUB-01, BR-01 and BR-02 as edges, an mpls and a biz-internet colour, and BR-02 on the Internet only. You will cause five failures, one at a time, write down what happens, and finish with the two documents a real cutover needs: a validation table and a report.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Baseline, test plan, inject, restore, report.
- Baselinerecord normal
- Planpredict eachresult
- Injectone fault,measure it
- Restoreconfirm thebaseline
- Reporttable andfindings
Stage 1: record the baseline
You cannot say a number is wrong unless you know what it should be. Before you break anything, record what normal looks like, on every edge, so that each test has something to compare against. In the lab's starting state, with no topology policy, the expected tunnel count is three BFD sessions at HUB-01, three at BR-01 and two at BR-02, because BR-02 has only the Internet transport and so no mpls tunnel.
| Item | Command | Expected in the lab |
|---|---|---|
| Control connections | show sdwan control connections | Up to the Manager, Controller and Validator that this edge reaches; write down the count you see |
| OMP routes | show sdwan omp routes | Each LAN prefix chosen, installed and resolved |
| BFD sessions | show sdwan bfd sessions | HUB-01 3, BR-01 3, BR-02 2, all up |
| Reachability | ping vrf 10 to each LAN | 100 percent |
| Transition counters | show sdwan bfd sessions | Note the current numbers |
| Measured quality | show sdwan app-route stats | Loss, latency and jitter for each tunnel; fault 5 is compared with these |
Stage 2: the test plan
The plan is a table with one row per fault. Fill in the "expected" column before you inject anything. The five faults cover the layers from the root-cause framework: an underlay link, a transport shared with the controllers, the Controller, the Manager and a degraded path.
| Fault | How to inject | Expected result | Evidence |
|---|---|---|---|
| 1 Hub mpls link down | Shut the mpls interface on HUB-01 | mpls tunnel to BR-01 drops; traffic moves to biz-internet; BR-02 unaffected | BFD sessions, ping loss count |
| 2 BR-01 Internet link down | Shut the biz-internet interface on BR-01 | BR-01 loses controller reach; mpls tunnel to the hub stays up; BR-02 cannot be reached directly | Control connections, BFD, ping to BR-02 |
| 3 Controller offline | Stop CTRL-01 | Edges lose their OMP peer; existing traffic continues; no new route changes | Control connections, OMP summary, traffic |
| 4 Manager offline | Stop the Manager | Data plane unaffected; no configuration pushes or monitoring | Traffic check, Manager reachability |
| 5 Degraded Internet path | Add loss and delay on the underlay (start with 5 percent loss) | Measured loss and latency rise on biz-internet tunnels; BFD stays up at this loss; traffic moves only if a policy exists | app-route stats, transition counters, ping loss |
Stage 3: inject and measure
Take the faults in order. For each, start a paced ping from a LAN host at the source site, inject the fault, wait for the network to settle, then restore and count the lost replies. Use a host and not the edge router: a router sends the next probe as soon as the last one is answered, so on a healthy path its 100 probes finish in a moment and measure nothing. A Linux or Windows host sends one probe a second by default, so each lost reply is roughly one second of outage.
host-a$ ping -i 1 -c 100 192.168.10.1 64 bytes from 192.168.10.1: icmp_seq=67 ttl=62 time=94.1 ms 64 bytes from 192.168.10.1: icmp_seq=68 ttl=62 time=93.8 ms 64 bytes from 192.168.10.1: icmp_seq=79 ttl=62 time=118.2 ms 64 bytes from 192.168.10.1: icmp_seq=80 ttl=62 time=117.6 ms --- 192.168.10.1 ping statistics --- 100 packets transmitted, 90 received, 10% packet loss, time 99107ms
Ten lost probes can be read against the detection time. The edge declares a tunnel down only when the hello interval multiplied by the multiplier has passed with no answer, so the detection time is a floor under the outage.
| BFD multiplier | Detection time (1 s hello) | Probes lost at 1 per second | Probes lost at 5 per second |
|---|---|---|---|
| 3 | 3 s | about 3 | about 15 |
| 5 | 5 s | about 5 | about 25 |
| 7 | 7 s | about 7 | about 35 |
| 10 | 10 s | about 10 | about 50 |
With a multiplier of 7, seven of the ten lost probes are detection. The other three are the time to move traffic to the biz-internet tunnel, a figure from the imagined run and not a promise for any release. A count of 7 would mean failover was detection alone. A count of 30 would mean something besides BFD was waiting, such as a policy or a route update, and the layers in the root-cause framework say where to look next.
Fault 5 needs a way to damage the underlay. If your lab routers sit behind a Linux node that acts as the Internet, use its traffic control tool to add delay and loss on the interface toward the edges.
sudo tc qdisc add dev eth1 root netem delay 100ms loss 5%
sudo tc qdisc del dev eth1 rootOn the Linux underlay node. The first command adds 100 ms of delay and 5 percent loss on eth1; the second removes it. Replace eth1 with the interface that faces the edges.
Predict the result before injecting it. Five percent random loss does not take a BFD session down, because a session is declared down only when every probe in the detection window is lost, which is seven in a row with a multiplier of 7. The table shows how fast that chance grows with the loss rate.
| Random loss | Chance 7 probes in a row are lost | Times down per hour | Mean time between |
|---|---|---|---|
| 5 percent | 1 in 1.3 billion | 0.000003 | about 43 years |
| 20 percent | 1 in 78,000 | 0.04 | about 27 hours |
| 30 percent | 1 in 4,600 | 0.55 | about 1.8 hours |
| 50 percent | 1 in 128 | 14 | about 4 minutes |
| 70 percent | 1 in 12 | 89 | about 40 seconds |
So the fault with 5 percent loss tests measurement and policy, not liveness. To see the sessions flap, raise the loss to 50 percent or more. The ping also needs care: 100 probes at 5 percent random loss lose 5 on average, and any count from 1 to 10 is normal (the 95 percent range of the binomial), so repeat the run before calling a difference a finding.
BR-01#show sdwan app-route stats TUNNEL (remote) LOSS LATENCY JITTER mpls to HUB-01 mpls 0 46 7 biz-internet to HUB-01 biz-inet 5 158 12 biz-internet to BR-02 biz-inet 5 162 14
With the Internet link down, BR-01 keeps its mpls tunnel to the hub but loses the controllers and the path to BR-02.
Stage 4: restore and confirm
After each fault, undo exactly what you did, wait for the sessions to return, and repeat the baseline checks. Do not start the next injection until every number matches the baseline. If a number does not return, you have found either a mistake in the restore or a real slow-recovery behaviour. Either is worth recording.
Stage 5: the validation table and the cutover report
The validation table is the plan with two columns added: what happened, and pass or fail. A test passes when the observed result matches the prediction. A test where the design behaves differently from the prediction is recorded as a finding, even if the behaviour is acceptable.
| Fault | Observed in the example run | Result |
|---|---|---|
| 1 Hub mpls down | 10 of 100 probes lost; round-trip time rose; BR-02 unchanged | Pass |
| 2 BR-01 Internet down | Control connections 0; mpls BFD up; ping to BR-02 failed | Pass; finding: control rides one transport |
| 3 Controller offline | 0 of 300 probes lost in 5 minutes; OMP peers down | Pass; finding: single Controller |
| 4 Manager offline | 0 probes lost; no template push possible | Pass |
| 5 Degraded path | Loss 5, latency about 100 ms higher; BFD unchanged; no path change | Pass; finding: nothing steers around it |
| Section | What it holds |
|---|---|
| Scope | Sites, transports and applications covered by the cutover |
| Baseline | The numbers recorded in stage 1 |
| Tests | The validation table with observed results and measured failover times |
| Findings | Where behaviour differed from the prediction, or a design gap was found |
| Open risks | Single points of failure and who owns each decision |
| Rollback | The steps and the time needed to return to the previous network |
| Sign-off | Who approved the cutover and when |
In this lab the findings write themselves. Fault 2 shows that BR-01 depends on one transport for control, and fault 3 shows that a single Controller is a single point of failure for any change. Neither is a bug. Both are design facts that a cutover approver should read before signing, and the Course's controller high availability and dual-edge lessons describe the fixes.
Learn more: SD-WAN Root-Cause FrameworkController High Availability
Test yourself
Why fill in the expected-result column before injecting a fault?
CTRL-01 is stopped and the only Controller is offline. What is the expected effect on traffic already flowing between edges?
During fault 1, ten pings are lost at one per second. What does the report record?
Running ping repeat 100 on the edge router finishes in a moment on a healthy path. Why is it a poor failover timer?
With a 1-second hello and a multiplier of 7, 5 percent random loss is added to the biz-internet underlay. What is the expected BFD result?
Ten probes are lost during fault 1 and the detection time is 7 seconds. How is the result best read?