Repair the tunnel or leave it
Application-aware routing answers a lossy tunnel by moving traffic away from it. That works when another tunnel meets the SLA class. It does not help when every tunnel to the remote site has a little loss, or when moving traffic would take it to a worse path. Loss correction works the other way round: the traffic stays on the tunnel, and extra information is sent so that a lost packet does not reach the application as a loss. Cisco provides two methods, forward error correction and packet duplication.
Application-aware routing moves matching traffic to another tunnel when the SLA class is missed. Loss correction keeps the traffic on the tunnel and sends extra information so that a lost packet can be rebuilt or replaced.
| Tool | What it does | Extra traffic | What it needs |
|---|---|---|---|
| Application-aware routing | Moves matching traffic to a tunnel that meets the SLA class | None | A second tunnel that meets the class |
| Forward error correction | Sends a parity packet so one lost packet in a group can be rebuilt | About one parity packet for every four data packets | One tunnel |
| Packet duplication | Sends a copy of each matched packet over a second tunnel | A full copy of the matched traffic | At least two overlay IPsec tunnels to the remote site |
How FEC rebuilds a lost packet
The Cisco FEC guide describes the method in one sentence: extra parity packets are sent for every group of four packets, and up to a single lost packet in the group can be recovered. If one packet of the group goes missing, the receiver can work out its content from the rest of the group and the parity packet, and passes it on as though it had arrived. The sender is not asked to resend, so no round trip is spent.
The sender takes a group of four data packets and adds one parity packet. One packet is lost on the tunnel. The receiver rebuilds it from the other packets of the group and the parity packet.
- Groupfour data packetsgo into a group
- Parityone parity packetis sent with them
- Lossone packet is loston the tunnel
- Rebuildthe receiver worksthe packet out
| Ratio | Value | What it shows |
|---|---|---|
| Parity packets received per data packet received | 0.2500 | One parity packet for every four data packets |
| Parity packets sent per data packet sent | 0.2500 | The same ratio in the sending direction |
| Packets reconstructed per 100,000 data packets received | 2.5 | How rarely the repair was needed in that sample |
BR-01#show sdwan tunnel statistics fec tunnel: BR-01 biz-internet to HUB-01 biz-internet fec-rx-data-pkts 39000 fec-rx-parity-pkts 9750 fec-tx-data-pkts 40000 fec-tx-parity-pkts 10000 fec-reconstruct-pkts 41 fec-capable true fec-dynamic false
What FEC can and cannot repair
A single repair per group has a clear limit. A packet is lost for good only if some other packet in its group is lost as well. With independent random loss of 1 percent, a second loss in the same group of five is rare, and FEC removes most of the loss. As the loss rate rises, a second loss becomes common and the benefit falls. Packet duplication does better, because a packet is lost only when both copies are lost.
| Loss on each tunnel | Remaining with FEC | Remaining with duplication |
|---|---|---|
| Loss of 0.5 percent on each tunnel | 0.0099 percent | 0.0025 percent |
| Loss of 1 percent on each tunnel | 0.0394 percent | 0.0100 percent |
| Loss of 2 percent on each tunnel | 0.1553 percent | 0.0400 percent |
| Loss of 5 percent on each tunnel | 0.9275 percent | 0.2500 percent |
| Loss of 10 percent on each tunnel | 3.4390 percent | 1.0000 percent |
Two data packets lost in the same group cannot both be rebuilt. A burst of loss usually takes several packets of one group. A lost parity packet together with a lost data packet leaves the group short.
- Two in one grouponly a single lostpacket is recovered
- A burstseveral packetsof one group go
- Parity and datathe parity packetis lost as well
Three choices in the policy
The Manager offers loss correction as an action on a matched application. The Cisco guide lists two FEC choices and a packet duplication option. Adaptive FEC sends the parity information only when the loss that the system detects exceeds a packet loss threshold. The other FEC choice sends parity information with every transmission. Packet duplication copies the packets through a secondary link.
Adaptive FEC sends parity packets only when the detected loss is above a threshold. The other FEC choice sends parity with every group. Packet duplication sends a copy of each matched packet over a second tunnel.
- FEC adaptiveparity only whileloss is above a threshold
- FEC on every groupparity with eachgroup of four
- Packet duplicationa copy over asecond tunnel
| Choice | Extra packets per second | When the extra packets are sent |
|---|---|---|
| Adaptive FEC, loss below the threshold | 0 | Not sent while the loss is under the threshold |
| Adaptive FEC, loss above the threshold | 250 | Parity for each group of four |
| FEC with parity on every group | 250 | Every group, healthy or not |
| Packet duplication | 1,000 | A copy of every matched packet, on the second tunnel |
Where the settings are
Both methods are actions in a data policy, and the notes print the steps as Manager menus and not as configuration commands. Packet duplication in the 2025 note is built as part of an Application Priority and SLA policy in a policy group, and FEC in the guide is built in a centralized policy. A match narrows the traffic, the action turns on the correction, and the policy is applied to VPNs and sites.
Match the applications that need protection. Set the loss correction action. Apply the policy to the VPNs and sites. Verify with the counters on the edge.
- Matchthe applications thatneed protection
- Actionchoose the losscorrection option
- ApplyVPNs andsite lists
- Verifyread the counterson the edge
| Feature | Where the action is set | Other points in the note |
|---|---|---|
| Forward error correction | Configuration, Policies, a centralized policy, traffic data, a data policy sequence of type QoS, Actions, Loss Correction | The choices are FEC Adaptive, a choice that sends parity with every transmission, and a Packet Duplication check box |
| Packet duplication in a policy group | Configuration, Policy Groups, Application Priority and SLA, a traffic policy rule, Action Loss Correction, Packet Duplication | A configuration group has to be associated with the edge before the policy group is deployed; the verification output shows loss-protection packet-duplication in the data policy |
BR-01#show sdwan tunnel statistics pkt-dup tunnel: BR-01 mpls to HUB-01 mpls (primary) pktdup-tx 1200 pktdup-rx 1180 pktdup-rx-this 1180 pktdup-capable true tunnel: BR-01 biz-internet to HUB-01 biz-internet (secondary) pktdup-tx-other 1200 pktdup-rx-other 1180
Restrictions and costs
Loss correction is not free, and the notes list its limits. Both methods need a release that supports them, packet duplication needs a second tunnel, and the extra packets cost bandwidth. The 2025 note also reports a rise in router CPU in its lab when duplication was applied to all traffic, and advises against doing that.
| Feature | Limit or restriction | Source |
|---|---|---|
| Forward error correction | Supported on IOS XE Catalyst SD-WAN devices; Cisco recommends 17.6.3 as the minimum release | FEC guide |
| Forward error correction | IPv4 over IPv4 from 16.12.1b; IPv6 cases from 17.15.1a | FEC guide, feature history |
| Forward error correction | Monitoring through SD-WAN Manager is not supported | FEC guide |
| Packet duplication | At least two overlay IPsec tunnels between the sites; IOS XE devices only; control components 20.14.1 or later for the policy group method | Document 224679 |
| Packet duplication | Packets are duplicated only if they fit the path MTU of the duplicate tunnel | Document 224679 |
| Packet duplication | A lab rise of about 10 percent in CPU with all traffic duplicated; use for critical traffic only | Document 224679 |
| Packet duplication, FEC and TCP optimization | Not supported between IOS XE 16.x and 17.x | Document 224679 |
Extra packets use bandwidth, the work of building and checking parity or copies uses router CPU, and larger packets may exceed the path MTU of a tunnel and so be left out of duplication.
- Bandwidthparity packetsor full copies
- CPUextra packets tobuild and handle
- MTUduplicates only ifthey fit the PMTU
Choosing a tool
The tools can be ordered by cost. Moving traffic costs nothing extra, so it comes first when a tunnel that meets the class exists. Repairing loss on the tunnel in use costs extra packets, and duplication costs the most. The order below is study advice and not a Cisco recommendation, and one gap remains open: the notes read do not say whether loss that FEC repairs still counts in the loss that the tunnel probes measure for an SLA class, so the effect on application-aware routing decisions has to be tested.
Moving traffic to a tunnel that meets the SLA class costs nothing extra and comes first. Adaptive FEC repairs steady low loss for a quarter more packets while the loss lasts. Packet duplication costs a full copy and suits a few critical flows with two good tunnels.
- Firstmove trafficto a tunnel that meets the class
- Nextadaptive FEC forsteady low loss
- Lastduplication for a fewcritical flows
| Problem | A reasonable first choice | Why |
|---|---|---|
| A tunnel has a long poor spell and another tunnel is good | Application-aware routing | Moving the traffic costs nothing extra |
| The only usable tunnel has steady low loss | Adaptive FEC on the affected applications | Repair on the tunnel in use, parity only while the loss is high |
| A few critical flows must not lose packets and two good tunnels exist | Packet duplication for those flows | A packet is lost only if both copies are lost, at the cost of a full copy |
| A large bulk transfer | Neither | The extra traffic is large, and the transfer does not need a repair per packet |
Learn more: SLA Classes and Policy ThresholdsBrownout and Fallback BehaviourBFD Loss, Latency and Jitter MeasurementVoice, Video and Interactive Traffic Design
Test yourself
How many packets does the Cisco FEC guide say each parity packet covers?
In a group of four data packets plus a parity packet, one data packet is lost on the tunnel. What does the receiver do?
Two data packets of the same group are lost. What does the guide's description imply?
A voice class sends 1,000 data packets per second and uses FEC with parity on every group of four. How many extra packets per second are sent?
What does packet duplication need that FEC does not?
What is the right reading of FEC next to application-aware routing?
Where does the Cisco FEC guide say FEC counters can be checked?
In the lesson's model, a tunnel has independent random loss of 2 percent and FEC uses a group of four plus parity. About how much loss remains?