openvpn: DCO causes 75% packet loss and ~49x TCP throughput regression on ipq807x
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- linux
- Ambito
- networking
Direzione di ricerca
Start by locating the OpenVPN package and its DCO related build or configuration files in this repository; the report does not name specific paths or tests. Reproduce the comparison on qualcommax/ipq807x with DCO enabled and disabled, then investigate the tun0 transmit drops and the packet loss and throughput difference. Done means identifying and fixing the DCO regression, with the reported UDP and TCP tests confirming the result.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Package Name
openvpn
Maintainer
@commodo
OpenWrt Version
25.12.6 (r33311-981c978eff)
OpenWrt Target/Subtarget
qualcommax/ipq807x
Steps to Reproduce
- Use OpenVPN 2.7.7 on an OpenWrt 25.12.6 qualcommax/ipq807x client router with DCO enabled, connecting over UDP/1194 to an OpenVPN server running OpenWrt 25.12.6 on x86/64.
- Confirm the client log contains "DCO device tun0 opened" and "ovpn-dco device [tun0] opened".
- From a Windows PC behind the client router, run:
iperf3.exe -c computer-adress-behindvpn-u -b 5M -l 1200 -t 20
iperf3.exe -ccomputer-adress-behindvpn -t 20
The iperf3 server is a Linux PC behind the VPN server. - Add "disable-dco" to /etc/openvpn/ovpn_client_file.ovpn and restart OpenVPN.
- Confirm the log now says "TUN/TAP device tun0 opened" rather than "DCO device tun0 opened".
- Repeat the exact same iperf3 tests.
Actual Behaviour
With DCO enabled:
- UDP test at 5 Mbps, 1200-byte datagrams: 1.22 Mbps received, 7842/10418 packets lost (75%).
- Single-stream TCP: approximately 2.30 Mbps received.
- tun0 transmit-drop counter increases rapidly during traffic.
With DCO disabled (same hardware, endpoints and server):
- UDP: 4.99 Mbps received, 0/10417 packets lost (0%), jitter 0.846 ms.
- Single-stream TCP: 112 Mbps received (269 MBytes over 20.16 seconds).
Disabling DCO improves TCP throughput by approximately 49x and eliminates the observed UDP loss.
Client: OpenWrt 25.12.6 r33311-981c978eff, qualcommax/ipq807x, OpenVPN 2.7.7, kernel 6.12.112, OpenSSL 3.5.9, AES-256-GCM. Server: OpenWrt 25.12.6 x86/64. The only intentional change during the A/B test was disabling DCO on the client. The first affected OpenWrt version is not established.
Confirmation Checklist
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
- Lingua principale
- Makefile
- Stelle
- 4.7k
- Fork
- 4k
- Merge medio
- 2g 2h
- PR unite (30g)
- 251
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwrt/packages
-
vnstat2: missing keep.d-fileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
rsyslog: missing keep.d-fileApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
openwrt/packages#31307 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
openwrt/packages#31306 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openwrt/packages
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
webtorrent/webtorrent#3131 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100