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

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?

1 Answers   Data Com,


Why tcp is more reliable than udp?

0 Answers  


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.

3 Answers  


How many types of Transmission are there

2 Answers   LG Soft,


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,


Is tcp or udp better for streaming?

0 Answers  


what is throjan?

2 Answers   Prometric, Wipro,


Does netflix use udp or tcp?

0 Answers  


How to get IP header of a UDP message

1 Answers   Vistech,


Is port 8000 a tcp or udp?

0 Answers  


How many types of Transmission are there

4 Answers   LG, LG Soft,


Categories