add measures
All checks were successful
Build and Deploy MITM Webserver / traffic_target (push) Successful in 0s
Build and Deploy MITM Webserver / build (push) Successful in 10s

This commit is contained in:
2026-05-08 23:42:14 +02:00
parent c9c1d346fd
commit 6e7a1ccb1b
184 changed files with 111859 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
$ sockperf ping-pong -i 10.11.11.2 --time 30 --port 11112 --udp
STDOUT
ping-pong (pp): Run sockperf client for latency test in ping pong mode.
Usage: sockperf ping-pong [options] [args]...
sockperf ping-pong -i ip [-p port] [-m message_size] [-t time]
sockperf ping-pong -f file [-F s/p/e] [-m message_size] [-r msg_size_range] [-t time]
Options:
-h,-? --help,--usage -Show the help message and exit.
--tcp -Use TCP protocol (default UDP).
-i --ip -Listen on/send to ip <ip>.
-p --port -Listen on/connect to port <port> (default 11111).
-f --file -Read list of connections from file (used in pair with -F option).
-F --iomux-type -Type of multiple file descriptors handle [s|select|p|poll|e|epoll|r|recvfrom|x|socketxtreme](default epoll).
--timeout -Set select/poll/epoll timeout to <msec>, -1 for infinite (default is 10 msec).
-a --activity -Measure activity by printing a '.' for the last <N> messages processed.
-A --Activity -Measure activity by printing the duration for last <N> messages processed.
--tcp-avoid-nodelay -Stop/Start delivering TCP Messages Immediately (Enable/Disable Nagel). Default is Nagel Disabled except in Throughput where the default is Nagel enabled.
--tcp-skip-blocking-send
-Enables non-blocking send operation (default OFF).
--tos -Allows setting tos
--mc-rx-if -Set address <ip> of interface on which to receive mulitcast messages (can be other then route table).
--mc-tx-if -Set address <ip> of interface on which to transmit mulitcast messages (can be other then route table).
--mc-loopback-enable -Enables mc loopback (default disabled).
--mc-ttl -Limit the lifetime of the message (default 2).
--mc-source-filter -Set address <ip, hostname> of mulitcast messages source which is allowed to receive from.
--uc-reuseaddr -Enables unicast reuse address (default disabled).
--lls -Turn on LLS via socket option (value = usec to poll).
--buffer-size -Set total socket receive/send buffer <size> in bytes (system defined by default).
--nonblocked -Open non-blocked sockets.
--recv_looping_num -Set sockperf to loop over recvfrom() until EAGAIN or <N> good received packets, -1 for infinite, must be used with --nonblocked (default 1).
--dontwarmup -Don't send warm up messages on start.
--pre-warmup-wait -Time to wait before sending warm up messages (seconds).
--vmazcopyread -Use VMA's zero copy reads API (See VMA's readme).
--daemonize -Run as daemon.
--no-rdtsc -Don't use register when taking time; instead use monotonic clock.
--load-vma -Load VMA dynamically even when LD_PRELOAD was not used.
--rate-limit -use rate limit (packet-pacing), with VMA must be run with VMA_RING_ALLOCATION_LOGIC_TX mode.
--set-sock-accl -Set socket accleration before run (available for some of Mellanox systems)
-d --debug -Print extra debug information.
Valid arguments:
--srv-num -Set num of servers the client works with to N.
--sender-affinity -Set sender thread affinity to the given core ids in list format (see: cat /proc/cpuinfo).
--receiver-affinity -Set receiver thread affinity to the given core ids in list format (see: cat /proc/cpuinfo).
--full-log -Dump full log of all messages send/receive time to the given file in CSV format.
--full-rtt -Show results in round-trip-time instead of latency.
--giga-size -Print sizes in GigaByte.
--increase_output_precision
-Increase number of digits after decimal point of the throughput output (from 3 to 9).
--dummy-send -Use VMA's dummy send API instead of busy wait, must be higher than regular msg rate.
optional: set dummy-send rate per second (default 10,000), usage: --dummy-send [<rate>|max]
-t --time -Run for <sec> seconds (default 1, max = 36000000).
--client_port -Force the client side to bind to a specific port (default = 0).
--client_ip -Force the client side to bind to a specific ip address (default = 0).
-b --burst -Control the client's number of a messages sent in every burst.
--mps -Set number of messages-per-second (default = 10000 - for under-load mode, or max - for ping-pong and throughput modes; for maximum use --mps=max;
support --pps for old compatibility).
-m --msg-size -Use messages of size <size> bytes (minimum default 14).
-r --range -comes with -m <size>, randomly change the messages size in range: <size> +- <N>.
--data-integrity -Perform data integrity test.
STDERR