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

MTU is wrong for Pod's eth0 interface when using GRE tunnel #5913

Closed
tnqn opened this issue Jan 24, 2024 · 1 comment · Fixed by #5880
Closed

MTU is wrong for Pod's eth0 interface when using GRE tunnel #5913

tnqn opened this issue Jan 24, 2024 · 1 comment · Fixed by #5880
Assignees
Labels
area/transit/encapsulation Issues or PRs related to encapsulation. kind/bug Categorizes issue or PR as related to a bug.

Comments

@tnqn
Copy link
Member

tnqn commented Jan 24, 2024

Describe the bug

While fixing #5868, @hjiajing and I tested more scenarios and found the issue: when using GRE tunnel, the MTU was reduced 38 bytes, however, packets of that size were not forwarded.

I'm not sure if this is broken by OVS kernel change or the tunnel type has never really worked. The problem is that 38 bytes was calculated from 14 outer MAC, 20 outer IP, and 4 GRE header. However, from packet capture, the actual overhead is 14 outer MAC, 20 outer IP, and 8 GRE header (4 standard header + 4 key optional field). We never use GRE key which can be used to carry OVS tun_id value, it seems OVS always add 4 bytes of key to the GRE header even tun_id is not set, leading to 42 bytes of overhead.

Versions:

  • Antrea version (Docker image tag). 1.14.1 and before
@tnqn tnqn added the kind/bug Categorizes issue or PR as related to a bug. label Jan 24, 2024
@tnqn
Copy link
Member Author

tnqn commented Jan 24, 2024

#5880 will fix this.

@tnqn tnqn added the area/transit/encapsulation Issues or PRs related to encapsulation. label Jan 24, 2024
@tnqn tnqn self-assigned this Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/transit/encapsulation Issues or PRs related to encapsulation. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant