Course contents

Unit 5: QoS and AppQoELesson 5.7 (7 of 7 in this unit)28 of 63 in the Advanced Cisco SD-WAN course

Forward error correction and packet duplication

See how FEC rebuilds one lost packet per group of four, how packet duplication copies traffic over a second tunnel, what each costs, and how to choose between them and application-aware routing.

Advanced · 21 min read

You'll learn to explain how forward error correction and packet duplication repair loss on a tunnel, work out the extra traffic and the loss that remains for each, read the counters that show them working, and choose between them and application-aware routing.

Technical definition

Loss correction is a data policy action that lets an edge router repair or mask packet loss on the tunnel it uses, instead of moving the traffic to another tunnel. Forward error correction sends a parity packet with each group of four data packets, so that one lost packet in the group can be rebuilt. Packet duplication sends a copy of each matched packet over a second tunnel, and the receiver keeps whichever copy arrives.

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.

Diagram
Move the traffic or repair the loss
Move the traffic or repair the loss

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.

Application-aware routingmoves traffic to atunnel that meets the SLA
Loss correctionkeeps traffic where it isand repairs the loss
Both answer packet loss, in different places.
Diagram
Three tools against packet loss
Three tools against packet loss
ToolWhat it doesExtra trafficWhat it needs
Application-aware routingMoves matching traffic to a tunnel that meets the SLA classNoneA second tunnel that meets the class
Forward error correctionSends a parity packet so one lost packet in a group can be rebuiltAbout one parity packet for every four data packetsOne tunnel
Packet duplicationSends a copy of each matched packet over a second tunnelA full copy of the matched trafficAt least two overlay IPsec tunnels to the remote site
Forward error correction facts are from the Cisco FEC guide in the IOS XE 17 policies book; packet duplication facts are from Cisco document 224679, updated August 2025, a lab on Manager 20.15.3 and edges on 17.15.3a. Application-aware routing is covered in the earlier SLA lessons.

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.

Diagram
One lost packet, rebuilt
One lost packet, rebuilt

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.

  1. Groupfour data packetsgo into a group
  2. Parityone parity packetis sent with them
  3. Lossone packet is loston the tunnel
  4. Rebuildthe receiver worksthe packet out
The repair needs no resend and costs no round trip.
Diagram
Counters in the Cisco sample, divided (computed)
Counters in the Cisco sample, divided (computed)
RatioValueWhat it shows
Parity packets received per data packet received0.2500One parity packet for every four data packets
Parity packets sent per data packet sent0.2500The same ratio in the sending direction
Packets reconstructed per 100,000 data packets received2.5How rarely the repair was needed in that sample
Computed by script from the counters printed in the sample output of the Cisco FEC guide: 122,314 data and 30,578 parity packets received, 125,868 data and 31,467 parity packets sent, and 3 packets reconstructed. The ratio of 0.25 matches a group of four. The guide does not state a byte overhead, and the sample is documentation output, not a measurement.
Example output written for this lesson, simplified; real output has more fields and a different layout
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
The tunnel sends one parity packet for every four data packets, 10,000 for 40,000, and receives them at the same ratio. The 41 reconstructed packets are loss that the application did not see. The Cisco guide describes the first five counters and does not describe the last two, so their meaning is not read into this output. The tunnel label is a simplification of the real layout, and the numbers are invented for the example.

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.

Diagram
Loss that remains (computed)
Loss that remains (computed)
Loss on each tunnelRemaining with FECRemaining with duplication
Loss of 0.5 percent on each tunnel0.0099 percent0.0025 percent
Loss of 1 percent on each tunnel0.0394 percent0.0100 percent
Loss of 2 percent on each tunnel0.1553 percent0.0400 percent
Loss of 5 percent on each tunnel0.9275 percent0.2500 percent
Loss of 10 percent on each tunnel3.4390 percent1.0000 percent
Computed by script for independent random loss with the same rate on every packet. FEC is modelled as a group of four data packets and one parity packet, where a data packet is lost for good if it is lost and at least one of the other four packets of its group is lost. Duplication is modelled as two tunnels with independent loss. Real loss is often bursty and correlated between tunnels that share a provider, and both effects make the repair worse than shown.
Diagram
Three cases that FEC does not repair
Three cases that FEC does not repair

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.

