SlideShare a Scribd company logo
1 of 13
PPP SEMINAR

NFS

{ NETWORK FILE SYSTEM }
NFS


Network File System (NFS) is a protocol
originally developed by Sun Microsystems in
1984 and defined in RFCs 1094, 1813, and
3530 (obsoletes 3010), as a
distributed file system which allows a
computer to access files over a network as
easily as if they were on its local disks. NFS
is one of many protocols built on the
Open Network Computing Remote Procedure Ca
(ONC RPC).
NFS






Version 2 of the protocol originally operated entirely over UDP
and was meant to keep the protocol stateless, with locking (for
example) implemented outside of the core protocol.
Version 3 introduced support for using TCP as transport. While it
is true several vendors had already extended NFS Version 2 to
support TCP as transport, Sun Microsystems introduced TCP as
a transport for NFS at the same time it introduced Version 3.
Using TCP as transport made using NFS over a WAN more
feasible.
Version 4, influenced by AFS, and CIFS includes performance
improvements, mandates strong security, and introduces a
stateful protocol. Version 4 was the first version developed with
the Internet Engineering Task Force (IETF) after Sun
Microsystems handed over the development of the NFS
NFS


Problems with NFS.








-- Not Secure.

-- Performance is average at best and doesn’t
scale well.
-- Maintaining a truly distributed file system can be
complicated if many machines supply data.
-- Locking is not good and can cause problems
when used simultaneously by multiple
applications.
NFS





Why is NFS used then?
-- It is ubiquotous.
-- It is easy to setup and administer.
-- It provides a better solution than the
alternative of not sharing files.
Terminology


Server





Client





contains all of the files and directories
responsible for maintaining the file system
requester of directory and file information
does the actual reading and writing of files

file handle




a way to access a file without giving the file
name
similar to a file descriptor on a local file
system
RPC


Initial implementations of RPC used the
UDP communication protocol




if no response in a certain amount of time,
just re-send the request

Today both UDP and TCP are used


implemented on top of the IP protocol
NFS Protocol


NFS is implemented using RPC




a client issues a request to the server by
placing all necessary information to
complete the request in the parameters
RPC calls are synchronous




client blocks until the server sends a response
back

This looks exactly like a procedure call
on a local system


exactly what a user is used to seeing
when they make a system call
NFS Protocol


NFS protocol is stateless








each procedure call by a client contains all
the necessary information to complete an
operation
server doesn’t need to maintain any
information about what is at the clients site
server also doesn’t keep track of any past
requests

This makes crash recovery very simple
NFS Protocol




There are a set of standard NFS
procedures
Here are a few of the major ones







lookup(dirfh, name) returns (fh, attr)
create(dirfh, name, attr) returns (newfh,
attr)
remove(dirfh, name) returns (status)
read(fh, offset, count) returns (attr, data)
write(fh, offset, count, data) returns (attr)
Virtual File System




Major goal of NFS is system
independence
Concept of the Virtual File System
(VFS)






this is an interface that the client side must
implement
if implemented properly, the client can then
communicate with the NFS server
regardless of what type of system each is

Can allow different file systems to live
Increasing Performance


Cache directory entries




allows for fast pathname traversal

For small executable files






send the entire file on execution
versus demand page-in of executable file
most small executable files touch all pages
of the file
a form of read-ahead
Hard Issues


Authentication





user passes uid and gid on each call
very large number of uid’s and gid’s on a
distributed system
NFS uses a yellow pages




just a big database of users and their rights

Concurrent Access




what if two users open a file at the same
time?
could get interleaved writes


especially if they are large writes.

More Related Content

What's hot

Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 
Introduction_of_ADDS
Introduction_of_ADDSIntroduction_of_ADDS
Introduction_of_ADDS
Harsh Sethi
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 
Network Attached Storage (NAS)
Network Attached Storage (NAS)Network Attached Storage (NAS)
Network Attached Storage (NAS)
sandeepgodfather
 

What's hot (20)

Samba server configuration
Samba server configurationSamba server configuration
Samba server configuration
 
Introduction to Active Directory
Introduction to Active DirectoryIntroduction to Active Directory
Introduction to Active Directory
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
Linux file system
Linux file systemLinux file system
Linux file system
 
DAS RAID NAS SAN
DAS RAID NAS SANDAS RAID NAS SAN
DAS RAID NAS SAN
 
Introduction_of_ADDS
Introduction_of_ADDSIntroduction_of_ADDS
Introduction_of_ADDS
 
Microsoft Active Directory.pptx
Microsoft Active Directory.pptxMicrosoft Active Directory.pptx
Microsoft Active Directory.pptx
 
Exchange server.pptx
Exchange server.pptxExchange server.pptx
Exchange server.pptx
 
Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Ubuntu OS Presentation
Ubuntu OS PresentationUbuntu OS Presentation
Ubuntu OS Presentation
 
File server
File serverFile server
File server
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Introduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra SolutionsIntroduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra Solutions
 
Windows server
Windows serverWindows server
Windows server
 
DHCP
DHCPDHCP
DHCP
 
Linux
Linux Linux
Linux
 
Linux: LVM
Linux: LVMLinux: LVM
Linux: LVM
 
Network Attached Storage (NAS)
Network Attached Storage (NAS)Network Attached Storage (NAS)
Network Attached Storage (NAS)
 

Viewers also liked (7)

11. dfs
11. dfs11. dfs
11. dfs
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
File service architecture and network file system
File service architecture and network file systemFile service architecture and network file system
File service architecture and network file system
 
Sun NFS , Case study
Sun NFS , Case study Sun NFS , Case study
Sun NFS , Case study
 
SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience SUN Network File system - Design, Implementation and Experience
SUN Network File system - Design, Implementation and Experience
 
File system.
File system.File system.
File system.
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File System
 

Similar to NETWORK FILE SYSTEM

SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
SNIA Europe - DCSEurope_April2013 (AOrdoubadian)SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
Ali Ordoubadian
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
Raghu nath
 
network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefs
bergwolf
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
Sri Prasanna
 

Similar to NETWORK FILE SYSTEM (20)

Nf Sp4
Nf Sp4Nf Sp4
Nf Sp4
 
Nfs1
Nfs1Nfs1
Nfs1
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
Network File System
Network File SystemNetwork File System
Network File System
 
Nfs
NfsNfs
Nfs
 
file transfer and access utilities
file transfer and access utilitiesfile transfer and access utilities
file transfer and access utilities
 
SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
SNIA Europe - DCSEurope_April2013 (AOrdoubadian)SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
SNIA Europe - DCSEurope_April2013 (AOrdoubadian)
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
pNFS Introduction
pNFS IntroductionpNFS Introduction
pNFS Introduction
 
Upper layer protocol
Upper layer protocolUpper layer protocol
Upper layer protocol
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
File Sever
File SeverFile Sever
File Sever
 
A Presentation on Servers & Splunk
A Presentation on Servers & SplunkA Presentation on Servers & Splunk
A Presentation on Servers & Splunk
 
Pnfs
PnfsPnfs
Pnfs
 
Server configuration
Server configurationServer configuration
Server configuration
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
 
Computer network
Computer networkComputer network
Computer network
 
network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefs
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

NETWORK FILE SYSTEM

  • 2. NFS  Network File System (NFS) is a protocol originally developed by Sun Microsystems in 1984 and defined in RFCs 1094, 1813, and 3530 (obsoletes 3010), as a distributed file system which allows a computer to access files over a network as easily as if they were on its local disks. NFS is one of many protocols built on the Open Network Computing Remote Procedure Ca (ONC RPC).
  • 3. NFS    Version 2 of the protocol originally operated entirely over UDP and was meant to keep the protocol stateless, with locking (for example) implemented outside of the core protocol. Version 3 introduced support for using TCP as transport. While it is true several vendors had already extended NFS Version 2 to support TCP as transport, Sun Microsystems introduced TCP as a transport for NFS at the same time it introduced Version 3. Using TCP as transport made using NFS over a WAN more feasible. Version 4, influenced by AFS, and CIFS includes performance improvements, mandates strong security, and introduces a stateful protocol. Version 4 was the first version developed with the Internet Engineering Task Force (IETF) after Sun Microsystems handed over the development of the NFS
  • 4. NFS  Problems with NFS.     -- Not Secure. -- Performance is average at best and doesn’t scale well. -- Maintaining a truly distributed file system can be complicated if many machines supply data. -- Locking is not good and can cause problems when used simultaneously by multiple applications.
  • 5. NFS     Why is NFS used then? -- It is ubiquotous. -- It is easy to setup and administer. -- It provides a better solution than the alternative of not sharing files.
  • 6. Terminology  Server    Client    contains all of the files and directories responsible for maintaining the file system requester of directory and file information does the actual reading and writing of files file handle   a way to access a file without giving the file name similar to a file descriptor on a local file system
  • 7. RPC  Initial implementations of RPC used the UDP communication protocol   if no response in a certain amount of time, just re-send the request Today both UDP and TCP are used  implemented on top of the IP protocol
  • 8. NFS Protocol  NFS is implemented using RPC   a client issues a request to the server by placing all necessary information to complete the request in the parameters RPC calls are synchronous   client blocks until the server sends a response back This looks exactly like a procedure call on a local system  exactly what a user is used to seeing when they make a system call
  • 9. NFS Protocol  NFS protocol is stateless     each procedure call by a client contains all the necessary information to complete an operation server doesn’t need to maintain any information about what is at the clients site server also doesn’t keep track of any past requests This makes crash recovery very simple
  • 10. NFS Protocol   There are a set of standard NFS procedures Here are a few of the major ones      lookup(dirfh, name) returns (fh, attr) create(dirfh, name, attr) returns (newfh, attr) remove(dirfh, name) returns (status) read(fh, offset, count) returns (attr, data) write(fh, offset, count, data) returns (attr)
  • 11. Virtual File System   Major goal of NFS is system independence Concept of the Virtual File System (VFS)    this is an interface that the client side must implement if implemented properly, the client can then communicate with the NFS server regardless of what type of system each is Can allow different file systems to live
  • 12. Increasing Performance  Cache directory entries   allows for fast pathname traversal For small executable files     send the entire file on execution versus demand page-in of executable file most small executable files touch all pages of the file a form of read-ahead
  • 13. Hard Issues  Authentication    user passes uid and gid on each call very large number of uid’s and gid’s on a distributed system NFS uses a yellow pages   just a big database of users and their rights Concurrent Access   what if two users open a file at the same time? could get interleaved writes  especially if they are large writes.