SlideShare a Scribd company logo
1 of 44
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System)
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object]
NFS (Network File System) NO Create file CREATE NO Remove file REMOVE YES Fix server cache data to the disk COMMIT YES Check access  ACCESS YES Read from symbolic link READLINK YES Read file READ YES Write to the file WRITE NO Rename file RENAME YES File name search LOOKUP YES Set file attribute SETATTR YES Get file attribute GETATTR Idempotent Action RCP request
NFS (Network File System) YES Get FS static attribute FSINFO YES Get POSIX information PATHCONF YES Get FS dynamic attribute FSSTAT NO Crate directory MKDIR NO Remove directory RMDIR YES Read directory READDIR YES Extended directory read READDIRPLUS NO Create special node MKNOD NO Create symbolic link SYMLINK NO Create hard link LINK Idempotent Action RCP request
NFS (Network File System) ,[object Object],[object Object]
Virtual File System (1) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
VFS (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],File system id I-node # I-node generation #
NFS (Network File System) ,[object Object],[object Object],[object Object]
NFS (Network File System) ,[object Object],[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object]
FreeBSD NFS implementation mount portmap mountd Client Server User level Kernel level 1 2 3 4
FreeBSD NFS implementation ,[object Object],[object Object],write() nfsiod nfsd User level Kernel level Client Server 1 2 3 5 4 disk
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object]
FreeBSD NFS implementation (read cache lease) Client A Client B Server Read req. + lease Answer Read sys. call Read sys. Call (from cache) Read req. (cache miss) Answer Lease timeout Read sys. call Lease expired Read lease req. Answer with same ctime ctime the same -  cache valid Read sys. Call (from cache) Lease timeout Read req. (cache miss) Answer Read cache lease  for client A Read req. + lease Read sys. call Read sys. call Lease timeout Answer Client B added to lease Read req. (cache miss) Answer Time
FreeBSD NFS implementation (write cache lease) Server Client B Write system call Write cached lease Write cached lease for client B Answer (write cache lease) Write system call (cached leaved records) Write cached lease req. before previous lease  expired. Get record  lease Lease update Answer (write cache lease) Lease timeout System call Lease expired record answer record answer Lease expiration Stopped for a  moment because of records Write_slack seconds After last records Time
FreeBSD NFS implementation (non-cache lease) Client A Server Client B Time Read sys. call req. Read req. + lease Read cache lease for A client answer Read req. (from cache) Read req. (miss cache) answer Lease timeout Read sys. call req. Lease request Answer (non-cache lease) Read sys. call req. (non-cache lease  mode) Read req. Read data Lease expired Write sys. call req. Get write cache lease  Answer (non-cache lease) Write sys. call (async write cached) Cleanup req.  Write cached  data to server record answer answer record Release msg.  Write sys. call req. Get write cache lease  record answer Synchronous  Writes wihout cache
FreeBSD NFS implementation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Starting up NFS  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],rpcinfo -p localhost     program vers proto   port      100000    2   tcp    111  portmapper      100000    2   udp    111  portmapper      100005    1   udp    679  mountd      100005    1   tcp    681  mountd      100003    2   udp   2049   nfs      100003    2   tcp   2049   nfs
Exporting File System ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
 
Local and remote file systems accessible on an NFS client mount   –t nfs  Server1:/ export/people   /usr /students mount –t nfs Server2:/ nfs/users   /usr/ staff
NFS  Transport protocol ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introducing SMB ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],To know more: Timothy D Evans,  NetBIOS, NetBEUI, NBF, NBT, NBIPX, SMB, CIFS Networking http:// timothydevans .me. uk /nbf2cifs/nbf2cifs. pdf TCP/IP NetBIOS SMB MS-RPC NT-Domain
Samba Services ,[object Object],[object Object],[object Object]
SMB Protocol ,[object Object],[object Object],[object Object],[object Object],[object Object]
SMB:  How does it work? ,[object Object],[object Object],[object Object],[object Object]
SMB Message ,[object Object],[object Object],[object Object]
Establishing a SMB Connection ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Security Levels ,[object Object],[object Object]
Background on AFS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AFS: Neat Idea #1 (Whole File Caching) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AFS: Neat Idea #2 (A Common View of the Global Namespace)
Recent Advances in Distributed File Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefsbergwolf
 
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 aniadkar
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentationAbu Osama
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS ServerSreenatha Reddy K R
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)udamale
 
Presentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPresentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPrakriti Dubey
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file systemSyaiful Ahdan
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba serverVeeral Bhateja
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network ProposalChris Riccio
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linuxPawan Kumar
 

What's hot (20)

Nfs
NfsNfs
Nfs
 
network filesystem briefs
network filesystem briefsnetwork filesystem briefs
network filesystem briefs
 
Nfs
NfsNfs
Nfs
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Nfs
NfsNfs
Nfs
 
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
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentation
 
Linux System Administration - NFS Server
Linux System Administration - NFS ServerLinux System Administration - NFS Server
Linux System Administration - NFS Server
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Sun NFS , Case study
Sun NFS , Case study Sun NFS , Case study
Sun NFS , Case study
 
Nfs1
Nfs1Nfs1
Nfs1
 
Presentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPresentation on nfs,afs,vfs
Presentation on nfs,afs,vfs
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
AFS introduction
AFS introductionAFS introduction
AFS introduction
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
 
Ftp server linux
Ftp server linuxFtp server linux
Ftp server linux
 
File Sever
File SeverFile Sever
File Sever
 
Postfix
PostfixPostfix
Postfix
 
Linux commands
Linux commandsLinux commands
Linux commands
 

Similar to NFS Protocol Explained - Network File System Versions, Implementations & Performance

Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)Sri Prasanna
 
Chapter 05
Chapter 05Chapter 05
Chapter 05cclay3
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)abdullah roomi
 
Network File System
Network File SystemNetwork File System
Network File SystemDivyang Oza
 
Chapter 06
Chapter 06Chapter 06
Chapter 06cclay3
 
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 systemSukhman Kaur
 
Distributed File Systems
Distributed File SystemsDistributed File Systems
Distributed File Systemsawesomesos
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)Sumant Garg
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systemsAbDul ThaYyal
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartAshwin Pawar
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OSC.U
 

Similar to NFS Protocol Explained - Network File System Versions, Implementations & Performance (20)

Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
 
pNFS Introduction
pNFS IntroductionpNFS Introduction
pNFS Introduction
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
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
 
Chapter 06
Chapter 06Chapter 06
Chapter 06
 
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
 
Distributed File Systems
Distributed File SystemsDistributed File Systems
Distributed File Systems
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
 
nfs.ppt
nfs.pptnfs.ppt
nfs.ppt
 
nfs.ppt
nfs.pptnfs.ppt
nfs.ppt
 
Oracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restartOracle database might have problems with stale NFSv3 locks upon restart
Oracle database might have problems with stale NFSv3 locks upon restart
 
Pnfs
PnfsPnfs
Pnfs
 
NFS.ppt
NFS.pptNFS.ppt
NFS.ppt
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
 
OS_Ch16
OS_Ch16OS_Ch16
OS_Ch16
 
OSCh16
OSCh16OSCh16
OSCh16
 

More from Waqas !!!!

More from Waqas !!!! (20)

Fiber
FiberFiber
Fiber
 
Distributedapplications
DistributedapplicationsDistributedapplications
Distributedapplications
 
Dictributed application by Waqas
Dictributed application by WaqasDictributed application by Waqas
Dictributed application by Waqas
 
Congestionin Data Networks
Congestionin Data NetworksCongestionin Data Networks
Congestionin Data Networks
 
Circuit Packet
Circuit PacketCircuit Packet
Circuit Packet
 
