Many of you know that NFS Usage scenarios of , Also know how to configure and use , But yes NFS Little is known about the working principle of .

NFS yes C/S Pattern , First of all, there should be a server NFS service , Then each client directly mounts the shared directory to use .NFS The service itself doesn't listen to ports , The communication between server and client is through RPC Agreement to complete .

RPC(Remote Procedure Call) Remote procedure call protocol , A request for a service from a remote computer program over a network , You don't need to know the protocols of the underlying network technology . It is widely used to support distributed applications ( Different components are distributed in different areas Same as the application on the computer ) Technology .

Look again. NFS Communication process of

As shown in the figure above , When the access program passes NFS Client to NFS When the server accesses the file , The request data flow is as follows :

1、 First, the user visits the website program , By program in NFS Issued on the client NFS Query request for file access function , At this time NFS client ( The server that executes the program )RPC service (portmap or rpcbind service ) Will go to NFS Server side RPC service ( namely portmap or rpcbind service ) Of 111 Port out NFS Query request for file access function .

2、NFS Server side RPC service ( namely portmap or rpcbind service ) Find the corresponding registered NFSdaemon After the port , notice NFS Client's RPC service ( namely portmap or rpcbind service ).

3、 here NFS The client can get the correct port , And then directly with NFS daemon Online access to data .

4、NFS After the client successfully accesses the data , Back to the front end , Tell the user to access the result , As a website user , We've done an access operation .

because NFS All the functions of the RPC service ( namely portmap or rpcbind) register , therefore RPC service ( namely portmap or rpcbind service ) To get NFS The port number of each service (portnumber)、PID、NFS What the host is monitoring IP etc. , and NFS The client is able to send RPC service ( namely portmap or rpcbind service ) Ask to find the right port .

NFS More articles on how it works

  1. NFS Working principle and configuration file details

    nfs Working principle and process       As shown in the figure above , When the access program passes NFS Client to NFS When the server accesses the file , The request data flow is as follows :     1. First, the user visits the website program , By program in NFS Issued on the client NFS File access function ...

  2. NFS Brief description of working principle

    1. First, the user visits the website program , By program in NFS The client issues access NFS File request ,NFS On the client side RPC Services to... Through the network NFS Server's RPC Service 111 Port out NFS Query request for file access . 2.NFS Server's RPC ...

  3. NFS note ( One )NFS Server working principle and detailed configuration

    One .NFS working principle 1. What is? NFS The server NFS Namely Network File System Abbreviation , Its biggest function is to be able to pass through the network , Let different machines . Different operating systems can share each other's files . NFS The server can make P ...

  4. NFS How the server works

    One .NFS brief introduction NFS yes Network File System Abbreviation , Chinese is called network file system , Its main function is through the network ( A LAN ) Allow different host systems to share files or directories ,NFS The client of ( Generally, it is an application server ...

  5. 【Oracle colony 】ORACLE DATABASE 11G RAC Knowledge graphic detailed course RAC Working principle and related components ( 3、 ... and )

    RAC Working principle and related components ( 3、 ... and ) summary : Write down the original intention and motivation of this document , From the first part of <oracle Basic operation manual >.oracle The basic operation manual is the author's work oracle Summary of basic knowledge learning . And then form a body ...

  6. LVS-DR working principle

    We all know LVS Yes LVS-DR,LVS-NAT,LVS-TUN Three models , among DR Mode means Direct Routing( Direct routing ). about LVS-DR, How well do you know ? In this paper, through an example scenario , Detailed introduction ...

  7. cookie And how session state works

    One : There are two types of cookie: 1> conversation cookie (session cookie)         Do not set expiration time , It means this cookie The lifecycle is during a browser session , Just close the browser window ,   ...

  8. PHP Medium Session working principle

    Always in use session Store the data , I haven't summed it up session How to use it and how it works , Let's do some combing here today . The introduction here is mainly based on php Language , Other language operations may be different , But the basic principle remains the same . 1 ...

  9. Reprint :【Oracle colony 】RAC Knowledge of graphic detailed course ( 3、 ... and )--RAC Working principle and related components

    Article navigation Introduction to cluster concept ( One ) ORACLE The concept and principle of cluster ( Two ) RAC Working principle and related components ( 3、 ... and ) Cache fusion technology ( Four ) RAC Special problems and practical experience ( 5、 ... and ) ORACLE 11 G edition 2 RAC stay LINUX ...

Random recommendation

  1. linux c++ Application memory high or occupied CPU High quality solutions _20161213

    For most real-time programs , The balance between the machine's loss and its own processing speed caused by the loop problem in real-time processing related programs , And the interaction with other programs and the impact on other functions will inevitably become the biggest obstacle in program design, but also the biggest breakthrough . In all this ...

  2. JavaScript Pre parse 1

    var It doesn't have to be used to define local variables jscript The boundary between global variables and local variables is like this :                   The process of body ( Including method function, object Object o ={}) All variables outside are not ...

  3. Effective Java 12 Consider implementing Comparable

    Sort array with sorted collection construction. public class WordList { public static void main(Stri ...

  4. OSI Seven tier protocol

  5. phpcms How to get articles

    Request address http://127.0.0.1/phpcms/index.php?m=content&c=index&a=show&catid=6&id=8 Let's judge the correspondence of the address first ...

  6. stay Cognos Drill through features are used in reports , Parameter passing

    Reprinted to :http://blog.sina.com.cn/s/blog_6eda1c4e0100mu3t.html Cognos There are three kinds of drilling methods : 1. Inherent in the model -> from CUBE and DMR the ...

  7. JS in sort() Method principle and application

    explain If the method is called without parameters , The elements in the array will be sorted alphabetically , To be more precise , It's in the order of character encoding . To achieve this , First of all, the elements of the array should be converted into strings ( If necessary, ), For comparison . arra ...

  8. Python Commonly used time Handle

    #coding=utf-8 # python2.7 Tool statements from sys import version_info import time import datetime if version_in ...

  9. codeforces Water problem 100 Avenue Question 9 Codeforces Beta Round #63 (Div. 2) Young Physicist (math)

    Topic link :http://www.codeforces.com/problemset/problem/69/A The question : Here you are. n Three dimensional space vectors , For this n Whether the sum of two vectors is zero .C++ Code : #include & ...

  10. ( Two )swagger-springmvc

    How to get started 1. I am here  http://mvnrepository.com/ On the search  swagger-springmvc 2. I found a specific version  http://mvnrepository.com/art ...