Closed DruggleY closed 8 months ago
Hmm, that’s weird. I’ve never seen that happen on my local network. 🤔
So do you have any suggestions for debugging this issue?😥
So do you have any suggestions for debugging this issue?😥
Not sure how to debug this. Maybe you could try tcpdump and see what happens.
I found that I performed the same test in a bandwidth environment of 1Gbps, and the bandwidth attenuation was only 850Mbps/943Mbps, that is, about 10% of the bandwidth was attenuated. However, under the 10Gbps network environment, the attenuation is close to 80%. Have you done similar tests in a 10Gbps network environment?😧
The max throughput is related to your CPU performance. In my environment, I can archive 2.5-8Gbps on a 10G cable network depending on the connection numbers.
The number of total TCP connections affects the maximum bandwidth. You can refer this wiki https://github.com/xjasonlyu/tun2socks/wiki/Benchmarks for details.
I should have also used 10 connections during the test, and the CPU usage was up to 760%. If this does not reach the upper limit based on the number of cores, is it possible that this is related to the CPU clock speed, that is, a CPU with a higher clock speed may be required to further increase its bandwidth.
Yeah, I think it is possible too.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Verify steps
Version
2.5.1
What OS are you seeing the problem on?
Linux
Description
I have three devices under the same LAN, and the communication bandwidth between them is close to 10Gbps. When I use one of the servers as a gateway to communicate based on tun2socks, the bandwidth has been greatly attenuated. The details are as follows:
CPU: Intel(R) Xeon(R) Silver 4109T CPU @ 2.00GHz, 32c Mem: 128GB Device IP: 192.168.3.101, 192.168.3.103, 192.168.3.104
Raw Speed
From 101 to 104
From 104 To 103
From 101 To 103
With Tun2Socks
I run tun2socks on the 104 device, the relevant commands are as follows
Then I enabled the network card and configured the routing in another window
At this point, when I re-run iperf3 from 104 to 103
Everything looks fine. However, when I configure the gateway of 101 to 104, run iperf3
The transmission speed between 101 and 103 has dropped significantly.
I want to know is this speed change normal? Is it due to some system configuration or something else?
Attached: sysctl.conf in 101,104:
CLI or Config
No response
Logs
No response
How to Reproduce
No response