3 releases

0.0.3 Nov 14, 2024
0.0.2 Jul 6, 2024
0.0.1 May 23, 2023

#1074 in Command line utilities

Download history 3/week @ 2024-09-24 3/week @ 2024-10-08 6/week @ 2024-10-15 1/week @ 2024-10-29 2/week @ 2024-11-05 116/week @ 2024-11-12 12/week @ 2024-11-19 1/week @ 2024-11-26

129 downloads per month

Apache-2.0

27KB
403 lines

Crab Net

A CLI tool to generate TCP/TLS & UDP/DTLS traffic based on Tokio framework.

Cargo Install

cargo install crab-net

Help

./crab-net --help
Simple stress test for servers

Usage: crab-net [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]
      --udp                    Send packets via UDP
      --tls                    Send data over TLS
      --ca <ca>                PEM File to validate server credentials
  -h, --help                   Print help
  -V, --version                Print version

Dependencies

~7–21MB
~340K SLoC