UDP-message oriented

Sachin Jain

Sachin Jain

@sachin-0wuUmc Oct 25, 2024
Guys,
I have studied that UDP is message oriented and It reserves the message boundary.
but i failed to grasp its meaning.
Can some one please explain me this ?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Yamini L

    Yamini L

    @yamini-uMEVDQ Dec 16, 2010

    Basically, all processes using user datagram protocol sends and receive messages in the form of segments. These segments are the basic unit of transmission.

    Then they are further encapsulated into a ip datagram and transferred further. As each message is sent in the form of segments, we can say that the data boundaries are preserved. The size of the message is also limited. You perform only to sendto or recvfrom here. Whenever the size of the message is greater than buffer size, that extra part will be lost making it unreliable unlike tcp.
  • Sachin Jain

    Sachin Jain

    @sachin-0wuUmc Dec 17, 2010

    Hey miniy,
    But what happens if an intermediate router has to fragment a UDP segment due to less MTU of the network over which router has to send the IP packet ?
    Then message boundary may not be preserved ?