udp error detection

Posted on 2004-04-06
Medium Priority
Last Modified: 2013-12-07

just a few quick question im not too sure in how this works:

UDP isnt connection orientated... correct?
UDP offers no Error detection......correct?

Design and Specify an Application Level Single-Shot-Protocol that will provide reliable delivery of individual single component messages over IP networks.

1.       i was thinking about
         firstly a timeout? but as i am a complete begginer how would i calculate an appropriate
         time to time out! i really have very limited knowledge so please explain everything ie
          acronyms etc.

2.        also the extra protocol that im designing would appear in the Application level? is that

3,        also when passing packets how would the end user know that they havent recieved a
           packet because from wat i can gather UDP doesnt number the packlets like TCP. Would i
          have to do this in the protocol im designing or is there a way around this.

4.        How does the header work in UDP? is there any extra bites that could be used to pass info
           around to help in error detections

5.        or am i completely wrong! if so please help!

6.        and one last Q WHAT IS A SINGLE SHOT PROTOCOL?


thank u

Question by:Follette
LVL 11

Accepted Solution

PennGwyn earned 200 total points
ID: 10770327
> UDP isnt connection orientated... correct?

  Correct.  There is nothing in the UDP layer to link packets together in a session (HINT).

> UDP offers no Error detection......correct?

  Incorrect.  A checksum allows corrupted UDP packets to be detected and discarded.
  UDP provides no inherent mechanism for signalling an error back to the sender and requesting retransmission (HINT).

Both of these are also true of IP, but are added on top of IP by TCP.  So it is possible to build something that would add these features on top of UDP, and that's what your course has asked you to do.


Author Comment

ID: 10804297
Im reading up on UDP and have a few more little questions:

what is a single shot protocol?

can i change things within the protocols header?

can i use a mix of UDP and TCP for example use TCP to confirm delivery?

How does it pass information between layers? does each layer simply add more to the header or is that wrong?

i was thinking about changing the source address of the UDP header so it would determine the type of file that is being sent ie ACK etc but then ive come to a brick wall: how do they know where the packet came from?

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article, we’ll look at how to deploy ProxySQL.
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question