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

Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System Management
Raja Waseem Akhtar
 
Nfs protocol sequence_diagram
Nfs protocol sequence_diagramNfs protocol sequence_diagram
Nfs protocol sequence_diagram
Roberto Castro
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
ShapeBlue
 

What's hot (20)

Understanding das-nas-san
Understanding das-nas-sanUnderstanding das-nas-san
Understanding das-nas-san
 
The NFS Version 4 Protocol
The NFS Version 4 ProtocolThe NFS Version 4 Protocol
The NFS Version 4 Protocol
 
Andrew File System
Andrew File SystemAndrew File System
Andrew File System
 
Samba server
Samba serverSamba server
Samba server
 
Storage Area Networks Unit 2 Notes
Storage Area Networks Unit 2 NotesStorage Area Networks Unit 2 Notes
Storage Area Networks Unit 2 Notes
 
Users and groups
Users and groupsUsers and groups
Users and groups
 
Putty
PuttyPutty
Putty
 
CDW: SAN vs. NAS
CDW: SAN vs. NASCDW: SAN vs. NAS
CDW: SAN vs. NAS
 
Chapter07 Advanced File System Management
Chapter07      Advanced  File  System  ManagementChapter07      Advanced  File  System  Management
Chapter07 Advanced File System Management
 
Disk management / hard drive partition management / create drive or partition...
Disk management / hard drive partition management / create drive or partition...Disk management / hard drive partition management / create drive or partition...
Disk management / hard drive partition management / create drive or partition...
 
Active Directory Domain Services.pptx
Active Directory Domain Services.pptxActive Directory Domain Services.pptx
Active Directory Domain Services.pptx
 
Windows File Systems
Windows File SystemsWindows File Systems
Windows File Systems
 
CloudStack Architecture
CloudStack ArchitectureCloudStack Architecture
CloudStack Architecture
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction
 
VMware vSphere 6.0 - Troubleshooting Training - Day 1
VMware vSphere 6.0 - Troubleshooting Training - Day 1VMware vSphere 6.0 - Troubleshooting Training - Day 1
VMware vSphere 6.0 - Troubleshooting Training - Day 1
 
Nfs protocol sequence_diagram
Nfs protocol sequence_diagramNfs protocol sequence_diagram
Nfs protocol sequence_diagram
 
What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
 
User and groups administrator
User  and  groups administratorUser  and  groups administrator
User and groups administrator
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
 
Storage Virtualization
Storage VirtualizationStorage Virtualization
Storage Virtualization
 

Viewers also liked (8)

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
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed Computing
 
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

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
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
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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
 

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.