CN114448823A - NFS service testing method and system and electronic equipment - Google Patents

NFS service testing method and system and electronic equipment Download PDF

Info

Publication number
CN114448823A
CN114448823A CN202210102549.6A CN202210102549A CN114448823A CN 114448823 A CN114448823 A CN 114448823A CN 202210102549 A CN202210102549 A CN 202210102549A CN 114448823 A CN114448823 A CN 114448823A
Authority
CN
China
Prior art keywords
nfs
request message
tested function
tested
execution result
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
Application number
CN202210102549.6A
Other languages
Chinese (zh)
Other versions
CN114448823B (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 CN202210102549.6A priority Critical patent/CN114448823B/en
Publication of CN114448823A publication Critical patent/CN114448823A/en
Application granted granted Critical
Publication of CN114448823B publication Critical patent/CN114448823B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a NFS service test method, which comprises the steps of calling a rapid data packet processing frame to send a tested function request message to an NFS server; the NFS server receives and verifies the tested function request message; the NFS server executes the tested function according to the tested function request message and generates an execution result; and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test. The method and the device have the advantages that the fast data packet processing frame is called to receive and send the message, the system calling is not carried out, the kernel state is not needed, the influence on the test caused by the delay possibly generated in the test process is avoided, and the NFS service can be tested to the maximum extent; secondly, the method and the device can simulate real storage IO by customizing the tested function request set so as to expand the test scene; the sufficiency of NFS service test is further improved, and the reliability of products is improved.

Description

NFS service testing method and system and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and a system for processing a user interface, and an electronic device.
Background
NFS (Network File System) is one of the current mainstream heterogeneous platform shared File systems. The method is mainly applied to the UNIX environment, and allows a system to share directories and files with others on a network. The NFS works on the principle of using a client/server architecture, consisting of a client program and a server program. The server program provides access to the file system to other computers, a process referred to as export. When the NFS client program accesses the shared file system, they are "transported" out of the NFS server. Files are typically transferred in units of blocks.
In the prior art, a file system test tool is generally used for testing NFS, and the tool generally has several configuration parameters, such as selecting a read-write sequence, setting a file, a directory number, a read-write thread number, and the like, and outputs performance parameters during testing. However, the testing method is realized by system call, and NFS requests cannot be specified, so that the testing method has a single scene, few configurable parameters and insufficient flexibility, and cannot meet the actual stored scene; in addition, the testing method has strict requirements on testing environment, the performance can be influenced by the press, the testing tool can call system service on the press, only sends a message to the NFS server through the system call, and the NFS limit performance cannot be fully tested due to the fact that time delay is generated in the middle and calculation resources of the press are consumed.
Therefore, a method suitable for various scenarios and capable of increasing the speed of testing the NFS is needed to solve the above technical problems in the prior art.
Disclosure of Invention
In order to solve the defects of the prior art, the present invention provides a method, a system and an electronic device for testing NFS service, so as to solve the above technical problems of the prior art.
In order to achieve the above object, in a first aspect, the present invention provides a method for testing NFS service, where the method includes:
calling a rapid data packet processing framework to send a tested function request message to an NFS server;
the NFS server receives and verifies the tested function request message;
the NFS server executes the tested function according to the tested function request message and generates an execution result;
and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test.
In some embodiments, before the invoking the fast packet processing framework sends the tested function request message to the NFS service end, the method further includes:
simulating and constructing NFS parameters according to the tested function and a preset test program;
and constructing a tested function request message according to the NFS parameters.
In some embodiments, the NFS client receives a tested function request packet including the execution result, records the execution result, and completes the test, including:
calling an NFS protocol to analyze the tested function request message to obtain the execution result;
recording the size of a data packet in the execution result, wherein the data packet is used for representing the performance of the function to be tested;
and recording the execution state in the execution result, and if the return value of the execution state is OK, the tested function operates normally.
In some embodiments, the receiving and verifying the tested function request packet by the NFS server includes:
checking whether the tested function request message meets NFS protocol standard;
and if the tested function request message conforms to the NFS protocol standard, the NFS server executes the tested function.
In some embodiments, the method further comprises:
the test program takes over the network card to ensure that the fast data packet processing frame can directly send and receive the tested function request message.
In some embodiments, the performing, by the NFS server, the measured function according to the measured function request packet and generating an execution result includes:
executing the tested function in the NFS server and returning the execution result to a local service process;
and the local service process encapsulates the received execution result in the tested function request message and sends the tested function request message to the NFS client.
In some embodiments, before the invoking the fast packet processing framework sends the tested function request message to the NFS service end, the method further includes:
and deploying a source code environment of the user mode network file system and the rapid data packet processing framework.
In a second aspect, the present application provides an NFS service testing system, including:
fast packet processing framework: sending a tested function request message;
the NFS server: receiving a tested function request message sent by the rapid data packet processing framework and checking the tested function request message;
the NFS server is further configured to execute the tested function according to the tested function request message and generate an execution result;
the NFS client: and receiving a tested function request message containing the execution result, recording the execution result, and completing the test.
In a third aspect, the present application provides an electronic device, comprising:
one or more processors;
and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
calling a rapid data packet processing framework to send a tested function request message to an NFS server;
the NFS server receives and verifies the tested function request message;
the NFS server executes the tested function according to the tested function request message and generates an execution result;
and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test.
The beneficial effect that this application realized does:
the application provides a NFS service test method, which comprises the steps of calling a rapid data packet processing frame to send a tested function request message to an NFS server; the NFS server receives and verifies the tested function request message; the NFS server executes the tested function according to the tested function request message and generates an execution result; and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test. The method and the device have the advantages that the fast data packet processing frame is called to receive and send the message, the system calling is not carried out, the kernel state is not needed, the influence on the test caused by the delay possibly generated in the test process is avoided, and the NFS service can be tested to the maximum extent; secondly, the method and the device can simulate real storage IO by customizing the tested function request set so as to expand the test scene; the sufficiency of NFS service test is further improved, and the reliability of products is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without inventive efforts, wherein:
FIG. 1 is a block diagram of a general test implementation provided herein;
fig. 2 is a block diagram of an NFS function test implementation provided in an embodiment of the present application;
fig. 3 is a schematic diagram of NFS functional test provided in an embodiment of the present application;
fig. 4 is a flowchart of an NFS function testing method provided in an embodiment of the present application;
fig. 5 is an architecture diagram of an NFS functional test system provided in an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be understood that throughout the description and claims of this application, unless the context clearly requires otherwise, the words "comprise", "comprising", and the like, are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
It will be further understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
It should be noted that the terms "S1", "S2", etc. are used for descriptive purposes only, are not intended to be used in a specific order or sequence sense, and are not intended to limit the present application. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
As described in the background, the test tools used in the prior art, as shown in FIG. 1, all need to pass through the following modules: the kernel receives and sends the package, the file system processing and the upper software processing. As shown in fig. 2, the present application performs transceiving of a data packet and processes an NFS protocol in a user mode, and does not pass through a kernel and a file system.
Example one
Specifically, as shown in fig. 3, the process of performing the NFS service test in the embodiment of the present application includes:
s100, deploying an NFS-Ganesha environment, constructing a request message of a tested function, and deploying a rapid data packet processing framework in a test program.
Specifically, in the test program in the present Application, a program developed by a developer includes multiple API (Application Programming Interface) interfaces, and is used to invoke a fast packet processing framework to perform a user mode program for receiving and sending a message. Determining a tested function request to be constructed, such as a write request, a read request, a directory acquisition request and the like, according to a function to be tested of a test client; and then, the test program constructs a tested function request parameter according to the function simulation required to be tested according to the NFS protocol standard, and a tested function request message is generated. When the tested function request message is constructed, a tested function request message can be constructed independently, and a tested function request message set can be constructed to simulate real storage IO.
In this embodiment, the NFS-Ganesha (user mode network file system) user mode network file system source code environment may be a CentOS 7.2 version environment, or may be another version of NFS-Ganesha obtained from a GitHub open source community. The NFS-Ganesha is a File server supporting NFS protocol (NFSv3/NFSv4, NFSv4.1) in user mode, and provides a FUSE (File system in user space File system) compatible interface FSAL (File system abstraction Layer) for Unix and Unix-like operating systems. Thus, the user can access the own storage device through the NFS client. The NFS-Ganesha service allows a user to access data in a user mode through the FSAL without frequent interaction with a kernel, and response time of data reading is greatly reduced.
Among them, the fast Data packet processing framework (DPDK) is used to accelerate packet Data processing, mainly responsible for accessing the underlying resources of the computer and encapsulating the details of the interface embodiment provided to the user. The DPDK is dedicated to high-performance processing of data packets in network application, and is particularly embodied in that a DPDK application program runs on a user mode and utilizes a self data plane library to receive and transmit the data packets, a kernel protocol is bypassed for processing the data packets, the data packets do not pass through a kernel and a file system, delay is reduced, and unnecessary system call is avoided.
And S200, sending a tested function request message to the NFS server according to the rapid data packet processing frame.
It should be noted that, at this time, the network card has already been taken over by the test program to implement the fast packet processing framework to directly send and receive the function request message, and the step of taking over the network card includes: issuing network card configuration, setting a network card receiving queue, setting a network card sending queue and starting the network card. The specific content of each step is the prior art in the field, and the detailed description of the present application is omitted here.
And S300, the NFS server receives the tested function request message and verifies the test function request message to be normal.
Specifically, the NFS server checks the legality and normalization of the format of the function request message to be tested according to the NFS protocol format standard, and if the format of the function request message to be tested conforms to the NFS protocol format standard, the NFS server executes the function to be tested; if the format of the tested function request message conforms to the standard of the NFS protocol format, that is, the tested function request message is not established legally and normatively, and the NFS server does not execute the tested function.
S400, after the tested function request message is detected to be normal, the NFS server executes the tested function and generates an execution result.
Specifically, the NFS server executes the tested function and returns an execution result to the local service process, and the local service process encapsulates the received execution result in the tested function request message; wherein the execution result at least comprises: packet size and execution status.
S500, the NFS server sends the tested function request message encapsulated with the execution result to the NFS client, and the NFS client receives the tested function request message and records the encapsulated execution result to complete the test.
And the NFS client calls the NFS protocol to analyze the received tested function request message and acquire an encapsulated execution result. The NFS client records the size of a data packet in an execution result, and the data packet is used for representing the performance of the function to be tested. Because the requirements of the tested functions on the size of the data packet are different under the normal operation condition, in the specific application, the requirements of the tested functions on the size of the data packet are compared with the size of the data packet in the execution result, and if the size of the data packet in the execution result can meet or approximately meet the requirements of the tested functions on the size of the data packet, the tested functions are proved to have high operation performance in the test environment.
The NFS client records the execution state in the execution result, and if the recorded return value of the execution state is OK, the tested function is proved to run normally in the test, and the tested function can be realized in the test environment; if the return value of the execution state is not recorded or the recorded return value of the execution state is not OK, the tested function is proved to be abnormal in operation in the test, and the tested function cannot be realized in the test environment.
The method for testing the NFS service, disclosed by the embodiment of the application, can realize the construction of the message in the user mode without a kernel and a file system, receive and send the message in the user mode, and test the function and performance of the NFS service by simulating the message receiving and sending process.
Example two
Corresponding to the foregoing embodiment, the present application provides a method for testing an NFS service, as shown in fig. 4, where the method includes:
4100. calling a rapid data packet processing framework to send a tested function request message to an NFS server;
preferably, before the invoking of the fast packet processing framework sends the request message of the function to be tested to the NFS server, the method further includes:
4110. and deploying a source code environment of the user mode network file system and the rapid data packet processing framework.
Preferably, before the invoking of the fast packet processing framework sends the request message of the function to be tested to the NFS server, the method further includes:
4120. simulating and constructing NFS parameters according to the tested function and a preset test program;
4130. and constructing a tested function request message according to the NFS parameters.
4200. The NFS server receives and verifies the tested function request message;
preferably, the receiving and verifying of the tested function request message by the NFS server includes:
4210. checking whether the tested function request message meets NFS protocol standard;
4220. and if the tested function request message conforms to the NFS protocol standard, the NFS server executes the tested function.
4300. The NFS server executes the tested function according to the tested function request message and generates an execution result;
preferably, the method further comprises:
4310. the test program takes over the network card to ensure that the fast data packet processing frame can directly send and receive the tested function request message.
Preferably, the NFS server executes the tested function according to the tested function request packet and generates an execution result, including:
4320. executing the tested function in the NFS server and returning the execution result to a local service process;
4330. and the local service process encapsulates the received execution result in the tested function request message and sends the tested function request message to the NFS client.
4400. And the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test.
Preferably, the NFS client receives the tested function request packet including the execution result and records the execution result, and completes the test, including:
4410. calling an NFS protocol to analyze the tested function request message to obtain the execution result;
4420. recording the size of a data packet in the execution result, wherein the data packet is used for representing the performance of the function to be tested;
4430. and recording the execution state in the execution result, and if the return value of the execution state is OK, the tested function operates normally.
EXAMPLE III
As shown in fig. 5, corresponding to the first embodiment and the second embodiment, an embodiment of the present application provides an NFS service testing system, including:
fast packet processing framework 510: sending a tested function request message;
NFS server 520: receiving a tested function request message sent by the rapid data packet processing framework and checking the tested function request message;
the NFS server 520 is further configured to execute the tested function according to the tested function request message and generate an execution result;
the NFS client 530: and receiving a tested function request message containing the execution result, recording the execution result, and completing the test.
In some embodiments, the NFS server 520 is further configured to simulate and construct NFS parameters according to the tested function and a preset test program; and constructing a tested function request message according to the NFS parameters.
In some embodiments, the NFS client 530 is further configured to invoke an NFS protocol to analyze the tested function request packet to obtain the execution result; recording the size of a data packet in the execution result, wherein the data packet is used for representing the performance of the function to be tested; and recording the execution state in the execution result, and if the return value of the execution state is OK, the tested function operates normally.
In some embodiments, the NFS server 520 is further configured to check whether the tested function request packet meets the NFS protocol standard; if the tested function request message conforms to the NFS protocol standard, the NFS server 520 executes the tested function.
In some embodiments, the NFS server 520 is further configured to execute the function under test and return the execution result to a local service process; the local service process encapsulates the received execution result in the tested function request message and sends the message to the NFS client 530.
Example four
Corresponding to all the above embodiments, an embodiment of the present application provides an electronic device, including:
one or more processors; and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
calling a rapid data packet processing framework to send a tested function request message to an NFS server;
the NFS server receives and verifies the tested function request message;
the NFS server executes the tested function according to the tested function request message and generates an execution result;
and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test.
Fig. 6 illustrates an architecture of an electronic device, which may specifically include a processor 610, a video display adapter 611, a disk drive 612, an input/output interface 613, a network interface 614, and a memory 620. The processor 610, the video display adapter 611, the disk drive 612, the input/output interface 613, the network interface 614, and the memory 620 may be communicatively connected by a bus 630.
The processor 610 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided in the present Application.
The Memory 620 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 620 may store an operating system 621 for controlling execution of the electronic device 600, a Basic Input Output System (BIOS)622 for controlling low-level operation of the electronic device 600. In addition, a web browser 623, a data storage management system 624, an icon font processing system 625, and the like may also be stored. The icon font processing system 625 may be an application program that implements the operations of the foregoing steps in this embodiment of the application. In summary, when the technical solution provided in the present application is implemented by software or firmware, the relevant program codes are stored in the memory 620 and called for execution by the processor 610.
The input/output interface 613 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The network interface 614 is used for connecting a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 630 includes a path that transfers information between the various components of the device, such as processor 610, video display adapter 611, disk drive 612, input/output interface 613, network interface 614, and memory 620.
In addition, the electronic device 600 may also obtain information of specific pickup conditions from the virtual resource object pickup condition information database for performing condition judgment, and the like.
It should be noted that although the above devices only show the processor 610, the video display adapter 611, the disk drive 612, the input/output interface 613, the network interface 614, the memory 620, the bus 630, etc., in a specific implementation, the device may also include other components necessary for normal execution. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a cloud server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for testing NFS services, the method comprising:
calling a rapid data packet processing framework to send a tested function request message to an NFS server;
the NFS server receives and verifies the tested function request message;
the NFS server executes the tested function according to the tested function request message and generates an execution result;
and the NFS client receives the tested function request message containing the execution result, records the execution result and completes the test.
2. The method according to claim 1, wherein before the invoking the fast packet processing framework sends the function-under-test request message to the NFS server, the method further comprises:
simulating and constructing NFS parameters according to the tested function and a preset test program;
and constructing a tested function request message according to the NFS parameters.
3. The method according to claim 1, wherein the NFS client receives a function request message under test including the execution result and records the execution result, and completes the test, including:
calling an NFS protocol to analyze the tested function request message to obtain the execution result;
recording the size of a data packet in the execution result, wherein the data packet is used for representing the performance of the function to be tested;
and recording the execution state in the execution result, and if the return value of the execution state is OK, the tested function operates normally.
4. The method according to claim 1, wherein the NFS server receives and verifies the function-under-test request packet, including:
checking whether the tested function request message meets NFS protocol standard;
and if the tested function request message conforms to the NFS protocol standard, the NFS server executes the tested function.
5. The method according to any one of claims 1-4, further comprising:
the test program takes over the network card to ensure that the fast data packet processing framework can directly send and receive the tested function request message.
6. The method according to any of claims 1 to 4, wherein the NFS server executes the tested function and generates an execution result according to the tested function request packet, including:
executing the tested function in the NFS server and returning the execution result to a local service process;
and the local service process encapsulates the received execution result in the tested function request message and sends the tested function request message to the NFS client.
7. The method according to any of claims 1-4, wherein before said invoking the fast packet processing framework sends the function-under-test request message to the NFS server, the method further comprises:
and deploying a source code environment of the user mode network file system and the rapid data packet processing framework.
8. An apparatus for testing NFS services, the apparatus comprising:
fast packet processing framework: sending a tested function request message;
the NFS server: receiving a tested function request message sent by the rapid data packet processing framework and checking the tested function request message;
the NFS server is further configured to execute the tested function according to the tested function request message and generate an execution result;
the NFS client: and receiving a tested function request message containing the execution result, recording the execution result, and completing the test.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
and memory associated with the one or more processors for storing program instructions which, when read and executed by the one or more processors, perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores a computer program which causes a computer to execute the method of any one of claims 1-7.
CN202210102549.6A 2022-01-27 2022-01-27 NFS service testing method and system and electronic equipment Active CN114448823B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210102549.6A CN114448823B (en) 2022-01-27 2022-01-27 NFS service testing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210102549.6A CN114448823B (en) 2022-01-27 2022-01-27 NFS service testing method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN114448823A true CN114448823A (en) 2022-05-06
CN114448823B CN114448823B (en) 2023-08-15

Family

ID=81368856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210102549.6A Active CN114448823B (en) 2022-01-27 2022-01-27 NFS service testing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114448823B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208806A (en) * 2022-07-07 2022-10-18 电信科学技术第五研究所有限公司 Method and device for testing response capability of NTP (network time protocol) server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS
CN107807883A (en) * 2017-10-27 2018-03-16 郑州云海信息技术有限公司 A kind of unit test method and device of User space NFS
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109450724A (en) * 2018-10-19 2019-03-08 郑州云海信息技术有限公司 A kind of test method and relevant apparatus of NFS internal memory optimization function
CN109783438A (en) * 2018-12-05 2019-05-21 南京华讯方舟通信设备有限公司 Distributed NFS system and its construction method based on librados
CN109992490A (en) * 2019-04-10 2019-07-09 苏州浪潮智能科技有限公司 A kind of test method and relevant apparatus of NFS performance
CN111225003A (en) * 2018-11-23 2020-06-02 北京京东金融科技控股有限公司 NFS node configuration method and device
CN112653730A (en) * 2020-12-10 2021-04-13 苏州浪潮智能科技有限公司 User mode network file storage method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653435A (en) * 2015-12-28 2016-06-08 曙光信息产业(北京)有限公司 Performance test method of NFS and performance test device of NFS
CN107807883A (en) * 2017-10-27 2018-03-16 郑州云海信息技术有限公司 A kind of unit test method and device of User space NFS
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109450724A (en) * 2018-10-19 2019-03-08 郑州云海信息技术有限公司 A kind of test method and relevant apparatus of NFS internal memory optimization function
CN111225003A (en) * 2018-11-23 2020-06-02 北京京东金融科技控股有限公司 NFS node configuration method and device
CN109783438A (en) * 2018-12-05 2019-05-21 南京华讯方舟通信设备有限公司 Distributed NFS system and its construction method based on librados
CN109992490A (en) * 2019-04-10 2019-07-09 苏州浪潮智能科技有限公司 A kind of test method and relevant apparatus of NFS performance
CN112653730A (en) * 2020-12-10 2021-04-13 苏州浪潮智能科技有限公司 User mode network file storage method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208806A (en) * 2022-07-07 2022-10-18 电信科学技术第五研究所有限公司 Method and device for testing response capability of NTP (network time protocol) server
CN115208806B (en) * 2022-07-07 2024-04-30 电信科学技术第五研究所有限公司 Method and device for testing NTP server response capability

Also Published As

Publication number Publication date
CN114448823B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
US20150236799A1 (en) Method and system for quick testing and detecting mobile devices
CN112631590B (en) Component library generation method, device, electronic equipment and computer readable medium
CN111352836A (en) Pressure testing method and related device
CN112732499A (en) Test method and device based on micro-service architecture and computer system
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
EP3797356B1 (en) Code base sharing between standalone and web-based versions of an application due to the implementing of an emulated network communication channel
CN114448823B (en) NFS service testing method and system and electronic equipment
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
US7873498B2 (en) Remote hardware inspection system and method
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
US20170031667A1 (en) Managing application lifecycles within a federation of distributed software applications
CN112379967B (en) Simulator detection method, device, equipment and medium
CN112069078B (en) ESA interface pressure test method, ESA interface pressure test device, ESA interface pressure test equipment and storage medium
CN115617675A (en) Automatic testing method, device and equipment of application program and storage medium
CN111078209B (en) Development processing method, device and equipment for business page
CN110191141B (en) Service calling information processing method and device and computer system
CN115756624A (en) Equipment tree DTB file loading method and system, electronic equipment and storage medium
CN113778881A (en) Data processing method and device and electronic equipment
CN114996135A (en) Interface testing method, device, equipment and storage medium based on bypass drainage
CN115982035A (en) Interface data simulation method, device, equipment and storage medium
CN113886271A (en) Application testing method and device, electronic equipment and storage medium
CN115145814A (en) Service test method, device, service test system and electronic equipment

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