#217·Nginx

Significant QUIC single-stream rate drop with 100ms ACK delay using tc in a 1Gbps LAN

Author: wdj55556Created Sep 27, 2024Updated Sep 30, 2026
Labelsbug

Environment

nginx version: nginx/1.27.2 built by gcc 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04) built with OpenSSL 1.1.1f 31 Mar 2020 TLS SNI support enabled configure arguments: --user=*** --group=*** --prefix=/usr/local/nginx --with-pcre --with-http_v2_module --with-stream --with-stream_ssl_module --with-http_ssl_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_sub_module --with-http_flv_module --with-http_addition_module --with-http_realip_module --with-http_mp4_module --with-ld-opt=-Wl,-E --with-cc-opt=-Wno-error --with-ld-opt=-ljemalloc --with-http_dav_module --with-http_v3_module --with-cc=c++ --with-cc-opt='-I../boringssl/include -x c' --with-ld-opt='-L../boringssl/build/ssl -L../boringssl/build/crypto' Linux ***-System-Product-Name 5.15.0-122-generic #132~20.04.1-Ubuntu SMP Fri Aug 30 15:50:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Description

I'm encountering a significant performance issue with QUIC in a 1Gbps LAN environment. When I introduce a 100ms delay using the tc command on the receiving end (affecting only ACKs), the QUIC single-stream throughput drops dramatically from ~900Mbps to ~5Mbps.

Test Environment:

Network: 1Gbps LAN Receiving End: tquic Sending End: Nginx server configured to support QUIC tc command: Applied on the receiving end to introduce a 100ms delay affecting only ACKs.

nginx configuration

worker_processes  1;

events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout  65;

 server {
        listen 8080 quic reuseport;
        server_name  localhost;


        add_header Alt-Svc 'h3=":443"; ma=86400';
        # HSTS
        add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";

        ssl_certificate /usr/local/nginx/cert/server.crt;
        ssl_certificate_key /usr/local/nginx/cert/server.key;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1.2 TLSv1.3;
        ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
        ssl_prefer_server_ciphers on;

         location / {
            root html;
       }

        error_page   500 502 503 504  /50x.html;
 location = /50x.html {
            root   html;
        }
      }
}