VPN Device National Cryptography Testing Method, Device, Electronic Device, Storage Medium
Through the secondary development of GMSSL testing tools, the real user login environment is simulated, and the problem of deviation in the test results of VPN devices is solved, and the test results with higher accuracy are achieved.
Patent Information
- Application Number
- CN202211386599.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-07
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-11-07
AI Technical Summary
The existing technology cannot simulate a real national secret authentication login environment, resulting in a deviation from the actual usage results of VPN devices.
By secondary development of the GMSSL test tool, user login information is obtained and login sessions are simulated. Multi-threaded or multi-process concurrency method is used to send authentication login requests to VPN devices, maintain each login session, and count and calculate the maximum number of online users and resource access data in unit time.
Improve the accuracy of VPN device testing, especially the accuracy of new tests, concurrent tests and throughput tests, and generate more accurate test reports.
Smart Images

Figure CN115766553B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers, and more particularly, to a method, device, electronic device, and storage medium for testing the national cryptographic algorithm of a VPN device. Background Art
[0002] Currently, for the testing means of the national cryptographic algorithm protocol of VPN devices, only the GMSSL testing tool can be used to perform new connection, concurrency, and throughput tests on URL connections, but it cannot simulate a real national cryptographic algorithm authentication login test environment. As a result, there is a deviation between the test results and the actual usage results, and the test results are greater than the actual usage results. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a method, device, electronic device, and storage medium for testing the national cryptographic algorithm of a VPN device, which is used to simulate and test the usage environment of a VPN device under the real national cryptographic algorithm protocol, and then test the VPN device based on the actual usage environment of the VPN device, so as to improve the test accuracy rate of the VPN device.
[0004] In a first aspect, the present invention provides a method for testing the national cryptographic algorithm of a VPN device. The testing method is applied to a testing terminal, and the GMSSL testing tool is pre-installed on the testing terminal. After secondary development, the GMSSL testing tool is used to obtain user login information and simulate a login session based on the user login information. The testing method includes:[[]]
[0005] When it is detected that a tester in the testing terminal triggers a new test for the VPN device to be tested, based on the GMSSL testing tool, send multiple authentication login requests to the VPN device to be tested in a multi-threaded concurrency mode or a multi-process concurrency mode, and maintain the login session corresponding to each authentication login request;
[0006] Based on the processing results of the VPN device to be tested for multiple authentication login requests, count the maximum number of online users of the VPN device to be tested per unit time;
[0007] Calculate the average value of the maximum number of online users obtained from multiple tests; obtain a new test value.
[0008] In the first aspect of this application, after the GMSSL test tool is redeveloped, it can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the newly established test value is higher.
[0009] In an alternative embodiment, the method further includes:
[0010] When it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, if it is determined that the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, then the number of online users is used as the second test value;
[0011] Calculate the average value of multiple second test values obtained from multiple tests to obtain a concurrent test value.
[0012] In the above alternative embodiment, when it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, by determining whether the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, the number of online users can be used as the second test value, and then the average value of multiple second test values obtained from multiple tests can be calculated to obtain a concurrent test value. Compared with the prior art, since the concurrent test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0013] In an alternative embodiment, the method further includes:
[0014] When it is detected that a tester in the test terminal triggers a throughput test for the VPN device to be tested, a resource access request is sent to the VPN device to be tested;
[0015] Statistical maximum data volume during the resource access process;
[0016] Calculate the average value of multiple maximum data volumes obtained from multiple tests to obtain a throughput test value.
[0017] In the above optional embodiment, when it is detected that the tester in the test terminal triggers a throughput test for the VPN device to be tested, by sending a resource access request to the VPN device to be tested, the maximum data volume during the resource access process can be counted, and then the average value of the multiple maximum data volumes obtained from multiple tests can be calculated to obtain the throughput test value. Compared with the prior art, since the throughput test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0018] In the optional embodiment, the method further includes:
[0019] Generating a test report based on the new test value, the concurrency test value, and the throughput test value;
[0020] Saving the test report based on the predicted storage path.
[0021] In the above optional embodiment, based on the new test value, the concurrency test value, and the throughput test value, a test report can be generated, and then the test report can be saved based on the predicted storage path.
[0022] In a second aspect, the present invention provides a national cryptography test device for a VPN device. The test device is applied to a test terminal, and the test terminal is pre-installed with a GMSSL test tool. After secondary development, the GMSSL test tool is used to obtain user login information and simulate a login session based on the user login information. The test device includes:
[0023] A first test module, configured to, when it is detected that the tester in the test terminal triggers a new test for the VPN device to be tested, based on the GMSSL test tool, send multiple authentication login requests to the VPN device to be tested in a multi-threaded concurrency manner or a multi-process concurrency manner, and maintain the login session corresponding to each authentication login request;
[0024] A first statistics module, configured to count the maximum number of online users of the VPN device to be tested per unit time based on the processing results of the VPN device to be tested for the multiple authentication login requests;
[0025] A first calculation module, configured to calculate the average value of the maximum number of online users obtained from multiple tests; to obtain a new test value.
[0026] In the second aspect of the present application, after the GMSSL test tool is redeveloped, it can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the newly established test value is higher.
[0027] In an alternative embodiment, the apparatus further includes:
[0028] A second test module, configured to, when detecting that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, determine whether the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time. If so, use the number of online users as a second test value;
[0029] A second calculation module, configured to calculate the average value of multiple second test values obtained from multiple tests to obtain a concurrent test value.
[0030] In the above alternative embodiment, when detecting that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, by determining whether the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, the number of online users can be used as a second test value, and then the average value of multiple second test values obtained from multiple tests can be calculated to obtain a concurrent test value. Compared with the prior art, since the concurrent test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0031] In an alternative embodiment, the apparatus further includes:
[0032] A third test module, configured to send a resource access request to the VPN device to be tested when detecting that a tester in the test terminal triggers a throughput test for the VPN device to be tested;
[0033] A second statistics module, configured to count the maximum data volume during the resource access process;
[0034] A third calculation module, configured to calculate the average value of multiple maximum data volumes obtained from multiple tests to obtain a throughput test value.
[0035] In the above optional embodiment, when it is detected that the tester in the test terminal triggers a throughput test for the VPN device to be tested, by sending a resource access request to the VPN device to be tested, the maximum data volume during the resource access process can be counted, and then the average value of the multiple maximum data volumes obtained from multiple tests can be calculated to obtain the throughput test value. Compared with the prior art, since the throughput test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0036] In an optional embodiment, the apparatus further includes:
[0037] A generation module, configured to generate a test report based on the new test value, the concurrent test value, and the throughput test value;
[0038] A storage module, configured to store the test report based on a predicted storage path.
[0039] In the above optional embodiment, based on the new test value, the concurrent test value, and the throughput test value, a test report can be generated, and then the test report can be stored based on a predicted storage path.
[0040] In a third aspect, the present invention provides an electronic device, including:
[0041] A processor; and
[0042] A memory, configured to store machine-readable instructions, which when executed by the processor, execute the VPN device national cryptography test method according to any one of the foregoing embodiments.
[0043] By executing the VPN device national cryptography test method, the electronic device in the third aspect of the present application can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the new test value is higher.
[0044] In a fourth aspect, the present invention provides a storage medium, which stores a computer program, and the computer program is executed by a processor to perform the VPN device national cryptography test method according to any one of the foregoing embodiments.
[0045] By executing the national cryptography test method for VPN devices, the storage medium according to the fourth aspect of the present application can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, thereby simulating a real user login environment, so that the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the newly created test value is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0047] Figure 1 is a schematic flowchart of a national cryptography test method for a VPN device disclosed in an embodiment of the present application;
[0048] Figure 2 is a schematic structural diagram of a national cryptography test device for a VPN device disclosed in an embodiment of the present application;
[0049] Figure 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] The following will describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application.
[0051] Embodiment 1
[0052] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a national cryptography test method for a VPN device disclosed in an embodiment of the present application. The test method is applied to a test terminal, and the GMSSL test tool is pre-installed on the test terminal. After secondary development, the GMSSL test tool is used to obtain user login information and simulate a login session based on the user login information. As Figure 1 shown, the test method of the embodiment of the present application includes the following steps:
[0053] 101. When it is detected that a tester in the test terminal triggers a new test for the VPN device to be tested, multiple authentication login requests are sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner based on the GMSSL test tool, and the login session corresponding to each authentication login request is maintained;
[0054] 102. Based on the processing results of the VPN device under test for multiple authentication login requests, count the maximum number of online users of the VPN device under test within a unit time;
[0055] 103. Calculate the average value of the maximum number of online users obtained from multiple tests; and obtain a new test value.
[0056] In an embodiment of the present application, since the GMSSL test tool can obtain user login information after secondary development and simulate login sessions based on the user login information, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, thereby simulating a real user login environment, so that the VPN device can be tested based on the real user login environment, and ultimately more accurate test results can be obtained, that is, the accuracy of the newly created test value is higher.
[0057] In an embodiment of the present application, the test terminal may have an installation environment for the GMSSL test tool and a terminal device capable of running the GMSSL test tool. The test terminal may be a mobile terminal, such as a mobile phone or tablet. Alternatively, the test terminal may be a PC terminal, which is not limited in this embodiment of the present application.
[0058] In the embodiment of the present application, the secondary development of the GMSSL test tool refers to improving the code of the original GMSSL test tool, wherein the secondary developed GMSSL test tool obtains user login information and uses the obtained user login information as the input parameter of the user login API interface, and then initiates an authentication login request to the VPN device by calling the user login API interface. Accordingly, after receiving the authentication login request, the VPN device obtains the user login information and verifies the user login information. After the VPN device passes the authentication, it recommends a login session with the test terminal, and then the test terminal and the VPN device maintain the login session based on the Session session persistence technology, and finally simulates the real user login environment. Furthermore, the user login information may include the user login name and user login password.
[0059] In the embodiment of the present application, with respect to step 101, the newly created test for the VPN device to be tested refers to testing the maximum number of online users of the VPN device to be tested within a unit time.
[0060] In the embodiment of the present application, for step 102, after the authentication of the test VPN device is passed, a login success prompt will be returned to the test terminal. Furthermore, based on the login success prompts within a unit of time, the maximum number of online users of the test VPN device within a unit of time can be calculated. For example, the maximum number of online users within 1 minute can be calculated.
[0061] In the embodiment of the present application, for step 103, since the test may be affected by factors such as the network status, the average value of the maximum number of online users obtained from multiple tests is calculated, and then the average value of the maximum number of online users is used as the new test value, which can reflect the average test situation of multiple tests.
[0062] In an alternative embodiment, the method of the embodiment of the present application further includes the following steps:
[0063] When it is detected that the tester in the test terminal triggers a concurrent test for the VPN device to be tested, when it is determined that the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, if so, the number of online users is used as the second test value;
[0064] Calculate the average value of multiple second test values obtained from multiple tests to obtain the concurrent test value.
[0065] In the above alternative embodiment, when it is detected that the tester in the test terminal triggers a concurrent test for the VPN device to be tested, by determining that the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, the number of online users can be used as the second test value, and then the average value of multiple second test values obtained from multiple tests can be calculated to obtain the concurrent test value. Compared with the prior art, since the concurrent test value is obtained by testing the VPN device based on the real user login environment, it has a higher accuracy rate.
[0066] In an alternative embodiment, the method of the embodiment of the present application further includes the following steps:
[0067] When it is detected that the tester in the test terminal triggers a throughput test for the VPN device to be tested, a resource access request is sent to the VPN device to be tested;
[0068] Statistical maximum data volume during the resource access process;
[0069] Calculate the average value of multiple maximum data volumes obtained from multiple tests to obtain the throughput test value.
[0070] In the above optional embodiment, when it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, by sending a resource access request to the VPN device to be tested, the maximum data volume during the resource access process can be counted, and then the average value of multiple maximum data volumes obtained from multiple tests can be calculated to obtain the throughput test value. Compared with the prior art, since the throughput test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0071] In an optional embodiment, the method of the embodiment of the present application further includes the following steps:
[0072] Generate a test report based on the new test value, the concurrent test value, and the throughput test value;
[0073] Save the test report based on the predicted storage path.
[0074] In the above optional embodiment, based on the new test value, the concurrent test value, and the throughput test value, a test report can be generated, and then the test report can be saved based on the predicted storage path.
[0075] Embodiment 2
[0076] Please refer to Figure 2 , Figure 2 which is a schematic structural diagram of a national secret test device for a VPN device disclosed in an embodiment of the present application. Among them, the test device is applied to a test terminal, and the GMSSL test tool is pre-installed on the test terminal. After secondary development, the GMSSL test tool is used to obtain user login information and simulate a login session based on the user login information. As Figure 2 shown, the test device of the embodiment of the present application includes the following functional modules:
[0077] The first test module 201 is used to, when it is detected that a tester in the test terminal triggers a new test for the VPN device to be tested, based on the GMSSL test tool, send multiple authentication login requests to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and maintain the login session corresponding to each authentication login request;
[0078] The first statistics module 202 is used to, based on the processing results of the VPN device to be tested for multiple authentication login requests, count the maximum number of online users of the VPN device to be tested per unit time;
[0079] The first calculation module 203 is used to calculate the average value of the maximum number of online users obtained from multiple tests; to obtain the new test value.
[0080] In the embodiments of the present application, after the GMSSL test tool is redeveloped, it can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the newly created test value is higher.
[0081] In an alternative embodiment, the device of the embodiments of the present application further includes the following functional modules:
[0082] A second test module, configured to, when it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, determine that the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time. If so, use the number of online users as the second test value;
[0083] A second calculation module, configured to calculate the average value of multiple second test values obtained from multiple tests to obtain a concurrent test value.
[0084] In the above alternative embodiment, when it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, by determining that the number of online users is greater than or equal to a preset threshold and whether the state that the number of online users is greater than or equal to the preset threshold is maintained for a preset time, the number of online users can be used as the second test value, and then the average value of multiple second test values obtained from multiple tests can be calculated to obtain a concurrent test value. Compared with the prior art, since the concurrent test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0085] In an alternative embodiment, the device of the embodiments of the present application further includes the following functional modules:
[0086] A third test module, configured to, when it is detected that a tester in the test terminal triggers a throughput test for the VPN device to be tested, send a resource access request to the VPN device to be tested;
[0087] A second statistics module, configured to count the maximum data volume during the resource access process;
[0088] A third calculation module, configured to calculate the average value of multiple maximum data volumes obtained from multiple tests to obtain a throughput test value.
[0089] In the above optional embodiment, when it is detected that a tester in the test terminal triggers a throughput test for the VPN device to be tested, by sending a resource access request to the VPN device to be tested, the maximum data volume during the resource access process can be counted, and then the average value of multiple maximum data volumes obtained from multiple tests can be calculated to obtain the throughput test value. Compared with the prior art, since the throughput test value is obtained by testing the VPN device based on a real user login environment, it has a higher accuracy rate.
[0090] In an optional embodiment, the device according to the embodiment of the present application further includes the following functional modules:
[0091] A generation module, configured to generate a test report based on the new test value, the concurrent test value, and the throughput test value;
[0092] A storage module, configured to store the test report based on the predicted storage path.
[0093] In the above optional embodiment, based on the new test value, the concurrent test value, and the throughput test value, a test report can be generated, and then the test report can be stored based on the predicted storage path.
[0094] It should be noted that for other detailed descriptions of the device according to the embodiment of the present application, please refer to the relevant descriptions in Embodiment 1 of the present application, and the embodiment of the present application will not elaborate herein.
[0095] Embodiment 3
[0096] Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of an electronic device disclosed in the embodiment of the present application. As Figure 3 shown, the electronic device according to the embodiment of the present application includes:
[0097] A processor 301; and
[0098] A memory 302, configured to store machine-readable instructions, and when the instructions are executed by the processor 301, execute the VPN device national cryptography test method according to any one of the foregoing embodiments.
[0099] By executing the VPN device national cryptography test method, the electronic device according to the embodiment of the present application can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the new test value is higher.
[0100] Embodiment 4
[0101] An embodiment of the present application provides a storage medium storing a computer program, and the computer program is executed by a processor to perform the national cryptography test method for VPN devices in any one of the foregoing embodiments.
[0102] By executing the national cryptography test method for VPN devices, the storage medium of the embodiment of the present application can obtain user login information and simulate a login session based on the user login information. In this way, based on the GMSSL test tool, multiple authentication login requests can be sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request can be maintained, so as to simulate a real user login environment, and thus the VPN device can be tested based on the real user login environment, and finally a more accurate test result can be obtained, that is, the accuracy of the newly created test value is higher.
[0103] In the embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be in an electrical, mechanical or other form.
[0104] In addition, the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist alone, or two or more modules can be integrated to form an independent part.
[0106] It should be noted that if a function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.
[0107] In this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0108] The above are only embodiments of the present application and are not used to limit the protection scope of the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for testing the national cryptographic algorithm of a VPN device, characterized in that, The described test method is applied to a test terminal, which is pre-installed with a GMSSL test tool. After secondary development, the GMSSL test tool is used to obtain user login information and simulate a login session based on the user login information. The test method includes: When it is detected that a tester in the test terminal triggers a new test for the VPN device to be tested, based on the GMSSL test tool, multiple authentication login requests are sent to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and the login session corresponding to each authentication login request is maintained; Based on the processing results of the VPN device to be tested for the multiple authentication login requests, the maximum number of online users of the VPN device to be tested within a unit time is counted; Calculate the average value of the maximum number of online users obtained from multiple tests; obtain a new test value; And, the method further includes: When it is detected that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, determine whether the number of online users is greater than or equal to a preset threshold, and whether the state where the number of online users is greater than or equal to the preset threshold is maintained for a preset time. If so, use the number of online users as the second test value; Calculate the average value of the multiple second test values obtained from multiple tests to obtain a concurrent test value.
2. The national cryptography test method for the VPN device according to claim 1, wherein The method further includes: When it is detected that a tester in the test terminal triggers a throughput test for the VPN device to be tested, send a resource access request to the VPN device to be tested; Count the maximum data volume during the resource access process; Calculate the average value of the multiple maximum data volumes obtained from multiple tests to obtain a throughput test value.
3. The national cryptography test method for the VPN device according to claim 2, characterized in that, The method further includes: Generate a test report based on the new test value, the concurrent test value, and the throughput test value; Save the test report based on the predicted storage path.
4. A national cryptographic algorithm test device for VPN equipment, characterized in that, The described test device is applied to a test terminal, which is pre-installed with a GMSSL test tool. After secondary development, the GMSSL test tool is used to obtain user login information and simulate a login session based on the user login information. The test device includes: A first test module, configured to, when it is detected that a tester in the test terminal triggers a new test for the VPN device to be tested, based on the GMSSL test tool, send multiple authentication login requests to the VPN device to be tested in a multi-threaded concurrent manner or a multi-process concurrent manner, and maintain the login session corresponding to each authentication login request; A first statistics module, configured to count the maximum number of online users of the VPN device to be tested within a unit time based on the processing results of the VPN device to be tested for the multiple authentication login requests; A first calculation module, configured to calculate the average value of the maximum number of online users obtained from multiple tests; obtain a new test value; And, the device further includes: A second test module, configured to, when detecting that a tester in the test terminal triggers a concurrent test for the VPN device to be tested, determine whether the number of online users is greater than or equal to a preset threshold and whether the state where the number of online users is greater than or equal to the preset threshold is maintained for a preset time. If so, the number of online users is used as a second test value; A second calculation module, configured to calculate the average value of multiple second test values obtained from multiple tests to obtain a concurrent test value.
5. The VPN device national cryptography testing device according to claim 4, characterized in that The apparatus further includes: A third test module, configured to, when detecting that a tester in the test terminal triggers a throughput test for the VPN device to be tested, send a resource access request to the VPN device to be tested; A second statistics module, configured to count the maximum data volume during the resource access process; A third calculation module, configured to calculate the average value of multiple maximum data volumes obtained from multiple tests to obtain a throughput test value.
6. The VPN device national cryptography testing device according to claim 5, characterized in that, The apparatus further includes: A generation module, configured to generate a test report based on the newly created test value, the concurrent test value, and the throughput test value; A storage module, configured to store the test report based on a predicted storage path.
7. An electronic device, characterized in that, Including: A processor; And A memory, configured to store machine-readable instructions, which, when executed by the processor, execute the VPN device national cryptography test method according to any one of claims 1-3.
8. A storage medium, characterized in that, The storage medium stores a computer program, and the computer program is executed by the processor to perform the VPN device national cryptography test method according to any one of claims 1-3.
Citation Information
Patent Citations
Server performance test method and device and equipment and storage medium
CN111159000A
Network performance test method and device, equipment and storage medium
CN114500351A