Solved

using UDP for file copies on Windows/Mac/Linux

Posted on 2010-08-23
2
778 Views
Last Modified: 2013-12-02
Hi All.

We are looking to settle an argument in the office.

Using NFS with UDP to connect to a server and copy a file, if it drops packets, as there's no checks with UDP, will the application layer pick up there's been an error and let you know, or will it say everything is fine, and the copied file may be a few bytes short?

The arguments are:
: UDP doesn't do any checks, so the file will be short, and you wont know about it.
: Checks would be done at the application layer (windows explorer / Finder) to compare source/destination and display an error if the destination file is short.

The OS could be Win/OSX/Linux.

Thanks.
0
Comment
Question by:medfacit
2 Comments
 
LVL 12

Expert Comment

by:HugoHiasl
ID: 33508531
UDP is a fast unsecure protocol.

It is used if there are small amounts of data which are not critical. For example in Voice over IP it will be used because missing packets will only reduce the quality while requested retransmissions would interfer the communication until the data packet is re-requested and sent.

There is no real mechanism to control missed packages. This needs to be done by the application that uses UDP. But UDP supports sending a checksum to verify integrity of the single datagram.

To make sure that all data arrive in the correct order there is need to use a handshake protocol like TCP which uses sending and reception windows.
0
 

Accepted Solution

by:
medfacit earned 0 total points
ID: 33518283
The answer to the question seems to be:

UDP uses a simple transmission model without implicit hand-shaking dialogues for guaranteeing reliability, ordering, or data integrity. Thus, UDP provides an unreliable service and datagrams may arrive out of order, appear duplicated, or go missing without notice. UDP assumes that error checking and correction is either not necessary or performed in the application, avoiding the overhead of such processing at the network interface level.

CiscoFreak said: UDP is a connectionless protocol which does not provide error checking, however, if a packet is dropped, error correction is performed at a higher level on the OSI model. Take a look at TFTP, it uses UDP but is a file transfer protocol nevertheless. If a dropped packet made your TFTP transfers invalid, I doubt it would be very popular :P

Thank you!
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now