-
Notifications
You must be signed in to change notification settings - Fork 847
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
Network packet discrepancy/drop between Windows Host and WSL2 #10989
Comments
Open similar issues:
Closed similar issues:
|
Hi. Can you please collect networking logs by following the instructions below? |
Hi I ran the experiment while collecting networking logs per instruction. See attached: |
I should note that in the above experiment with the attached networking logs, there was a 1.6% packet loss, but in the host pcap there was 0% loss, you can verify that in the |
Is there any update on this? |
Some issue here |
Windows Version
Microsoft Windows [Version 10.0.22621.2861]
WSL Version
2.0.0.0 & 2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-microsoft-standard-WSL2 (2.0.0.0)
5.15.133.1-microsoft-standard-WSL2 (2.0.14.0)
Distro Version
Ubuntu 22.04.3 LTS
Other Software
Wireshark
tcpdump (on wsl2)
Cygwin + ping
Repro Steps
sudo tcpdump -w /tmp/wsl2.pcap -i eth1 host 1.1.1.1 and icmp
host 1.1.1.1 and icmp
sudo ping -c 1000 -f 1.1.1.1
c:\temp\windowshost.pcap
)Expected Behavior
0% packet loss
Actual Behavior
Diagnostic Logs
From the above steps it isn't apparent that packets are being dropped from the Host to the WSL2 VM. However the following attachment
pcaps.zip
contains the wsl2 pcap and the windows host pcap.
Here is the number of packets captured from both:
In
windowshost.pcap
a 1000 ICMP echo requests were sent, and a 1000 ICMP echo response were received; indicating 0% packet loss.In
wsl2.cap
a 1000 ICMP echo requests were sent, but only 976 ICMP echo replies were received, which accounts for the 2.4% packet loss.Somehow 24 packets were dropped between the host and the WSL2 VM.
This is consistently repeatable on the Windows host that is connected by Wifi and usually the packet loss ranges between 2-20% - when there's no connectivity or congestion issue between host/router/upstream.
However, I've found this issue only seems to manifest when pinging an Internet host such as
1.1.1.1
or8.8.8.8
. For example, aping -c 1000 -f 192.168.0.1
to the Wifi router always yields 0% loss. But as we can see from the packet capture from the Windows host this is not an upstream or a router issue, since both the 1000 requests and 1000 responses do arrive on the Internet facing network adapter. I've also double verified that there's 0% packet loss between Windows Host and1.1.1.1
and8.8.8.8
by confirming with Cygwin and its bundled version ofping
.The text was updated successfully, but these errors were encountered: