-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lagscope reports lower RTT latency in VM (WSL2) than in Windows host if using lagscope as receiver, but vice versa when using latte as receiver #41
Comments
This is most likely a Windows bug, no? Completely different network stacks involved in each case. |
WSL2 need to go thru the host via NAT before going out to the wire. The fact that the previous ping cmd experiment appears showing the expected behavior (i.e. host has lower RTT latency than the VM) indicates that the lagscope may be the highly suspect. |
Yeah, would have to profile it to see what's going on--never touched the code myself. |
Hi @santoshx, I attached .csv and console output log from both the host and the VM. Are these data sufficient to find out why lagscope reports low RTT latency from VM than from the Host ?
winHost_lagscope_console_output_run0.txt wsaVM_lagscope_console_output_run0.txt |
I have a new interesting data - If using https://github.com/microsoft/latte running as receiver, I'm getting expected result i.e. window host reported lower RTT latency than in VM. lagscope as sender --> lagscope as receiver - issue: VM reports lower RTT latency than Host. There is an address translation logic between host and VM (whether via NAT or FSE), and that for sure has overhead. So it makes logical sense for VM to have higher RTT latency than host. I'll update with the logs. |
@santoshx , here are the logs from both the Host and VM showing not repro when using latte as receiver. VM: Host: |
I could not repro this on my first attempt. |
Is it WSL or WSL2? WSL and WSL2 are totally different - https://docs.microsoft.com/en-us/windows/wsl/compare-versions FYI, I am using WSA (Windows Subsystem for Android), which is running Microsoft linux kernel, same as WSL2 running microsoft linux kernel. |
Seems like I have the WSL1.
I'll try with WSL2 and get back. |
Running two individual experiments:
Running lagscope from WSL2 VM targeting a remote (windows) device.
Running lagscope from the Windows host (of WSL2) targeting the same remote device.
lagscope reports lower RTT latency from WSL2 than from the host. Ran several runs and they all show consistent result. The expected behavior should have been that the host has lower RTT latency than from the VM.
See attached logs below.
winHost_lagscope_100Kpings_run2log.txt
wsl2_lagscope_100Kpings_run2log.txt
I tried with 1M pings (default) and saw the same result as well.
However, using the ping cmd showing the opposite result i.e. the host reports lower RTT latency than the WSL2 VM, which appears expected behavior. See below attached.
winHost_ping_1000pings_32bytes_run0.txt
wsl2_ping_1000pings_32bytes_run0.txt
The text was updated successfully, but these errors were encountered: