CN114697080A - Test configuration adjustment method of network password equipment distributed performance test system - Google Patents
Test configuration adjustment method of network password equipment distributed performance test system Download PDFInfo
- Publication number
- CN114697080A CN114697080A CN202210185790.XA CN202210185790A CN114697080A CN 114697080 A CN114697080 A CN 114697080A CN 202210185790 A CN202210185790 A CN 202210185790A CN 114697080 A CN114697080 A CN 114697080A
- Authority
- CN
- China
- Prior art keywords
- test
- agent
- control center
- period
- agents
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5018—Thread allocation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a test configuration adjusting method of a network password equipment distributed performance test system. The method comprises the following steps: 1) selecting N test agents and respectively connecting the test agents with a control center and network password equipment to be tested; 2) the control center sends the information of the network password equipment and the test interface to each test agent; 3) the control center sends the initial test configuration of the test to N test agents, and the test agents set corresponding thread number to start the test according to the received configuration information; 4) the control center sets the duration of the test period according to the test period T of each agentjTest capability within, for the corresponding test agent during test period Tj+1Internally configuring the thread number; wherein, the control center increases a plurality of threads in each test period, the ith test agent is at Tj+1Line with internal additionThe number of passes and their duration in the test period TjThe test capability is proportional; and stopping testing when the total number of the testing threads on the N testing agents reaches the maximum total number of the threads.
Description
Technical Field
The invention belongs to the technical field of network security testing, and particularly relates to a test configuration adjusting method for a distributed performance testing system of network password equipment.
Background
The fields of internet and the like need a cryptographic technique to ensure the correctness of information sources and protect the confidentiality and integrity of information in the transmission process. With the continuous development of the cryptographic industry in China, network cryptographic equipment produced by enterprises in China is mature. The network password equipment is special equipment capable of providing password service for a plurality of hosts, the client sends a password operation request to the network password equipment, the network password equipment starts to execute password operation after receiving the password operation request, and the operation result is returned to the client after the operation is finished.
In order to guarantee the service provided by the network password equipment product, the test work of the performance of the network password equipment is indispensable. However, the network capability of the test system needs to be larger than the network password device to be tested to truly test the performance of the network password device, and a single test agent cannot meet the requirement. A distributed test system may solve the above problems. The distributed test is a network test method which connects test agents independently completing specific functions through a network and synchronously tests a server to be tested so as to achieve the test purpose. The testing steps for a distributed test system for network cryptographic devices are generally as follows:
the method comprises the following steps: the equipment where the control center is located, the equipment where the N test agents are located and the network password equipment are connected through the Ethernet, and normal communication among all the equipment is guaranteed. The control center and the N test agents form a distributed test system.
Step two: and starting the control center, and then starting the N test agents. The test agent automatically registers with the control center.
Step three: the control center sends the information of the network password equipment to be tested and the test interface to a test agent participating in the test;
step four: in the controlThe initial test configuration (thread configuration) of the test is sent to N test agents, the test agents set corresponding thread number according to the configuration to start the test, the current distributed test system mostly configures the same test thread number for each test agent, so the initial thread number X of the N test agents1=X2=…=XN. In the test process, the number of threads used for testing by the test agent is continuously increased, and each different thread number configuration mode tests the same time, wherein the time is a test period T. The control center appoints the duration of the test period T, and after each test period T is finished, the control center configures N test agents to increase the same thread number to be fixed as K0And after the N test agents reach the maximum thread number Y of the single test agent, the control center finishes the test. And the control center counts and calculates the test result in real time in the test process and forms a test report after the test is finished.
However, the testing capabilities of the distributed test system are related to the thread configuration of each test agent. In the above test mode, because the test agents with different test capabilities (network bandwidth and hardware capability) are always configured with the same number of test threads, the test agent with a stronger test capability may have too few threads allocated to it, and cannot fully exert the test capability of the test agent, while the test agent with a weaker test capability may have too many threads allocated to it, which results in low efficiency. The same test thread number is always configured for the test agents, so that the network and operation resources of the network password equipment are possibly wasted on the test agents with weak test capability, and the performance of the network password equipment cannot be really and quickly tested. In order to test the real performance of the network password device, it is very important to configure and adjust the thread number of each test agent by using a reasonable method.
Disclosure of Invention
The invention provides a test configuration adjusting method of a distributed performance test system for network password equipment, which aims to solve the problem that the authenticity performance of the network password equipment cannot be tested by the distributed test system.
In order to achieve the purpose, the technical scheme of the invention is as follows:
a test configuration adjustment method of a network password equipment distributed performance test system comprises the following steps:
1) selecting N test agents and respectively connecting the test agents with a control center and network password equipment to be tested; the control center and the N test agents form a distributed test system;
2) the control center sends the information of the network password equipment and the test interface to each test agent;
3) the control center sends the initial test configuration of the test to N test agents, and the test agents set corresponding thread number to start the test according to the received configuration information;
4) the control center sets the duration of a test period according to the j test period T of each test agentjInternal test capability, for the corresponding test agent in the next test period Tj+1Internally configuring the thread number; wherein, the control center increases a plurality of threads in each test period, and the ith test agent in the test period Tj+1The number of threads increased in the test period T and the ith test agentjThe internal testing capability is in direct proportion, i is 1-N, i, j and N are all natural numbers; and when the total number of the testing threads on the N testing agents reaches the maximum thread total number, the control center controls each testing agent to stop testing.
Further, the control center obtains a test period TjTotal number S of each test agent completing test operation1,S2,…,SN(ii) a Then calculating the test period TjAn average number P of test operations completed by each thread on N of the test agents1=S1/X1,P2=S2/X2…PN=SN/XNAs a test period TjThe testing capability of the internal corresponding testing agent; wherein S isNFor the Nth test agent in test period TjTotal number of internally completed test operations, XNFor the Nth test agent in test period TjNumber of threads internally configured, PNTo measureTest period TjThe test capability of the nth test agent.
Further, the ith test agent tests for a test period Tj+1Internally increased number of threadsWherein, M is the number of threads which are averagely increased by each test agent in each test period, and M is a natural number.
Further, the control center determines the maximum performance test result of the network password device according to the maximum value of the total number of the test operations of the N test agents.
Furthermore, the control center is a time synchronization server, each test agent is a time synchronization client, and each test agent is time-synchronized with the control center; the initial thread number of each test agent is the same.
A test configuration adjustment system of a network password equipment distributed performance test system is characterized by comprising a control center and N test agents; each test agent is respectively connected with the control center and the network password equipment to be tested; the control center is used for configuring the thread number of each test agent in each test period; wherein the control center tests the agent according to each test in the jth test period TjInternal test capability, for the corresponding test agent in the next test period Tj+1Internally configuring the thread number; the control center adds a plurality of threads in each test period, and the ith test agent in the test period Tj+1The number of threads increased internally and the ith test agent in the test period TjThe internal testing capability is in direct proportion, i is 1-N, i, j and N are all natural numbers; and when the total number of the testing threads on the N testing agents reaches the maximum thread total number, the control center controls each testing agent to stop testing.
The control center may configure the N test agent initial thread counts. Initial thread number X of the N test agents1=X2=…=XN. The control center can obtain a first test period T0In, the N areTotal number S of test operations respectively completed by test agents1,S2…SN. The control center can calculate the first test period T0Within, an average number P of test operations completed by each thread on the N test agents1=S1/X1,P2=S2/X2…PN=SN/XNTo be T0The test capabilities of the N test agents. The control center is at T0After the end, in a second test period T1Before starting, calculating the N test agents needs to be at T1Increased number of threads. The control center can control the N testing agents to averagely increase M threads after each testing period is finished, and T is1In, the N test agents compare T0The number of threads is increasedKiRepresenting the number of threads, P, added by the ith test agent on the next cycleiThe representative is the testing capability of the ith testing agent in the last ending period, and the value of i is 1-N. I.e. the number of threads added by the test agent in the next cycle is proportional to the test capacity of the previous cycle. And so on. And when the total number of the testing threads on the N testing agents reaches the maximum thread total number Y, the control center can control all the testing agents to stop testing. The control center can collect all the test results, and the maximum value of the total number of the test operations of the N test agents in all the test periods T is taken to calculate the maximum performance test result of the network password equipment.
The technical scheme of the invention has the following advantages:
the method can dynamically adjust the number of threads in the next period to be increased according to the testing capability of different testing agents in the current period, and the trouble of manual configuration is saved. The control center can calculate the number P of the threads which can averagely finish the test operation in the current period of each test agentiAs the current cycle testing capability of the testing agent. In the next test cycle, each test agent's threadIncrease of number KiAnd its test capability PiIs in direct proportion. Therefore, the test agent with stronger network bandwidth and hardware capability is allocated with more threads, and the test capability of the test agent can be fully exerted. And the test agent with weaker capability is allocated with less threads, so that the efficiency is not low due to the excessive number of the threads, the network and the operation resources of the network password equipment are wasted, and the real performance of the network password equipment cannot be obtained through testing. Compared with the method that each test agent is allocated with the same thread number for testing, the method can obtain the test result closer to the real performance of the network password device, and can test the maximum performance of the network password device in less time.
Drawings
Fig. 1 is a schematic diagram of a distributed test system based on a high-speed server network cryptographic device according to the present invention.
Detailed Description
The invention will be described in further detail with reference to the drawings, which are given by way of example only for the purpose of illustrating the invention and not for the purpose of limiting the scope of the invention.
As shown in fig. 1, in a distributed test system including a control center and N test agents, the control center manages and configures the N test agents to complete testing of network cryptographic devices.
The method comprises the following steps: the equipment where the control center is located, the equipment where the N test agents are located and the network password equipment are connected through the Ethernet, and normal communication among all the equipment is guaranteed. The control center and the N test agents form a distributed test system;
step two: and starting the control center, and then starting the N test agents. The test agent automatically registers with the control center;
step three: the control center sends the information of the network password equipment to be tested and the test interface to a test agent participating in the test;
step four: the control center sends the initial test configuration (thread configuration) of the test to N test agents, and the test agents set corresponding thread number according to the configuration to start the test.N initial thread numbers X of test agents1=X2=…=XN. The control center appoints the duration of the test period T, and after each test period T is finished, the control center configures N test agents to increase the average number of threads to be M. The control center can calculate the number P of the threads which can averagely finish the test operation in the current period of each test agentiAs the current cycle testing capability of the testing agent. In the next test cycle, the number of threads per test agent is increased by KiAnd its test capability PiIs in direct proportion. And when the total number of the testing threads on the N testing agents reaches the maximum thread total number Y, the control center finishes the test. And the control center counts and calculates the test result in real time in the test process and forms a test report after the test is finished.
Although specific embodiments of the invention have been disclosed for purposes of illustration, and for purposes of aiding in the understanding of the contents of the invention and its implementation, those skilled in the art will appreciate that: various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the appended claims.
Claims (10)
1. A test configuration adjustment method of a network password equipment distributed performance test system comprises the following steps:
1) selecting N test agents and respectively connecting the test agents with a control center and network password equipment to be tested; the control center and the N test agents form a distributed test system;
2) the control center sends the information of the network password equipment and the test interface to each test agent;
3) the control center sends the initial test configuration of the test to N test agents, and the test agents set corresponding thread number to start the test according to the received configuration information;
4) the control center sets the duration of a test period according to the j test period T of each test agentjInternal measurementTest capability, at the next test period T for the corresponding test agentj+1Internally configuring the thread number; wherein, the control center adds a plurality of threads in each test cycle, the ith test agent in the test cycle Tj+1The number of threads increased in the test period T and the ith test agentjThe internal testing capability is in direct proportion, i is 1-N, i, j and N are all natural numbers; and when the total number of the testing threads on the N testing agents reaches the maximum thread total number, the control center controls each testing agent to stop testing.
2. Method according to claim 1, characterized in that the control center obtains a test period TjTotal number S of each test agent completing test operation1,S2,…,SN(ii) a Then calculating the test period TjAn average number P of test operations completed by each thread on N of the test agents1=S1/X1,P2=S2/X2…PN=SN/XNAs a test period TjThe testing capability of the internal corresponding testing agent; wherein S isNFor the Nth test agent in test period TjTotal number of internally completed test operations, XNFor the Nth test agent in test period TjNumber of threads internally configured, PNFor a test period TjThe test capability of the nth test agent.
4. The method of claim 1, 2 or 3, wherein the control center determines the maximum performance test result of the network cryptographic device according to a maximum value of the total number of the N test agent test operations.
5. The method of claim 1, wherein the control center is a time synchronization server, each of the test agents is a time synchronization client, and each of the test agents is time synchronized with the control center; the initial thread number of each test agent is the same.
6. A test configuration adjustment system of a network password equipment distributed performance test system is characterized by comprising a control center and N test agents; each test agent is respectively connected with the control center and the network password equipment to be tested; the control center is used for configuring the thread number of each test agent in each test period; wherein the control center tests the agent according to each test in the jth test period TjInternal test capability, for the corresponding test agent in the next test period Tj+1Internally configuring the thread number; the control center adds a plurality of threads in each test period, and the ith test agent in the test period Tj+1The number of threads increased internally and the ith test agent in the test period TjThe internal testing capability is in direct proportion, i is 1-N, i, j and N are all natural numbers; and when the total number of the testing threads on the N testing agents reaches the maximum thread total number, the control center controls each testing agent to stop testing.
7. The system of claim 6, wherein the control center obtains a test period TjTotal number S of each test agent completing test operation1,S2,…,SN(ii) a Then calculating the test period TjAn average number P of test operations completed by each thread on N of the test agents1=S1/X1,P2=S2/X2…PN=SN/XNAs a test period TjTesting capability of the internal corresponding testing agent; wherein S isNFor the Nth testThe test agent is in the test period TjTotal number of internally completed test operations, XNFor the Nth test agent in test period TjNumber of threads internally configured, PNFor a test period TjThe test capability of the nth test agent.
9. The system of claim 6, wherein the control center determines the maximum performance test result of the network cryptographic device based on a maximum value of a total number of the N test agent test operations.
10. The system of claim 6, wherein the control center is a time synchronization server, each of the test agents is a time synchronization client, and each of the test agents is time synchronized with the control center; the initial thread number of each test agent is the same.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210185790.XA CN114697080A (en) | 2022-02-28 | 2022-02-28 | Test configuration adjustment method of network password equipment distributed performance test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210185790.XA CN114697080A (en) | 2022-02-28 | 2022-02-28 | Test configuration adjustment method of network password equipment distributed performance test system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114697080A true CN114697080A (en) | 2022-07-01 |
Family
ID=82136642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210185790.XA Pending CN114697080A (en) | 2022-02-28 | 2022-02-28 | Test configuration adjustment method of network password equipment distributed performance test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114697080A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103810048A (en) * | 2014-03-11 | 2014-05-21 | 国家电网公司 | Automatic adjusting method and device for thread number aiming to realizing optimization of resource utilization |
CN104717236A (en) * | 2013-12-11 | 2015-06-17 | ***通信集团公司 | Equipment performance test method and device |
CN108153584A (en) * | 2016-12-02 | 2018-06-12 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for being used to determine the Thread Count that destination network device need to distribute |
CN109167702A (en) * | 2018-08-28 | 2019-01-08 | 新华三大数据技术有限公司 | A kind of distributed test method and device based on load balancing |
CN109684228A (en) * | 2019-01-07 | 2019-04-26 | 武汉斗鱼鱼乐网络科技有限公司 | A kind of performance test methods, device, system and storage medium |
CN112579380A (en) * | 2020-12-26 | 2021-03-30 | 苏州浪潮智能科技有限公司 | Equipment pressure testing method and system |
CN113961457A (en) * | 2021-10-19 | 2022-01-21 | 上海哔哩哔哩科技有限公司 | Pressure testing method and device |
-
2022
- 2022-02-28 CN CN202210185790.XA patent/CN114697080A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104717236A (en) * | 2013-12-11 | 2015-06-17 | ***通信集团公司 | Equipment performance test method and device |
CN103810048A (en) * | 2014-03-11 | 2014-05-21 | 国家电网公司 | Automatic adjusting method and device for thread number aiming to realizing optimization of resource utilization |
CN108153584A (en) * | 2016-12-02 | 2018-06-12 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus for being used to determine the Thread Count that destination network device need to distribute |
CN109167702A (en) * | 2018-08-28 | 2019-01-08 | 新华三大数据技术有限公司 | A kind of distributed test method and device based on load balancing |
CN109684228A (en) * | 2019-01-07 | 2019-04-26 | 武汉斗鱼鱼乐网络科技有限公司 | A kind of performance test methods, device, system and storage medium |
CN112579380A (en) * | 2020-12-26 | 2021-03-30 | 苏州浪潮智能科技有限公司 | Equipment pressure testing method and system |
CN113961457A (en) * | 2021-10-19 | 2022-01-21 | 上海哔哩哔哩科技有限公司 | Pressure testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105281978B (en) | A kind of methods, devices and systems of performance test | |
CN105446860B (en) | Pressure testing system and method for testing based on asynchronism and concurrency mechanism | |
CN104717236A (en) | Equipment performance test method and device | |
CN111143143B (en) | Performance test method and device | |
CN107360233A (en) | Method, apparatus, equipment and the readable storage medium storing program for executing that file uploads | |
CN101540701A (en) | System, method and device for testing server | |
CN104639546B (en) | The methods, devices and systems of multi-biological characteristic inclusive authentication | |
CN107205248A (en) | A kind of resource allocation methods and system | |
CN110798386B (en) | Configurable CAN bus protocol transceiving test method and system | |
CN110324203B (en) | Multichannel high accuracy network flow generates device | |
CN114697080A (en) | Test configuration adjustment method of network password equipment distributed performance test system | |
CN101193262A (en) | Backup MCP selection method for video conference system | |
AT512665A1 (en) | Method and apparatus for forming software fault containment units in a distributed real-time system | |
DE112016006244B4 (en) | TIME-SYNCHRONOUS SLAVE DEVICE AND COMMUNICATION CONTROL METHOD | |
DE112016005840B4 (en) | WIRELESS COMMUNICATION DEVICE, WIRELESS COMMUNICATION METHOD AND PROGRAM FOR WIRELESS COMMUNICATION | |
CN103401734B (en) | The method and apparatus of the signal quality debugging of high speed data bus | |
CN106708624A (en) | Adaptive adjustment method for calculation resources in multiple working areas | |
CN103441955B (en) | A kind of test system and method for testing for being used to test dynamic bandwidth allocation device | |
CN106909459A (en) | A kind of method and device for adjusting connection pool | |
US20230308503A1 (en) | File transmission method and apparatus, device, and storage medium | |
CN110932879A (en) | Network performance test method, data processing device and storage medium | |
Unal et al. | Robust controller design for multiple time-delay systems: The case of data-communication networks | |
CN103401724B (en) | Data communication performance tester and its implementation | |
CN113191727A (en) | Online conference management and control method based on remote examination | |
CN107491448A (en) | A kind of HBase resource adjusting methods and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20220701 |
|
WD01 | Invention patent application deemed withdrawn after publication |