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.
When using NFSv2 or NFSv3 with UDP, the stateless UDP connection under normal conditions has less Protocol overhead than TCP which can translate into better performance on very clean, non-congested networks. The NFS server sends the client a file handle after the client is authorized to access the shared volume.
All versions of NFS can use Transmission Control Protocol (TCP) running over an IP network, with NFSv4 requiring it. NFSv2 and NFSv3 can use the User Datagram Protocol (UDP) running over an IP network to provide a stateless network connection between the client and server.
By default, the NFS daemon is already configured to run a static port of 2049. The port is true on both TCP and UDP protocols.
The default transport protocol for the NFS protocol is TCP (Transmission Control Protocol).
When UDP is used as a transport protocol, presumably it would be up to the NFS client to manage retransmissions if necessary. UDP is stateless, TCP isn't, but TCP has many predefined properties that didn't suite NFS, or rather that NFS wanted to govern the specifics. In particular, when TCP is doing packet transfers, it does govern timeouts, etc.
UDP is the default for NFSv2 (which nobody should really use these days) but NFSv3 use TCP by default.
NFS was originally designed to be used on a LAN where loss rates are very low. Note that NFS v3+ can use TCP. Show activity on this post. UDP is the default for NFSv2 (which nobody should really use these days) but NFSv3 use TCP by default. TCP mounts are more reliable and you know you have a network problem much faster than with UDP.
How NFS Works Feature NFS v3 NFS v4 Transport Protocol TCP and UDP UDP only Permission Handling Unix Windows-based Authentication Method Auth_Sys – Weaker Kerberos (Strong) Personality Stateless Stateful 1 more rows ...
Note that NFS v3+ can use TCP.
UDP is the default for NFSv2 (which nobody should really use these days) but NFSv3 use TCP by default. TCP mounts are more reliable and you know you have a network problem much faster than with UDP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With