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

Does fortnite use tcp or udp?

0 Answers  


Write UDP/SOCK_DGRAM applications

1 Answers   Vistech,


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  


Does netflix use udp or tcp?

0 Answers  


Can tcp and udp share the same port?

0 Answers  






Is tcp or udp better?

0 Answers  


How many types of Transmission are there

4 Answers   LG, LG Soft,


What is difference between tcp and udp socket?

0 Answers  


Is the ip adress of computer and modemis same or not ?

4 Answers   Wipro,


How to get IP header of a UDP message

1 Answers   Vistech,


Should I use tcp or udp?

0 Answers  


How reliable is udp?

0 Answers  


Categories