Differences between revisions 12 and 13
Revision 12 as of 2004-10-26 05:29:20
Size: 2016
Editor: UlfLamping
Comment: move UDP PacketLoss information to the appropriate page
Revision 13 as of 2008-04-12 17:50:03
Size: 2016
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
ConnectionOrientedProtocols such as ["TCP"] will detect a packet loss, and try to ["Retransmit"] the packet data. ConnectionOrientedProtocols such as [[TCP]] will detect a packet loss, and try to [[Retransmit]] the packet data.
Line 14: Line 14:
ConnectionlessProtocols such as ["UDP"] won't detect a packet loss, the data in that packet will simply be lost. (UDP includes no acknowledgment information, so PacketLoss can't be detected by UDP implementations, and UDP implementations won't ["Retransmit"] the packet. Protocols above UDP would be the ones whose implementations detect packet loss and retransmit packets.) ConnectionlessProtocols such as [[UDP]] won't detect a packet loss, the data in that packet will simply be lost. (UDP includes no acknowledgment information, so PacketLoss can't be detected by UDP implementations, and UDP implementations won't [[Retransmit]] the packet. Protocols above UDP would be the ones whose implementations detect packet loss and retransmit packets.)
Line 18: Line 18:
For most networks, packet loss is a typical behaviour, e.g. this will happen if a ["Router"] is receiving more data than it can transmit. For most networks, packet loss is a typical behaviour, e.g. this will happen if a [[Router]] is receiving more data than it can transmit.
Line 26: Line 26:
For TCP based protocols this is often reasonably easy to detect and analysis of ["PacketLossPattern"]s can often give a hint of what is causing the problem.
Common reasons are ["DuplexMismatch"]es or ["Congestion"].
For TCP based protocols this is often reasonably easy to detect and analysis of [[PacketLossPattern]]s can often give a hint of what is causing the problem.
Common reasons are [[DuplexMismatch]]es or [[Congestion]].
Line 29: Line 29:
Great resources on ["Congestion"] can be found by googling for Sally Floyd. Great resources on [[Congestion]] can be found by googling for Sally Floyd.

Packet Loss

Unfortunately not all networks are perfect. This is especially true for the RealWorld, and that means that sometimes packets sent by the network will never arrive at the proper destination. Even worse, sometimes packets will be reordered by the network, or even duplicated by the network.

This is no biggie for network protocols however since it is all based on "Duh, the network is supposed to be lossy. Deal with it or suffer".

In some situations when Packet Loss occurs there can be a significant performance degradation and thus it might be interesting to us to try to minimize the amount of packetloss occuring. (Which is easy once one has figured out WHY the packets are being lost, and where they are lost) ((The art of determining this information is often seen as BlackMagic))

ConnectionOrientedProtocols such as TCP will detect a packet loss, and try to Retransmit the packet data.

ConnectionlessProtocols such as UDP won't detect a packet loss, the data in that packet will simply be lost. (UDP includes no acknowledgment information, so PacketLoss can't be detected by UDP implementations, and UDP implementations won't Retransmit the packet. Protocols above UDP would be the ones whose implementations detect packet loss and retransmit packets.)

Reasons

For most networks, packet loss is a typical behaviour, e.g. this will happen if a Router is receiving more data than it can transmit.

Sometimes, defective hardware/software simply "forgets" packets.

Troubleshooting

If the network is configured correctly, there's not much that can be done against packet loss as this is a somewhat "intended" behaviour.

For TCP based protocols this is often reasonably easy to detect and analysis of PacketLossPatterns can often give a hint of what is causing the problem. Common reasons are DuplexMismatches or Congestion.

Great resources on Congestion can be found by googling for Sally Floyd.

PacketLoss (last edited 2008-04-12 17:50:03 by localhost)