2

User Datagram Protocol is a simpler message-based connectionless protocol. Connectionless protocols do not set up a dedicated end-to-end connection. Communication is achieved by transmitting information in one direction from source to destination without verifying the readiness or state of the receiver. So how can the destination reorder packets ?

2
  • "So how can the destination reorder packets ?" That would be up to the application or application-layer protocol.
    – Ron Maupin
    Jan 8 '20 at 21:01
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Dec 17 '20 at 14:56
4

Does UDP perform packet re-ordering at the destination?

No. UDP datagrams are transported to and received by the destination (application) as is. If their order is changed during transport they arrive out of order. Datagrams may also get lost on the way without a recovery process (unless the application provides some mechanism by itself).

Of course, an application can put a sequence number, identifier, ... in its user data as it is transported by UDP - that is regularly done, but without any effort from UDP itself.

1
  • 1
    Just to add a trivial example, Cisco routers are often configured to add sequence numbers to syslog messages, so you will be able to detect dropped and reordered messages if the logging was over UDP.
    – jonathanjo
    Jan 9 '20 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.