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 briefs
bergwolf
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentation
Abu Osama
 

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 Nf Sp4

Dfs (Distributed computing)
Dfs (Distributed computing)Dfs (Distributed computing)
Dfs (Distributed computing)
Sri Prasanna
 
Chapter 8 distributed file systems
Chapter 8 distributed file systemsChapter 8 distributed file systems
Chapter 8 distributed file systems
AbDul ThaYyal
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
C.U
 

Similar to Nf Sp4 (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
 
OSCh16
OSCh16OSCh16
OSCh16
 
Ch16 OS
Ch16 OSCh16 OS
Ch16 OS
 
OS_Ch16
OS_Ch16OS_Ch16
OS_Ch16
 

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

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
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
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
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
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Nf Sp4

  • 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.