Network File System: Difference between revisions

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
imported>DigitalIceAge
 
imported>VulcanSphere
Rescuing 9 sources and tagging 0 as dead.) #IABot (v2.0.9.5
Line 11: Line 11:
===NFSv2===
===NFSv2===


Version&nbsp;2 of the protocol (defined in {{IETF RFC|1094|link=no}}, March 1989) originally operated only over [[User Datagram Protocol]] (UDP). Its designers meant to keep the server side [[Stateless server|stateless]], with [[lock (computer science)|locking]] (for example) implemented outside of the core protocol. People involved in the creation of NFS version&nbsp;2 include [[Russel Sandberg]], [[Bob Lyon (engineer)|Bob Lyon]], [[Bill Joy]], [[Steve Kleiman]], and others.<ref name="sun85" /><ref name="Rusty">{{Cite journal |title= The Sun Network Filesystem: Design, Implementation and Experience |journal= Technical Report |author= Russel Sandberg |publisher= Sun Microsystems |url= http://www.cse.buffalo.edu/faculty/tkosar/cse710_spring13/papers/nfs.pdf }}</ref>
Version&nbsp;2 of the protocol (defined in {{IETF RFC|1094|link=no}}, March 1989) originally operated only over [[User Datagram Protocol]] (UDP). Its designers meant to keep the server side [[Stateless server|stateless]], with [[lock (computer science)|locking]] (for example) implemented outside of the core protocol. People involved in the creation of NFS version&nbsp;2 include [[Russel Sandberg]], [[Bob Lyon (engineer)|Bob Lyon]], [[Bill Joy]], [[Steve Kleiman]], and others.<ref name="sun85" /><ref name="Rusty">{{Cite journal |title= The Sun Network Filesystem: Design, Implementation and Experience |journal= Technical Report |author= Russel Sandberg |publisher= Sun Microsystems |url= http://www.cse.buffalo.edu/faculty/tkosar/cse710_spring13/papers/nfs.pdf |archive-date= 2013-11-26 |access-date= 2013-08-04 |archive-url= https://web.archive.org/web/20131126095851/http://www.cse.buffalo.edu/faculty/tkosar/cse710_spring13/papers/nfs.pdf |url-status= live }}</ref>


The [[Virtual File System]] interface allows a modular implementation, reflected in a simple protocol. By February 1986, implementations were demonstrated for operating systems such as [[System V]] release&nbsp;2, [[DOS]], and VAX/VMS using [[Eunice (software)|Eunice]].<ref name="Rusty" />
The [[Virtual File System]] interface allows a modular implementation, reflected in a simple protocol. By February 1986, implementations were demonstrated for operating systems such as [[System V]] release&nbsp;2, [[DOS]], and VAX/VMS using [[Eunice (software)|Eunice]].<ref name="Rusty" />
Line 21: Line 21:
* support for asynchronous writes on the server, to improve write performance;
* support for asynchronous writes on the server, to improve write performance;
* additional file attributes in many replies, to avoid the need to re-fetch them;
* additional file attributes in many replies, to avoid the need to re-fetch them;
* a READDIRPLUS operation, to get file handles<ref>{{cite book|last1=Arpaci-Dusseau|first1=Remzi|last2=Arpaci-Dusseau|first2=Andrea|title=Operating Systems: Three Easy Pieces|date=March 2015|publisher=Arpaci-Dusseau Books|edition=.9|page=5|url=http://pages.cs.wisc.edu/~remzi/OSTEP/dist-nfs.pdf|access-date=8 November 2017}}</ref> and attributes along with file names when scanning a directory;
* a READDIRPLUS operation, to get file handles<ref>{{cite book|last1=Arpaci-Dusseau|first1=Remzi|last2=Arpaci-Dusseau|first2=Andrea|title=Operating Systems: Three Easy Pieces|date=March 2015|publisher=Arpaci-Dusseau Books|edition=.9|page=5|url=http://pages.cs.wisc.edu/~remzi/OSTEP/dist-nfs.pdf|access-date=8 November 2017|archive-date=3 April 2019|archive-url=https://web.archive.org/web/20190403140732/http://pages.cs.wisc.edu/~remzi/OSTEP/dist-nfs.pdf|url-status=live}}</ref> and attributes along with file names when scanning a directory;
* assorted other improvements.
* assorted other improvements.


The first NFS Version&nbsp;3 proposal within Sun Microsystems was created not long after the release of NFS Version&nbsp;2. The principal motivation was an attempt to mitigate the performance issue of the synchronous write operation in NFS Version&nbsp;2.<ref name="usenix94">{{cite web |url= https://www.usenix.org/legacy/publications/library/proceedings/bos94/full_papers/pawlowski.ps |title=NFS Version&nbsp;3 Design and Implementation |year=1994 |publisher=[[USENIX]] |author1=Brian Pawlowski |author2=Chet Juszczak |author3=Peter Staubach |author4=Carl Smith |author5=Diane Lebel |author6=David Hitz }}</ref> By July 1992, implementation practice had solved many shortcomings of NFS Version&nbsp;2, leaving only lack of large file support (64-bit file sizes and offsets) a pressing issue.  At the time of introduction of Version&nbsp;3, vendor support for [[Transmission Control Protocol|TCP]] as a [[transport layer|transport-layer]] protocol began increasing. While several vendors had already added support for NFS Version&nbsp;2 with TCP as a transport, Sun Microsystems added support for TCP as a transport for NFS at the same time it added support for Version&nbsp;3. Using TCP as a transport made using NFS over a [[Wide area network|WAN]] more feasible, and allowed the use of larger read and write transfer sizes beyond the 8&nbsp;KB limit imposed by [[User Datagram Protocol]].
The first NFS Version&nbsp;3 proposal within Sun Microsystems was created not long after the release of NFS Version&nbsp;2. The principal motivation was an attempt to mitigate the performance issue of the synchronous write operation in NFS Version&nbsp;2.<ref name="usenix94">{{cite web |url=https://www.usenix.org/legacy/publications/library/proceedings/bos94/full_papers/pawlowski.ps |title=NFS Version&nbsp;3 Design and Implementation |year=1994 |publisher=[[USENIX]] |author1=Brian Pawlowski |author2=Chet Juszczak |author3=Peter Staubach |author4=Carl Smith |author5=Diane Lebel |author6=David Hitz |access-date=2015-11-23 |archive-date=2015-11-24 |archive-url=https://web.archive.org/web/20151124182558/https://www.usenix.org/legacy/publications/library/proceedings/bos94/full_papers/pawlowski.ps |url-status=live }}</ref> By July 1992, implementation practice had solved many shortcomings of NFS Version&nbsp;2, leaving only lack of large file support (64-bit file sizes and offsets) a pressing issue.  At the time of introduction of Version&nbsp;3, vendor support for [[Transmission Control Protocol|TCP]] as a [[transport layer|transport-layer]] protocol began increasing. While several vendors had already added support for NFS Version&nbsp;2 with TCP as a transport, Sun Microsystems added support for TCP as a transport for NFS at the same time it added support for Version&nbsp;3. Using TCP as a transport made using NFS over a [[Wide area network|WAN]] more feasible, and allowed the use of larger read and write transfer sizes beyond the 8&nbsp;KB limit imposed by [[User Datagram Protocol]].


====YANFS/WebNFS====
====YANFS/WebNFS====
Line 32: Line 32:


===NFSv4===
===NFSv4===
Version&nbsp;4 ({{IETF RFC|3010|link=no}}, December 2000; revised in {{IETF RFC|3530|link=no}}, April 2003 and again in {{IETF RFC|7530|link=no}}, March 2015), influenced by [[Andrew File System]] (AFS) and [[Server Message Block]] (SMB), includes performance improvements, mandates strong security, and introduces a [[State (computer science)|stateful]] protocol.<ref>{{cite web|url=http://www.usenix.org/events/usenix05/tech/italks.html#nFSv4|title=NFS Version 4|date=2005-04-14|publisher=[[USENIX]]}}</ref><ref name="sane2000">{{cite web |url= http://www.sane.nl/events/sane2000/papers/pawlowski.pdf |title=The NFS Version&nbsp;4 Protocol |year=2000 |publisher=[[System Administration and Network Engineering|SANE]] |author1=Brian Pawlowski |author2=Spencer Shepler |author3=Carl Beame |author4=Brent Callaghan |author5=Michael Eisler |author6=David Noveck |author7=David Robinson |author8=Robert Thurlow }}</ref> Version 4 became the first version developed with the [[Internet Engineering Task Force]] (IETF) after [[Sun Microsystems]] handed over the development of the NFS protocols.
Version&nbsp;4 ({{IETF RFC|3010|link=no}}, December 2000; revised in {{IETF RFC|3530|link=no}}, April 2003 and again in {{IETF RFC|7530|link=no}}, March 2015), influenced by [[Andrew File System]] (AFS) and [[Server Message Block]] (SMB), includes performance improvements, mandates strong security, and introduces a [[State (computer science)|stateful]] protocol.<ref>{{cite web|url=http://www.usenix.org/events/usenix05/tech/italks.html#nFSv4|title=NFS Version 4|date=2005-04-14|publisher=[[USENIX]]|access-date=2008-12-19|archive-date=2011-07-28|archive-url=https://web.archive.org/web/20110728150342/http://www.usenix.org/events/usenix05/tech/italks.html#nFSv4|url-status=live}}</ref><ref name="sane2000">{{cite web |url= http://www.sane.nl/events/sane2000/papers/pawlowski.pdf |title=The NFS Version&nbsp;4 Protocol |year=2000 |publisher=[[System Administration and Network Engineering|SANE]] |author1=Brian Pawlowski |author2=Spencer Shepler |author3=Carl Beame |author4=Brent Callaghan |author5=Michael Eisler |author6=David Noveck |author7=David Robinson |author8=Robert Thurlow }}</ref> Version 4 became the first version developed with the [[Internet Engineering Task Force]] (IETF) after [[Sun Microsystems]] handed over the development of the NFS protocols.


NFS version&nbsp;4.1 ({{IETF RFC|5661|link=no}}, January 2010; revised in {{IETF RFC|8881|link=no}}, August 2020) aims to provide protocol support to take advantage of clustered server deployments including the ability to provide scalable parallel access to files distributed among multiple servers (pNFS extension). Version&nbsp;4.1 includes Session trunking mechanism (Also known as NFS Multipathing) and is available in some enterprise solutions as [[VMware ESXi]].
NFS version&nbsp;4.1 ({{IETF RFC|5661|link=no}}, January 2010; revised in {{IETF RFC|8881|link=no}}, August 2020) aims to provide protocol support to take advantage of clustered server deployments including the ability to provide scalable parallel access to files distributed among multiple servers (pNFS extension). Version&nbsp;4.1 includes Session trunking mechanism (Also known as NFS Multipathing) and is available in some enterprise solutions as [[VMware ESXi]].
Line 46: Line 46:
* the byte-range advisory Network Lock Manager (NLM) protocol (added to support [[UNIX System V]] [[file locking]] APIs)
* the byte-range advisory Network Lock Manager (NLM) protocol (added to support [[UNIX System V]] [[file locking]] APIs)
* the remote quota-reporting (RQUOTAD) protocol, which allows NFS users to view their data-storage quotas on NFS servers
* the remote quota-reporting (RQUOTAD) protocol, which allows NFS users to view their data-storage quotas on NFS servers
* NFS over RDMA, an adaptation of NFS that uses [[remote direct memory access]] (RDMA) as a transport<ref>{{cite web|url= http://www.connectathon.org/talks06/talpey-cthon06-nfs-rdma.pdf|title= NFS/RDMA Implementation(s) Update|author= Tom Talpey|publisher= Network Appliance, Inc.|date= February 28, 2006|archive-url= https://web.archive.org/web/20110512180716/http://www.connectathon.org/talks06/talpey-cthon06-nfs-rdma.pdf|archive-date= May 12, 2011}}</ref><ref>{{cite web|url= http://www.usenix.org/events/fast02/wips/callaghan.pdf|title= NFS over RDMA|author= Brent Callaghan|publisher= Sun Microsystems|date= January 28, 2002}}</ref>
* NFS over RDMA, an adaptation of NFS that uses [[remote direct memory access]] (RDMA) as a transport<ref>{{cite web|url= http://www.connectathon.org/talks06/talpey-cthon06-nfs-rdma.pdf|title= NFS/RDMA Implementation(s) Update|author= Tom Talpey|publisher= Network Appliance, Inc.|date= February 28, 2006|archive-url= https://web.archive.org/web/20110512180716/http://www.connectathon.org/talks06/talpey-cthon06-nfs-rdma.pdf|archive-date= May 12, 2011}}</ref><ref>{{cite web|url= http://www.usenix.org/events/fast02/wips/callaghan.pdf|title= NFS over RDMA|author= Brent Callaghan|publisher= Sun Microsystems|date= January 28, 2002|access-date= September 6, 2010|archive-date= May 12, 2011|archive-url= https://web.archive.org/web/20110512180713/http://www.usenix.org/events/fast02/wips/callaghan.pdf|url-status= live}}</ref>
* NFS-Ganesha, an NFS server, running in user-space and supporting various file systems like [[GPFS|GPFS/Spectrum Scale]], CephFS via respective FSAL (File System Abstraction Layer) modules. The [[Ceph (software)|CephFS]] FSAL is supported using libcephfs<ref>
* NFS-Ganesha, an NFS server, running in user-space and supporting various file systems like [[GPFS|GPFS/Spectrum Scale]], CephFS via respective FSAL (File System Abstraction Layer) modules. The [[Ceph (software)|CephFS]] FSAL is supported using libcephfs<ref>
{{cite book
{{cite book
Line 72: Line 72:
* [[Unix-like]] operating systems ([[Solaris (operating system)|Solaris]], [[AIX]], [[HP-UX]], [[FreeBSD]], and [[Linux distros]])
* [[Unix-like]] operating systems ([[Solaris (operating system)|Solaris]], [[AIX]], [[HP-UX]], [[FreeBSD]], and [[Linux distros]])
* [[AmigaOS]]
* [[AmigaOS]]
* [[ArcaOS]]<ref>{{cite web|url=https://www.arcanoae.com/shop/netdrive-for-os2/|title=NetDrive for OS/2|access-date=2020-09-22|website=arcanoae.com}}</ref>
* [[ArcaOS]]<ref>{{cite web|url=https://www.arcanoae.com/shop/netdrive-for-os2/|title=NetDrive for OS/2|access-date=2020-09-22|website=arcanoae.com|archive-date=2015-11-03|archive-url=https://web.archive.org/web/20151103233414/https://www.arcanoae.com/shop/netdrive-for-os2/|url-status=live}}</ref>
* [[Haiku (operating system)|Haiku]]<ref>{{Cite web |url=https://www.haiku-os.org/blog/pawe%C5%82_dziepak/2013-03-15_nfsv4_client_finally_merged/ |first=Paweł |last=Dziepak |title=NFSv4 client finally merged |website=Paweł Dziepak's blog |publisher=Haiku, Inc |date=2013-03-15}}</ref>
* [[Haiku (operating system)|Haiku]]<ref>{{Cite web |url=https://www.haiku-os.org/blog/pawe%C5%82_dziepak/2013-03-15_nfsv4_client_finally_merged/ |first=Paweł |last=Dziepak |title=NFSv4 client finally merged |website=Paweł Dziepak's blog |publisher=Haiku, Inc |date=2013-03-15}}</ref>
* [[IBM i]],<ref name="OS/400-NFS">{{cite web|title=OS/400 Network File System Support|url=https://public.dhe.ibm.com/systems/power/docs/systemi/v5r4/en_US/sc415714.pdf|publisher=IBM|access-date=23 May 2024}}</ref> although the default networking protocol is OS/400 File Server (QFileSvr.400)
* [[IBM i]],<ref name="OS/400-NFS">{{cite web|title=OS/400 Network File System Support|url=https://public.dhe.ibm.com/systems/power/docs/systemi/v5r4/en_US/sc415714.pdf|publisher=IBM|access-date=23 May 2024}}</ref> although the default networking protocol is OS/400 File Server (QFileSvr.400)
* [[macOS]], although the default networking protocol is [[Apple Filing Protocol]] (AFP)
* [[macOS]], although the default networking protocol is [[Apple Filing Protocol]] (AFP)
* [[Microsoft Windows]],<ref name="SFU">{{cite web|title=Introduction to Microsoft Windows Services for UNIX 3.5|url=https://technet.microsoft.com/en-us/library/bb463212.aspx|website=technet.microsoft.com|date=5 December 2007 |publisher=Microsoft|access-date=24 September 2016}}</ref> although the default networking protocol is [[Server Message Block]] (SMB)
* [[Microsoft Windows]],<ref name="SFU">{{cite web|title=Introduction to Microsoft Windows Services for UNIX 3.5|url=https://technet.microsoft.com/en-us/library/bb463212.aspx|website=technet.microsoft.com|date=5 December 2007|publisher=Microsoft|access-date=24 September 2016|archive-date=18 June 2018|archive-url=https://web.archive.org/web/20180618045332/https://technet.microsoft.com/en-us/library/bb463212.aspx|url-status=live}}</ref> although the default networking protocol is [[Server Message Block]] (SMB)
* [[MS-DOS]]<ref name="PCNFS">{{cite web|title=Other Software by SUN Microsystems|url=http://www.computinghistory.org.uk/det/12549/PC-NFS%20version%205.0/|website=www.computinghistory.org.uk|publisher=The Centre for Computing History|access-date=24 September 2016}}</ref>
* [[MS-DOS]]<ref name="PCNFS">{{cite web|title=Other Software by SUN Microsystems|url=http://www.computinghistory.org.uk/det/12549/PC-NFS%20version%205.0/|website=www.computinghistory.org.uk|publisher=The Centre for Computing History|access-date=24 September 2016}}</ref>
* [[Novell NetWare]],<ref name="NFSforNetWare">{{cite web|title=NFS Gateway for NetWare 6.5|url=https://www.novell.com/products/openenterpriseserver/features/nfs-gateway-for-netware65.html|website=www.novell.com|publisher=Novell|access-date=24 September 2016}}</ref> although the default networking protocol is [[NetWare Core Protocol]] (NCP)
* [[Novell NetWare]],<ref name="NFSforNetWare">{{cite web|title=NFS Gateway for NetWare 6.5|url=https://www.novell.com/products/openenterpriseserver/features/nfs-gateway-for-netware65.html|website=www.novell.com|publisher=Novell|access-date=24 September 2016}}</ref> although the default networking protocol is [[NetWare Core Protocol]] (NCP)
* [[OpenVMS]]<ref name="NFSforVMS">{{cite web|title=HP TCP/IP Services for OpenVMS Management|url=http://h41379.www4.hpe.com/doc/83final/6526/6526pro_052.html|website=h41379.www4.hpe.com|publisher=HP|access-date=24 September 2016|archive-url=https://web.archive.org/web/20160924192510/http://h41379.www4.hpe.com/doc/83final/6526/6526pro_052.html|archive-date=2016-09-24}}</ref>
* [[OpenVMS]]<ref name="NFSforVMS">{{cite web|title=HP TCP/IP Services for OpenVMS Management|url=http://h41379.www4.hpe.com/doc/83final/6526/6526pro_052.html|website=h41379.www4.hpe.com|publisher=HP|access-date=24 September 2016|archive-url=https://web.archive.org/web/20160924192510/http://h41379.www4.hpe.com/doc/83final/6526/6526pro_052.html|archive-date=2016-09-24}}</ref>
* [[OS/2]]<ref>{{cite web|url=https://ecsoft2.org/network-file-system-nfs-plugin-netdrive|access-date=2020-09-22|website=ecsoft2.org|title=NTFS plugin for NetDrive}}</ref>
* [[OS/2]]<ref>{{cite web|url=https://ecsoft2.org/network-file-system-nfs-plugin-netdrive|access-date=2020-09-22|website=ecsoft2.org|title=NTFS plugin for NetDrive|archive-date=2016-02-22|archive-url=https://web.archive.org/web/20160222155213/https://ecsoft2.org/network-file-system-nfs-plugin-netdrive|url-status=live}}</ref>
* [[RISC OS]]<ref name="Sunfish/Moonfish by Alex Waugh">{{Cite web|url=http://www.cp15.org/networking/|title = Networking related programs|website=cp15.org}}</ref>
* [[RISC OS]]<ref name="Sunfish/Moonfish by Alex Waugh">{{Cite web|url=http://www.cp15.org/networking/|title = Networking related programs|website=cp15.org}}</ref>


Line 107: Line 107:
By the 21st century, neither DFS nor AFS had achieved any major commercial success as compared to SMB or NFS.  IBM, which had formerly acquired the primary commercial vendor of DFS and AFS, [[Transarc]], donated most of the AFS source code to the [[free software community]] in 2000. The [[OpenAFS]] project lives on. In early 2005, IBM announced end of sales for AFS and DFS.
By the 21st century, neither DFS nor AFS had achieved any major commercial success as compared to SMB or NFS.  IBM, which had formerly acquired the primary commercial vendor of DFS and AFS, [[Transarc]], donated most of the AFS source code to the [[free software community]] in 2000. The [[OpenAFS]] project lives on. In early 2005, IBM announced end of sales for AFS and DFS.


In January, 2010, [[Panasas]] proposed an NFSv4.1 based on their ''Parallel NFS'' (pNFS) technology claiming to improve data-access parallelism<ref>{{Cite web |title= pNFS |publisher= [[Panasas]] |url= http://www.pnfs.com |access-date= August 4, 2013 }}</ref> capability. The NFSv4.1 protocol defines a method of separating the [[metadata#File system metadata|filesystem meta-data]] from file data location; it goes beyond the simple name/data separation by striping the data amongst a set of data servers. This differs from the traditional NFS server which holds the names of files and their data under the single umbrella of the server. Some products are multi-node NFS servers, but the participation of the client in separation of meta-data and data is limited.
In January, 2010, [[Panasas]] proposed an NFSv4.1 based on their ''Parallel NFS'' (pNFS) technology claiming to improve data-access parallelism<ref>{{Cite web |title= pNFS |publisher= [[Panasas]] |url= http://www.pnfs.com/ |access-date= August 4, 2013 |archive-date= August 7, 2013 |archive-url= https://web.archive.org/web/20130807180615/http://www.pnfs.com/ |url-status= live }}</ref> capability. The NFSv4.1 protocol defines a method of separating the [[metadata#File system metadata|filesystem meta-data]] from file data location; it goes beyond the simple name/data separation by striping the data amongst a set of data servers. This differs from the traditional NFS server which holds the names of files and their data under the single umbrella of the server. Some products are multi-node NFS servers, but the participation of the client in separation of meta-data and data is limited.


The NFSv4.1 pNFS server is a set of server resources or components; these are assumed to be controlled by the meta-data server.
The NFSv4.1 pNFS server is a set of server resources or components; these are assumed to be controlled by the meta-data server.

Revision as of 09:17, 25 June 2025

Template:Short description Script error: No such module "Distinguish". Script error: No such module "about". Template:IPstack

Network File System (NFS) is a distributed file system protocol originally developed by Sun Microsystems (Sun) in 1984,[1] allowing a user on a client computer to access files over a computer network much like local storage is accessed. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system. NFS is an open IETF standard defined in a Request for Comments (RFC), allowing anyone to implement the protocol.

Versions and variations

Sun used version 1 only for in-house experimental purposes. When the development team added substantial changes to NFS version 1 and released it outside of Sun, they decided to release the new version as v2, so that version interoperation and RPC version fallback could be tested.[2][3]

NFSv2

Version 2 of the protocol (defined in Template:IETF RFC, March 1989) originally operated only over User Datagram Protocol (UDP). Its designers meant to keep the server side stateless, with locking (for example) implemented outside of the core protocol. People involved in the creation of NFS version 2 include Russel Sandberg, Bob Lyon, Bill Joy, Steve Kleiman, and others.[1][4]

The Virtual File System interface allows a modular implementation, reflected in a simple protocol. By February 1986, implementations were demonstrated for operating systems such as System V release 2, DOS, and VAX/VMS using Eunice.[4] NFSv2 only allows the first 2 GB of a file to be read due to 32-bit limitations.

NFSv3

Version 3 (Template:IETF RFC, June 1995) added:

  • support for 64-bit file sizes and offsets, to handle files larger than 2 gigabytes (GB);
  • support for asynchronous writes on the server, to improve write performance;
  • additional file attributes in many replies, to avoid the need to re-fetch them;
  • a READDIRPLUS operation, to get file handles[5] and attributes along with file names when scanning a directory;
  • assorted other improvements.

The first NFS Version 3 proposal within Sun Microsystems was created not long after the release of NFS Version 2. The principal motivation was an attempt to mitigate the performance issue of the synchronous write operation in NFS Version 2.[6] By July 1992, implementation practice had solved many shortcomings of NFS Version 2, leaving only lack of large file support (64-bit file sizes and offsets) a pressing issue. At the time of introduction of Version 3, vendor support for TCP as a transport-layer protocol began increasing. While several vendors had already added support for NFS Version 2 with TCP as a transport, Sun Microsystems added support for TCP as a transport for NFS at the same time it added support for Version 3. Using TCP as a transport made using NFS over a WAN more feasible, and allowed the use of larger read and write transfer sizes beyond the 8 KB limit imposed by User Datagram Protocol.

YANFS/WebNFS

Script error: No such module "anchor". Script error: No such module "Labelled list hatnote". YANFS (Yet Another NFS), formerly WebNFS, is an extension to NFSv2 and NFSv3 allowing it to function behind restrictive firewalls without the complexity of Portmap and MOUNT protocols. YANFS/WebNFS has a fixed TCP/UDP port number (2049), and instead of requiring the client to contact the MOUNT RPC service to determine the initial filehandle of every filesystem, it introduced the concept of a public filehandle (null for NFSv2, zero-length for NFSv3) which could be used as the starting point. Both of those changes were later incorporated into NFSv4. YANFS's post-WebNFS development has also included server-side integration.

NFSv4

Version 4 (Template:IETF RFC, December 2000; revised in Template:IETF RFC, April 2003 and again in Template:IETF RFC, March 2015), influenced by Andrew File System (AFS) and Server Message Block (SMB), includes performance improvements, mandates strong security, and introduces a stateful protocol.[7][8] Version 4 became the first version developed with the Internet Engineering Task Force (IETF) after Sun Microsystems handed over the development of the NFS protocols.

NFS version 4.1 (Template:IETF RFC, January 2010; revised in Template:IETF RFC, August 2020) aims to provide protocol support to take advantage of clustered server deployments including the ability to provide scalable parallel access to files distributed among multiple servers (pNFS extension). Version 4.1 includes Session trunking mechanism (Also known as NFS Multipathing) and is available in some enterprise solutions as VMware ESXi.

NFS version 4.2 (Template:IETF RFC) was published in November 2016 with new features including: server-side clone and copy, application I/O advise, sparse files, space reservation, application data block (ADB), labeled NFS with sec_label that accommodates any MAC security system, and two new operations for pNFS (LAYOUTERROR and LAYOUTSTATS).

One big advantage of NFSv4 over its predecessors is that only one UDP or TCP port, 2049, is used to run the service, which simplifies using the protocol across firewalls.[9]

Other extensions

WebNFS, an extension to Version 2 and Version 3, allows NFS to integrate more easily into Web-browsers and to enable operation through firewalls. In 2007 Sun Microsystems open-sourced their client-side WebNFS implementation.[10]

Various side-band protocols have become associated with NFS. Note:

  • the byte-range advisory Network Lock Manager (NLM) protocol (added to support UNIX System V file locking APIs)
  • the remote quota-reporting (RQUOTAD) protocol, which allows NFS users to view their data-storage quotas on NFS servers
  • NFS over RDMA, an adaptation of NFS that uses remote direct memory access (RDMA) as a transport[11][12]
  • NFS-Ganesha, an NFS server, running in user-space and supporting various file systems like GPFS/Spectrum Scale, CephFS via respective FSAL (File System Abstraction Layer) modules. The CephFS FSAL is supported using libcephfs[13]
  • Trusted NFS (TNFS)[14]

Platforms

NFS is available on:

File:NfsPerformanceGraph.png
NFS SPECsfs2008 performance comparison, as of 22 November 2013

Protocol development

During the development of the ONC protocol (called SunRPC at the time), only Apollo's Network Computing System (NCS) offered comparable functionality. Two competing groups developed over fundamental differences in the two remote procedure call systems. Arguments focused on the method for data-encoding — ONC's External Data Representation (XDR) always rendered integers in big-endian order, even if both peers of the connection had little-endian machine-architectures, whereas NCS's method attempted to avoid byte-swap whenever two peers shared a common endianness in their machine-architectures. An industry-group called the Network Computing Forum formed (March 1987) in an (ultimately unsuccessful) attempt to reconcile the two network-computing environments.

In 1987, Sun and AT&T announced they would jointly develop AT&T's UNIX System V Release 4.[23] This caused many of AT&T's other licensees of UNIX System to become concerned that this would put Sun in an advantaged position, and ultimately led to Digital Equipment, HP, IBM, and others forming the Open Software Foundation (OSF) in 1988. Ironically, Sun and AT&T had formerly competed over Sun's NFS versus AT&T's Remote File System (RFS), and the quick adoption of NFS over RFS by Digital Equipment, HP, IBM, and many other computer vendors tipped the majority of users in favor of NFS. NFS interoperability was aided by events called "Connectathons" starting in 1986 that allowed vendor-neutral testing of implementations with each other.[24] OSF adopted the Distributed Computing Environment (DCE) and the DCE Distributed File System (DFS) over Sun/ONC RPC and NFS. DFS used DCE as the RPC, and DFS derived from the Andrew File System (AFS); DCE itself derived from a suite of technologies, including Apollo's NCS and Kerberos.Script error: No such module "Unsubst".

1990s

Sun Microsystems and the Internet Society (ISOC) reached an agreement to cede "change control" of ONC RPC so that the ISOC's engineering-standards body, the Internet Engineering Task Force (IETF), could publish standards documents (RFCs) related to ONC RPC protocols and could extend ONC RPC. OSF attempted to make DCE RPC an IETF standard, but ultimately proved unwilling to give up change control. Later, the IETF chose to extend ONC RPC by adding a new authentication flavor based on Generic Security Services Application Program Interface (GSSAPI), RPCSEC GSS, to meet IETF requirements that protocol standards have adequate security.

Later, Sun and ISOC reached a similar agreement to give ISOC change control over NFS, although writing the contract carefully to exclude NFS version 2 and version 3. Instead, ISOC gained the right to add new versions to the NFS protocol, which resulted in IETF specifying NFS version 4 in 2003.

Script error: No such module "anchor".2000s

By the 21st century, neither DFS nor AFS had achieved any major commercial success as compared to SMB or NFS. IBM, which had formerly acquired the primary commercial vendor of DFS and AFS, Transarc, donated most of the AFS source code to the free software community in 2000. The OpenAFS project lives on. In early 2005, IBM announced end of sales for AFS and DFS.

In January, 2010, Panasas proposed an NFSv4.1 based on their Parallel NFS (pNFS) technology claiming to improve data-access parallelism[25] capability. The NFSv4.1 protocol defines a method of separating the filesystem meta-data from file data location; it goes beyond the simple name/data separation by striping the data amongst a set of data servers. This differs from the traditional NFS server which holds the names of files and their data under the single umbrella of the server. Some products are multi-node NFS servers, but the participation of the client in separation of meta-data and data is limited.

The NFSv4.1 pNFS server is a set of server resources or components; these are assumed to be controlled by the meta-data server.

The pNFS client still accesses one meta-data server for traversal or interaction with the namespace; when the client moves data to and from the server it may directly interact with the set of data servers belonging to the pNFS server collection. The NFSv4.1 client can be enabled to be a direct participant in the exact location of file data and to avoid solitary interaction with one NFS server when moving data.

In addition to pNFS, NFSv4.1 provides:

See also

Template:Div col

References

Template:Reflist

External links

Template:Colbegin

Template:Colend

Template:URI scheme Template:Sun Microsystems Template:File systems Template:Authority control

  1. a b Script error: No such module "citation/CS1".
  2. NFS Illustrated (2000) by Brent Callaghan – Template:ISBN
  3. a b Script error: No such module "citation/CS1".
  4. a b Script error: No such module "Citation/CS1".
  5. Script error: No such module "citation/CS1".
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".
  13. Script error: No such module "citation/CS1".
  14. Script error: No such module "Citation/CS1".
  15. Script error: No such module "citation/CS1".
  16. Script error: No such module "citation/CS1".
  17. Script error: No such module "citation/CS1".
  18. Script error: No such module "citation/CS1".
  19. Script error: No such module "citation/CS1".
  20. Script error: No such module "citation/CS1".
  21. Script error: No such module "citation/CS1".
  22. Script error: No such module "citation/CS1".
  23. Script error: No such module "citation/CS1".
  24. Script error: No such module "citation/CS1".
  25. Script error: No such module "citation/CS1".