Not repaired
  • Two in one grouponly a single lostpacket is recovered
  • A burstseveral packetsof one group go
  • Parity and datathe parity packetis lost as well
The model above is the favourable case.

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.

Diagram
Adaptive FEC, constant FEC and duplication
Adaptive FEC, constant FEC and duplication

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.

Loss correction
  • FEC adaptiveparity only whileloss is above a threshold
  • FEC on every groupparity with eachgroup of four
  • Packet duplicationa copy over asecond tunnel
The cost differs most while the tunnel is healthy.
Diagram
Extra packets for 1,000 data packets per second (computed)
Extra packets for 1,000 data packets per second (computed)
ChoiceExtra packets per secondWhen the extra packets are sent
Adaptive FEC, loss below the threshold0Not sent while the loss is under the threshold
Adaptive FEC, loss above the threshold250Parity for each group of four
FEC with parity on every group250Every group, healthy or not
Packet duplication1,000A copy of every matched packet, on the second tunnel
Computed by counting packets, with 1,000 data packets per second as an assumed rate and one parity packet per group of four. The guide prints no threshold range or unit. A community post asks about a range of 1 to 5 percent without an answer, so no range is stated here. The size of a parity packet is not stated, so only the packet counts are compared.

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.

Diagram
Four steps to loss correction
Four steps to loss correction

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.

  1. Matchthe applications thatneed protection
  2. Actionchoose the losscorrection option
  3. ApplyVPNs andsite lists
  4. Verifyread the counterson the edge
Scope the match tightly, because the cost applies to everything matched.
Diagram
Menu paths as printed in the two Cisco notes
Menu paths as printed in the two Cisco notes
FeatureWhere the action is setOther points in the note
Forward error correctionConfiguration, Policies, a centralized policy, traffic data, a data policy sequence of type QoS, Actions, Loss CorrectionThe choices are FEC Adaptive, a choice that sends parity with every transmission, and a Packet Duplication check box
Packet duplication in a policy groupConfiguration, Policy Groups, Application Priority and SLA, a traffic policy rule, Action Loss Correction, Packet DuplicationA 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
Paths as printed in the Cisco FEC guide and in document 224679, which print no configuration commands for FEC. Menu names change between releases, so confirm them for the release in use.
Example output written for this lesson, simplified; real output has more fields and a different layout
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
Twelve hundred duplicated packets were sent. The primary tunnel's counters show them as pktdup-tx and the secondary tunnel's counters as pktdup-tx-other, the pattern in the Cisco note's sample. The note describes pktdup-rx-this as duplicates received on the secondary tunnel but counted in the primary tunnel's statistics, and it does not define the other fields, which are read here from their names. The numbers are invented for the example.

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.

Diagram
Limits printed in the notes
Limits printed in the notes
FeatureLimit or restrictionSource
Forward error correctionSupported on IOS XE Catalyst SD-WAN devices; Cisco recommends 17.6.3 as the minimum releaseFEC guide
Forward error correctionIPv4 over IPv4 from 16.12.1b; IPv6 cases from 17.15.1aFEC guide, feature history
Forward error correctionMonitoring through SD-WAN Manager is not supportedFEC guide
Packet duplicationAt least two overlay IPsec tunnels between the sites; IOS XE devices only; control components 20.14.1 or later for the policy group methodDocument 224679
Packet duplicationPackets are duplicated only if they fit the path MTU of the duplicate tunnelDocument 224679
Packet duplicationA lab rise of about 10 percent in CPU with all traffic duplicated; use for critical traffic onlyDocument 224679
Packet duplication, FEC and TCP optimizationNot supported between IOS XE 16.x and 17.xDocument 224679
Summaries in the words of this lesson from the Cisco FEC guide and document 224679 (updated 26 August 2025, a lab on 20.15.3 and 17.15.3a). The CPU figure is one lab result and not a limit. The same note states that data policy and application-aware routing must not be applied to packet-duplicated traffic, and does not explain how that sits with duplication being an action in a data policy, so the exact wording is worth reading before combining them.
Diagram
Three costs of loss correction
Three costs of loss correction

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.

