How can I be sure that a UDP message is received?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sudheer
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, maybe
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 ? | 5 Yes | 1 No |
Answer / yuvesh goyal
You can't be sure in any case that a udp message i.e.
received is not. Because this protocol is designed in a way
that it is used generally where packet loss is regular.It is
unreliable opposite of TCP protocol. UDP does not require
handshaking . It is generally used in the situation where
packet/data delay should not occur because of packet drop.
So you can't give guarantee of receiving your packet. Only
way is check-sum of your file.
Posted on 01/07/2011
By Yuvesh Goyal, Pune
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / j.farooq
1.In IP Header Protocol field is available,it tells which
protocol it is using as a transportlayer,if this field is
having 6(in decimal)it indicates TCP,17(in decimal)it
indicates UDP.
Is This Answer Correct ? | 1 Yes | 4 No |
A device is sending out data at the rate of 2000 bps. How long does it take to send out 100 bits? How long does it take to send out a singal character (8 bits)? How long does it take to send a file of 100,000 characters?
Why tcp is more reliable than udp?
How much is the signal amplified? and what is the total gain? when a signal is passed through three cascaded amplifiers, each with a 5 dB gain.
How many types of Transmission are there
How can I be sure that a UDP message is received?
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 or udp better for streaming?
what is throjan?
Does netflix use udp or tcp?
How to get IP header of a UDP message
Is port 8000 a tcp or udp?
How many types of Transmission are there