[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

using UDP for file copies on Windows/Mac/Linux

Posted on 2010-08-23
2
Medium Priority
?
813 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

656 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