在某个PC中,当UDP数据包的大小小于12字节时,丢弃该数据包。我怎么知道原因? [英] UDP packets are dropped when its size is less than 12 byte in a certain PC. how do i figure it out the reason?

查看:356
本文介绍了在某个PC中,当UDP数据包的大小小于12字节时,丢弃该数据包。我怎么知道原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个从来没有听说过的问题。

i've stuck in a problem that is never heard about before.

我在做一个在某个角色动作中使用UDP数据包的在线游戏。后我开发的udp模块,它似乎工作正常。虽然我们大多数的团队成员没有问题,但是一个男人,谁是我的老板,告诉我这个模块有问题。

i'm making an online game which uses UDP packets in a certain character action. after i developed the udp module, it seems to work fine. though most of our team members have no problem, but a man, who is my boss, told me something is wrong for that module.

我已经调查了这个问题,最后我发现这样的事实:在他的电脑上,如果udp数据包大小小于12,数据包从来没有被交付给其他主机。

i have investigated the problem, and finally i found the fact that... on his PC, if udp packet size is less than 12, the packet is never have been delivered to the other host.

以下是一些其他信息:


  • 1〜11个字节udp数据包丢弃,12个字节和超过12个字节数据包可以。 >
  • O / S:Microsoft Windows Vista Business

  • NIC:Attansic L1千兆位以太网10/100 / 1000Base-T控制器

  • WSASendTo返回TRUE。

  • loopback udp packet可以正常工作。

  • 1~11 bytes udp packets are dropped, 12 bytes and over 12 bytes packets are OK.
  • O/S: Microsoft Windows Vista Business
  • NIC: Attansic L1 Gigabit Ethernet 10/100/1000Base-T Controller
  • WSASendTo returns TRUE.
  • loopback udp packet works fine.

的这个问题?你认为...是什么原因导致这个问题?
我应该怎么做下一步的原因?

how do you think of this problem? and what do you think... what causes this problem? what should i do for the next step for the cause?

PS。我不想填充,使所有数据包的长度达12字节。

PS. i don't want to padding which makes length of all the packets up to 12 bytes.

推荐答案

非显而易见的答案:也许UDP校验和卸载是破坏的卡,即包发送,但丢弃的接收器?

Just to get one of the non-obvious answers in: maybe UDP checksum offload is broken on that card, i.e. the packets are sent, but dropped by the receiver?

您可以通过查看在使用Wireshark接收的数据包。

You can check for this by looking at the received packets using Wireshark.

这篇关于在某个PC中,当UDP数据包的大小小于12字节时,丢弃该数据包。我怎么知道原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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