CN109040207A - A kind of method, device and equipment accessing User space Network File System - Google Patents
A kind of method, device and equipment accessing User space Network File System Download PDFInfo
- Publication number
- CN109040207A CN109040207A CN201810803081.7A CN201810803081A CN109040207A CN 109040207 A CN109040207 A CN 109040207A CN 201810803081 A CN201810803081 A CN 201810803081A CN 109040207 A CN109040207 A CN 109040207A
- Authority
- CN
- China
- Prior art keywords
- ipv6
- file system
- target
- user space
- agreement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000003860 storage Methods 0.000 claims abstract description 75
- 101100260045 Arabidopsis thaliana TCP6 gene Proteins 0.000 claims abstract description 48
- 101100045628 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) CCT6 gene Proteins 0.000 claims abstract description 48
- 238000004590 computer program Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 6
- 230000008901 benefit Effects 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims 1
- 230000000694 effects Effects 0.000 abstract description 2
- RBZXVDSILZXPDM-UHFFFAOYSA-N 1-(2,5-dimethoxy-3,4-dimethylphenyl)propan-2-amine Chemical compound COC1=CC(CC(C)N)=C(OC)C(C)=C1C RBZXVDSILZXPDM-UHFFFAOYSA-N 0.000 description 10
- 230000008569 process Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000002776 aggregation Effects 0.000 description 3
- 238000004220 aggregation Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
- H04L69/162—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of methods for accessing User space Network File System, method includes the following steps: there is the port of the address IPv6 using binding, receive the access request that destination client utilizes TCP6 agreement to send;It determines the corresponding storage equipment of access request, and obtains with the target share directory of IPv6 format carry storage equipment;Create the target socket of linking objective client and target share directory;The corresponding transport protocol of target socket is TCP6 agreement;The access service of storage equipment is provided to destination client using target socket.The access of IPV6 carry can be realized in User space Network File System.It solves due to the limited caused User space network file system performance restriction problem of address resource and safety problem.The invention also discloses a kind of device, equipment and readable storage medium storing program for executing for accessing User space Network File System, have corresponding technical effect.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of method for accessing User space Network File System, dress
It sets, equipment and readable storage medium storing program for executing.
Background technique
User space Network File System (NFS-Ganesha) belongs to open source projects, under system service fault scenes, compares
In kernel state Network File System (Network File System, NFS) have preferably it is managerial and maintainable, and
NFS-Ganesha is easy to implement and safeguards.Therefore, currently, before the storage NFS-Ganesha application of big data magnanimity distributed objects
Scape is very big.
Existing, NFS-Ganesha is based on IPv4 and externally provides service.But since there are network address resources by IPv4
Limited problem constrains the application and development of NFS-Ganesha.For example, since the address IPv4 is limited, so that User space network
The safety of file system, process performance, are unable to satisfy user demand.
In conclusion the problems such as how effectively promoting the safety of Network File System, is current those skilled in the art
Member's technical problem urgently to be solved.
Summary of the invention
It accesses the method, apparatus of User space Network File System, equipment the object of the present invention is to provide a kind of and readable deposits
Storage media, the carry access in a manner of in User space Network File System realization IPV6.
In order to solve the above technical problems, the invention provides the following technical scheme:
A method of access User space Network File System, comprising:
There is the port of the address IPv6 using binding, receives the access request that destination client utilizes TCP6 agreement to send;
It determines the corresponding storage equipment of the access request, and obtains with the mesh of the IPv6 format carry storage equipment
Mark share directory;
Creation connects the target socket of the destination client and the target share directory;The target socket pair
The transport protocol answered is TCP6 agreement;
The access service of the storage equipment is provided to the destination client using the target socket.
Preferably, further includes:
The address Ipv6 and port are bound using Bind_sockets_V6 function.
Preferably, the port using the address binding IP v6 receives the visit that destination client utilizes TCP6 agreement to send
Ask request, comprising:
Socket is monitored in creation, is monitored using the monitoring socket the port of the address binding IP v6;
Receive the access request that destination client utilizes TCP6 agreement to send.
Preferably, it in the port for having the address IPv6 using binding, receives destination client and is sent using TCP6 agreement
Access request before, further includes:
Configuration file is modified, IPv6 agreement is enabled.
Preferably, it obtains with the target share directory of the IPv6 format carry storage equipment, comprising:
Judge in share directory with the presence or absence of the storage equipment;
If it is, directly using the share directory as target share directory;
If it is not, then by the storage equipment with IPv6 format carry into target share directory.
Preferably, it is described by the storage equipment with IPv6 format carry into target share directory, comprising:
Equipment will be stored under the mount directory of IPv6 format carry to the target share directory using mounting instruction.
Preferably, the port for having the address IPv6 using binding receives what destination client was sent using TCP6 agreement
Access request, comprising:
Whether the state for judging the IPv6 switch in NFS-Ganesha service is enabled state;
If it is, there is the port of the address IPv6 using binding, the visit that destination client utilizes TCP6 agreement to send is received
Ask request.
A kind of device accessing User space Network File System, comprising:
Access request receiving module receives destination client and utilizes TCP6 for there is the port of the address IPv6 using binding
The access request that agreement is sent;
Target share directory obtains module, for determining the corresponding storage equipment of the access request, and obtains with IPv6
The target share directory of the format carry storage equipment;
Target socket creation module, for creating the target for connecting the destination client and the target share directory
Socket;The corresponding transport protocol of the target socket is TCP6 agreement;
Service providing module is accessed, is set for providing the storage to the destination client using the target socket
Standby access service.
A kind of equipment accessing User space Network File System, comprising:
Memory, for storing computer program;
Processor realizes the method for above-mentioned access User space Network File System when for executing the computer program
Step.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing
The step of processor realizes the method for above-mentioned access User space Network File System when executing.
Using method provided by the embodiment of the present invention, there is the port of the address IPv6 using binding, receives destination client
The access request sent using TCP6 agreement;It determines the corresponding storage equipment of access request, and obtains with IPv6 format carry
Store the target share directory of equipment;Create the target socket of linking objective client and target share directory;Target socket
The corresponding transport protocol of word is TCP6 agreement;The access service of storage equipment is provided to destination client using target socket.
In User space Network File System, when the port for having the address IPv6 by binding, destination client benefit is received
After access request with the transmission of TCP6 agreement, it is first determined then corresponding storage equipment obtains corresponding target and shares mesh
Record.Then target socket is established, by destination client with IPV6 format carry into target share directory.It, can after carry
The service of access storage equipment is provided to destination client by TCP6 agreement.That is, can be in User space network file system
The access of IPV6 carry is realized in system.Since there be 2^128-1 address in the address of IPv6, thus address resource it is limited problem it is not multiple
In the presence of, further solve due to address resource it is limited caused by User space network file system performance restriction problem and safety ask
Topic.In addition, enabling router in the routing table with one since IPv6 distribution follows the principle of cluster (Aggregation)
Recording (Entry) indicates a piece of subnet, can reduce the length of routing table in router, improves router forwarding data packet
Speed can also further promote the system performance of User space Network File System.
Correspondingly, the embodiment of the invention also provides corresponding with the method for above-mentioned access User space Network File System
Device, equipment and the readable storage medium storing program for executing for accessing User space Network File System, have above-mentioned technique effect, no longer superfluous herein
It states.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart for the method for accessing User space Network File System in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram for the device for accessing User space Network File System in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram for the equipment for accessing User space Network File System in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is a kind of process for the method for accessing User space Network File System in the embodiment of the present invention
Figure, method includes the following steps:
S101, the port for having the address IPv6 using binding are received destination client and are asked using the access that TCP6 agreement is sent
It asks.
Wherein, the address IPv6 refers to the address in IPv6 agreement, is indicated by 128 bit codes.IPv6 agreement is substitution
The IP next generation protocol of current edition IP agreement --- IPv4.
It should be noted that can be configured in advance in server end and destination client to support IPv6, so as to
Support IPv6 agreement.Configuration file is modified, IPv6 agreement is enabled.Specifically, then in advance in server end and destination client
Then middle addition IPV6 agreement enables IPv6 agreement in configuration file.For example, inputting following operation under configuration surroundings and referring to
It enables:
/etc/sysctl.conf
vim/etc/sysctl.conf
Net.ipv6.conf.lo.disable_ipv6=0
Sysctl-p, to complete to configure.
It in embodiments of the present invention, can in advance be the address designated port configuration of IP v6.When being configured to IPv6, it is
Avoid the problem that human configuration may make mistake.Preferably, using Bind_sockets_V6 function by the address Ipv6 and end
Mouth is bound.Calling Bind_sockets_V6 function is that designated port configures the address Ipv6.It should be noted that this hair
The port that port described in bright embodiment can service externally to pass through the access of service in User space Network File System.
In order to be compatible with IPv4 and IPv6, User space Network File System section ports only can be configured into the upper address IPv6.
After having configured the address IPv6 for port, which can be monitored, to receive destination client benefit in time
The access request sent with TCP6 agreement.Wherein, TCP6 agreement is to support the TCP transmission agreement of IPv6.Wherein, destination client
It can be the terminal device equipped with CentOS Linux release 7.2.1511.Certainly, destination client can also be support
The terminal device of the system of other versions of IPV6 agreement and TCP6 agreement.Access request can be to specify the visit of access object
Ask request, access object can be storage equipment or file destination.
Preferably, preferably port is monitored in order to realize, socket can be used and be monitored, to receive in time
Access request.The specific implementation process is as follows:
Step 1: socket is monitored in creation, the port of the address binding IP v6 is monitored using socket is monitored;
Step 2: receiving the access request that destination client utilizes TCP6 agreement to send.
It is illustrated for ease of description, below combining above-mentioned two step.
Socket is monitored for each port setting for being provided with the address IPv6, port is carried out using the monitoring socket
It monitors.Receive the access request that destination client utilizes TCP6 agreement to send.
After receiving access request, the operation of step S102 can be performed.
S102, it determines the corresponding storage equipment of access request, and obtains with the target of IPv6 format carry storage equipment
Share directory.
If it is storage equipment that access request, which specifies the object requested access to, can directly be determined from access request
Corresponding storage equipment;If access request is the access request that specified access object is file destination, User space can use
The metadata information of the file destination of Network File System storage, determines the storage equipment of storage file destination.
Then, it will acquire with the target share directory of IPv6 format carry storage equipment.Specifically, judging share directory
In with the presence or absence of storage equipment;If it is, directly using share directory as target share directory;If it is not, then storage is set
It is standby with IPv6 format carry into target share directory.That is, if it is shared to directly acquire this in share directory for storage equipment
Catalogue;If storage equipment is also not added with to share directory, storage equipment can be added to the mount directory under share directory
In.Wherein, target share directory is obtained, can be realized in configuration file/etc/ganesha/ganesha.conf.It is preferred that
Ground, when carrying out carry, using mounting instruction by storage equipment with the carry mesh of IPv6 format carry to target share directory
Under record.Specifically, mounting instruction is mount, the command format: mount [- t vfstype] [- o options] device
dir.Specifically, how to be arranged mounting instruction in parameter can refer to mounting instruction using rule, details are not described herein.
S103, the target socket for creating linking objective client and target share directory.
Wherein, the corresponding transport protocol of target socket is TCP6 agreement.
After obtaining target share directory, the target of linking objective a more new directory and destination client can be first created
Socket, and TCP6 agreement is set for the socket.How TCP6 agreement is arranged for socket can be found in common socket biography
Defeated agreement setting procedure, details are not described herein.The similar hanging equipment that will store above is loaded under target share directory, here
The connection function of socket is equal to destination client carry into User space Network File System.
S104, the access service of storage equipment is provided to destination client using target socket.
After completing carry, accessed using the target socket to the access that destination client provides storage equipment.?
That is destination client can access to the storage equipment under target share directory, access here can be for depositing
Data in storage equipment such as are increased, are deleted, being modified, being checked at the common access operation.
Using method provided by the embodiment of the present invention, there is the port of the address IPv6 using binding, receives destination client
The access request sent using TCP6 agreement;It determines the corresponding storage equipment of access request, and obtains with IPv6 format carry
Store the target share directory of equipment;Create the target socket of linking objective client and target share directory;Target socket
The corresponding transport protocol of word is TCP6 agreement;The access service of storage equipment is provided to destination client using target socket.
In User space Network File System, when the port for having the address IPv6 by binding, destination client benefit is received
After access request with the transmission of TCP6 agreement, it is first determined then corresponding storage equipment obtains corresponding target and shares mesh
Record.Then target socket is established, by destination client with IPV6 format carry into target share directory.It, can after carry
The service of access storage equipment is provided to destination client by TCP6 agreement.That is, can be in User space network file system
The access of IPV6 carry is realized in system.Since there be 2^128-1 address in the address of IPv6, thus address resource it is limited problem it is not multiple
In the presence of, further solve due to address resource it is limited caused by User space network file system performance restriction problem and safety ask
Topic.In addition, enabling router in the routing table with one since IPv6 distribution follows the principle of cluster (Aggregation)
Recording (Entry) indicates a piece of subnet, can reduce the length of routing table in router, improves router forwarding data packet
Speed can also further promote the system performance of User space Network File System.
It should be noted that based on the above embodiment, the embodiment of the invention provides corresponding preferred embodiments.Preferably
Involved in embodiment with can mutually be referred between same steps or corresponding steps in embodiment, corresponding beneficial effect can also be mutual
Reference no longer repeats one by one in a preferred embodiment.
Preferably due to IPv4 still will continue in a short time using, in order to support IPv4, can access User space
Network File System is arranged an IPv6 and switchs, to be adjusted according to using needs.Specifically, step can executed
Before S101, preset IPv6 switch, i.e., in configuration file/etc/ganesha/ganesha.conf, increase
V6disable=false/true field.For example, working as v6disable=if ipv6 switch is defaulted as opening IPv6 support
False indicates support client by ipv6 format carry, and v6disable=true expression turns off the switch, and does not support client
Pass through ipv6 format carry.Then when executing S101, first determine whether that the state of the IPv6 switch in NFS-Ganesha service is
No is enabled state;If it is, there is the port of the address IPv6 using binding, receives destination client and sent using TCP6 agreement
Access request.Wherein, enabled state is v6disable=true.
Technical solution provided by the embodiment of the present invention in order to facilitate understanding by those skilled in the art, below specifically to match
For setting process, it is provided for the embodiments of the invention technical solution and is described in detail.
In order to realize that IPv6 carry accesses, the configuration process being related to is as follows:
In server end, in linux system platform, NFS-Ganesha service, setting export share directory are disposed and started
For/nfs_share, open system Ipv6 agreement is supported.
IPv6 agreement is opened, the following instruction modification configuration file of input is specifically as follows:
/etc/sysctl.conf
vim/etc/sysctl.conf
#net.ipv6.conf.all.disable_ipv6=1
Net.ipv6.conf.all.disable_ipv6=0
Net.ipv6.conf.default.disable_ipv6=0
Net.ipv6.conf.lo.disable_ipv6=0
Then, it executes order and enables IPv6
sysctl-p
After completing modification configuration, the address ipv6 of configuration can also look at.For example, being in the ipv6 that server-side views
Fe80::20c:29ff:fe26:5f62%eno233434, wherein eno233434 is Adapter Name.
Wherein linux system platform refers to that CentOS Linux release 7.2.1511, setting export share directory match
Setting file is etc/ganesha/ganesha.conf.Then, step realizes support Ipv6 carry NFS- by the following method
Ganesha service:
Wherein, ipv6 switch refers to that switch is opened, and v6disable=false indicates that client is supported to hang by ipv6 format
It carries, turns off the switch, v6disable=true expression does not support client to pass through ipv6 format carry.Then, in configuration file
In/etc/ganesha/ganesha.conf, increase v6disable=false/true field.
Creation socekt, which is used to monitor, binds the address Ipv6 and port by function Bind_sockets_V6, opens and monitors
Module waits the ipv6 connection of client.To create a visitor for being used for and connecting into when there is client request access
The socket that family end is communicated, meanwhile, listening state is kept, the connection for waiing upon next client ipv6 is waited.
Client: open system IPv6 agreement is supported.Client refers to equipped with CentOS Linux release
7.2.1511 client.Then by under client carry to share directory, carry is carried out by Ipv6 format, is hung
Be downloaded to/mnt/test under, specify carry parameter.Specifically, nfs-ganesha carry order can be passed through:
Mount-t nfs [fe80::20c:29ff:fe26:5f62%eno233434] :/nfs_share/mnt/test-
Overs=3, proto=tcp6 are completed.Wherein, it specifies carry parameter to refer to and carries out network interaction with NFS-Ganesha server-side
TCP6 protocol parameter, nfs_share is share directory ,/mnt/test be mount directory.
After completing above-mentioned configuration process, it can realize that the embodiment of the present invention is mentioned in User space Network File System
The technical solution of confession.NFS-Ganesha is accessed based on ipv6 carry.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of access User space Network File System
Device, it is described below access User space Network File System device and above-described access User space network file system
The method of system can correspond to each other reference.
Shown in Figure 2, which comprises the following modules:
Access request receiving module 101 receives destination client and utilizes for there is the port of the address IPv6 using binding
The access request that TCP6 agreement is sent;
Target share directory obtains module 102, for determining the corresponding storage equipment of access request, and obtains with IPv6 lattice
The target share directory of formula carry storage equipment;
Target socket creation module 103, the target for creating linking objective client and target share directory are socketed
Word;The corresponding transport protocol of target socket is TCP6 agreement;
Service providing module 104 is accessed, for providing the access of storage equipment to destination client using target socket
Service.
Using device provided by the embodiment of the present invention, there is the port of the address IPv6 using binding, receives destination client
The access request sent using TCP6 agreement;It determines the corresponding storage equipment of access request, and obtains with IPv6 format carry
Store the target share directory of equipment;Create the target socket of linking objective client and target share directory;Target socket
The corresponding transport protocol of word is TCP6 agreement;The access service of storage equipment is provided to destination client using target socket.
In User space Network File System, when the port for having the address IPv6 by binding, destination client benefit is received
After access request with the transmission of TCP6 agreement, it is first determined then corresponding storage equipment obtains corresponding target and shares mesh
Record.Then target socket is established, by destination client with IPV6 format carry into target share directory.It, can after carry
The service of access storage equipment is provided to destination client by TCP6 agreement.That is, can be in User space network file system
The access of IPV6 carry is realized in system.Since there be 2^128-1 address in the address of IPv6, thus address resource it is limited problem it is not multiple
In the presence of, further solve due to address resource it is limited caused by User space network file system performance restriction problem and safety ask
Topic.In addition, enabling router in the routing table with one since IPv6 distribution follows the principle of cluster (Aggregation)
Recording (Entry) indicates a piece of subnet, can reduce the length of routing table in router, improves router forwarding data packet
Speed can also further promote the system performance of User space Network File System.
In a kind of specific embodiment of the invention, further includes:
Port address configuration module, for being bound the address Ipv6 and port using Bind_sockets_V6 function.
In a kind of specific embodiment of the invention, access request receiving module 101, comprising:
Monitoring unit monitors socket for creating, and is supervised using socket is monitored to the port of the address binding IP v6
It listens;
Receiving unit, the access request for utilizing TCP6 agreement to send for receiving destination client.
In a kind of specific embodiment of the invention, further includes:
IPv6 agreement enables module, for receiving destination client and utilizing in the port for having the address IPv6 using binding
Before the access request that TCP6 agreement is sent, configuration file is modified, enables IPv6 agreement.
In a kind of specific embodiment of the invention, target share directory obtains module 102, and it is shared to be specifically used for judgement
With the presence or absence of storage equipment in catalogue;If it is, directly using share directory as target share directory;If it is not, then will deposit
Storage equipment is with IPv6 format carry into target share directory.
In a kind of specific embodiment of the invention, target share directory obtains module 102, is specifically used for
Equipment will be stored under the mount directory of IPv6 format carry to target share directory using mounting instruction.
In a kind of specific embodiment of the invention, access request receiving module 101 is specifically used for judging NFS-
Whether the state of the IPv6 switch in Ganesha service is enabled state;If it is, there is the end of the address IPv6 using binding
Mouthful, receive the access request that destination client utilizes TCP6 agreement to send.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of access User space Network File System
Equipment, it is described below it is a kind of access User space Network File System equipment and a kind of above-described access User space net
The method of network file system can correspond to each other reference.
Show referring to Fig. 3, the equipment of the access User space Network File System includes:
Memory D1, for storing computer program;
Processor D2 realizes the access User space network file system of above method embodiment when for executing computer program
The step of method of system.
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below
A kind of readable storage medium storing program for executing with it is above-described it is a kind of access User space Network File System method can correspond to each other reference.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor
The step of method of access User space Network File System of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk
The readable storage medium storing program for executing of code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said
It is bright to be merely used to help understand technical solution of the present invention and its core concept.It should be pointed out that for the common of the art
, without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention for technical staff, these
Improvement and modification are also fallen within the protection scope of the claims of the present invention.
Claims (10)
1. a kind of method for accessing User space Network File System characterized by comprising
There is the port of the address IPv6 using binding, receives the access request that destination client utilizes TCP6 agreement to send;
It determines the corresponding storage equipment of the access request, and obtains total with the target of the IPv6 format carry storage equipment
Enjoy catalogue;
Creation connects the target socket of the destination client and the target share directory;The target socket is corresponding
Transport protocol is TCP6 agreement;
The access service of the storage equipment is provided to the destination client using the target socket.
2. the method for access User space Network File System according to claim 1, which is characterized in that further include:
The address Ipv6 and port are bound using Bind_sockets_V6 function.
3. the method for access User space Network File System according to claim 1, which is characterized in that described to utilize binding
The port of the address IPv6 receives the access request that destination client utilizes TCP6 agreement to send, comprising:
Socket is monitored in creation, is monitored using the monitoring socket the port of the address binding IP v6;
Receive the access request that destination client utilizes TCP6 agreement to send.
4. the method for access User space Network File System according to claim 1, which is characterized in that tied up in the utilization
Surely there is the port of the address IPv6, reception destination client utilizes before the access request of TCP6 agreement transmission, further includes:
Configuration file is modified, IPv6 agreement is enabled.
5. it is according to claim 1 access access User space Network File System method, which is characterized in that obtain with
The target share directory of the IPv6 format carry storage equipment, comprising:
Judge in share directory with the presence or absence of the storage equipment;
If it is, directly using the share directory as target share directory;
If it is not, then by the storage equipment with IPv6 format carry into target share directory.
6. access User space Network File System according to claim 5, which is characterized in that described to set the storage
It is standby with IPv6 format carry into target share directory, comprising:
Equipment will be stored under the mount directory of IPv6 format carry to the target share directory using mounting instruction.
7. access User space Network File System according to any one of claims 1 to 6, which is characterized in that the benefit
There is the port of the address IPv6 with binding, receive the access request that destination client utilizes TCP6 agreement to send, comprising:
Whether the state for judging the IPv6 switch in NFS-Ganesha service is enabled state;
If it is, there is the port of the address IPv6 using binding, receives destination client and asked using the access that TCP6 agreement is sent
It asks.
8. a kind of device for accessing User space Network File System characterized by comprising
Access request receiving module receives destination client and utilizes TCP6 agreement for there is the port of the address IPv6 using binding
The access request of transmission;
Target share directory obtains module, for determining the corresponding storage equipment of the access request, and obtains with IPv6 format
The target share directory of the carry storage equipment;
Target socket creation module, for creating the target socket for connecting the destination client and the target share directory
Word;The corresponding transport protocol of the target socket is TCP6 agreement;
Service providing module is accessed, for providing the storage equipment to the destination client using the target socket
Access service.
9. a kind of equipment for accessing User space Network File System characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program and accesses User space network as described in any one of claim 1 to 7
The step of method of file system.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing
The side that User space Network File System is accessed as described in any one of claim 1 to 7 is realized when calculation machine program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810803081.7A CN109040207B (en) | 2018-07-20 | 2018-07-20 | Method, device and equipment for accessing user mode network file system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810803081.7A CN109040207B (en) | 2018-07-20 | 2018-07-20 | Method, device and equipment for accessing user mode network file system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109040207A true CN109040207A (en) | 2018-12-18 |
CN109040207B CN109040207B (en) | 2021-06-29 |
Family
ID=64643817
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810803081.7A Active CN109040207B (en) | 2018-07-20 | 2018-07-20 | Method, device and equipment for accessing user mode network file system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040207B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225020A (en) * | 2019-11-07 | 2020-06-02 | 苏州浪潮智能科技有限公司 | User mode network file system dual-stack access method, device and equipment |
CN111314311A (en) * | 2020-01-19 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for improving performance of switch |
CN112162958A (en) * | 2020-09-11 | 2021-01-01 | 北京浪潮数据技术有限公司 | Network file system mounting method and device, electronic equipment and storage medium |
CN112181933A (en) * | 2020-08-31 | 2021-01-05 | 阿里巴巴集团控股有限公司 | Mounting method and device |
CN113505111A (en) * | 2021-06-22 | 2021-10-15 | 新华三大数据技术有限公司 | Shared directory mounting method and distributed network additional storage system |
CN114610691A (en) * | 2022-03-21 | 2022-06-10 | 苏州浪潮智能科技有限公司 | Storage object acquisition method, storage object acquisition device, equipment and medium |
CN116450058A (en) * | 2023-06-19 | 2023-07-18 | 浪潮电子信息产业股份有限公司 | Data transfer method, device, heterogeneous platform, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110264779A1 (en) * | 2010-04-23 | 2011-10-27 | Cisco Technology, Inc., A Corporation Of California | Using Values Represented as Internet Protocol (IP) Addresses to Access Resources in a Non-Internet Protocol Address Space |
CN102664922A (en) * | 2012-03-30 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | High-speed network starting method based on Linux system |
CN107534647A (en) * | 2015-05-06 | 2018-01-02 | 慧与发展有限责任合伙企业 | Safely and reliably transmission starts script |
CN107659644A (en) * | 2017-09-25 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of method, apparatus for accessing storage system, readable storage medium storing program for executing |
-
2018
- 2018-07-20 CN CN201810803081.7A patent/CN109040207B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110264779A1 (en) * | 2010-04-23 | 2011-10-27 | Cisco Technology, Inc., A Corporation Of California | Using Values Represented as Internet Protocol (IP) Addresses to Access Resources in a Non-Internet Protocol Address Space |
CN102664922A (en) * | 2012-03-30 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | High-speed network starting method based on Linux system |
CN107534647A (en) * | 2015-05-06 | 2018-01-02 | 慧与发展有限责任合伙企业 | Safely and reliably transmission starts script |
CN107659644A (en) * | 2017-09-25 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of method, apparatus for accessing storage system, readable storage medium storing program for executing |
Non-Patent Citations (2)
Title |
---|
刘生寒等: ""B_S架构下应用系统从IPv4到IPv6的迁移技术研究"", 《计算机与现代化》 * |
惨绿少年: ""NFS启动时报错Linux NFS:could not open connection for tcp6"", 《腾讯云》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111225020A (en) * | 2019-11-07 | 2020-06-02 | 苏州浪潮智能科技有限公司 | User mode network file system dual-stack access method, device and equipment |
WO2021088254A1 (en) * | 2019-11-07 | 2021-05-14 | 苏州浪潮智能科技有限公司 | Dual-stack access method, apparatus and device for user-mode network file system |
CN111314311A (en) * | 2020-01-19 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for improving performance of switch |
CN112181933A (en) * | 2020-08-31 | 2021-01-05 | 阿里巴巴集团控股有限公司 | Mounting method and device |
CN112162958A (en) * | 2020-09-11 | 2021-01-01 | 北京浪潮数据技术有限公司 | Network file system mounting method and device, electronic equipment and storage medium |
CN112162958B (en) * | 2020-09-11 | 2023-12-22 | 北京浪潮数据技术有限公司 | Network file system mounting method and device, electronic equipment and storage medium |
CN113505111A (en) * | 2021-06-22 | 2021-10-15 | 新华三大数据技术有限公司 | Shared directory mounting method and distributed network additional storage system |
CN113505111B (en) * | 2021-06-22 | 2024-03-12 | 新华三大数据技术有限公司 | Shared directory mounting method and distributed network additional storage system |
CN114610691A (en) * | 2022-03-21 | 2022-06-10 | 苏州浪潮智能科技有限公司 | Storage object acquisition method, storage object acquisition device, equipment and medium |
CN114610691B (en) * | 2022-03-21 | 2024-01-30 | 苏州浪潮智能科技有限公司 | Storage object acquisition method, storage object acquisition device, equipment and medium |
CN116450058A (en) * | 2023-06-19 | 2023-07-18 | 浪潮电子信息产业股份有限公司 | Data transfer method, device, heterogeneous platform, equipment and medium |
CN116450058B (en) * | 2023-06-19 | 2023-09-19 | 浪潮电子信息产业股份有限公司 | Data transfer method, device, heterogeneous platform, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109040207B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109040207A (en) | A kind of method, device and equipment accessing User space Network File System | |
US11075821B2 (en) | Method and apparatus for managing field device based on cloud server | |
EP3905589B1 (en) | Slice resource deployment method and apparatus, and slice manager and computer storage medium | |
JP7522323B2 (en) | Data transmission method, device, equipment and computer program for service integration | |
EP3557412A1 (en) | Application interaction method, device, physical machine and system | |
CN105553977B (en) | Processing, sending method and the device of request message | |
CN110198334A (en) | Access method, device and storage medium based on object storage service | |
CN107800603B (en) | Intranet user accesses the method and storage medium of headend equipment based on VPN | |
CN113596159B (en) | Cluster communication method and device based on k8s Yun Rongqi platform | |
JP2001523859A (en) | Method and system for configuring a computer to connect to a network using a network connection object | |
CN106911779A (en) | A kind of cloud platform virtual machine obtains IP method and devices | |
CN110275775A (en) | Resource allocation method, system and the storage medium of container application | |
CN106657330A (en) | User data migration method and user data backup method, device and system | |
CN105450494B (en) | A kind of virtual network and its implementation | |
CN108347731A (en) | A kind of method, medium, equipment and terminal carrying out secure binding | |
CN109561054A (en) | A kind of data transmission method, controller and access device | |
CN112422681A (en) | Cross-platform distributed communication calling method and device | |
CN109039764A (en) | A kind of network parameter configuration method of distributed memory system | |
CN109600436A (en) | A kind of distribution iscsi service implementing method, system and relevant apparatus | |
CN105827496A (en) | Method and apparatus for managing PE device | |
CN115334018B (en) | Container control method and device based on Openstack IaaS cloud architecture and container | |
CN112910939B (en) | Data processing method and related device | |
CN109257284A (en) | The system and method for physical data grouping isolation for the different tenants in multi-tenant protection storage environment | |
CN108848202A (en) | electronic device, data transmission method and related product | |
CN110838966B (en) | Equipment connection control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |