CN113672577B - NFS network file sharing method and system - Google Patents

NFS network file sharing method and system Download PDF

Info

Publication number
CN113672577B
CN113672577B CN202110738590.8A CN202110738590A CN113672577B CN 113672577 B CN113672577 B CN 113672577B CN 202110738590 A CN202110738590 A CN 202110738590A CN 113672577 B CN113672577 B CN 113672577B
Authority
CN
China
Prior art keywords
request
parameters
response
packet
expansion
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.)
Active
Application number
CN202110738590.8A
Other languages
Chinese (zh)
Other versions
CN113672577A (en
Inventor
刘相乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110738590.8A priority Critical patent/CN113672577B/en
Publication of CN113672577A publication Critical patent/CN113672577A/en
Application granted granted Critical
Publication of CN113672577B publication Critical patent/CN113672577B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an NFS network file sharing method and system; the method comprises the steps of monitoring states of a plurality of user nodes through a monitoring node; responding to a plurality of user nodes to send out access requests simultaneously, intercepting the plurality of access requests, extracting user IP and request parameters in each access request, associating and storing the user IP and the request parameters in a temporary relation comparison table, and packaging the obtained plurality of request parameters into an expansion request packet to be sent to a server node; the server node analyzes the expansion request packet to obtain a plurality of request parameters, encapsulates a plurality of response data obtained according to the plurality of request parameters into an expansion response packet, and returns the expansion response packet to the monitoring node; and the monitoring node analyzes the expansion response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relation comparison table. The method and the system utilize the monitoring node to package a plurality of access requests as an expansion access request packet, reduce the access frequency to the server and improve the utilization rate of network resources.

Description

NFS network file sharing method and system
Technical Field
The invention relates to the technical field of computer application, in particular to an NFS network file sharing method and system.
Background
The NFS sharing service is a service process for providing file sharing in the NAS cluster storage system, and the small file access requirement often exists in the application scene of the NFS, and the small file access is characterized by small read-write data quantity but high frequency, so that a large amount of resources are wasted in the network transmission process, and the data quantity transmitted each time is small.
Therefore, how to reduce the network transmission overhead of NFS network file sharing and at the same time guarantee the file access rate is a problem to be solved.
Disclosure of Invention
In order to solve the above technical problems, in one aspect of the present invention, a NFS network file sharing method is provided, where the method includes: monitoring the states of a plurality of user nodes through monitoring nodes; responding to a plurality of user nodes to send access requests at the same time, intercepting the plurality of access requests, extracting user IP and request parameters in each access request, storing the association in a temporary relationship comparison table, and packaging the obtained plurality of request parameters into an expansion request packet to be sent to the server node; the server node analyzes the expansion request packet to obtain a plurality of request parameters, encapsulates a plurality of response data obtained according to the plurality of request parameters into an expansion response packet, and returns the expansion response packet to the monitoring node; and the monitoring node analyzes the expansion response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relation comparison table.
In one or more embodiments, the NFS network file sharing method further includes: presetting an interception request threshold; correspondingly, the responding to the plurality of user nodes to send out the access requests simultaneously, intercepting the plurality of access requests and extracting the user IP and the request parameters in each access request further comprises: and intercepting the plurality of access requests and extracting user IP and request parameters in each access request in response to the number of the access requests transmitted by the plurality of user nodes simultaneously being greater than or equal to the interception request threshold.
In one or more embodiments, the encapsulating the get multiple request parameters into one extended request packet includes: creating an expansion request packet, wherein the expansion request packet consists of a request quantity parameter and a data parameter; sequentially storing the request parameters into the data parameters of the expansion request packet according to the arrangement sequence of the request parameters in the temporary relation comparison table, and assigning the number of the request parameters contained in each access request to the request number parameters of the expansion request packet.
In one or more embodiments, the server node parses the extended request packet to obtain a plurality of request parameters, and encapsulates a plurality of response data obtained according to the plurality of request parameters into an extended response packet, including: the server node analyzes the data parameters of the expansion request packet to obtain a plurality of request parameters; dividing the request parameters according to the number of the request quantity parameters of the expansion request packet so as to restore the request parameters into access requests; and acquiring a plurality of response data according to the plurality of access requests, and packaging the plurality of response data into an extended response packet.
In one or more embodiments, the returning a plurality of response data according to the plurality of access requests and encapsulating the plurality of response data into an extended response packet includes: creating an extended response packet, wherein the extended response packet consists of response quantity parameters and data parameters; sequentially acquiring response data according to the arrangement sequence of the access requests, sequentially storing the acquired response data into the data parameters of the expansion response packet, and assigning the number of the response parameters contained in the response data acquired each time to the response number parameters of the expansion response packet.
In one or more embodiments, the monitoring node parses the extended response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relationship comparison table, including: the monitoring node analyzes the data parameters of the expanding response packet to obtain a plurality of response parameters; dividing the response parameters according to the number of the response quantity parameters of the expanded response packet to restore the response parameters into response data, and sequentially packaging the response data into response messages according to the arrangement sequence of the user IP in the temporary relation comparison table and sending the response messages to corresponding user nodes.
In one or more embodiments, the access request is an NFS request, and the request parameters in the NFS request include: the file to be read, the offset in the file where the content to be read is located, and the number of bytes to be read.
In one or more embodiments, the NFS network file sharing method further includes: presetting an expansion inclusion threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the total capacity required by a plurality of request parameters to be packaged is larger than the expansion inclusion threshold; and in response to the total capacity required by the plurality of request parameters to be packaged being greater than the expanded packet capacity threshold, grouping the plurality of request parameters and packaging the request parameters in each group respectively.
In one or more embodiments, the NFS network file sharing method further includes: presetting a packaging number threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the number of a plurality of request parameters to be packaged is larger than the packaging number threshold value or not; and in response to the number of the request parameters to be packaged being greater than the packaging number threshold, grouping the request parameters, and packaging the request parameters in each group respectively.
In another aspect of the present invention, an NFS network file sharing system is provided, including: a plurality of user nodes, a monitoring node and a server node; the plurality of user nodes are respectively in communication connection with the monitoring node, and the monitoring node is in communication connection with the server node; the monitoring node and the server node each have stored therein a respective computer program which when executed is adapted to carry out the corresponding steps of the NFS network file sharing method of any of the preceding claims 1-9.
The beneficial effects of the invention include: according to the invention, the monitoring node is added between the user node and the server node of the NFS network, and a plurality of access requests sent by one or more user nodes are encapsulated into one expansion access request packet by the monitoring node and sent to the server node, so that the data quantity of single requests to the server node is improved, the request frequency to the server node is reduced, and the network resource utilization rate is further improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a topology of a NFS file sharing network in the prior art;
FIG. 2 is a workflow diagram of a NFS network file sharing method of the present invention;
fig. 3 is a schematic topology diagram of the NFS file sharing network system of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
Network File Systems (NFS) are a file sharing application based on TCP, and are implemented mainly by providing a set of operations for accessing Remote Files independent of machine, operating System and underlying transport protocol through an RPC (Remote-Procedure-Call) Remote Procedure Call mechanism. Briefly, a server-side enablement protocol in the NFS' S C/S architecture shares files onto a network and then allows a local user to mount the server-shared files over the network.
As shown in fig. 1, fig. 1 is a schematic topology diagram of an NFS file sharing network in the prior art. In the topology shown in fig. 1, each user node communicates with a server node separately, sending an access request to fulfill a read, write or attribute request for a shared file. Most of the access requests are for accessing small files, and the small file access is characterized by small read-write data volume but high frequency, so that a large amount of resources are wasted in the network transmission process, and the data volume of each transmission is small.
In order to improve the communication efficiency of user nodes and server nodes and simultaneously ensure the access rate of each user node, the invention provides an NFS network file sharing method. FIG. 2 is a workflow diagram of an NFS network file sharing method of the present invention. As shown in fig. 2, the steps of the NFS network file sharing method of the present invention include: step S1, monitoring states of a plurality of user nodes through monitoring nodes; step S2, responding to a plurality of user nodes to send out access requests simultaneously, intercepting the plurality of access requests, extracting user IP and request parameters in each access request, storing the association in a temporary relation comparison table, and packaging the obtained plurality of request parameters into an expansion request packet to be sent to a server node; s3, the server node analyzes the expansion request packet to obtain a plurality of request parameters, encapsulates a plurality of response data obtained according to the plurality of request parameters into an expansion response packet, and returns the expansion response packet to the monitoring node; and S4, the monitoring node analyzes the expansion response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relation comparison table.
In the method, the invention provides a novel topological structure of the NFS file sharing network, and the invention sets a monitoring node between each user node and the server node, utilizes the monitoring node to aggregate the data of the access request, uniformly transmits the data to the server node, uniformly returns the response data by the server node, and returns the response data to the corresponding user node through the monitoring node, thereby improving the data quantity of single request to the server node and further reducing the request frequency. The unified sending and unified returning refers to packaging a plurality of access parameters in a plurality of access requests into an expansion request packet taking the IP address of the monitoring node as a source IP address and taking the IP address of the server node as a destination IP address.
For step S1, monitoring the states of a plurality of user nodes through a monitoring node; in one embodiment, the monitoring node itself is a network communication node (e.g., a switch or router) having the capability to perform the corresponding steps of the inventive method.
And for the step S2, responding to a plurality of user nodes to send out access requests simultaneously, intercepting the plurality of access requests, extracting user IP and request parameters in each access request, storing the association in a temporary relation comparison table, and packaging the obtained plurality of request parameters into an expansion request packet and sending the expansion request packet to the server node.
In one embodiment, the monitoring node will periodically obtain access requests from a plurality of user nodes; wherein, in response to a plurality of user nodes simultaneously issuing access requests is understood to mean that a plurality of access requests issued by a plurality of user nodes or a plurality of access requests issued consecutively by one user node are obtained within a period of a millisecond level. The monitoring node aims to reduce the number of requests to the server node by increasing the data volume in a single access request by combining access request data so as to reduce the overhead in the data transmission process. Moreover, the monitoring node intercepts the access request for a short period of time, so that the response speed of the access request is not obviously influenced.
In an optional embodiment, in order to further improve the utilization rate of the channel and reduce the overhead of network transmission, the method of the invention further presets an interception request threshold; correspondingly, responding to the plurality of user nodes to send out the access requests at the same time in the step S2, intercepting the plurality of access requests and extracting the user IP and the request parameters in each access request further comprises: and in response to the number of the access requests sent by the plurality of user nodes simultaneously being greater than or equal to the interception request threshold, intercepting the plurality of access requests and extracting the user IP and the request parameters in each access request. When the number of access requests issued simultaneously by the plurality of user nodes is smaller than the interception request threshold value, the monitoring node does not carry out additional processing on the access requests, but only carries out forwarding operation.
In another alternative embodiment, the intercept request threshold may be set to 2 when the real-time requirement for the response to the access request is high; that is, by configuring the interception request threshold, the user can adjust the bias of the utilization rate of the channel and the real-time response of the access request according to the requirement. In one embodiment, encapsulating the obtained plurality of request parameters into an extended request packet includes: creating an expansion request packet, wherein the expansion request packet consists of request quantity parameters and data parameters; sequentially storing the request parameters into the data parameters of the expansion request packet according to the arrangement sequence of the request parameters in the temporary relation comparison table, and assigning the number of the request parameters contained in each access request to the request number parameters of the expansion request packet. The purpose of storing the request parameters in the data parameters in sequence is to ensure that the response data returned according to the request parameters in the subsequent steps are also stored according to the corresponding sequence, so that the monitoring node can determine the user IP corresponding to the response data at the corresponding position when receiving the response data.
Specifically, the steps of this embodiment are equivalent to adding a layer of structure to the request parameters of the NFS network file system, so that the original NFS access request can only include access operations for one file and be extended to multiple access operations for multiple files; wherein the access request includes a read request, a write request, and an attribute request. Taking the operation corresponding to the read request as an example, the normal read request parameters comprise (file, offset, count); where file represents the file to be read, offset identifies the offset in the file where the content to be read is located, and count identifies the number of bytes (or length) to be read. The subsequent read request is expanded to include (readcount, data) two entries, wherein readcount is a request number parameter for storing the number of request parameters included in each access request, and data is a data parameter for storing the request parameters of all access requests, i.e., each entry of data includes three request parameters of file, offset and count.
And S3, analyzing the expansion request packet by the server node to obtain a plurality of request parameters, and packaging a plurality of response data obtained according to the plurality of request parameters into an expansion response packet and returning the expansion response packet to the monitoring node.
In one embodiment, the server node parses the extended request packet to obtain a plurality of request parameters, and encapsulates a plurality of response data obtained according to the plurality of request parameters into an extended response packet, including: the server node analyzes the data parameters of the expansion request packet to obtain a plurality of request parameters; dividing a plurality of request parameters according to the number of the values of the request quantity parameters of the expansion request packet so as to restore the plurality of request parameters into a plurality of access requests; for example, after analyzing the data parameters of the expansion request packet, obtaining data as file1offset 1file2 offset 2file 2 offset 2file3offset3count3, and if the value of the request quantity parameter is 3, dividing the analyzed data into a group of 3 to obtain the access request 1: file1offset1count1; access request 2: file2offse2count2; access request 3: file3offset3count3; the expansion request packet is formed by combining access requests of three different files, but the method is not limited, the combined access requests in the expansion request packet can be of other numbers, and file pages to be accessed can be the same; for example, after analyzing the data parameters of the expansion request packet, the obtained data is file1offset 1file1offse 2file1offse t3 file 3. In the process of restoring the access request, since the data in the data parameters are arranged and stored according to a certain sequence, the divided access requests are also arranged according to a certain sequence, and corresponding data are sequentially obtained according to the arrangement sequence of the restored access requests in the subsequent steps; after restoring the plurality of access requests, the steps further comprise obtaining a plurality of response data according to the plurality of access requests, and packaging the plurality of response data into an extended response packet.
In a further embodiment, returning a plurality of response data according to a plurality of access requests and encapsulating the plurality of response data into an extended response packet includes: creating an extended response packet, wherein the extended response packet consists of response quantity parameters and data parameters; sequentially acquiring response data according to the arrangement sequence of the plurality of access requests, sequentially storing the acquired response data into the data parameters of the expansion response packet, and assigning the number of the response parameters contained in the response data acquired each time to the response number parameters of the expansion response packet. For example, the response message returned by the server of the corresponding NFS network file system after the request is processed includes four parameters (file_ attributes, count, eof, data), which respectively indicate file attribute, number of bytes read, end of file, and data read, the response message of the next request is expanded to include two items (rescount, data), the reset is a response number parameter, which indicates the number of response parameters returned by one access request, the data is a data parameter, which is used for storing all response data obtained according to multiple request parameters, and each item of data includes file_ attributes, count, eof and a data response parameter. As can be seen from the previous embodiment, the restored access requests have a certain ordering, and in this embodiment, the server node will sequentially obtain the obtained response data according to the ordering of the access requests so that the obtained response data maintains a corresponding ordering; i.e. responses to multiple access requests cannot be performed in parallel, but the responses need to be returned and stored in sequence at certain time intervals.
After the server node generates an expansion response packet according to the expansion request packet, returning the expansion response packet to the monitoring node so that the monitoring node divides corresponding data and sends the corresponding data to the corresponding user node, namely, step S4 of the application; s4, analyzing the expanding response packet by the monitoring node to obtain a plurality of response data, and returning the corresponding response data to the corresponding user node according to the temporary relation comparison table; in one embodiment, the monitoring node parses the extended response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relationship comparison table, including: the monitoring node analyzes the data parameters of the expanding response packet to obtain a plurality of response parameters; dividing the response parameters according to the number of the response quantity parameters of the expanded response packet to restore the response parameters into response data, and sequentially packaging the response data into response messages according to the arrangement sequence of the user IP in the temporary relation comparison table and sending the response messages to corresponding user nodes.
On the basis of the implementation, the method further comprises the step of presetting an expansion inclusion threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the total capacity required by a plurality of request parameters to be packaged is larger than the expansion inclusion threshold; and in response to the total capacity required by the plurality of request parameters to be packaged being greater than the expanded packet capacity threshold, grouping the plurality of request parameters and packaging the request parameters in each group respectively. The purpose of this embodiment is to control the size of the expansion request packet to avoid exceeding the capacity of the channel;
in a further implementation, the method of the present invention further comprises: presetting a packaging number threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the number of a plurality of request parameters to be packaged is larger than a packaging number threshold value or not; and in response to the number of the plurality of request parameters to be packaged being greater than the packaging number threshold, grouping the plurality of request parameters and packaging the request parameters in each group respectively. The implementation is further provided with a packaging number threshold value on the basis of the preset expansion packet capacity threshold value, wherein the packaging number threshold value and the packaging number threshold value are used for controlling the size of an expansion request packet, and the size of the expansion request packet is determined by the fact that the corresponding condition reaches limited capacity or limited number.
Detailed description of embodiments-complete workflow of NFS network file sharing method of the present invention:
periodically intercepting access requests from a plurality of user nodes by a monitoring node;
responding to the number of the intercepted access requests in one period being greater than or equal to the intercepted request threshold, extracting user IP and request parameters in each access request, and correspondingly storing the user IP and the request parameters in a temporary relation comparison table;
judging whether the total capacity required by a plurality of request parameters to be packaged is larger than an expansion inclusion threshold; grouping the plurality of request parameters and respectively encapsulating the request parameters in each group in response to the total capacity required by the plurality of request parameters to be encapsulated being greater than the expanded packet capacity threshold; judging whether the number of a plurality of request parameters to be packaged is larger than a packaging number threshold value or not; responding to the fact that the number of the plurality of request parameters to be packaged is larger than a packaging number threshold value, grouping the plurality of request parameters, and packaging the request parameters in each group respectively; in request parameter encapsulation for each group, the encapsulation process includes: creating an expansion request packet, wherein the expansion request packet consists of a request quantity parameter and a data parameter; sequentially storing a plurality of request parameters into data parameters of an expansion request packet according to the arrangement sequence of the request parameters in the temporary relation comparison table, and assigning the number of the request parameters contained in each access request to the request number parameters of the expansion request packet; then, the monitoring node sends the encapsulated expansion request packet to the server node;
the server node analyzes the data parameters of the expansion request packet to obtain a plurality of request parameters; dividing the request parameters according to the number of the values of the request quantity parameters of the expansion request packet so as to restore the request parameters into access requests; creating an extended response packet, wherein the extended response packet consists of response quantity parameters and data parameters; sequentially acquiring response data according to the arrangement sequence of a plurality of access requests, sequentially storing the acquired response data into data parameters of an expansion response packet, and assigning the number of the response parameters contained in the response data acquired each time to response number parameters of the expansion response packet; then the server node sends the encapsulated expansion response packet to the monitoring node;
the monitoring node analyzes the data parameters of the expanding response packet to obtain a plurality of response parameters; dividing the response parameters according to the number of the response quantity parameters of the expanded response packet to restore the response parameters into response data, sequentially packaging the response data into response messages according to the arrangement sequence of the user IP in the temporary relation comparison table, and sending the response messages to the corresponding user nodes.
On the basis of the NFS network file sharing method provided in the above embodiments, the present invention further provides an NFS network file sharing system, which includes: a plurality of user nodes, a monitoring node and a server node; the plurality of user nodes are respectively in communication connection with the monitoring node, and the monitoring node is in communication connection with the server node; the monitoring node and the server node respectively store corresponding computer programs, and the corresponding computer programs are used for realizing the corresponding steps of the NFS network file sharing method in any implementation when being executed. The topology of the NFS network file sharing system of the present invention is as described in fig. 3; fig. 3 is a schematic topology diagram of the NFS file sharing network system of the present invention. Wherein the monitoring node is a communication node, such as a router or a switch, having corresponding computer programs and implementing the corresponding steps of the method of the invention.
The beneficial effects of the invention include: according to the invention, the monitoring node is added between the user node and the server node of the NFS network, and a plurality of access requests sent by one or more user nodes are encapsulated into one expansion access request packet by the monitoring node and sent to the server node, so that the data quantity of single requests to the server node is improved, the request frequency to the server node is reduced, and the network resource utilization rate is further improved.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (8)

1. A method for NFS network file sharing, the method comprising:
monitoring the states of a plurality of user nodes through monitoring nodes;
responding to a plurality of user nodes to send access requests at the same time, intercepting the plurality of access requests, extracting user IP and request parameters in each access request, storing the association in a temporary relationship comparison table, and packaging the obtained plurality of request parameters into an expansion request packet to be sent to a server node; wherein, the access request is an NFS request, and request parameters in the NFS request include: the file to be read, the offset in the file where the content to be read is located, and the number of bytes to be read;
the server node analyzes the expansion request packet to obtain a plurality of request parameters, encapsulates a plurality of response data obtained according to the plurality of request parameters into an expansion response packet, and returns the expansion response packet to the monitoring node;
the monitoring node analyzes the expansion response packet to obtain a plurality of response data, and returns the corresponding response data to the corresponding user node according to the temporary relation comparison table;
the step of packaging the obtained multiple request parameters into an expansion request packet comprises the following steps:
creating an expansion request packet, wherein the expansion request packet consists of a request quantity parameter and a data parameter; the data parameters comprise a file to be read, an offset in the file where the content to be read is located and the number of bytes to be read;
sequentially storing the request parameters into the data parameters of the expansion request packet according to the arrangement sequence of the request parameters in the temporary relation comparison table, and assigning the number of the request parameters contained in each access request to the request number parameters of the expansion request packet.
2. The NFS network file sharing method of claim 1, wherein the method further comprises: presetting an interception request threshold; correspondingly, the responding to the plurality of user nodes to send out the access requests simultaneously, intercepting the plurality of access requests and extracting the user IP and the request parameters in each access request further comprises:
and intercepting the plurality of access requests and extracting user IP and request parameters in each access request in response to the number of the access requests transmitted by the plurality of user nodes simultaneously being greater than or equal to the interception request threshold.
3. The NFS network file sharing method of claim 1, wherein the server node parses the extended request packet to obtain a plurality of request parameters, and encapsulates a plurality of response data obtained according to the plurality of request parameters into an extended response packet, comprising:
the server node analyzes the data parameters of the expansion request packet to obtain a plurality of request parameters;
dividing the request parameters according to the number of the request quantity parameters of the expansion request packet so as to restore the request parameters into access requests;
and acquiring a plurality of response data according to the plurality of access requests, and packaging the plurality of response data into an extended response packet.
4. The NFS network file sharing method of claim 3, wherein the returning a plurality of response data according to the plurality of access requests and encapsulating the plurality of response data into an extended response packet comprises:
creating an extended response packet, wherein the extended response packet consists of response quantity parameters and data parameters;
sequentially acquiring response data according to the arrangement sequence of the access requests, sequentially storing the acquired response data into the data parameters of the expansion response packet, and assigning the number of the response parameters contained in the response data acquired each time to the response number parameters of the expansion response packet.
5. The NFS network file sharing method of claim 4, wherein the monitoring node parsing the extended response packet to obtain a plurality of response data, and returning the corresponding response data to the corresponding user node according to the temporary relationship comparison table, comprising:
the monitoring node analyzes the data parameters of the expanding response packet to obtain a plurality of response parameters;
dividing the response parameters according to the number of the response quantity parameters of the expanded response packet to restore the response parameters into response data, and sequentially packaging the response data into response messages according to the arrangement sequence of the user IP in the temporary relation comparison table and sending the response messages to corresponding user nodes.
6. The NFS network file sharing method of any of claims 1-5, wherein the method further comprises:
presetting an expansion inclusion threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the total capacity required by a plurality of request parameters to be packaged is larger than the expansion inclusion threshold;
and in response to the total capacity required by the plurality of request parameters to be packaged being greater than the expanded packet capacity threshold, grouping the plurality of request parameters and packaging the request parameters in each group respectively.
7. The NFS network file sharing method of claim 6, wherein the method further comprises:
presetting a packaging number threshold; correspondingly, before the monitoring node generates an expansion request packet, judging whether the number of a plurality of request parameters to be packaged is larger than the packaging number threshold value or not;
and in response to the number of the request parameters to be packaged being greater than the packaging number threshold, grouping the request parameters, and packaging the request parameters in each group respectively.
8. An NFS network file sharing system, comprising:
a plurality of user nodes, a monitoring node and a server node;
the plurality of user nodes are respectively in communication connection with the monitoring node, and the monitoring node is in communication connection with the server node;
the monitoring node and the server node each have stored therein a respective computer program which when executed is adapted to carry out the corresponding steps of the NFS network file sharing method of any of the preceding claims 1-7.
CN202110738590.8A 2021-06-30 2021-06-30 NFS network file sharing method and system Active CN113672577B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110738590.8A CN113672577B (en) 2021-06-30 2021-06-30 NFS network file sharing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110738590.8A CN113672577B (en) 2021-06-30 2021-06-30 NFS network file sharing method and system

Publications (2)

Publication Number Publication Date
CN113672577A CN113672577A (en) 2021-11-19
CN113672577B true CN113672577B (en) 2023-08-04

Family

ID=78538523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110738590.8A Active CN113672577B (en) 2021-06-30 2021-06-30 NFS network file sharing method and system

Country Status (1)

Country Link
CN (1) CN113672577B (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4131514B2 (en) * 2003-04-21 2008-08-13 インターナショナル・ビジネス・マシーンズ・コーポレーション Network system, server, data processing method and program

Also Published As

Publication number Publication date
CN113672577A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
KR102317523B1 (en) Packet control method and network device
US11265218B2 (en) Configuration management method and apparatus, and device
US20200413299A1 (en) Multichannel data transmission method and apparatus
US6848005B1 (en) Self-tuning dataflow I/O core
WO2015058698A1 (en) Data forwarding
CN111522653A (en) Container-based network function virtualization platform
Shang et al. Design and implementation of server cluster dynamic load balancing based on OpenFlow
US10652142B2 (en) SDN-based ARP implementation method and apparatus
KR101938623B1 (en) Openflow communication method, system, controller, and service gateway
JP2022532731A (en) Avoiding congestion in slice-based networks
WO2023160276A1 (en) Data processing method and apparatus, computer device and readable storage medium
KR20220006606A (en) Message processing method and related device
CN108280018B (en) Method and system for analyzing and optimizing communication overhead efficiency of node workflow
CN112134929A (en) Session message analysis method, device and storage medium
JP5673057B2 (en) Congestion control program, information processing apparatus, and congestion control method
CN113672577B (en) NFS network file sharing method and system
CN110289990B (en) Network function virtualization system, method and storage medium based on GPU
CN112087382A (en) Service routing method and device
WO2017193814A1 (en) Service chain generation method and system
CN111404705B (en) SDN optimization method and device and computer readable storage medium
CN109450794B (en) Communication method and device based on SDN network
CN112165529A (en) Method, device, equipment and medium for low-cost cross-network data exchange
Rao et al. CNR: A technique for data replication organization in BigData
CN114793217B (en) Intelligent network card, data forwarding method and device and electronic equipment
CN111614471B (en) DCQCN data transmission system and transmission method based on SDN

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