My TCP client need to connect to thousands servers (in local network) all at once. Communication is simple. 10 bytes string TCP request, 20 bytes response.
I have gigabit network.
when client connects servers one by one no issues. But when all at once I have success with 1000 servers and others failing with errors: normally no route to host.
My clients running on brandnew NUC with i7. I was tweaking TCP stack :
sysctl -w fs.file-max=100000
mtu 500, 3000, 9000
ulimit -n 32000 2000 3000 5000
But no success. Best I managed to get is 1800 connections Do u know how to overcome this issue?