Skip to content

tquic_client 性能测试时单线程多并发连接使用了相同了源 IP、端口 #451

Open
@fbwfbi

Description

@fbwfbi

Describe the bug
参照网页 https://tquic.net/zh/docs/further_readings/benchmark 配置短连接压测场景,发现请求成功数量大幅降低,抓包发现单线程(进程)一直使用相同源 IP、源端口发送 Initial 包,即实际上没有使用并发连接。

To Reproduce
使用如下脚本测试,单线程三个并发连接

#!/bin/bash

threads=1
max_concurrent_conns=3
max_requests_per_conn=1
max_concurrent_requests=1
send_udp_payload_size=1200
duration=15
handshake_timeout=15000
idle_timeout=15000

./tquic_client  --total-requests-per-thread 0 --connection-failure-threshold 1000000000000 --log-level INFO --disable-stateless-reset \
    --threads ${threads} \
    --max-concurrent-conns ${max_concurrent_conns} \
    --max-requests-per-conn ${max_requests_per_conn} \
    --max-concurrent-requests ${max_concurrent_requests} \
    --send-udp-payload-size ${send_udp_payload_size} \
    --duration ${duration} \
    --handshake-timeout ${handshake_timeout} \
    --idle-timeout ${idle_timeout} \
    https://x.x.x.x.6:55443/test

Expected behavior
同一个线程能同时使用三个不同的连接来发起 QUIC 请求

Screenshots

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions