-
Notifications
You must be signed in to change notification settings - Fork 431
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
underlay模式下通过service请求数据量超过2k时无法正常通信 #2825
Comments
实际测试发现,在pod所在宿主机通过svc可以正常请求超过2k的文件,在其它主机上不行 |
检查一下路径上mtu是否有设置错误的地方 |
@oilbeater br-provider myeth0 都是1500,ovn0是1400,genev_sys_6081 是 65000
ovn0 mtu 1400 |
genev_sys_6081 mtu 65000 |
另外,我在k8s其它节点上通过pod宿主机ip:nodeport访问是没问题的,但是在非k8s集群主机上通过nodeport访问仍然是2k限制 |
@oilbeater 现在就是svc有问题,通过pod ip访问是没问题的,通过svc ip就是2k现在,通过nodeport在集群外是2k限制,在集群节点上通过目标pod所在宿主机ip访问nodeport也正常,但是在集群节点上通过非目标pod宿主机ip访问nodeport也是2k限制 |
在宿主机上ping pod id,最大是1372字节 |
@oilbeater |
@zhangzujian 看下,应该是和 logical_gateway 开启有关 |
我测试了下,使用物理网关是没有问题的,但是我这边网络受限,没法使用物理网络作为pod子网,使用逻辑网关该怎么处理这个问题呢 |
看一下节点上的路由 |
我感觉还是ovn的mtu小于1500的原因,源主机的出口网卡mtu是1500,但是目的主机的ovn网卡mtu是1400,按理说underlay模式没有隧道封装mtu应该可以设置成1500,但是不知道为啥mtu设置超过1442,主机pod通信就会出问题 |
节点和 Pod 跨网段了,网络传输走的隧道。要么把 Underlay 网卡换成一个单独的网卡,MTU 设置成 1400,要么换成 Overlay。 |
Expected Behavior
underlay网络无数据大小限制
Actual Behavior
underlay网络存在数据大小限制
Steps to Reproduce the Problem
1.安装k8s
2.部署kube-ovn 1.11.3 underlay模式
3.创建Nginx pod,svc测试网络
4.在宿主机上通过pod ip请求nginx服务正常,在宿主机上通过svc ip请求Nginx服务当文件大小达到2k时请求无响应
5.抓包目标pod宿主机的br-provider网卡,发现只有ack http请求的包,没有发送数据的包
Additional Info
Kubernetes version:
Output of
kubectl version
:WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.4", GitCommit:"95ee5ab382d64cfe6c28967f36b53970b8374491", GitTreeState:"clean", BuildDate:"2022-08-17T18:54:23Z", GoVersion:"go1.18.5", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.4", GitCommit:"95ee5ab382d64cfe6c28967f36b53970b8374491", GitTreeState:"clean", BuildDate:"2022-08-17T18:47:37Z", GoVersion:"go1.18.5", Compiler:"gc", Platform:"linux/amd64"}
1.11.3
"Red Hat Enterprise Linux 8.2 (Ootpa)"
4.18.0-193.el8.x86_64
The text was updated successfully, but these errors were encountered: