How can I be sure that a UDP message is received?

Answers were Sorted based on User's Feedback



How can I be sure that a UDP message is received?..

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

How can I be sure that a UDP message is received?..

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

How can I be sure that a UDP message is received?..

Answer / neha jain

by using Icmp protocol.

Is This Answer Correct ?    7 Yes 5 No

How can I be sure that a UDP message is received?..

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

How can I be sure that a UDP message is received?..

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

Post New Answer

More UDP Interview Questions

who is the best player in world

6 Answers   Cap Gemini,


How can I be sure that a UDP message is received?

5 Answers   Vistech,


What are advantages and disadvantages of combining the session presentation application layer in the osi model into one single application layer in internet layer?

0 Answers   WNS,


What is the major difference between UDP and TCP/IP Protocol?

9 Answers   CTS,


Is tcp faster than udp?

0 Answers  






Is udp faster?

0 Answers  


what is throjan?

2 Answers   Prometric, Wipro,


If the bandwidth of the channel is 8 Kbps, How long does it take to send a frame of 200,000 bits out of this device?

4 Answers   Kuwait University, University,


Which is better tcp or udp?

0 Answers  


Is port 8000 a tcp or udp?

0 Answers  


Does netflix use udp or tcp?

0 Answers  


What's the difference between udp and tcp?

0 Answers  


Categories