1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples/benchmark_udp
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
main.c examples/benchmark_udp: add example for UDP benchmark 2021-09-02 23:12:31 +02:00
Makefile examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md examples/benchmark_udp: add example for UDP benchmark 2021-09-02 23:12:31 +02:00

UDP Benchmark

This example uses the benchmark_udp module to create a stress-test for the RIOT network stack.

This firmware will act as a client and connect to the benchmark server you can find in dist/tools/benchmark_udp.

Setup on Hardware

Determine the address of your host machine that will communicate with the RIOT node. This could be the address of your ethernet interface, or fd00:dead:beef::1 if you used the gnrc_border_router example and want to run the benchmark on a 6LoWPAN node.

You can either start the benchmark manually by using the bench_udp start shell command or you can configure it to start automatically:

USEMODULE += auto_init_benchmark_udp
CFLAGS += -DBENCH_SERVER_DEFAULT=\"fd00:dead:beef::1\"

Setup on RIOT native

First, make sure you've compiled the application by calling make.

Now, create a tap interface:

sudo ip tuntap add tap0 mode tap user ${USER}
sudo ip link set tap0 up

If you only have a single tap device you can just use the broadcast address

bench_udp start ff02::1

Otherwise use the link-local address of the tapbr0 interface (if you did set up the tap devices using tapsetup.

Running the benchmark server

To run the benchmark server on your host machine, follow the instructions found in

dist/tools/benchmark_udp