Create maximum wifi activity through 1 computer

I need to create a very high level of wifi activity for research, to make sure that very close proximity to the transceiver can adversely affect the development of bee colonies.

I tried to write an application that spawns several web server-client-socket pairs for the continuous transfer of medium-sized files (this approach reaches> 100 MB). However, we want to run this on a single computer connected to a Wi-Fi router, so packets invariably end with routing through the loopback interface, rather than WLAN.

As an alternative, I tried to use either simple ping floods, and the router freezing, but this does not give almost the maximum bandwidth the router is capable of.

Is there a quick fix for linux to force network traffic? The computer we use has both ethernet and wireless interface, and I found one stream on the Internet that suggested setting up iptables to force traffic between the two interfaces and to avoid circuit.

+7
python linux curl wifi bandwidth
source share
1 answer

Just sending packets as quickly as possible to a random destination (i.e. not localhost) should work.

You will need to use udp (otherwise you need a connection confirmation before sending the data).

cat /dev/urandom | pv | nc -u 1.1.1.1 9123

pv is optional (but enjoyable).

You can also use /dev/zero , but there may be a risk of compression at the channel level.

Of course, make sure that the router is not really connected to the Internet (you do not want to flood the server somewhere!), And that your computer has a router as the default route.

+1
source share

All Articles