-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[Bug]: network problem: packet loss #1070
Comments
@kroese |
I have no clue, sorry. I never used Kubernetes myself. |
Thanks for your reply. I resolve it by set mtu 1480 in windows rather than pod. |
@q-hp-true Very interesting info. I just discovered I can configure the MTU for the network adaptor by setting The advantage is that you dont have to configure it in Windows anymore, but we can include that setting in the example kubernetes file. This would solve the problem for other people in the future. But an even better solution is to detect the MTU value from the bridge interface automaticly, and set the same value for However, I have no Kubernet environment to test this. So can you please execute:
and
from inside the container and tell me what you get? |
Okay based on your help I created a new version of the container (v4.17), which should automaticly detect the correct MTU and configure it in Windows WITHOUT you manually changing it in Windows yourself. So if you have the time, please test if you do fresh installation of Windows with v4.17 and not change anything, it will work without the packetloss issue now. Then we know for certain that its fixed. |
Operating system
kubernetes1.27
Description
When I deploy the project in k8s, some network problem occur.
I find the author says that the packet loss bugs has been fixed due to calico mtu different from windows.
but the situation happens agin.
My physical network adapter mtu is 1500
My calico mtu is 1480
in the windows container, the mtu of adapter "dockerbridge" is 1500, and the other adapter mtu is 1480.
I try to change the mtu in windows container by ip link set xxx mtu xxx and restart the adpapter. the network problem of packet loss again. such as I can't access the internet or the internet connection is too slow.
Docker compose
apiVersion: v1
kind: Pod
metadata:
name: windows
labels:
name: windows
spec:
containers:
image: dockurr/windows
env:
value: "11"
value: "4G"
value: "2"
value: "64G"
ports:
protocol: UDP
securityContext:
capabilities:
add:
privileged: true
volumeMounts:
name: storage
name: dev-kvm
name: dev-tun
terminationGracePeriodSeconds: 120
volumes:
persistentVolumeClaim:
claimName: windows-pvc
path: /dev/kvm
name: dev-kvm
path: /dev/net/tun
type: CharDevice
name: dev-tun
Docker log
No logs. but I found the packet when I use wireshark analysis the data captured by tcpdump.
Screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: