Configuring and Troubleshooting FEC Settings on QNAP QSW Managed Switches


Last modified date: 2024-11-22

Applicable Products

Hardware

  • QSW-M7308R-4X
  • QSW-M5216-1T

Software

  • QSS v1.4.2 and later
  • QSS Pro v4.0.0 and later

Overview

Forward Error Correction (FEC) is a method of data communication where extra bit(s) known as error correction bits are encoded with the data to help detect and correct errors even during high-speed transmissions (100G/25G) and long-distance network transmission. The receiver uses these extra bits to check the received data against the transmitted data. If an error is detected, the receiver can then use added FEC bits to correct the error and get the correct value of the original data.

Procedure

  1. Log in to QSS.
  2. Go to Port Management > Port Configuration.
  3. Under Interface Settings, identify a switching port.
  4. Under FEC, select a mode from the drop-down list.
    FEC ModeDescription
    AllThe switch automatically selects the best FEC mode (excluding the Auto-Negotiation FEC mode) to transmit and receive data packets.
    RS-FECReed -Solomon (RS) FEC provides enhanced data correction rates on the transmitting and receiving devices.
    BASE-R-FECFire-Code FEC or BASE-R-FEC offers weaker correction rates but offers lower latency compared to RS-FEC on 25 GbE switching ports.
    Auto-NegotiationUses the clause 73 auto-negotiation function for use over electrical backplanes on a switching port. An FEC automatic negotiation (AN) request message is transmitted to determine a negotiated FEC process between the switching ports.
    DisableDisables FEC on all the switching ports.
    Note
    • Use Auto-Negotiation to automatically determine the link capabilities and eliminate manual configuration of FEC. Auto-negotiated FEC is best used when the data rate needs to be adjusted to the network situation.
    • Use RS-FEC when the data requires additional protection from noise and other data loss sources.
    • BASE-R-FEC is used for networks operating at high speeds. This is the highest speed FEC available and is most suitable for mission-critical networks and applications.
    • For specific network cards, manual matching of Forward Error Correction (FEC) settings is required between the switch and the card. For a detailed listing of compatible network cards, see QNAP Compatibility List.
    Tip
    To view the current FEC mode applied to the interfaces, go to Port Management > Port Status.
  5. Click Save.

QSS saves the FEC mode on the selected switching ports.

Troubleshooting Common FEC Issues

Scenario 1: Troubleshooting Common FEC Compatibility Issues

In situations where link-up connections exceeds 30 seconds or network communication between the card and switch is not established, investigating potential mismatched FEC modes is recommended. Prolonged link-up times or complete link-up failures can be attributed to mismatched FEC modes configured on the transmitting and receiving network devices. This section documents confirmed workarounds for situations where FEC mode mismatches occur between network cards and QNAP switches operating at 100Gbps or 25Gbps port speeds.

FEC mode: All

NIC OS platforms: Windows, Linux

Workaround 1: Select the same FEC mode on both devices

Workaround Steps
  1. Disconnect the Ethernet cable connecting the two devices.
  2. Select the same FEC mode (e.g., RS-FEC, BASE-R-FEC) or disable FEC on both devices.
  3. Save the FEC configuration.
  4. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

Workaround 2: Change the FEC mode to Auto-Negotiation

Workaround Steps

  1. Disconnect the Ethernet cable connecting the two devices.
  2. On the QNAP switch, change the FEC mode to Auto-Negotiation.
  3. Save the FEC configuration on the switch.
  4. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

FEC mode: RS-FEC, BASE-R-FEC, Disable

NIC OS platforms: Linux

Workaround 1: Configure the same FEC mode on both devices

Workaround Steps

  1. Disconnect the Ethernet cable connecting the two devices.
  2. Select an FEC mode (RS-FEC, BASE-R-FEC) or disable FEC on the switch.
  3. Save the FEC configuration on the switch.
  4. On the network card, select the same FEC mode.
    $ethtool --set-fec swp1 encoding [off | BaseR | auto]
  5. Save the FEC configuration on the network card.
  6. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

An illustrative case would be a network card unable to achieve link-up with the switch when configured for the preferred FEC mode, such as RS-FEC.

  1. Disconnect the Ethernet cable connecting the two devices.
  2. On the switch, change the FEC mode to BASE-R-FEC.
  3. Save the FEC configuration on the switch.
  4. On the network card, select BASE-R-FEC.
  5. Save the FEC configuration on the network card.
  6. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

QSS changes the FEC mode to BASE-R-FEC.

Workaround 2: Reconfigure the FEC mode on the network card

Workaround Steps

  1. Disconnect the Ethernet cable connecting the two devices.
  2. Disable FEC on the network card.
    $ethtool --set-fec swp1 encoding [off]
  3. Save the FEC configuration.
  4. Change the FEC mode to the preferred FEC mode on the network card (RS-FEC).
  5. Save the FEC configuration.
  6. On the switch, change the FEC mode to RS-FEC.
  7. Save the FEC configuration.
  8. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

    QSS displays the FEC mode as RS-FEC.

FEC mode: Auto-Negotiation

NIC OS platforms: Windows, Linux

Workaround 1: Select the same FEC mode on both devices

Workaround Steps

  1. Disconnect the Ethernet cable connecting the two devices.
  2. Select the same FEC mode (e.g., RD-FEC, BASE-R-FEC) or disable FEC on both devices.
  3. Save the FEC configuration.
  4. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

Workaround 2: Change the FEC mode to All

Workaround Steps

Selecting Auto-Negotiation may result in connection issues on the switch if the connected network card does not comply with the IEEE802.3ap standard.

  1. Disconnect the Ethernet cable connecting the two devices.
  2. Change the FEC mode to All on the switch.
  3. Save the FEC configuration.
  4. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.

Scenario 2: Troubleshooting Discrepancies in QSW-M5216-1T FEC Mode Display

An intermittent discrepancy may occur between the configured FEC mode and the displayed FEC mode on the QSW-M5216-1T switch while in link-up state.

In the following example, changing the FEC mode on a QSW-M5216-1T switch from RS-FEC to Disable resulted in a discrepancy between the configured and displayed modes in QSS. While the actual FEC mode was disabled, QSS continued to show RS-FEC.

Workaround

  1. Disconnect the Ethernet cable connecting the two devices.
  2. Securely plug the Ethernet cable to an available port on the switch and then connect the other end of the Ethernet cable to the network card port.
  3. Log in to QSS.
  4. Go to Configuration > Port Management > Port Status.

QSS displays the configured FEC mode.

Note
This workaround is specific to QNAP QSW-M5216-1T switches and specific compatible network cards. If the issue persists, contact QNAP Customer Service.

Further Reading

Linux network development: Support for FEC encoding control

Was this article helpful?

57% of people think it helps.
Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less

      Choose Your Country or Region

      back to top