SlideShare a Scribd company logo
NETWORK FILE SYSTEMS
U.SHANMUGARAJAN
I – M.Sc [ Comp. Science ]
CONTENTS
Topics
- What is Distributed File systems
- NFS : overview
- Communication in NFS
- Processes in NFS
- Naming in NFS
- Synchronization in NFS
- Catching and Replication
- Fault tolerance
- Secutiy
WHAT IS DISTRIBUTED FILE SYSTEM
 A distributed file system (DFS) is a file system with data stored on a
server.
 The data is accessed and processed as if it was stored on the local client
machine.
 The DFS makes it convenient to share information and files among users on
a network in a controlled and authorized way.
EXAMPLES
NFS
CODA FILE SYSTEM
AFS
REDHAT GFS
Windows 2000
OVERVIEW OF NFS
Network File System (NFS) is a distributed file system protocol
originally developed by Sun Microsystems in 1984.
The Network File System (NFS) allows users to access files and
directories located on remote computers and treat those files and directories
as if they were local.
Mostly used with UNIX OS and also Implement for other OS like Mac
OS, Microsoft Windows.
For example, users can use operating system commands to create,
remove, read, write, and set file attributes for remote files and directories.
NFS VERSIONS
 The first version of NFS was never released and was kept internal to Sun
micro systems.
 NFS v2 (released in March 1989) originally operated only over User
Datagram Protocol(UDP). Its designers meant to keep the server
side stateless, with locking.
 NFS v3 released in 1995 and it supports asynchronous writes on the
server, to improve write performance.
 NFS v4 released in 2003 and it concentrates on strong security, and
introduces a state full server.
 NFS version 4.1 ( January 2010) aims to provide scalable parallel access
to files distributed among multiple servers
 NFS version 4.2 is currently being developed.
NFS ARCHITECTURE
• NFS is implemented using the Virtual File System abstraction, which is
now used for lots of different operating systems.
• VFS provides standard file system interface, and allows to hide
difference between accessing local or remote file system.
FILE SYSTEM MODEL
• The file system model offered by NFS is almost same as the one offered
in UNIX-Based Systems.
• Files are treated as sequences of bytes.
• to access a file, a client must first look up its name in a naming service
and obtain the associated file handle.
NFS FILE OPERATIONS
COMMUNICATION IN NFS
• All communication is based on the Open Network Computing RPC (ONC
RPC). Version 4 also supports compound procedures by which several
RPCs can be grouped into a single request.
PROCESSES IN NFS
• NFS is a traditional client server system in which clients request a file server to
perform operations on files.
• NFS servers are stateless (i.e.,) NFS protocol did not require that servers
maintained any client’s state.
• The main advantage of the stateless approach is simplicity.
• In NFS v4 , stateful servers are used.
NAMING IN NFS
• NFS provides support for mounting remote file systems (and even
directories) into a client’s local name space.
• Instead of mounting an entire file system, NFS allows clients to mount
only part of a file system.
• A server is said to export a directory when it makes that directory and
its entries available to clients.
AUTOMOUNTING IN NFS
• Problem: To share files, we partly standardize local name spaces and mount
shared directories. Mounting very large directories (e.g., all subdirectories in
home/users) takes a lot of time
• Solution: automounting - The automounter maintains a table of mount points
(pathnames) with a reference to one or more NFS servers.
FILE SHARING SEMANTICS
• when two or more users share the same file ,it is necessary to define
semantics of reading and writing precisely to avoid problems.
FILE SHARING SEMANTICS (CONT.,)
UNIX semantics: a read operation returns the effect of the last write
operation  Every operation on a file is instantly visible to all
processes.
Transaction semantics: the file system supports transactions on a single
file  issue is how to allow concurrent access.
Session semantics: the effects of read and write operations are seen
only to the client that has opened (a local copy) of the file No
changes are visible to other processes until the file is closed.
FILE LOCKING IN NFS
• in NFS, file locking has been handled by means of a separate
protocol, implemented by a lock manager.
LOCK,LOCKT,LOCKU
Locks are granted for a specific time and we use RENEW fo
extend the lock.
• it also an implicit share reservation approach(in windows
system).
• In NFS v4 ,locking integrated into file access protocol.
• When a client opens a file, it specifies the type of access it
requires (READ,WRITE,BOTH) and which type of access the server
deny other clients (NONE,READ,WRITE,BOTH).
CACHING & REPLICATION
• caching refers to the ability to access data from within the distributed system
itself instead of relying on a separate system of record.
• On client open(), client asks server if its cached attribute blocks are up to date.
Once file is open, different client processes can write it and get inconsistent
data.
• Modified data is flushed back to the server every 30 seconds
• Data is said to be replicated when a distributed caching system proactively
makes multiple copies of that data for achieving some combination of
availability.
CACHING & REPLICATION (CONT.,)
• Open delegation: Server will explicitly permit a client machine to handle local
operations from other clients on that machine.
• An important consequence of delegating a file to a client is that the server
need to be able to recall the delegation.
FAULT TOLERANCE
– Until v4, fault tolerance was easy due to the stateless servers. Now,
problems come from the use of an unreliable RPC mechanism, but
also stateful servers that have delegated matters to clients.
– RPC FAILURES – when reply is lost, retransmission may trigger
multiple invocations of request.
– The above problem solved with duplicate-request cache and
transaction identifier.
– Locking/Open delegation: Essentially, recovered server offers
clients a grace period to reclaim locks. When period is over, the
server starts its normal local manager function again.
FAULT TOLERANCE (CONT.,)
SECURITY
Secure RPC
there are three ways for authentication
1.System authentication
passes its user ID and group ID to server.
2.Diffe-Helman key exchange
establish session key .
3.kerberos
works on the basis of tickets
RPCSEC GSS
A standard interface that allows integration with existing security
services
Access Control
secure RPC provides the mechanisms for security but does not
specify any particular policy.
maintains ACL file attribute.
SECURITY
Nfs

More Related Content

What's hot

NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
Roshan Kumar
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRP
Kishore Kumar
 

What's hot (20)

Nfs
NfsNfs
Nfs
 
Network and System Administration chapter 2
Network and System Administration chapter 2Network and System Administration chapter 2
Network and System Administration chapter 2
 
DNS Configuration
DNS ConfigurationDNS Configuration
DNS Configuration
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
Samba
SambaSamba
Samba
 
Network Troubleshooting - Part 2
Network Troubleshooting - Part 2Network Troubleshooting - Part 2
Network Troubleshooting - Part 2
 
Network monitoring tools
Network monitoring toolsNetwork monitoring tools
Network monitoring tools
 
Iptables presentation
Iptables presentationIptables presentation
Iptables presentation
 
Flow Monitoring Tools, What do we have, What do we need?
Flow Monitoring Tools, What do we have, What do we need?Flow Monitoring Tools, What do we have, What do we need?
Flow Monitoring Tools, What do we have, What do we need?
 
Citrix TechEdge 2014 - How to Troubleshoot Deployments of StoreFront and NetS...
Citrix TechEdge 2014 - How to Troubleshoot Deployments of StoreFront and NetS...Citrix TechEdge 2014 - How to Troubleshoot Deployments of StoreFront and NetS...
Citrix TechEdge 2014 - How to Troubleshoot Deployments of StoreFront and NetS...
 
FTP
FTPFTP
FTP
 
System and network administration network services
System and network administration network servicesSystem and network administration network services
System and network administration network services
 
Nmap Hacking Guide
Nmap Hacking GuideNmap Hacking Guide
Nmap Hacking Guide
 
Ipv4 ppt
Ipv4 pptIpv4 ppt
Ipv4 ppt
 
Troubleshooting Network and Network Utilities
Troubleshooting Network and Network UtilitiesTroubleshooting Network and Network Utilities
Troubleshooting Network and Network Utilities
 
