Skip to content
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

WSL2 can't receive jumbo frames when using a VPN with a 9000 MTU and mirrored network. #11686

Closed
1 of 2 tasks
oldshensheep opened this issue Jun 12, 2024 · 6 comments
Closed
1 of 2 tasks

Comments

@oldshensheep
Copy link

oldshensheep commented Jun 12, 2024

Windows Version

Microsoft Windows [Version 10.0.26100.712]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.153.1

Distro Version

ArchLinux

Other Software

No response

Repro Steps

  1. Connect to a VPN with 9000 MTU
  2. In WSL, ping -s2000 1.1.1.1

Expected Behavior

can ping

Actual Behavior

PING 1.1.1.1 (1.1.1.1) 2000(2028) bytes of data.
^C
--- 1.1.1.1 ping statistics ---
26 packets transmitted, 0 received, 100% packet loss, time 26019ms

Actually, it does get reply:
image

Diagnostic Logs

No response

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@oldshensheep
Copy link
Author

oldshensheep commented Jun 12, 2024

I have conducted some experiments:

With MTU 1500:

> curl http://google.com --trace - -L
Successfully received a 301 redirect to www.google.com and downloaded.

With MTU 9000:

> curl http://google.com --trace - -L
Successfully received a 301 redirect but failed to download.

If you use Wireshark, you will observe that all jumbo packets are being ignored. This is why the TCP connection is successfully established, and the HTTP 301 response (825B) can be received, but the webpage from 'www.google.com' (which consists of multiple packets, with the largest being 8203B) cannot be fetched.

If you are using a VPN with an MTU of 9000 and cannot change the VPN configuration, there is a workaround:

Choose the right interface:

> ip a 
...

then

> ip link set dev <interface_name> mtu 1500"

@oldshensheep
Copy link
Author

I found similar issue.

VPN issue.
#11361 (comment)

not VPN, but with a 9000 MTU eth0
#11027

and the bot listed.
#11046

@Ghost-LZW
Copy link

Confirmed, the similar issue #11361 is caused by the 9000 MTU setting. the workaround set mtu to 1500 work.

@ghost ghost added the network label Jun 19, 2024
@ghost
Copy link

ghost commented Jun 19, 2024

/dupe #11046

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants