Skip to main content
NetApp Knowledge Base

What are the main differences between NFSv3 and NFSv4 protocols in ONTAP

Views:
237
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

Applies to

  • ONTAP 9
  • NFS

Answer

NFSv3 and NFSv4 are both standard network file system protocols supported by NetApp ONTAP. They are not NetApp-proprietary protocols, but NetApp implements them according to industry standards. The key differences between NFSv3 and NFSv4 in NetApp environments are summarized below:

1. Protocol Characteristics

  • NFSv3:

    • Stateless protocol: The server does not maintain client session information.
    • Supports both UDP and TCP transport (modern environments typically use TCP).
    • File locking is managed separately via the Network Lock Manager (NLM) protocol.
    • Default write operations are asynchronous, which may impact data consistency.
  • NFSv4:

    • Stateful protocol: The server maintains session information such as file locks and open files.
    • Only supports TCP transport, improving reliability and performance.
    • Integrated file locking: Lock management is built into the protocol (no separate NLM needed).
    • Native support for Access Control Lists (ACLs) for granular permissions.
    • All operations use a single port (2049), simplifying firewall configurations.
    • Supports delegation and client-side caching for performance improvements.

2. Performance

  • NFSv3:
    Performs well in high-concurrency, stateless, and simple file access scenarios, often with lower latency.
  • NFSv4:
    The protocol is more complex due to statefulness and security features. Initial performance may be slightly lower, but it is better suited for environments requiring advanced access control and security.

3. Security

  • NFSv3:
    Limited security features. Authentication is typically based on client IP addresses, and data transfer is unencrypted.
  • NFSv4:
    Enhanced security, with support for Kerberos authentication, encryption, and data signing. Suitable for environments with strict security requirements.

4. Compatibility

  • NFSv3:
    Broad compatibility. Supported by nearly all operating systems and devices.
  • NFSv4:
    Introduces new features that may not be fully supported by legacy clients or older operating systems.

5. NetApp Usage Recommendations

  • NFSv3:
    Recommended for environments where performance and compatibility are the primary concerns, and security requirements are minimal.
  • NFSv4:
    Recommended for new deployments or scenarios where advanced security, access control, and protocol features are required

Additional Information

additionalInformation_text
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.