Host computer
Host setup
Addresses
| Host port | Host address | Board address | Carries |
|---|---|---|---|
| connected to FO1 | 192.168.67.10/24 | 192.168.67.2 | RX A and RX B (UDP 10700), board control (TCP 5025) |
| connected to FO2 | 192.168.68.10/24 | 192.168.68.2 | RX C and RX D (UDP 10701) |
Interface settings
| Setting | Value | Reason |
|---|---|---|
| MTU | 9000 | the IPv4 packet has 8252 bytes |
| Receive ring | maximum of the card (ethtool -g) | absorbs short stalls of the application |
| Ethernet pause frames | off | a pause frame from the host stops the stream until the next debug on |
net.core.rmem_max | 268435456 | the host libraries ask for a 256 MB socket buffer per link, about 0.25 s of data |
sudo ip link set <FO1 interface> mtu 9000
sudo ip link set <FO2 interface> mtu 9000
sudo ethtool -G <FO1 interface> rx 8192
sudo ethtool -G <FO2 interface> rx 8192
sudo ethtool -A <FO1 interface> autoneg off rx off tx off
sudo ethtool -A <FO2 interface> autoneg off rx off tx off
sudo sysctl -w net.core.rmem_max=268435456
The settings are lost on a restart of the host. optimize_eth_config.sh <FO1 interface> <FO2 interface> in host-tools applies all of them.
PCIe
Both links together carry 16.1 Gb/s over the PCIe bus of a dual-port card.
| Card and slot | Result |
|---|---|
| PCIe 3.0, x4 or wider | both links without loss |
| PCIe 2.0, x8 | both links without loss |
| PCIe 2.0, x4 | about 13 Gb/s: about 18 % of the datagrams lost with both links; one link alone works |
- A PCIe 2.0 lane carries 4 Gb/s of data; four lanes give 16 Gb/s before protocol overhead.
- Many slots are mechanically x16 with four lanes wired.
Negotiated link of the card, readable by any user:
cat /sys/class/net/<interface>/device/current_link_speed
cat /sys/class/net/<interface>/device/current_link_width
current_link_speed | PCIe generation | current_link_width needed for both links |
|---|---|---|
| 2.5 GT/s | 1.x | not sufficient (2 Gb/s per lane) |
| 5.0 GT/s | 2.0 | 8 |
| 8.0 GT/s or more | 3.0 or later | 4 |
The same two values are in the LnkSta line of sudo lspci -vv for the card. lspci shows that line only to root.
Tested cards: Tested 10 GbE hardware.
Symptoms
| Symptom | Cause |
|---|---|
| No datagrams received | MTU below 9000, wrong host address, a firewall on UDP 10700 and 10701, or another program holds the ports |
| The stream stops after about 280 datagrams | Ethernet pause frames are on |
| A constant share of datagrams lost on both links | PCIe link too narrow |
Single datagrams lost, CRC errors counted by the card (ethtool -S) | optical power too low: dirty connector or damaged fibre |
Loss only while capturing with Wireshark or dumpcap | the host loses frames while writing; see Wireshark dissector |