thunderbolt_net: packets with IP total length 227-230 are dropped (rx_crc_errors) on host-to-host USB4 links
Subsystems (3)
Hi,
on thunderbolt_net host-to-host (XDomain) links we see packets with an IP total length of 227 to 230 bytes being dropped. All other lengths we tested are delivered without loss. TCP, UDP and ICMP are affected alike. The drops show up as rx_crc_errors on the receiving interface; the kernel log stays silent.
It is easy to reproduce with ping between two directly connected hosts:
for s in $(seq 194 206); do
ping -n -q -c 400 -i 0.01 -W 1 -M do -s $s <peer> | tail -2 done
Result on one link, both directions, 400 echoes per size and run:
ping -s IP length 7.3.6 (1st) 7.0.14-30 7.3.6 (2nd) 194-198 222-226 0 lost 0 lost 0 lost 199-202 227-230 1599/1600, 1600/1600, 1599/1600, 1598/1600 1600/1600 1599/1600 203-206 231-234 0 lost 0 lost 0 lost
For 7.0.14-30 both ends of the link were booted into that kernel, so this does not look like a regression between 7.0 and 7.3. The two kernels also come from different bases (see Setup): the 7.0 kernel is Ubuntu-based, the 7.3 kernel is built from the upstream stable branch.
The practical impact: TCP segments of these lengths need retransmissions, and a lost segment is often lost again on retransmit, so connections stall for seconds to minutes while the RTO backs off. In our case this breaks the Ceph monitor quorum, because the monitors regularly exchange 176-byte TCP payloads (IP length 228).
Setup
-----
- 7 identical hosts: GMKtec NucBox K11, AMD Ryzen 9 8945HS, BIOS 1.04 (2026-05-14).
- Both USB4 host routers per host are used: AMD "Pink Sardine" USB4/Thunderbolt NHI #1/#2 [1022:1668] and [1022:1669] (PCI c9:00.5, c9:00.6), generation 4, retimer 0x7fea:0x1032.
- The hosts are cabled as a ring of 7 host-to-host USB4 links (thunderbolt_net, MTU 65520, IPv4 forwarding, OSPF via FRR).
- Kernels: Proxmox VE 7.3.6-1-pve (also seen on 7.3.5-1-pve), which according to Proxmox is built directly from the upstream stable branch on kernel.org rather than from the Ubuntu kernel, and 7.0.14-30-pve, which is still Ubuntu-based. We have not tested a plain kernel.org build or current mainline ourselves.
- Module parameters are the defaults: thunderbolt asym_threshold=45000, bw_alloc_mode=Y, clx=Y, dma_credits=14, dprx_timeout=12000, host_reset=Y, start_icm=N, xdomain=Y; thunderbolt_net e2e=Y.
- Default qdisc fq_codel, no tc filters.
Single-segment test
-------------------
We also used a small test tool (Python, standard library only; we can send it): a TCP client with TCP_NODELAY sends one message of N bytes and waits for a 1-byte reply before the next one, and records per message whether tcpi_total_retrans increased. A UDP sender with DF sends datagrams that the receiver verifies. Packet captures confirmed one segment per message with the intended length. Results on 7.3.6-1, 6 paths (4 direct links in both directions, 2 forwarded via one intermediate host), 100 messages per size, payload pattern (random/fixed) and path:
TCP payload IP length affected (retransmit or no reply within 3 s) 168-174 220-226 0 / 8400
175 227 116 / 1200
176 228 150 / 1200
177 229 158 / 1200
178 230 152 / 1200 179-184, 96, 512 0 / 9600
UDP, IP length 227-230: 254 of 4800 datagrams lost (5.3 %) UDP, IP length 222-226 and 231-234: 0 of 10800 lost No datagram arrived corrupted.
281 of the 576 affected TCP messages got no reply within 3 s; the capture shows up to 10 transmissions of the same segment.
With both ends on 7.0.14-30 the same test on one link gave, for IP length 227-230: TCP 116/800 and 104/800 affected (7.3.6: 66/800 and 80/800), UDP 19/800 and 34/800 lost (7.3.6: 37/800 and 38/800); all other lengths 0.
An earlier UDP sweep over IP total lengths 44-9028 bytes (one datagram per size, 14 link directions) showed losses only at 227 and
229. We found no second affected length range up to about 9000 bytes.
Observations
------------
- All links and both directions are affected, on both host routers.
- Random and fixed payload behave the same in the single-segment test (274/2400 vs. 302/2400 affected TCP messages).
- Echoes of the same size sent back to back (ping) are lost almost every time. Datagrams of the affected sizes interleaved with other sizes at 5 ms spacing are lost in about 5 % of cases, and an already lost TCP segment is lost again much more often than a first transmission. So the sequence of frames seems to matter, not only the length. We do not know why.
- On 5 of 6 paths the loss times of the affected UDP datagrams cluster with a period of about 200 ms.
- Disabling TSO, GSO, tx-checksumming and scatter-gather at runtime on all interfaces did not change the loss (52-minute A/B/A run).
- CLx should not be involved, since tb_port_clx_supported() returns false for XDomain ports.
- With the 14-byte Ethernet header and the 12-byte thunderbolt_net frame header the affected frames are 253 to 256 bytes long. We do not know whether this is related to 256-byte boundaries in the USB4 transport; we only mention it as an observation.
We are happy to run more tests: a current mainline kernel, e2e=N, debug options, or patches.
Thanks,
Karl Fussmann
Signature · 22 lines
THERAPIEZENTRUM M. THIERBACH
Standort Neue Mühle Standort Königs Wusterhausen
Zernsdorfer Str. 14 Heinrich-Heine-Str. 58
15711 Königs Wusterhausen 15711 Königs Wusterhausen
Tel- 03375 - 214 02 61 Tel. 03375 - 290 833
www.physiothierbach.de
Hinweise:
Diese Nachricht und jeder übermittelte Anhang beinhaltet vertrauliche Informationen und ist nur für die Personen oder das Unternehmen bestimmt, an welche sie tatsächlich gerichtet ist. Sollten Sie nicht der Bestimmungsempfänger sein, weisen wir Sie darauf hin, dass die Verbreitung, das (auch teilweise) Kopieren sowie der Gebrauch der empfangenen E-Mail und der darin enthaltenen Informationen gesetzlich verboten ist und gegebenenfalls Schadensersatzpflichten auslösen kann. Sollten Sie diese Nachricht aufgrund eines Übermittlungsfehlers erhalten haben, bitten wir Sie den Sender unverzüglich hiervon in Kenntnis zu setzen.
Sicherheitswarnung: Bitte beachten Sie, dass das Internet kein sicheres Kommunikationsmedium ist. Obwohl wir im Rahmen unseres Qualitätsmanagements und der gebotenen Sorgfalt Schritte eingeleitet haben um einen Computervirenbefall weitestgehend zu verhindern, können wir wegen der Natur des Internets das Risiko eines Computervirenbefalls dieser E-Mail nicht ausschliessen.
Bei den genannten Standorten handelt es sich um einzelne, unabhängige Unternehmen innerhalb einer Kooperation. Bitte wenden Sie sich, im Fall von Fragen, an das jeweils für Sie zuständige Unternehmen.
--
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.comHi,
Quoted 113 lines · Karl Fussmann CFO
Hi,
on
thunderbolt_nethost-to-host (XDomain) links we see packets with an IP total length of 227 to 230 bytes being dropped. All other lengths we tested are delivered without loss. TCP, UDP and ICMP are affected alike. The drops show up asrx_crc_errorson the receiving interface; the kernel log stays silent.It is easy to reproduce with ping between two directly connected hosts:
for s in $(seq 194 206); do
ping -n -q -c 400 -i 0.01 -W 1 -M do -s $s <peer> | tail -2 doneResult on one link, both directions, 400 echoes per size and run:
ping -s IP length 7.3.6 (1st) 7.0.14-30 7.3.6 (2nd) 194-198 222-226 0 lost 0 lost 0 lost 199-202 227-230 1599/1600, 1600/1600, 1599/1600, 1598/1600 1600/1600 1599/1600 203-206 231-234 0 lost 0 lost 0 lost
For 7.0.14-30 both ends of the link were booted into that kernel, so this does not look like a regression between 7.0 and 7.3. The two kernels also come from different bases (see Setup): the 7.0 kernel is Ubuntu-based, the 7.3 kernel is built from the upstream stable branch.
The practical impact: TCP segments of these lengths need retransmissions, and a lost segment is often lost again on retransmit, so connections stall for seconds to minutes while the RTO backs off. In our case this breaks the Ceph monitor quorum, because the monitors regularly exchange 176-byte TCP payloads (IP length 228).
Setup
-----
- 7 identical hosts: GMKtec NucBox K11, AMD Ryzen 9 8945HS, BIOS 1.04 (2026-05-14).
- Both USB4 host routers per host are used: AMD "Pink Sardine" USB4/Thunderbolt NHI #1/#2 [1022:1668] and [1022:1669] (PCI c9:00.5, c9:00.6), generation 4, retimer 0x7fea:0x1032.
- The hosts are cabled as a ring of 7 host-to-host USB4 links (thunderbolt_net, MTU 65520, IPv4 forwarding, OSPF via FRR).
- Kernels: Proxmox VE 7.3.6-1-pve (also seen on 7.3.5-1-pve), which according to Proxmox is built directly from the upstream stable branch on kernel.org rather than from the Ubuntu kernel, and 7.0.14-30-pve, which is still Ubuntu-based. We have not tested a plain kernel.org build or current mainline ourselves.
- Module parameters are the defaults: thunderbolt asym_threshold=45000, bw_alloc_mode=Y, clx=Y, dma_credits=14, dprx_timeout=12000, host_reset=Y, start_icm=N, xdomain=Y;thunderbolt_nete2e=Y.
- Default qdiscfq_codel, no tc filters.Single-segment test
-------------------
We also used a small test tool (Python, standard library only; we can send it): a TCP client withTCP_NODELAYsends one message of N bytes and waits for a 1-byte reply before the next one, and records per message whethertcpi_total_retransincreased. A UDP sender with DF sends datagrams that the receiver verifies. Packet captures confirmed one segment per message with the intended length. Results on 7.3.6-1, 6 paths (4 direct links in both directions, 2 forwarded via one intermediate host), 100 messages per size, payload pattern (random/fixed) and path:TCP payload IP length affected (retransmit or no reply within 3 s) 168-174 220-226 0 / 8400
175 227 116 / 1200
176 228 150 / 1200
177 229 158 / 1200
178 230 152 / 1200 179-184, 96, 512 0 / 9600UDP, IP length 227-230: 254 of 4800 datagrams lost (5.3 %) UDP, IP length 222-226 and 231-234: 0 of 10800 lost No datagram arrived corrupted.
281 of the 576 affected TCP messages got no reply within 3 s; the capture shows up to 10 transmissions of the same segment.
With both ends on 7.0.14-30 the same test on one link gave, for IP length 227-230: TCP 116/800 and 104/800 affected (7.3.6: 66/800 and 80/800), UDP 19/800 and 34/800 lost (7.3.6: 37/800 and 38/800); all other lengths 0.
An earlier UDP sweep over IP total lengths 44-9028 bytes (one datagram per size, 14 link directions) showed losses only at 227 and
229. We found no second affected length range up to about 9000 bytes.Observations
------------
- All links and both directions are affected, on both host routers.
- Random and fixed payload behave the same in the single-segment test (274/2400 vs. 302/2400 affected TCP messages).
- Echoes of the same size sent back to back (ping) are lost almost every time. Datagrams of the affected sizes interleaved with other sizes at 5 ms spacing are lost in about 5 % of cases, and an already lost TCP segment is lost again much more often than a first transmission. So the sequence of frames seems to matter, not only the length. We do not know why.
- On 5 of 6 paths the loss times of the affected UDP datagrams cluster with a period of about 200 ms.
- Disabling TSO, GSO, tx-checksumming and scatter-gather at runtime on all interfaces did not change the loss (52-minute A/B/A run).
- CLx should not be involved, sincetb_port_clx_supported()returns false for XDomain ports.
- With the 14-byte Ethernet header and the 12-bytethunderbolt_netframe header the affected frames are 253 to 256 bytes long. We do not know whether this is related to 256-byte boundaries in the USB4 transport; we only mention it as an observation.
Quoted 2 lines
We are happy to run more tests: a current mainline kernel, e2e=N, debug options, or patches.
I tried to reproduce on my Intel hardware following your steps on v7.4-rc5 but no packets were dropped. This suggest to me that it may be related to AMD hardware so I'm adding the AMD experts here to comment.
Quoted 116 lines · Mika Westerberg
Hi,
Quoted 113 lines · Karl Fussmann CFO
Hi,
on
thunderbolt_nethost-to-host (XDomain) links we see packets with an IP total length of 227 to 230 bytes being dropped. All other lengths we tested are delivered without loss. TCP, UDP and ICMP are affected alike. The drops show up asrx_crc_errorson the receiving interface; the kernel log stays silent.It is easy to reproduce with ping between two directly connected hosts:
for s in $(seq 194 206); do
ping -n -q -c 400 -i 0.01 -W 1 -M do -s $s <peer> | tail -2 doneResult on one link, both directions, 400 echoes per size and run:
ping -s IP length 7.3.6 (1st) 7.0.14-30 7.3.6 (2nd) 194-198 222-226 0 lost 0 lost 0 lost 199-202 227-230 1599/1600, 1600/1600, 1599/1600, 1598/1600 1600/1600 1599/1600 203-206 231-234 0 lost 0 lost 0 lost
For 7.0.14-30 both ends of the link were booted into that kernel, so this does not look like a regression between 7.0 and 7.3. The two kernels also come from different bases (see Setup): the 7.0 kernel is Ubuntu-based, the 7.3 kernel is built from the upstream stable branch.
The practical impact: TCP segments of these lengths need retransmissions, and a lost segment is often lost again on retransmit, so connections stall for seconds to minutes while the RTO backs off. In our case this breaks the Ceph monitor quorum, because the monitors regularly exchange 176-byte TCP payloads (IP length 228).
Setup
-----
- 7 identical hosts: GMKtec NucBox K11, AMD Ryzen 9 8945HS, BIOS 1.04 (2026-05-14).
- Both USB4 host routers per host are used: AMD "Pink Sardine" USB4/Thunderbolt NHI #1/#2 [1022:1668] and [1022:1669] (PCI c9:00.5, c9:00.6), generation 4, retimer 0x7fea:0x1032.
- The hosts are cabled as a ring of 7 host-to-host USB4 links (thunderbolt_net, MTU 65520, IPv4 forwarding, OSPF via FRR).
- Kernels: Proxmox VE 7.3.6-1-pve (also seen on 7.3.5-1-pve), which according to Proxmox is built directly from the upstream stable branch on kernel.org rather than from the Ubuntu kernel, and 7.0.14-30-pve, which is still Ubuntu-based. We have not tested a plain kernel.org build or current mainline ourselves.
- Module parameters are the defaults: thunderbolt asym_threshold=45000, bw_alloc_mode=Y, clx=Y, dma_credits=14, dprx_timeout=12000, host_reset=Y, start_icm=N, xdomain=Y;thunderbolt_nete2e=Y.
- Default qdiscfq_codel, no tc filters.Single-segment test
-------------------
We also used a small test tool (Python, standard library only; we can send it): a TCP client withTCP_NODELAYsends one message of N bytes and waits for a 1-byte reply before the next one, and records per message whethertcpi_total_retransincreased. A UDP sender with DF sends datagrams that the receiver verifies. Packet captures confirmed one segment per message with the intended length. Results on 7.3.6-1, 6 paths (4 direct links in both directions, 2 forwarded via one intermediate host), 100 messages per size, payload pattern (random/fixed) and path:TCP payload IP length affected (retransmit or no reply within 3 s) 168-174 220-226 0 / 8400
175 227 116 / 1200
176 228 150 / 1200
177 229 158 / 1200
178 230 152 / 1200 179-184, 96, 512 0 / 9600UDP, IP length 227-230: 254 of 4800 datagrams lost (5.3 %) UDP, IP length 222-226 and 231-234: 0 of 10800 lost No datagram arrived corrupted.
281 of the 576 affected TCP messages got no reply within 3 s; the capture shows up to 10 transmissions of the same segment.
With both ends on 7.0.14-30 the same test on one link gave, for IP length 227-230: TCP 116/800 and 104/800 affected (7.3.6: 66/800 and 80/800), UDP 19/800 and 34/800 lost (7.3.6: 37/800 and 38/800); all other lengths 0.
An earlier UDP sweep over IP total lengths 44-9028 bytes (one datagram per size, 14 link directions) showed losses only at 227 and
229. We found no second affected length range up to about 9000 bytes.Observations
------------
- All links and both directions are affected, on both host routers.
- Random and fixed payload behave the same in the single-segment test (274/2400 vs. 302/2400 affected TCP messages).
- Echoes of the same size sent back to back (ping) are lost almost every time. Datagrams of the affected sizes interleaved with other sizes at 5 ms spacing are lost in about 5 % of cases, and an already lost TCP segment is lost again much more often than a first transmission. So the sequence of frames seems to matter, not only the length. We do not know why.
- On 5 of 6 paths the loss times of the affected UDP datagrams cluster with a period of about 200 ms.
- Disabling TSO, GSO, tx-checksumming and scatter-gather at runtime on all interfaces did not change the loss (52-minute A/B/A run).
- CLx should not be involved, sincetb_port_clx_supported()returns false for XDomain ports.
- With the 14-byte Ethernet header and the 12-bytethunderbolt_netframe header the affected frames are 253 to 256 bytes long. We do not know whether this is related to 256-byte boundaries in the USB4 transport; we only mention it as an observation.
Quoted 6 lines
Quoted 2 lines
We are happy to run more tests: a current mainline kernel, e2e=N, debug options, or patches.
I tried to reproduce on my Intel hardware following your steps on v7.4-rc5 but no packets were dropped. This suggest to me that it may be related to AMD hardware so I'm adding the AMD experts here to comment.
That hardware has been stable a while, and you're the first person I've heard about this. My initial thought would be hardware issue. And not necessarily a single system issue (since you said same thing across 7 identical systems - GMKtec NucBox K11, AMD Ryzen 9 8945HS).
Are these high quality USB4 cables you're using? Or could they be cheapo ones? Is the retimer firmware up to date with what the OEM provides?