#udp #traffic #generator #cli #udp-client #client

bin+lib udp_traffic_generator

A tool to generate UDP traffic

6 releases

0.2.0 May 23, 2023
0.1.4 Dec 21, 2022
0.1.3 Aug 6, 2022

#11 in #udp-client

Apache-2.0

17KB
269 lines

DEPRECATION NOTICE

Switch to crab-net with <TCP|UDP> + TLS support.

Rust UDP Traffic Generator

A CLI tool to generate UDP and DTLS traffic based on Tokio framework.

Cargo Install

cargo install udp_traffic_generator

Help

./udp_traffic_generator --help
Simple stress test for UDP Server

Usage: udp_traffic_generator [OPTIONS] --destination <addr>

Options:
  -d, --destination <addr>     Server address as IP:PORT
  -c, --connections <clients>  Number of clients to simulate [default: 1]
  -l, --length <length>        Payload size as bytes [default: 16]
  -r, --rate <rate>            Defined as packets/sec [default: 1]
  -p, --port <port>            Starting source port for clients [default: 8000]
  -w, --workers <workers>      Number of worker threads for the Tokio runtime [default: #CPU core]
  -s, --timeout <timeout>      Timeout between consecutive connections spawn as ms [default: 50]
      --dtls <dtls>            Send data over DTLS [default: false] [possible values: true, false]
      --ca <ca>                PEM File to validate server credentials
  -h, --help                   Print help
  -V, --version                Print version

Dependencies

~8–21MB
~315K SLoC