Costs
  • Bandwidthparity packetsor full copies
  • CPUextra packets tobuild and handle
  • MTUduplicates only ifthey fit the PMTU
Each cost scales with the traffic that matches the policy.

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.

Diagram
A cost order for loss problems
A cost order for loss problems

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.

  1. Firstmove trafficto a tunnel that meets the class
  2. Nextadaptive FEC forsteady low loss
  3. Lastduplication for a fewcritical flows
Study advice, ordered by extra traffic.
Diagram
Which tool for which problem (study advice)
Which tool for which problem (study advice)
ProblemA reasonable first choiceWhy
A tunnel has a long poor spell and another tunnel is goodApplication-aware routingMoving the traffic costs nothing extra
The only usable tunnel has steady low lossAdaptive FEC on the affected applicationsRepair on the tunnel in use, parity only while the loss is high
A few critical flows must not lose packets and two good tunnels existPacket duplication for those flowsA packet is lost only if both copies are lost, at the cost of a full copy
A large bulk transferNeitherThe extra traffic is large, and the transfer does not need a repair per packet
Study advice based on the costs and limits above. It is not documentation, and the choice depends on the traffic, the tunnels and the release.

Learn more: SLA Classes and Policy ThresholdsBrownout and Fallback BehaviourBFD Loss, Latency and Jitter MeasurementVoice, Video and Interactive Traffic Design

Test yourself

Predict · scenario 1

How many packets does the Cisco FEC guide say each parity packet covers?

Predict · scenario 2

In a group of four data packets plus a parity packet, one data packet is lost on the tunnel. What does the receiver do?

Predict · scenario 3

Two data packets of the same group are lost. What does the guide's description imply?

Predict · scenario 4

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?

Predict · scenario 5

What does packet duplication need that FEC does not?

Predict · scenario 6

What is the right reading of FEC next to application-aware routing?

Predict · scenario 7

Where does the Cisco FEC guide say FEC counters can be checked?

Predict · scenario 8

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?

FAQ

Does loss correction replace application-aware routing?
No. Application-aware routing moves matching traffic to a tunnel that meets an SLA class, and loss correction repairs loss on the tunnel in use. A tunnel that is poor for a long time is a case for moving traffic, and a tunnel with a steady low loss and no better alternative is a case for repair. A Cisco note on packet duplication also says that data policy and application-aware routing must not be applied to the duplicated traffic, which is a restriction to read before combining them.
How much extra traffic does FEC add?
The Cisco FEC guide describes one parity packet for every group of four packets. Its sample counters show about one parity packet for every four data packets, so around a quarter more packets. The guide gives no figure for the size of a parity packet, so the extra bytes are not stated.
Is FEC or packet duplication better?
They solve different cases. FEC needs one tunnel and rebuilds a single lost packet per group, at a cost of about a quarter more packets. Packet duplication needs at least two overlay tunnels, copies every matched packet, and survives the loss of either copy. Duplication is the stronger repair and the more expensive one, and the Cisco note advises against using it for all traffic.
Can FEC repair a burst of lost packets?
Not beyond one packet per group. The guide says that up to a single lost packet in a group can be recovered, so two losses in the same group are not rebuilt. The loss figures in this lesson assume independent random loss, which is the favourable case, and a burst does worse.
Can SD-WAN Manager monitor FEC?
The FEC guide read says that monitoring FEC through Cisco SD-WAN Manager is not supported, and it names a show command run on the edge router instead. That statement is from a guide for the IOS XE 17 documentation set, so confirm it for the release in use.