百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Q

quic-network-simulator

> 编程语言
开源

基于 ns3 的用于 QUIC 测试的网络仿真器

188 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

基于 ns3 的用于 QUIC 测试的网络仿真器

Network Simulator for QUIC benchmarking

This project builds a test framework that can be used for benchmarking and measuring the performance of QUIC implementations under various network conditions. It uses the ns-3 network simulator for simulating network conditions and cross-traffic, and for bridging the real world with the simulated world. It uses docker for isolating and coercing traffic between the client and server to flow through the simulated network.

Framework

The framework uses docker-compose to compose three docker images: the network simulator (as found in the sim directory), and a client and a server (as found in the individual QUIC implementation directories, or for a simple shell, the endpoint directory).

The framework uses two networks on the host machine: leftnet (IPv4 193.167.0.0/24, IPv6 fd00:cafe:cafe:0::/64) and rightnet (IPv4 193.167.100.0/24, IPv6 fd00:cafe:cafe:100::/64). leftnet is connected to the client docker image, and rightnet is connected to the server. The ns-3 simulation sits in the middle and forwards packets between leftnet and rightnet.

…

Building your own QUIC docker image

The endpoint directory contains the base Docker image for an endpoint Docker container. The pre-built image of this container is available on dockerhub.

Follow these steps to set up your own QUIC implementation:

  1. Create a new directory for your implementation (say, my_quic_impl). You will create two files in this directory: Dockerfile and run_endpoint.sh, as described below.

  2. Copy the Dockerfile below and add the commands to build your QUIC implementation.

    dockerfile
    FROM martenseemann/quic-network-simulator-endpoint:latest
    
    # download and build your QUIC implementation
    # [ DO WORK HERE ]
    
    # copy run script and run it
    COPY run_endpoint.sh .
    RUN chmod +x run_endpoint.sh
    ENTRYPOINT [ "./run_endpoint.sh" ]
  3. Now, copy the script below into run_endpoint.sh, and add commands as instructed. Logs should be recorded in /logs for them to be available after simulation completion (more on this later).

…

For an example, have a look at the quic-go setup or the quicly setup.

Running a Simulation

  1. From the quic-network-simulator directory, first build the necessary images:

    bash
    CLIENT=[client directory name] \
    SERVER=[server directory name] \
    docker-compose build

    Note that you will need to run this build command any time you change the client or server implementation, Dockerfile, or run_endpoint.sh file.

    For instance:

    bash
    CLIENT="my_quic_impl" \
    SERVER="another_quic_impl" \
    docker-compose build
  2. You will want to run the setup with a scenario. The scenarios that are currently provided are listed below:

    • Simple point-to-point link, with configurable link properties

    • Single TCP connection running over a configurable point-to-point link

    You can now run the experiment as follows:

    bash
    CLIENT=[client directory name] \
    CLIENT_PARAMS=[params to client] \
    SERVER=[server directory name] \
    SERVER_PARAMS=[params to server] \
    SCENARIO=[scenario] \
    docker-compose up

    SERVER_PARAMS and CLIENT_PARAMS may be omitted if the corresponding QUIC implementations do not require them.

    For instance, the following command runs a simple point-to-point scenario and specifies a command line parameter for only the client implementation:

    bash
    CLIENT="my_quic_impl" \
    CLIENT_PARAMS="-p /10000.txt" \
    SERVER="another_quic_impl" \
    SCENARIO="simple-p2p --delay=15ms --bandwidth=10Mbps --queue=25" \
    docker-compose up

    A mounted directory is provided for recording logs from the endpoints. docker-compose creates a logs/server and logs/client directory from the directory from which it is run. Inside the docker container, the directory is available as /logs.

Debugging and FAQs

  1. With the server (similarly for the client) up and running, you can get a root shell in the server docker container using the following:

    bash
    docker exec -it server /bin/bash

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++network-simulatorquicquic-benchmarking

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言