How can I be sure that a UDP message is received?
Answer Posted / r.n.achary
You have to design your protocol to expect a confirmation
back from the destination when a message is received. Of
course is the confirmation is sent by UDP, then it too is
unreliable and may not make it back to the sender. If the
sender does not get confirmation back by a certain time, it
will have to re-transmit the message, may be more than
once. Now the receiver has a problem because it may have
already received the message, so some way of dropping
duplicates is required. Most protocols use a message
numbering scheme so that the receiver can tell that it has
already processed this message and return another
confirmation. Confirmations will also have to reference
the message number so that the sender can tell which
message is being confirmed. Confused? That's why I stick
with TCP.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Which is better udp or tcp?
Does netflix use udp or tcp?
What are advantages and disadvantages of combining the session presentation application layer in the osi model into one single application layer in internet layer?
Is tcp faster than udp?
Do I use tcp or udp?
What is difference between tcp and udp socket?
Why tcp is better than udp?
Is tcp or udp better for gaming?
Why is udp unreliable?
Is udp faster?
What's the difference between udp and tcp?
A signal with 300 milliwatts power passes through 10 devices, each with an average noise of 3 microwatts. What is the SNR? What is the SNRdb?
What is the advantage of udp over tcp?
Is tcp better than udp?
Is port 80 udp or tcp?