SlideShare une entreprise Scribd logo
1  sur  3
Télécharger pour lire hors ligne
Network File System Protocol (NFS Protocol Sequence Diagram)
              Client                                    Server                                                       EventStudio System Designer 4.0
            NFS Client                               NFS Server
  Application        Client Shell   Port Mapper    Mountd Daemon                            NFSD Daemon                  11-Aug-07 22:47 (Page 1)

This diagram was generated with EventStudio System Designer 4.0. (http://www.EventHelix.com/EventStudio)

Copyright © 2000-2007 EventHelix.com Inc. All Rights Reserved.
This sequence diagram describes mounting, opening and reading of a file via the NFS (Network File System).
Server Startup
                                        Open Port 111 for UDP and TCP                                     The port mapper starts listening on UDP and TCP
                                                                                                          port 111 for program number to port mapping
                                                                                                          requests from NFS clients.
                                                             1:Register                                   Mountd, the daemon handling NFS mounts,
                                                      Program Number = 100005,                            registers its port number for receiving mount
                                                          Mount Port Number                               requests (Program number 1000005).

                                                                         2:Register                       The NFS server registers its port number for NFS
                                                                Program Number = 100003,                  (Program number 1000003).
                                                                    NFS Port Number

NFS Mount
 Mount server:/user/bill as                                                                               Application initiates mounting of a file system.
         /nfs/bill
               1:mount()                                                                                  The mount API for the OS is invoked.
             server:/user/bill,
                 /nfs/bill

                                2:RPC get_port request                                                    The mount applications port number on the
                                     port_num = 111,                                                      server is determined from the port mapper. The
                                Program Number = 100005                                                   request includes the program number for mount.
                                                                                                          Remote Procedure Call (RPC) is used as the
                                                                                                          underlying protocol for this access. All message
                                                                                                          interactions in NFS are performed as remote
                                                                                                          procedure calls.
                                 3:RPC get_port reply
                                    Mount Port Number

                                          4:RPC MOUNT request                                             Request the NFS server to mount the file system.
                                                 port_num = 111,
                                                Mount Port Number,
                                                 server:/user/bill,
                                                      /nfs/bill

                                                                      Authenticate Client                 Mountd uses the client IP address to authenticate
                                                                                                          the client.
                                                               Perform a local mount for the              The server performs a local mount. The results of
                                                                  requested file system.                  this mount command will be passed back to the
                                                                                                          NFS client.
                                               5:RPC MOUNT reply                                          Communicate the mount results to the NFS client.
                                          File Handle for the File System

                Invoke the mount system call to                                                           The remote mount information is saved along
                associate the NFS handle with a                                                           with the local mount point.
                       local mount point

                6:returns                                                                                 Report a successful mount to the application.
                SUCCESS

Opening a File
 Read file: /nfs/bill/public/
     nfs_tutorial.txt
                1:open()
  file = /nfs/bill/public/ nfs_tutorial.txt,
             mode = read only
Network File System Protocol (NFS Protocol Sequence Diagram)
              Client                                    Server                                                  EventStudio System Designer 4.0
            NFS Client                               NFS Server
  Application        Client Shell   Port Mapper    Mountd Daemon                      NFSD Daemon                   11-Aug-07 22:47 (Page 2)

                                                                                                    Application uses the OS API to open a file. The
                                                                                                    application is not aware that the requested file is
                                                                                                    remotely located and needs to accessed via NFS.
          Process file name to find that /nfs/bill                                                  The OS parses the file to find that the file /nfs/bill
                     is NFS mounted                                                                 is a NFS mounted file system. This initiates the
                                                                                                    NFS file open processing.
                           2:RPC get_port request                                                   Since the file is located on an NFS Server, the
                                port_num = 111,                                                     client initiates access by requesting the port
                           Program Number = 100003                                                  number for the NFS service.

                            3:RPC get_port reply
                               NFS Port Number

The client hierarchically parses the path and obtains a file handle. NFS commands GETATTR and LOOKUP are used to
perform these operations. GETATTR returns the attributes of a file, for example permissions, file size, file owner. LOOKUP
looks up the file and returns a file handle to the file.
                                             4:RPC GETATTR Request                                  Get the file attributes for the /user/bill directory.
                                                            /user/bill

                                               5:RPC GETATTR Reply
                                                          status = OK

                                              6:RPC LOOKUP Request                                  Check if the public directory is available.
                                                        /user/bill/public

                                                7:RPC LOOKUP Reply
                                                          status = OK

                                              8:RPC LOOKUP Request                                  Check if the requested file exists.
                                               /user/bill/public/ nfs_tutorial.txt

                                                9:RPC LOOKUP Reply
                                                          status = OK

                                            10:RPC GETATTR Request                                  Obtain the attributes about the requested file.
                                               /user/bill/public/ nfs_tutorial.txt

                                              11:RPC GETATTR Reply
                                                          status = OK


           12:returns
            File Pointer

Reading File Contents
             1:read()                                                                               The application initiates a read for the file.

This file is on a NFS mounted file system, so the read command is performed via NFS READ RPC calls. The READ calls
specify the file name, the starting offset in each request. The NFS server reads the standard block size and returns to the client.
Note that the NFS server itself is stateless and handles each request independently. The client maintains the application and
performs multiple reads to complete the file read.

The following interaction shows how the client performs multiple reads to complete the file reading operation.
                                                2:RPC READ Request                                  Read from the file start (offset 0)
                                               /user/bill/public/ nfs_tutorial.txt,
                                                        start_offset = 0

                                                     3:RPC READ Reply
                                                         status = OK,
                                                      read_bytes = 1024
Network File System Protocol (NFS Protocol Sequence Diagram)
              Client                                    Server                                      EventStudio System Designer 4.0
            NFS Client                               NFS Server
  Application        Client Shell   Port Mapper    Mountd Daemon           NFSD Daemon                  11-Aug-07 22:47 (Page 3)

                                       4:RPC READ Request                                Initiate the read from the offset 1024 (0 to 1023
                                    /user/bill/public/ nfs_tutorial.txt,                 byte offsets have already been read).
                                          start_offset = 1024

                                       5:RPC READ Reply
                                              status = OK,
                                           read_bytes = 2048

                                     6:RPC READ Request                                  Read the remaining part of the file.
                                    /user/bill/public/ nfs_tutorial.txt,
                                          start_offset = 2048

                                       7:RPC READ Reply
                                              status = OK,
                                            read_bytes = 20


          8:returns

Contenu connexe

Tendances

Network Automation with Ansible
Network Automation with AnsibleNetwork Automation with Ansible
Network Automation with AnsibleAnas
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)udamale
 