Dynamic Routing IGRP
Dynamic Routing IGRPDynamic Routing IGRP
Dynamic Routing IGRP
 
DHCP Server & Client Presentation
DHCP Server & Client PresentationDHCP Server & Client Presentation
DHCP Server & Client Presentation
 
Network operating systems
Network operating systemsNetwork operating systems
Network operating systems
 
Ip address and subnetting
Ip address and subnettingIp address and subnetting
Ip address and subnetting
 
Storage networks
Storage networksStorage networks
Storage networks
 

Similar to Nfs

Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
Viet-Trung TRAN
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
C.U
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
AbDul ThaYyal
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
Sri Prasanna
 

Similar to Nfs (20)

Chapter-5-DFS.ppt
Chapter-5-DFS.pptChapter-5-DFS.ppt
Chapter-5-DFS.ppt
 
5.distributed file systems
5.distributed file systems5.distributed file systems
5.distributed file systems
 
Network File System
Network File SystemNetwork File System
Network File System
 
12. dfs
12. dfs12. dfs
12. dfs
 
Introduction to distributed file systems
Introduction to distributed file systemsIntroduction to distributed file systems
Introduction to distributed file systems
 
Presentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPresentation on nfs,afs,vfs
Presentation on nfs,afs,vfs
 
11. dfs
11. dfs11. dfs
11. dfs
 
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
 
OS_Ch16
OS_Ch16OS_Ch16
OS_Ch16
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
 
OSCh16
OSCh16OSCh16
OSCh16
 
DFS PPT.pptx
DFS PPT.pptxDFS PPT.pptx
DFS PPT.pptx
 
Chapter 17 - Distributed File Systems
Chapter 17 - Distributed File SystemsChapter 17 - Distributed File Systems
Chapter 17 - Distributed File Systems
 
Andrew File System
Andrew File SystemAndrew File System
Andrew File System
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
The NFS Version 4 Protocol
The NFS Version 4 ProtocolThe NFS Version 4 Protocol
The NFS Version 4 Protocol
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 

Recently uploaded

plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 

