5.8. Additional Information on UDP

While the UDP is sometimes the best alternative for certain classes of applications, because of its unique properties, it does present some challenges to developers. These challenges can be met, however, by structuring data transmission to overcome the limitations of UDP. Below we examine these limitations and how they may be overcome.

5.8.1. Lack of Guaranteed Delivery

Packets sent via UDP may become lost in transit—each additional hop between one router and another introduces more delays and increases the likelihood that a packet may be discarded when its TTL reaches zero. Furthermore, UDP packets can become damaged or lost if the physical network connection they are being routed through goes down. Since Internet ...

Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.