Alphorm.com Formation FortiManager : Installation et configuration
Alphorm.com Formation FortiManager : Installation et configurationAlphorm.com Formation FortiManager : Installation et configuration
Alphorm.com Formation FortiManager : Installation et configurationAlphorm
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linuxPapu Kumar
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configurationSanguine_Eva
 
Triển khai máy in thông qua print server bằng gpo it documents website
Triển khai máy in thông qua print server bằng gpo   it documents websiteTriển khai máy in thông qua print server bằng gpo   it documents website
Triển khai máy in thông qua print server bằng gpo it documents websitelaonap166
 
Cours Unix Emsi 2023 2024.pdf
Cours Unix Emsi 2023 2024.pdfCours Unix Emsi 2023 2024.pdf
Cours Unix Emsi 2023 2024.pdfADNANEELBOUAAMRI
 
C8 Réseaux : Couche applicative
C8 Réseaux : Couche applicativeC8 Réseaux : Couche applicative
C8 Réseaux : Couche applicativePRONETIS
 
How-To: Manage DHCP Servers with SolarWinds IP Address Manager
How-To: Manage DHCP Servers with SolarWinds IP Address ManagerHow-To: Manage DHCP Servers with SolarWinds IP Address Manager
How-To: Manage DHCP Servers with SolarWinds IP Address ManagerSolarWinds
 
z/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolverz/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS ResolverzOSCommserver
 
Alphorm.com Formation Fortinet UTM
Alphorm.com Formation Fortinet UTMAlphorm.com Formation Fortinet UTM
Alphorm.com Formation Fortinet UTMAlphorm
 
programme d'études.pdf
programme d'études.pdfprogramme d'études.pdf
programme d'études.pdfRoiduSilence
 

Tendances (20)

Network Automation with Ansible
Network Automation with AnsibleNetwork Automation with Ansible
Network Automation with Ansible
 
TỰ HỌC LPI 2
TỰ HỌC LPI 2TỰ HỌC LPI 2
TỰ HỌC LPI 2
 
NFS(Network File System)
NFS(Network File System)NFS(Network File System)
NFS(Network File System)
 
Alphorm.com Formation FortiManager : Installation et configuration
Alphorm.com Formation FortiManager : Installation et configurationAlphorm.com Formation FortiManager : Installation et configuration
Alphorm.com Formation FortiManager : Installation et configuration
 
IP Routing on z/OS
IP Routing on z/OSIP Routing on z/OS
IP Routing on z/OS
 
Linux
LinuxLinux
Linux
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
 
Snmp
SnmpSnmp
Snmp
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
Triển khai máy in thông qua print server bằng gpo it documents website
Triển khai máy in thông qua print server bằng gpo   it documents websiteTriển khai máy in thông qua print server bằng gpo   it documents website
Triển khai máy in thông qua print server bằng gpo it documents website
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Basics of-linux
Basics of-linuxBasics of-linux
Basics of-linux
 
TỰ HỌC LPI 1
TỰ HỌC LPI 1 TỰ HỌC LPI 1
TỰ HỌC LPI 1
 
Cours Unix Emsi 2023 2024.pdf
Cours Unix Emsi 2023 2024.pdfCours Unix Emsi 2023 2024.pdf
Cours Unix Emsi 2023 2024.pdf
 
C8 Réseaux : Couche applicative
C8 Réseaux : Couche applicativeC8 Réseaux : Couche applicative
C8 Réseaux : Couche applicative
 
How-To: Manage DHCP Servers with SolarWinds IP Address Manager
How-To: Manage DHCP Servers with SolarWinds IP Address ManagerHow-To: Manage DHCP Servers with SolarWinds IP Address Manager
How-To: Manage DHCP Servers with SolarWinds IP Address Manager
 
Linux OS presentation
Linux OS presentationLinux OS presentation
Linux OS presentation
 
z/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolverz/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolver
 
Alphorm.com Formation Fortinet UTM
Alphorm.com Formation Fortinet UTMAlphorm.com Formation Fortinet UTM
Alphorm.com Formation Fortinet UTM
 
programme d'études.pdf
programme d'études.pdfprogramme d'études.pdf
programme d'études.pdf
 

En vedette

NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEMRoshan Kumar
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed ComputingChandan Padalkar
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)Raghu nath
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentationAbu Osama
 
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)Keisuke Takahashi
 
Couchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionCouchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionKelum Senanayake
 
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Spark Summit
 
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013Amazon Web Services
 
Filesystem Comparison: NFS vs GFS2 vs OCFS2
Filesystem Comparison: NFS vs GFS2 vs OCFS2Filesystem Comparison: NFS vs GFS2 vs OCFS2
Filesystem Comparison: NFS vs GFS2 vs OCFS2Giuseppe Paterno'
 
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...Spark Summit
 
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark Summit
 
Making Structured Streaming Ready for Production
Making Structured Streaming Ready for ProductionMaking Structured Streaming Ready for Production
Making Structured Streaming Ready for ProductionDatabricks
 
Internet architecture
Internet architectureInternet architecture
Internet architectureNaman Rastogi
 
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...Spark Summit
 
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...Spark Summit
 

En vedette (20)

Nfs
NfsNfs
Nfs
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
Network File System in Distributed Computing
Network File System in Distributed ComputingNetwork File System in Distributed Computing
Network File System in Distributed Computing
 
