Why does NFS use UDP by default?

jdizzle picture jdizzle · Feb 25, 2009 · Viewed 34.6k times · Source

I'm sure there's some ancient legacy reason for it, but what is it? It seems like a service that's geared towards reliable data delivery.

Answer

dwc picture dwc · Feb 25, 2009
  • NFS was originally designed to be used on a LAN where loss rates are very low.
  • UDP is faster, and has less overhead
  • NFS is stateless, so it's simple for clients to retry

Note that NFS v3+ can use TCP.