可靠 UDP 的失败场景?
测试可靠 UDP 层的失败场景的最佳列表是什么?我想到了以下情况:
- 丢弃数据包
- 丢弃 ACK、NAK 数据包
- 乱序发送数据包。
- 丢弃初始握手数据包
- 丢弃关闭/关闭数据包
- 重复数据包
请帮助确定可靠 UDP 需要处理的其他情况?
What could be good list of failure scenaros for testing a reliable UDP layer? I have thought of the below cases:
- Drop Data packets
- Drop ACK, NAK Packets
- Send packets in out of sequence.
- Drop intial hand shaking packets
- Drop close / shutdown packets
- Duplicate packets
Please help in identifying other cases that reliable UDP needs to handle?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你给出的清单听起来不错。还要考虑:
The list you've given sounds pretty good. Also think about:
您是否尝试过故意破坏传输中的数据包?
另外,您是否考虑过一种只能进行单向通信的场景?在这种情况下,发送主机认为发送失败,但接收端成功处理了消息。例如:
Have you tried intentionally corrupting packets in transit?
Also, have you considered a scenario where only one-way communication is possible? In this case, the sending host thinks that the send failed, but the receiving end successfully processes the message. For instance:
我认为 UDP 是一种无连接且不可靠的协议,不需要主机之间的特定传输握手。因此,不存在可靠的 UDP 协议。
I have thought UDP is a connectionless and unreliable protocol and that is does not require and specific transport handshake between hosts. And hence there is no such thing as a reliable UDP protocol.