Sun NFS , Case study
Sun NFS , Case study Sun NFS , Case study
Sun NFS , Case study
 
Network file system (nfs)
Network file system (nfs)Network file system (nfs)
Network file system (nfs)
 
Nfs
NfsNfs
Nfs
 
Nfs version 4 protocol presentation
Nfs version 4 protocol presentationNfs version 4 protocol presentation
Nfs version 4 protocol presentation
 
Nf Sp4
Nf Sp4Nf Sp4
Nf Sp4
 
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)
最新技術動向 GlusterFS (仮想化DAY, Internet Week 2011)
 
Couchbase - Yet Another Introduction
Couchbase - Yet Another IntroductionCouchbase - Yet Another Introduction
Couchbase - Yet Another Introduction
 
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
Engineering Fast Indexes for Big-Data Applications: Spark Summit East talk by...
 
FILE SERVER
FILE SERVERFILE SERVER
FILE SERVER
 
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013
NFS and CIFS Options for AWS (STG401) | AWS re:Invent 2013
 
Filesystem Comparison: NFS vs GFS2 vs OCFS2
Filesystem Comparison: NFS vs GFS2 vs OCFS2Filesystem Comparison: NFS vs GFS2 vs OCFS2
Filesystem Comparison: NFS vs GFS2 vs OCFS2
 
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...
Effective Spark with Alluxio: Spark Summit East talk by Gene Pang and Haoyuan...
 
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
Spark + Parquet In Depth: Spark Summit East Talk by Emily Curtin and Robbie S...
 
Making Structured Streaming Ready for Production
Making Structured Streaming Ready for ProductionMaking Structured Streaming Ready for Production
Making Structured Streaming Ready for Production
 
Internet architecture
Internet architectureInternet architecture
Internet architecture
 
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...
Spark and Object Stores —What You Need to Know: Spark Summit East talk by Ste...
 
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...
Bulletproof Jobs: Patterns for Large-Scale Spark Processing: Spark Summit Eas...
 

Similaire à NFS Protocol Diagram Explains File Mounting, Opening & Reading

Filesystems, RPC and HDFS
Filesystems, RPC and HDFSFilesystems, RPC and HDFS
Filesystems, RPC and HDFSAlexander Alten
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)Raghu nath
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file systemSyaiful Ahdan
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)abdullah roomi
 
Server configuration
Server configurationServer configuration
Server configurationAisha Talat
 
Chapter 05
Chapter 05Chapter 05
Chapter 05cclay3
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)Sumant Garg
 
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...Ulf Troppens
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicCircling Cycle
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network ProposalChris Riccio
 

Similaire à NFS Protocol Diagram Explains File Mounting, Opening & Reading (20)

Filesystems, RPC and HDFS
Filesystems, RPC and HDFSFilesystems, RPC and HDFS
Filesystems, RPC and HDFS
 
Linux network file system (nfs)
Linux   network file system (nfs)Linux   network file system (nfs)
Linux network file system (nfs)
 
Meeting 9 nfs network file system
Meeting 9   nfs network file systemMeeting 9   nfs network file system
Meeting 9 nfs network file system
 
Network File System (NFS)
Network File System (NFS)Network File System (NFS)
Network File System (NFS)
 
Cs 704 d rpc
Cs 704 d rpcCs 704 d rpc
Cs 704 d rpc
 
Server configuration
Server configurationServer configuration
Server configuration
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Linux06 nfs
Linux06 nfsLinux06 nfs
Linux06 nfs
 
Np unit1
Np unit1Np unit1
Np unit1
 
Rhel4
Rhel4Rhel4
Rhel4
 
ENFS
ENFSENFS
ENFS
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
Ch18 system administration
Ch18 system administration Ch18 system administration
Ch18 system administration
 
LinuxWeek13.ppt
LinuxWeek13.pptLinuxWeek13.ppt
LinuxWeek13.ppt
 
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...
Ulf troppens - kerberized NFSv4 and secure data access to personalized patien...
 
Ltsp talk
Ltsp talkLtsp talk
Ltsp talk
 
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan BaljevicHP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
HP-UX 11iv3 Ignite-UX with NFSv4 and SSH Tunnel by Dusan Baljevic
 
Pnfs
PnfsPnfs
Pnfs
 
10
1010
10
 
Linux Based Network Proposal
Linux Based Network ProposalLinux Based Network Proposal
Linux Based Network Proposal
 

Plus de Roberto Castro

Tutorial de instalacao_do_zabbix_2.0.0
Tutorial de instalacao_do_zabbix_2.0.0Tutorial de instalacao_do_zabbix_2.0.0
Tutorial de instalacao_do_zabbix_2.0.0Roberto Castro
 
Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Roberto Castro
 
O feng office open source
O feng office open sourceO feng office open source
O feng office open sourceRoberto Castro
 
Livropfsense2 0ptbr-120227112435-phpapp02
Livropfsense2 0ptbr-120227112435-phpapp02Livropfsense2 0ptbr-120227112435-phpapp02
Livropfsense2 0ptbr-120227112435-phpapp02Roberto Castro
 
Aula14 vsftp de-introopenldap
Aula14 vsftp de-introopenldapAula14 vsftp de-introopenldap
Aula14 vsftp de-introopenldapRoberto Castro
 

Plus de Roberto Castro (11)

Tutorial de instalacao_do_zabbix_2.0.0
Tutorial de instalacao_do_zabbix_2.0.0Tutorial de instalacao_do_zabbix_2.0.0
Tutorial de instalacao_do_zabbix_2.0.0
 
Slide lpi mudancas lpic1
Slide lpi mudancas lpic1Slide lpi mudancas lpic1
Slide lpi mudancas lpic1
 
Pentest conisli07
Pentest conisli07Pentest conisli07
Pentest conisli07
 
O feng office open source
O feng office open sourceO feng office open source
O feng office open source
 
Mini curso hacker
Mini curso hackerMini curso hacker
Mini curso hacker
 
Livropfsense2 0ptbr-120227112435-phpapp02
Livropfsense2 0ptbr-120227112435-phpapp02Livropfsense2 0ptbr-120227112435-phpapp02
Livropfsense2 0ptbr-120227112435-phpapp02
 
Aula20 open vpn
Aula20 open vpnAula20 open vpn
Aula20 open vpn
 
Aula14 vsftp de-introopenldap
Aula14 vsftp de-introopenldapAula14 vsftp de-introopenldap
Aula14 vsftp de-introopenldap
 
93511895 lm-87-ce
93511895 lm-87-ce93511895 lm-87-ce
93511895 lm-87-ce
 
2 virtualizacao
2 virtualizacao2 virtualizacao
2 virtualizacao
 
Servicos de internet
Servicos de internetServicos de internet
Servicos de internet
 

