数据包丢失和数据包复制 [英] Packet Loss and Packet duplication
问题描述
否。在 TCP
中,数据包的传递是可靠的(在这种情况下,我认为术语数据应该更好,因为它是面向流的协议)。
丢包和重复是与不可靠的协议数据报相关的问题,如 UDP
。在UDP中,当您发送数据报时,这可能会重复出现,出现故障,甚至没有到达。
是否相同在
TCP中检测到丢失时重新发送数据包?
是和否。假设TCP在内部使用ack机制来检测丢失的数据,并自动重新引用它们。因此,丢失的数据对用户来说是显而易见的,并且由协议本身处理。
有谁知道数据包重复是什么?
在某些情况下,可能会发生 IP
数据包沿路径重复到他们的目的地。例如,路由器可以决定转发2个不同网络接口的流量。在这种情况下,可能会发生两个IP数据包到达目的地。
TCP
处理复制 IP
数据包问题,所以你不要在乎他们。
UDP
不处理它们。当您收到数据报时,不能保证您以前没有收到相同的数据报。你应该检查一下。
I am trying to find out what the difference between packet loss and packet duplication problems is. Does anyone know what 'packet duplication' is all about? Is it the same as re-transmitting packets when a loss is detected in TCP?
No. In TCP
delivery of "packets" is reliable(I think the term data should be better in this case, since it's a stream oriented protocol).
Packet loss and duplication are problem related to unreliable protocols datagram oriented like UDP
. In UDP when you send a datagram this could arrive duplicated, out of order or even don't arrive at all.
Is it the same as re-transmitting packets when a loss is detected in TCP?
Yes and no. Let's say that TCP uses internally an ack mechanism to detect missing data, and automatically retrasmit them. So the missing data are trasparent to the user, and handled by the protocol itself.
Does anyone know what 'packet duplication' is all about?
In certain situations could happen that IP
packets are duplicate along the path to their destination. For example a router could decide to forward incoming traffic thorugh 2 different network interfaces. In this case could happen that both IP packets will reach the destination.
TCP
handle duplicated IP
packets problem, so you don't care about them.
UDP
doesn't handle them. When you receive a datagram it's not guaranteed that you didn't have received the same datagram before. You should check it.
这篇关于数据包丢失和数据包复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!