Nfs

  • 1. NETWORK FILE SYSTEMS U.SHANMUGARAJAN I – M.Sc [ Comp. Science ]
  • 2. CONTENTS Topics - What is Distributed File systems - NFS : overview - Communication in NFS - Processes in NFS - Naming in NFS - Synchronization in NFS - Catching and Replication - Fault tolerance - Secutiy
  • 3. WHAT IS DISTRIBUTED FILE SYSTEM  A distributed file system (DFS) is a file system with data stored on a server.  The data is accessed and processed as if it was stored on the local client machine.  The DFS makes it convenient to share information and files among users on a network in a controlled and authorized way. EXAMPLES NFS CODA FILE SYSTEM AFS REDHAT GFS Windows 2000
  • 4. OVERVIEW OF NFS Network File System (NFS) is a distributed file system protocol originally developed by Sun Microsystems in 1984. The Network File System (NFS) allows users to access files and directories located on remote computers and treat those files and directories as if they were local. Mostly used with UNIX OS and also Implement for other OS like Mac OS, Microsoft Windows. For example, users can use operating system commands to create, remove, read, write, and set file attributes for remote files and directories.
  • 5. NFS VERSIONS  The first version of NFS was never released and was kept internal to Sun micro systems.  NFS v2 (released in March 1989) originally operated only over User Datagram Protocol(UDP). Its designers meant to keep the server side stateless, with locking.  NFS v3 released in 1995 and it supports asynchronous writes on the server, to improve write performance.  NFS v4 released in 2003 and it concentrates on strong security, and introduces a state full server.  NFS version 4.1 ( January 2010) aims to provide scalable parallel access to files distributed among multiple servers  NFS version 4.2 is currently being developed.
  • 6. NFS ARCHITECTURE • NFS is implemented using the Virtual File System abstraction, which is now used for lots of different operating systems. • VFS provides standard file system interface, and allows to hide difference between accessing local or remote file system.
  • 7. FILE SYSTEM MODEL • The file system model offered by NFS is almost same as the one offered in UNIX-Based Systems. • Files are treated as sequences of bytes. • to access a file, a client must first look up its name in a naming service and obtain the associated file handle.
  • 9. COMMUNICATION IN NFS • All communication is based on the Open Network Computing RPC (ONC RPC). Version 4 also supports compound procedures by which several RPCs can be grouped into a single request.
  • 10. PROCESSES IN NFS • NFS is a traditional client server system in which clients request a file server to perform operations on files. • NFS servers are stateless (i.e.,) NFS protocol did not require that servers maintained any client’s state. • The main advantage of the stateless approach is simplicity. • In NFS v4 , stateful servers are used.
  • 11. NAMING IN NFS • NFS provides support for mounting remote file systems (and even directories) into a client’s local name space. • Instead of mounting an entire file system, NFS allows clients to mount only part of a file system. • A server is said to export a directory when it makes that directory and its entries available to clients.
  • 12. AUTOMOUNTING IN NFS • Problem: To share files, we partly standardize local name spaces and mount shared directories. Mounting very large directories (e.g., all subdirectories in home/users) takes a lot of time • Solution: automounting - The automounter maintains a table of mount points (pathnames) with a reference to one or more NFS servers.
  • 13. FILE SHARING SEMANTICS • when two or more users share the same file ,it is necessary to define semantics of reading and writing precisely to avoid problems.
  • 14. FILE SHARING SEMANTICS (CONT.,) UNIX semantics: a read operation returns the effect of the last write operation  Every operation on a file is instantly visible to all processes. Transaction semantics: the file system supports transactions on a single file  issue is how to allow concurrent access. Session semantics: the effects of read and write operations are seen only to the client that has opened (a local copy) of the file No changes are visible to other processes until the file is closed.
  • 15. FILE LOCKING IN NFS • in NFS, file locking has been handled by means of a separate protocol, implemented by a lock manager. LOCK,LOCKT,LOCKU Locks are granted for a specific time and we use RENEW fo extend the lock. • it also an implicit share reservation approach(in windows system). • In NFS v4 ,locking integrated into file access protocol. • When a client opens a file, it specifies the type of access it requires (READ,WRITE,BOTH) and which type of access the server deny other clients (NONE,READ,WRITE,BOTH).
  • 16. CACHING & REPLICATION • caching refers to the ability to access data from within the distributed system itself instead of relying on a separate system of record. • On client open(), client asks server if its cached attribute blocks are up to date. Once file is open, different client processes can write it and get inconsistent data. • Modified data is flushed back to the server every 30 seconds • Data is said to be replicated when a distributed caching system proactively makes multiple copies of that data for achieving some combination of availability.
  • 17. CACHING & REPLICATION (CONT.,) • Open delegation: Server will explicitly permit a client machine to handle local operations from other clients on that machine. • An important consequence of delegating a file to a client is that the server need to be able to recall the delegation.
  • 18. FAULT TOLERANCE – Until v4, fault tolerance was easy due to the stateless servers. Now, problems come from the use of an unreliable RPC mechanism, but also stateful servers that have delegated matters to clients. – RPC FAILURES – when reply is lost, retransmission may trigger multiple invocations of request. – The above problem solved with duplicate-request cache and transaction identifier. – Locking/Open delegation: Essentially, recovered server offers clients a grace period to reclaim locks. When period is over, the server starts its normal local manager function again.
  • 20. SECURITY Secure RPC there are three ways for authentication 1.System authentication passes its user ID and group ID to server. 2.Diffe-Helman key exchange establish session key . 3.kerberos works on the basis of tickets RPCSEC GSS A standard interface that allows integration with existing security services Access Control secure RPC provides the mechanisms for security but does not specify any particular policy. maintains ACL file attribute.