Forwarding Error Correction (FEC)

Forwarding Error Correction (FEC)


Introduction

Forwarding Error Correction (FEC) is a technique used for controlling errors in data transmission over unreliable or noisy communication channels. The sender sends the data together with a certain redundant error correction code. When the data is received at the receiver’s end, it is checked according to the error correction code. If an error is found, the receiver recognizes it and corrects the error without data retransmission.

FEC can be configured on ports operating at 100G, 40G, and 25G. The FEC function takes effect only when all of the following conditions are met:

  • FEC function is enabled on both ends of the link.

  • Optical modules are plugged in.

  • The interface rate is auto or at the default value.

NOTEs:

  • AS5812_54T and AS5812_54X don't support FEC.

  • The port can link up only when the FEC configurations and the FEC algorithm mode on both ends of the link are the same.

  • On Tomahawk3, Tomahawk4, Tomahawk5, and Trident4 platforms, FEC is enabled by default and cannot be disabled when a port operates at 100G, including when a higher-speed port is downgraded to 100G or a breakout port operates at 100G.

PICOS offers FEC algorithm RS-FEC (CL91) on the 100G port and FEC BASE-R (CL74) on the 40G port.

For the 25G port, PICOS offers two different FEC algorithms on different switch platforms:

Trident 3, Maverick2, Helix5, and Tomahawk 2 platform switches support RS-FEC (CL108) mode, and Tomahawk+/Tomahawk platform switches support BASE-R (CL74) mode.

Configuring FEC Function

Procedure

  • Use the following command to enable or disable the FEC function on the 100G, 40G or 25G port of the switch.

       set interface gigabit-ethernet <interface-name> fec <true | false>

By default, FEC function is disabled on the 100G, 40G and 25G port of the switch.

Configuration Example

  • Disable FEC function on the switch port xe-1/1/1.

admin@Xorplus# set interface gigabit-ethernet xe-1/1/1 fec false admin@Xorplus# commit
  • Enable FEC function on the switch port xe-1/1/2.

admin@Xorplus# set interface gigabit-ethernet xe-1/1/2 fec true admin@Xorplus# commit

Verify the Configuration

  • Use run show interface gigabit-ethernet <interface-name> command to view the interface status information of xe-1/1/2. Check the “FEC Enable: “ field in the command output to find the FEC configuration.

admin@XorPlus# run show interface gigabit-ethernet xe-1/1/2 Physical interface: xe-1/1/2, Enabled, error-discard False, Physical link is Down Interface index: 2, QSFP28 type: DAC, Mac Learning Enabled Port mode: access Description: Link-level type: Ethernet, MTU: 1514, Speed: Auto, Duplex: Full, FEC Enable: True Source filtering: Disabled, Flow control: Disabled, Auto-negotiation: Disabled Interface flags: Hardware-Down SNMP-Traps Internal: 0x0 Interface rate limit  ingress:unlimited, egress:unlimited Link fault signaling  ignore local fault:false, ignore remote fault:false force up mode:false Precision Time Protocol mode:none Current address: a8:2b:b5:e0:88:c7, Hardware address: a8:2b:b5:e0:88:c7 Traffic statistics:   5 sec input rate 0 bits/sec, 0 packets/sec   5 sec output rate 0 bits/sec, 0 packets/sec   Input Packets............................0   Output Packets...........................0   Input Octets.............................0   Output Octets............................0

 

Copyright © 2026 Pica8 Inc. All Rights Reserved.