NFS Protocol Diagram Explains File Mounting, Opening & Reading

  • 1. Network File System Protocol (NFS Protocol Sequence Diagram) Client Server EventStudio System Designer 4.0 NFS Client NFS Server Application Client Shell Port Mapper Mountd Daemon NFSD Daemon 11-Aug-07 22:47 (Page 1) This diagram was generated with EventStudio System Designer 4.0. (http://www.EventHelix.com/EventStudio) Copyright © 2000-2007 EventHelix.com Inc. All Rights Reserved. This sequence diagram describes mounting, opening and reading of a file via the NFS (Network File System). Server Startup Open Port 111 for UDP and TCP The port mapper starts listening on UDP and TCP port 111 for program number to port mapping requests from NFS clients. 1:Register Mountd, the daemon handling NFS mounts, Program Number = 100005, registers its port number for receiving mount Mount Port Number requests (Program number 1000005). 2:Register The NFS server registers its port number for NFS Program Number = 100003, (Program number 1000003). NFS Port Number NFS Mount Mount server:/user/bill as Application initiates mounting of a file system. /nfs/bill 1:mount() The mount API for the OS is invoked. server:/user/bill, /nfs/bill 2:RPC get_port request The mount applications port number on the port_num = 111, server is determined from the port mapper. The Program Number = 100005 request includes the program number for mount. Remote Procedure Call (RPC) is used as the underlying protocol for this access. All message interactions in NFS are performed as remote procedure calls. 3:RPC get_port reply Mount Port Number 4:RPC MOUNT request Request the NFS server to mount the file system. port_num = 111, Mount Port Number, server:/user/bill, /nfs/bill Authenticate Client Mountd uses the client IP address to authenticate the client. Perform a local mount for the The server performs a local mount. The results of requested file system. this mount command will be passed back to the NFS client. 5:RPC MOUNT reply Communicate the mount results to the NFS client. File Handle for the File System Invoke the mount system call to The remote mount information is saved along associate the NFS handle with a with the local mount point. local mount point 6:returns Report a successful mount to the application. SUCCESS Opening a File Read file: /nfs/bill/public/ nfs_tutorial.txt 1:open() file = /nfs/bill/public/ nfs_tutorial.txt, mode = read only
  • 2. Network File System Protocol (NFS Protocol Sequence Diagram) Client Server EventStudio System Designer 4.0 NFS Client NFS Server Application Client Shell Port Mapper Mountd Daemon NFSD Daemon 11-Aug-07 22:47 (Page 2) Application uses the OS API to open a file. The application is not aware that the requested file is remotely located and needs to accessed via NFS. Process file name to find that /nfs/bill The OS parses the file to find that the file /nfs/bill is NFS mounted is a NFS mounted file system. This initiates the NFS file open processing. 2:RPC get_port request Since the file is located on an NFS Server, the port_num = 111, client initiates access by requesting the port Program Number = 100003 number for the NFS service. 3:RPC get_port reply NFS Port Number The client hierarchically parses the path and obtains a file handle. NFS commands GETATTR and LOOKUP are used to perform these operations. GETATTR returns the attributes of a file, for example permissions, file size, file owner. LOOKUP looks up the file and returns a file handle to the file. 4:RPC GETATTR Request Get the file attributes for the /user/bill directory. /user/bill 5:RPC GETATTR Reply status = OK 6:RPC LOOKUP Request Check if the public directory is available. /user/bill/public 7:RPC LOOKUP Reply status = OK 8:RPC LOOKUP Request Check if the requested file exists. /user/bill/public/ nfs_tutorial.txt 9:RPC LOOKUP Reply status = OK 10:RPC GETATTR Request Obtain the attributes about the requested file. /user/bill/public/ nfs_tutorial.txt 11:RPC GETATTR Reply status = OK 12:returns File Pointer Reading File Contents 1:read() The application initiates a read for the file. This file is on a NFS mounted file system, so the read command is performed via NFS READ RPC calls. The READ calls specify the file name, the starting offset in each request. The NFS server reads the standard block size and returns to the client. Note that the NFS server itself is stateless and handles each request independently. The client maintains the application and performs multiple reads to complete the file read. The following interaction shows how the client performs multiple reads to complete the file reading operation. 2:RPC READ Request Read from the file start (offset 0) /user/bill/public/ nfs_tutorial.txt, start_offset = 0 3:RPC READ Reply status = OK, read_bytes = 1024
  • 3. Network File System Protocol (NFS Protocol Sequence Diagram) Client Server EventStudio System Designer 4.0 NFS Client NFS Server Application Client Shell Port Mapper Mountd Daemon NFSD Daemon 11-Aug-07 22:47 (Page 3) 4:RPC READ Request Initiate the read from the offset 1024 (0 to 1023 /user/bill/public/ nfs_tutorial.txt, byte offsets have already been read). start_offset = 1024 5:RPC READ Reply status = OK, read_bytes = 2048 6:RPC READ Request Read the remaining part of the file. /user/bill/public/ nfs_tutorial.txt, start_offset = 2048 7:RPC READ Reply status = OK, read_bytes = 20 8:returns