网络堆栈丢弃UDP数据包的原因是什么 [英] What are the reasons for UDP packets to be dropped by the network stack

查看:105
本文介绍了网络堆栈丢弃UDP数据包的原因是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到目标端口设置为25555的UDP数据包(通过tcpdump)到达我的Linux机器.但是:

I see UDP packets arriving on my Linux box (via tcpdump) with destination port set to 25555. However:

nc -l -u 25555

显示没有流量.

我已经检查过了:

  1. iptables已关闭
  2. 目标MAC地址与传入接口匹配
  3. 目标IP地址与传入接口匹配
  4. IP校验和没问题
  5. UDP校验和没问题

此外,所有数据包都将被丢弃,因此降低rx缓冲区不是问题.

Also, all the packets are being dropped, thus it's not a problem with overlowing rx buffers.

还有什么其他想法可能会导致pakcets掉落?

Any ideas what else may cause the pakcets to be dropped?

推荐答案

最后,事实证明,这些数据包是通过RPF过滤丢弃的.请参阅Linux中的net.ipv4.all.rp_filter设置.

In the end it turned out that the packets were dropped by RPF filtering. See net.ipv4.all.rp_filter setting in Linux.

这篇关于网络堆栈丢弃UDP数据包的原因是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