rofl0r / microsocks

tiny, portable SOCKS5 server with very moderate resource usage
Other
1.48k stars 266 forks source link

Bandwidth testing tools #68

Closed rezapoorzare1 closed 10 months ago

rezapoorzare1 commented 10 months ago

Hello,

I have a question: It seems that iperf3 is not working with mirosocks 5, do we need to change anything to make them compatible? Which bandwidth testing tools work with microsocks 5?

Thanks

rofl0r commented 10 months ago

It seems that iperf3 is not working with mirosocks

why does it seem that way ? i'm not familiar with iperf3, but if it is a generic tool, it should work.

rezapoorzare1 commented 10 months ago

Thanks a lot for the response. Maybe it is because of mirosocks limitations, what is the maximum data rate that it can support? We are testing it at a very high data rate.

Thanks.

rofl0r commented 10 months ago

there's no built-in limit so it should be able to work with maximum possible speed. the only thing i can think of that might be a bottle-neck is the size of the read buffer in the loop forwarding data back and forth. in another project, pyhttpd, i noticed that the perfect size is 64kb which keeps syscall overhead at a minimum.

anyway, if you tell me in detail why "it seems" that iperf doesnt work, i may be able to provide some clues.

rampageX commented 10 months ago

I made some iperf3 test with microsocks, the conclusion is that the transmission bandwidth is only limited by hardware.

iperf3 direct test on this Gigabit network:950Mbits/950Mbits Server: iperf3 -s -i 10 -p 5201 Client: iperf3 -c 192.168.2.26 -p 5201

iperf3 client: A real PC, Intel 13600k CPU, Windows 11; iperf3 server: Debian 11 on VMWare, same PC as client; microsocks: Test on a router(ASUS RT-AC5300), a Alpine VM(same PC as iperf3 client) and a ARM device(aarch64 4core)

My test method is, On iperf3 client, i use Proxifier to socksify iperf3 with microsocks :

microsocks on Router: Bandwidth 180Mbits/180Mbits, router 2 cores full load; microsocks on ARM device: Bandwidth 300Mbits/300Mbits, device 4 cores full load; microsocks on Alpine VM PC: Bandwidth 900Mbits/900Mbits, a few CPU load;

rezapoorzare commented 10 months ago

Thank you both for the response and guidance.