Chap24
Chap24Chap24
Chap24
 
Ad Hoc
Ad HocAd Hoc
Ad Hoc
 
10 Circuit Packet
10 Circuit Packet10 Circuit Packet
10 Circuit Packet
 
Vfs
VfsVfs
Vfs
 
Thesis11
Thesis11Thesis11
Thesis11
 
Satellites
SatellitesSatellites
Satellites
 
Lecture3 Physical Layer
Lecture3 Physical LayerLecture3 Physical Layer
Lecture3 Physical Layer
 
Communications
CommunicationsCommunications
Communications
 
Ch5
Ch5Ch5
Ch5
 
Sad Lec3
Sad Lec3Sad Lec3
Sad Lec3
 
Lect2
Lect2Lect2
Lect2
 
Object oriented programming by Waqas
Object oriented programming by WaqasObject oriented programming by Waqas
Object oriented programming by Waqas
 
Chapter01 1
Chapter01 1Chapter01 1
Chapter01 1
 
Chap9
Chap9Chap9
Chap9
 
Satellite Bands
Satellite BandsSatellite Bands
Satellite Bands
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

NFS Protocol Explained - Network File System Versions, Implementations & Performance

  • 1.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. NFS (Network File System) NO Create file CREATE NO Remove file REMOVE YES Fix server cache data to the disk COMMIT YES Check access ACCESS YES Read from symbolic link READLINK YES Read file READ YES Write to the file WRITE NO Rename file RENAME YES File name search LOOKUP YES Set file attribute SETATTR YES Get file attribute GETATTR Idempotent Action RCP request
  • 10. NFS (Network File System) YES Get FS static attribute FSINFO YES Get POSIX information PATHCONF YES Get FS dynamic attribute FSSTAT NO Crate directory MKDIR NO Remove directory RMDIR YES Read directory READDIR YES Extended directory read READDIRPLUS NO Create special node MKNOD NO Create symbolic link SYMLINK NO Create hard link LINK Idempotent Action RCP request
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. FreeBSD NFS implementation mount portmap mountd Client Server User level Kernel level 1 2 3 4
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. FreeBSD NFS implementation (read cache lease) Client A Client B Server Read req. + lease Answer Read sys. call Read sys. Call (from cache) Read req. (cache miss) Answer Lease timeout Read sys. call Lease expired Read lease req. Answer with same ctime ctime the same - cache valid Read sys. Call (from cache) Lease timeout Read req. (cache miss) Answer Read cache lease for client A Read req. + lease Read sys. call Read sys. call Lease timeout Answer Client B added to lease Read req. (cache miss) Answer Time
  • 26. FreeBSD NFS implementation (write cache lease) Server Client B Write system call Write cached lease Write cached lease for client B Answer (write cache lease) Write system call (cached leaved records) Write cached lease req. before previous lease expired. Get record lease Lease update Answer (write cache lease) Lease timeout System call Lease expired record answer record answer Lease expiration Stopped for a moment because of records Write_slack seconds After last records Time
  • 27. FreeBSD NFS implementation (non-cache lease) Client A Server Client B Time Read sys. call req. Read req. + lease Read cache lease for A client answer Read req. (from cache) Read req. (miss cache) answer Lease timeout Read sys. call req. Lease request Answer (non-cache lease) Read sys. call req. (non-cache lease mode) Read req. Read data Lease expired Write sys. call req. Get write cache lease Answer (non-cache lease) Write sys. call (async write cached) Cleanup req. Write cached data to server record answer answer record Release msg. Write sys. call req. Get write cache lease record answer Synchronous Writes wihout cache
  • 28.
  • 29.
  • 30.
  • 31.  
  • 32. Local and remote file systems accessible on an NFS client mount –t nfs Server1:/ export/people /usr /students mount –t nfs Server2:/ nfs/users /usr/ staff
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. AFS: Neat Idea #2 (A Common View of the Global Namespace)
  • 44.