KORTHVEILSecurity firewall
Guides

Fiber ports (SFP to QSFP28) and jumbo frames

Download as PDF All guides

Korthveil supports fast network cards with module cages:

  • SFP (1 Gb/s), SFP+ (10 Gb/s) and SFP28 (25 Gb/s);
  • QSFP+ (40 Gb/s) and QSFP28 (100 Gb/s).

A cage takes an optical module (fiber), a direct-attach copper cable (DAC), an active optical cable (AOC), or an RJ45 module.

For each port, Korthveil:

  • shows what is plugged in and its live readings;
  • warns when the light or the temperature is at the module's own alarm level;
  • sets safe defaults for fast cards;
  • lets you turn on jumbo frames (larger packets inside your network) with checks that keep every part of the network consistent.

At a glance:

Step Where What
1 Network › Interfaces, zones & routes, open the port See the cage, the module (type, reach, vendor, part number) and its readings, each graded against the module's own levels
2 Same editor, Network card settings Speed, forward error correction (FEC), and the fast-port defaults; leave them on their defaults unless the other end needs otherwise
3 Same editor, MTU (packet size) Standard (1500), or Jumbo frames (9000) for a storage or server network
4 Pending changes Commit with the safety rollback on, then press Keep these settings
5 Same editor, Test jumbo path Check that full-size packets reach a device

Which cards work

The Korthveil system includes the Linux drivers for the common 10, 25, 40 and 100 Gb/s cards:

Make Driver
Intel (X520, X540, X550, X710, XL710, XXV710, E810) ixgbe, i40e, ice
NVIDIA/Mellanox ConnectX mlx4_en, mlx5_core
Broadcom NetXtreme (also the 1 Gb/s tg3) bnxt_en, bnx2x, tg3
Chelsio T4, T5, T6 cxgb4
Marvell/QLogic, Aquantia AQtion qede, qlcnic, atlantic
Solarflare / AMD sfc
Netronome Agilio nfp
Cisco VIC, Emulex OneConnect, AMD Pensando enic, be2net, ionic

The firmware these cards need is part of the system. Use modules and cables that the card's maker supports: some cards refuse other makers' modules. A 10 Gb/s link also needs a matching module and port on the other end.

What the module tells you

The port's card shows the module in one line, for example SFP+ SR, 10GBASE-SR, fiber optic, 850 nm, LC, EXAMPLE OPTICS EX-SFP10G-SR:

  • Type: SFP, SFP+, SFP28, QSFP+, QSFP28.
  • Reach:
    • SR: short reach, multimode fiber;
    • LR: long reach, single-mode;
    • ER and ZR: extended reach;
    • CR: a DAC cable;
    • AOC: an active optical cable.
  • Wavelength, connector, the reach per fiber type, the make and part number, and the serial number (only its last four characters are shown).

Most optics report live readings (digital diagnostics, DOM or DDM):

  • temperature and supply voltage;
  • laser bias;
  • transmit power and receive power, per lane on QSFP modules.

Each reading is graded against the module's own warning and alarm levels: ok, warning, or alarm. No light means nothing is received: check the fiber, clean its connectors, and check that the other end transmits. DAC cables usually report no readings, which is normal.

Alerts

The alert check Fiber and DAC modules is on Monitoring › Alerts. It warns when:

  • a module receives too little light (at or below its own low alarm level, on any lane), or
  • a module is too hot (at or above its own high alarm level).

To avoid false alerts, an alert needs all of these:

  • the module reports its own levels;
  • the value is past the alarm level, not just the warning level;
  • the value stays there for 5 minutes.

The alert clears by itself at the first good reading. Only enabled ports are watched.

In the port's editor, under Network card settings:

  • Speed: Negotiate (auto) is the default and right for almost every link. Some fiber links need a fixed speed (for example a 25 Gb/s port to a 10 Gb/s switch port). Only the speeds the card reports are offered.
  • Forward error correction (FEC):
    • Automatic is right for most links.
    • 25 Gb/s and 100 Gb/s optics usually run RS-FEC.
    • Some 25 Gb/s DAC cables need BASE-R.
    • Both ends of a link must use the same FEC.
  • Flow control and auto-negotiation keep the card's own values unless you change them.

Every change is checked against what the card supports before it is applied: a speed or FEC mode the card does not have is refused with the card's list.

Link guard: a speed, auto-negotiation or FEC change on a port that has a link must bring the link back within 15 seconds. If it does not (the other end does not agree), Korthveil puts the previous setting back and the commit fails, so everything else rolls back too. On the port you manage the firewall through, also keep the safety rollback on when you commit.

Fast-port defaults

On cards of 10 Gb/s and more, Korthveil applies, once, the usual settings for such cards:

  • the receive and transmit rings go up to 4096 (or the card's maximum when that is lower), never down;
  • the queues go up to one per CPU core (at most 16);
  • the queues' interrupts are spread over the cores, one core each.

Offloads (GRO, GSO, TSO) stay as the driver sets them. The port's editor lists each item:

  • applied: the default is in force;
  • default: left as the driver has it;
  • override: set by hand;
  • unsupported: the card cannot.

A value you set by hand always wins. Fast-port defaults: Off keeps the driver's values. Slower ports (1 and 2.5 Gb/s) are never changed. Applying the defaults resets the link for a moment, once.

Jumbo frames

The standard packet size (MTU) is 1500 bytes, and it stays the default. On a network for storage, backups, or servers, jumbo frames (9000 bytes) carry the same data in fewer packets.

Every device, switch port, and VLAN on that network must use jumbo frames too. One device with 1500 on the way drops the large packets.

To turn them on:

  1. Open the port (or bond, bridge, or VLAN) on Network › Interfaces, zones & routes.
  2. Set MTU (packet size) to Jumbo frames (9000). If the card allows less, its maximum is used. Custom takes any value up to the card's maximum.
  3. Commit.

The firewall checks the whole network as you set it:

Case Result
A VLAN larger than its parent port Refused: turn on jumbo frames on the parent first
A bridge whose ports have different MTUs Refused: every port needs the bridge's MTU
A bond member with its own MTU Refused: leave members empty, the bond sets its MTU on them
An internet port above 1500 Warning: most providers carry only 1500

Internet traffic keeps working: when your ports have different MTUs, Korthveil adjusts the TCP packet size (MSS) of connections to the internet to the route's MTU, for IPv4 and IPv6.

Back to Standard (1500) puts 1500 back on the next commit.

Test jumbo path

After committing jumbo frames, use Test jumbo path in the same editor:

  1. Enter the address of one device on that network, for example 192.168.50.20 or fd00:50::20.
  2. Press Test.

The firewall sends three full-size packets that may not be split. At MTU 9000 these carry 8972 bytes of ping data over IPv4 and 8952 over IPv6. The result says one of:

  • the path works;
  • this firewall cannot send that size: its own MTU is smaller;
  • the packets did not come back: a switch or the device has a smaller MTU, or the device does not answer ping, so try a normal ping first.

The test runs only when you press Test.

Good to know

  • Same reach on both ends. An SR module talks only to another SR module over multimode fiber, and an LR module to another LR module over single-mode fiber.
  • Clean before you blame. Dirty fiber connectors are the most common cause of low receive power.
  • Removing a speed or FEC setting leaves the card as it is until the next restart; set the value back explicitly to change it now.
  • Settings, readings and the test work the same for IPv4 and IPv6.

Download as PDF All guides