CN116132328A - Network pressure testing method and device, storage medium and electronic equipment - Google Patents

Network pressure testing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116132328A
CN116132328A CN202310134419.5A CN202310134419A CN116132328A CN 116132328 A CN116132328 A CN 116132328A CN 202310134419 A CN202310134419 A CN 202310134419A CN 116132328 A CN116132328 A CN 116132328A
Authority
CN
China
Prior art keywords
tested
link address
network link
network
virtual machine
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
Application number
CN202310134419.5A
Other languages
Chinese (zh)
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.)
Beijing Arc Information Technology Co ltd
Original Assignee
Beijing Arc Information 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 Beijing Arc Information Technology Co ltd filed Critical Beijing Arc Information Technology Co ltd
Priority to CN202310134419.5A priority Critical patent/CN116132328A/en
Publication of CN116132328A publication Critical patent/CN116132328A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention provides a network pressure testing method and device, a storage medium and electronic equipment, and belongs to the technical field of network testing. The network pressure testing method comprises the following steps: acquiring a network link address to be tested; determining a network segment of the network link address to be tested according to the network link address to be tested; creating a Linux virtual machine in the network segment of the network link address to be tested; acquiring click data aiming at the network link address to be tested by using the Linux virtual machine; and carrying out data analysis according to the click data aiming at the network link address to be tested to obtain the network pressure test conclusion. The apparatus, storage medium, and electronic device can be used to implement the method. The method realizes the network pressure test by creating the Linux virtual machine at the cloud without purchasing an entity test server, and is more flexible and convenient when the configuration of the Linux virtual machine is adjusted.

Description

Network pressure testing method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of network testing technologies, and in particular, to a network pressure testing method and apparatus, a storage medium, and an electronic device.
Background
In the prior art, most of application programs, databases, function applications and the like based on cloud service deployment cause inaccurate performance evaluation of products for multiple times due to the influence of network bandwidth of a company local area network, and have no reference significance, so that some idle work is performed. If the performance index evaluation error is large, poor experience and unpredictable results are probably brought to product users and clients.
CN1953401a discloses a method for testing network pressure by multiple threads, which is characterized in that a plurality of clients perform a read-write action of a large amount of data on a server to test the response of the server to a single client, the server establishes connection with the client after receiving the connection request of the client by a main thread, and then generates a secondary thread to process the data packet transmitted between the server and the client and the related processing thereof, so that the server does not cause the occupation rate of the central processor of the server to reach 100% due to the action of receiving and transmitting the data packet, thereby achieving the purpose of testing the real network pressure and providing the performance report of the real server for users. However, the method has larger performance index evaluation error, and also needs to use an entity server, so that the applicability and the economy are poor.
Disclosure of Invention
In view of the above, the invention provides a network pressure testing method, a device, a storage medium and an electronic device, which realize network pressure testing by creating a Linux virtual machine in a cloud, do not need to purchase an entity testing server, and are more flexible and convenient when the configuration of the Linux virtual machine is adjusted, so that the method is more suitable for practical use.
In order to achieve the first objective, the technical scheme of the network pressure testing method provided by the invention is as follows:
the network pressure testing method provided by the invention comprises the following steps:
acquiring a network link address to be tested;
determining a network segment of the network link address to be tested according to the network link address to be tested;
creating a Linux virtual machine in a network segment of the network link address to be tested, so that the potential load of the Linux virtual machine does not exceed 80% of the maximum load of the Linux virtual machine;
acquiring click data aiming at the network link address to be tested by using the Linux virtual machine;
and carrying out data analysis according to the click data aiming at the network link address to be tested to obtain the network pressure test conclusion.
The network pressure testing method provided by the invention can be further realized by adopting the following technical measures.
Preferably, the data analysis is performed according to the click data for the network link address to be tested, and the obtaining the network pressure test conclusion specifically includes the following steps:
acquiring a user address of the network link address to be tested at the same time and access time data of a user accessing the network link address to be tested;
acquiring response time data of each user accessing the network link address to be tested;
obtaining access response time length data of the network link address to be tested for each user according to the response time data of each user accessing the network link address to be tested and the access time data of the user accessing the network link address to be tested;
and the network link address to be tested is used for carrying out data analysis on the access response time length data of each user to obtain the network pressure test conclusion.
Preferably, the network link address to be tested performs data analysis on the access response time length data of each user, and in the process of obtaining the network pressure test conclusion, the data analysis method comprises,
the network link address to be tested is aimed at the access response time length data of each user, and the average value of the access response time length of the network link address to be tested is calculated;
obtaining the network pressure test conclusion according to the average value of the access response time length of the network link address to be tested for each user;
the calculation formula of the average value of the access response time length of the network link address to be tested for each user is as follows:
t=(x 1 ·t 1 +x 2 ·t 2 +x 3 ·t 3 +…x n ·t n )/(x 1 +x 2 +x 3 +…x n )
t-average value of access response time length of network link address to be tested for each user;
t 1 、t 2 、t 3 …t n -a real value of the access response time length of the network link address to each user to be tested;
x 1 、x 2 、x 3 …x n -respectively corresponding to t 1 、t 2 、t 3 …t n The number of access response time durations of the network link address to be tested for each user;
wherein n is a natural number.
Preferably, the method for analyzing the data in the step of obtaining the network pressure test conclusion by analyzing the data of the access response time length data of the network link address to be tested for each user includes the following steps:
if the error reporting rate is lower than the set access quantity threshold value for the access request of each user in the access response time of the network link address to be tested for each user, the network pressure test conclusion is that the current access quantity of the network link address to be tested is within the pressure bearing limit of the Linux virtual machine.
Preferably, the network link address to be tested performs data analysis on access response duration data of each user, and the network pressure test conclusion is obtained, and the method further includes the following steps:
gradually increasing the number of users accessing the network link address to be tested at the same moment until the maximum pressure bearing access number of the Linux virtual machine is used as the number of users accessing the network link address to be tested corresponding to the first time when the error reporting rate is higher than the set threshold value when the error reporting rate is higher than the set error reporting rate threshold value for the access request of each user within the access response time of the network link address to be tested for each user.
Preferably, when the number of accesses to the network link address to be tested at the same time is known, the performing data analysis according to the click data for the network link address to be tested, to obtain the network pressure test conclusion includes:
if the response time is within the set access time threshold for the access of the network link address to be tested and the error reporting rate is lower than the set error reporting rate threshold, the load of the Linux virtual machine is feasible;
and if the response time length exceeds the set access time length threshold value or the error reporting rate is higher than the set error reporting rate threshold value aiming at the access of the network link address to be tested, prompting the Linux virtual machine to expand.
Preferably, if the response time length exceeds a set access time length threshold for the access of the network link address to be tested, or the error reporting rate is higher than a set error reporting rate threshold, prompting the Linux virtual machine to expand the capacity, wherein the Linux virtual machine expanding method comprises the following steps:
expanding the capacity of the Linux virtual machine to a first configuration to obtain the Linux virtual machine with the first configuration;
accessing the network link address to be tested in a known number of accesses accessing the network link address to be tested at the same time, if the response time length exceeds a set access time length threshold value or the error reporting rate is higher than a set error reporting rate threshold value for the access of the network link address to be tested,
expanding the capacity of the Linux virtual machine to a second configuration to obtain the Linux virtual machine with the second configuration;
accessing the network link address to be tested in a known number of accesses accessing the network link address to be tested at the same time, if the response time length exceeds a set access time length threshold value or the error reporting rate is higher than a set error reporting rate threshold value for the access of the network link address to be tested,
and continuously expanding the capacity of the Linux virtual machine until the capacity of the Linux virtual machine is expanded to an Nth configuration, and obtaining the Linux virtual machine with the Nth configuration, so that the response time is within a set access time threshold for the access of the network link address to be tested, and the error reporting rate is lower than the set error reporting rate threshold, wherein the Nth configuration is used as a configuration threshold for accessing the known number of accesses of the network link address to be tested at the same time, and N is a natural number.
In order to achieve the second objective, the technical scheme of the network pressure testing device provided by the invention is as follows:
the network pressure testing device provided by the invention comprises:
the network link address acquisition module is used for acquiring the network link address to be tested;
the test network segment determining module is used for determining the network segment of the network link address to be tested according to the network link address to be tested;
the Linux virtual machine creation module is used for creating a Linux virtual machine in the network segment of the network link address to be tested;
the clicking data acquisition module is used for acquiring clicking data aiming at the network link address to be tested by utilizing the Linux virtual machine;
and the data analysis module is used for carrying out data analysis according to the click data aiming at the network link address to be tested to obtain the network pressure test conclusion.
In order to achieve the third object, the technical solution of the present invention for a computer readable storage medium is as follows:
the computer readable storage medium provided by the invention stores a network pressure test program, and when the network pressure test program is executed by a processor, the steps of the network pressure test method provided by the invention are realized.
In order to achieve the fourth object, the technical scheme of the electronic device provided by the invention is as follows:
the electronic equipment provided by the invention comprises a memory and a processor, wherein the memory is stored with a network pressure test program, and when the network pressure test program is executed by the processor, the steps of the network pressure test method provided by the invention are realized.
According to the network pressure testing method, the device, the storage medium and the electronic equipment, provided by the invention, the Linux virtual machine is created in the network segment of the network link address to be tested, and the pressure test of clicking the network link at the same time is executed through the created Linux virtual machine, so that a purchase entity testing server is not required, and the configuration of the Linux virtual machine can be flexibly configured according to the predicted maximum clicking number of the network link, so that the testing process is more flexible and convenient, and resources can be saved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flow chart of the steps of a network pressure testing method according to an embodiment of the present invention;
fig. 2 is a flowchart of specific steps involved in the network pressure testing method according to the embodiment of the present invention, wherein the clicking data is aimed at the network link address to be tested, and the clicking data is analyzed to obtain the network pressure testing conclusion;
fig. 3 is a flow chart of steps of a data analysis method in a step of obtaining a network pressure test conclusion according to data analysis of access response duration of a network link address to be tested for each user according to the network pressure test method provided by the embodiment of the present invention;
fig. 4 is a flowchart of steps of a method for performing data analysis according to click data for a network link address to be tested when the number of accesses to the network link address to be tested at the same time is known according to the network pressure testing method provided by the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network pressure testing device in a hardware operating environment according to an embodiment of the present invention.
Detailed Description
In view of the above, the invention provides a network pressure testing method, a device, a storage medium and an electronic device, which realize network pressure testing by creating a Linux virtual machine in a cloud, do not need to purchase an entity testing server, and are more flexible and convenient when the configuration of the Linux virtual machine is adjusted, so that the method is more suitable for practical use.
In order to further describe the technical means and effects adopted by the present invention to achieve the preset purpose, the following description refers to a network pressure testing method, device, storage medium and electronic equipment according to the present invention, and its specific implementation, structure, features and effects are described in detail below with reference to the accompanying drawings and preferred embodiments. In the following description, different "an embodiment" or "an embodiment" do not necessarily refer to the same embodiment. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
The term "and/or" is herein merely an association relation describing an associated object, meaning that three relations may exist, e.g. a and/or B, specifically understood as: the composition may contain both a and B, and may contain a alone or B alone, and any of the above three cases may be provided.
Network pressure testing method
Referring to fig. 1, the network pressure testing method provided by the embodiment of the invention includes the following steps:
step S1: and acquiring the network link address to be tested.
Specifically, the network link address to be tested refers to a network link address to be tested in pressure, for example, a 12306 network train ticket purchase address, or a network address of a shopping website, etc., where the 12306 network train ticket purchase address causes a click volume increase during spring transportation, the network address of the shopping website causes a click volume increase during shopping festival, and the click volume is several times, tens of times, or even higher times of the daily click volume, so in order to cope with the possibility that the error reporting rate of the network link address is increased or even paralyzed caused by the situation of the click volume increase of the network, the network link address to be tested needs to be tested in pressure.
Step S2: and determining the network segment of the network link address to be tested according to the network link address to be tested.
In particular, a network segment refers to a part of a computer network that uses the same physical layer to directly communicate, and devices that typically use the same physical layer are necessarily directly connected to each other through the same transmission medium, such as two hosts that are directly connected by a cross twisted pair, but two groups of network devices whose transmission mediums are not directly connected, and if their transmission mediums are connected in a switching manner through an expansion device that operates in the physical layer, such as a repeater and a hub, the network segment is still considered to be a device in the same physical layer.
Step S3: and creating the Linux virtual machine in a network segment of the network link address to be tested, so that the potential load of the Linux virtual machine is not more than 80% of the maximum load of the Linux virtual machine.
Specifically, in the performance pressure test method of the same network segment, the Linux virtual machine of the same network segment is used for evaluation, so that error influence caused by network bandwidth can be ignored, and various indexes of the performance of the product can be evaluated more accurately.
Step S4: and acquiring click data aiming at the network link address to be tested by using the Linux virtual machine.
Specifically, in the step of the network pressure testing method in the prior art, the acquisition of the click data for the network link address to be tested is usually implemented by using an entity server, in this case, the entity server needs to be configured according to the specific number of clicks or the maximum bearing specific number of the network link address to be tested, so that the cost is high, the configuration is difficult to be increased step by step, and once the configuration is increased once, the configuration is large, and the configuration resource waste is also caused. According to the network pressure testing method provided by the embodiment of the invention, as the configuration of the Linux virtual machine is the virtual space created on the basis of the cloud service, the configuration can be easily increased step by step, and the purchase of an entity server is not needed, so that the cost is low, and the configuration resources can be saved.
Step S5: and carrying out data analysis according to click data aiming at the network link address to be tested to obtain a network pressure test conclusion.
Specifically, in the embodiment of the present invention, the Linux virtual machine is created in the same network segment of the network link address to be tested, so that an error between the data acquired through the Linux virtual machine and the data directly acquired from the entity server is small, that is, a network pressure test conclusion obtained by using the Linux virtual machine to perform data analysis can be basically the same as a network pressure test conclusion obtained by directly using the entity server to perform data analysis, that is, the data obtained by using the method of the present embodiment has the characteristics of reality and reliability.
According to the network pressure testing method provided by the invention, the Linux virtual machine is created in the network segment of the network link address to be tested, and the pressure test of clicking the network link at the same time is executed through the created Linux virtual machine, so that an entity testing server does not need to be purchased, and the configuration of the Linux virtual machine can be flexibly configured according to the predicted maximum clicking number of the network link, so that the testing process is more flexible and convenient, and resources can be saved. During the step of creating the Linux virtual machine in the network segment of the network link address to be tested, the potential load of the Linux virtual machine does not exceed 80% of the maximum load of the Linux virtual machine. Specifically, in this case, the CPU occupancy rate, the memory, the disk space, the network IO and the like provided by the Linux virtual machine can be fully ensured to run smoothly in the test process.
The step S5 performs data analysis according to click data for the network link address to be tested, and the obtaining of the network pressure test conclusion specifically includes the following steps:
step S511: and acquiring the user address of the network link address to be tested at the same time and the access time data of the user accessing the network link address to be tested.
Specifically, the network pressure testing method provided by the embodiment of the invention mainly tests the maximum access amount of the network link address to be tested at the same moment to obtain server configuration data corresponding to the maximum access peak so as to guide the selection of server configuration, so that the user address of the network link address to be tested at the same moment and the access moment data of the user accessing the network link address to be tested are required to be obtained, in this case, the time difference between the access start and the response of each user accessing the network link address to be tested at the same moment can be calculated in a targeted manner, and the access response time of the network link address to be tested to the user at the same moment is obtained, wherein the response time is an important data index of the pressure test.
For example, when a user is accessing a network link address link to be tested, the user experience is generally better when the response time is within 3 s; when the response time is 3s-5s, the experience of the user is possibly reduced; and once the response time exceeds 8s, the experience of the user is worse, and even the user possibly gives up the access to the network link address to be tested. On this basis, in some cases, the user may try to access the network link address to be tested again at other time, for example, when the user needs to purchase a train ticket and purchase a network link without replacing the network link, the user will typically try to click again and access in case of urgent need. When the network link address to be tested has more alternative network link addresses, or the access of the user to the network link address is not required rapidly, the user has a high possibility of accessing by clicking the alternative network link address, or directly giving up the access. For example, when a user needs to purchase a bicycle, the user first accesses the network link address of the multi-mall, but because the response time of the network link address exceeds the response time born by the user psychologically, the jingdong mall serving as the alternative network link address has a faster response time, and can bring better access feeling of the network link address to the user, therefore, the user may give up the multi-mall and select the jingdong mall, and in this case, the loss of potential customers may be caused for the multi-mall.
Step S512: and acquiring response time data of each user accessing the network link address to be tested.
Specifically, in general, the response time data of each user of the network link address to be tested is applied, and the access time of the user accessing the network link address to be tested is based on the difference value obtained by the two data, namely the access response time of the network link address to be tested for the user.
Step S513: and obtaining access response time length data of the network link address to be tested for each user according to the response time data of each user accessing the network link address to be tested and the access time data of the user accessing the network link address to be tested.
Step S514: and the network link address to be tested is used for carrying out data analysis aiming at the access response time length data of each user, so as to obtain a network pressure test conclusion.
Wherein, in step S514, the network link address to be tested performs data analysis for the access response time length data of each user, and the method for data analysis includes,
step S514a1: and calculating the average value of the access response time length of the network link address to be tested for each user according to the access response time length data of the network link address to be tested for each user. Under the condition, the problem of inaccurate response time caused by accidental factors of some users can be eliminated, so that the conclusion of the network pressure test can be more accurate.
Step S514a2: and obtaining a network pressure test conclusion according to the average value of the access response time length of the network link address to be tested for each user.
The calculation formula of the average value of the access response time length of the network link address to be tested for each user is as follows:
t=(x 1 ·t 1 +x 2 ·t 2 +x 3 ·t 3 +…x n ·t n )/(x 1 +x 2 +x 3 +…x n )
t-average value of access response time length of network link address to be tested for each user;
t 1 、t 2 、t 3 …t n -a real value of the access response time length of the network link address to each user to be tested;
x 1 、x 2 、x 3 …x n -respectively corresponding to t 1 、t 2 、t 3 …t n The number of access response time durations of the network link address to be tested for each user;
wherein n is a natural number.
Specifically, at a certain moment, if the access response time length of 5 users is 2s, the access response time length of 8 users is 3s, and the access response time length of 10 users is 5s, then at this moment, the average value t= (5×2+8×3+10×5)/(5+8+10) ≡3.65s of the access response time length of each user of the network link address to be tested, the calculation method of the average value is more scientific and reasonable, the calculation result is more accurate, and the pressure test performance of the network link address to be tested at the moment can be fully reflected.
In step S514, the network link address to be tested performs data analysis on the access response duration data of each user, and in the step of obtaining the network pressure test conclusion, the data analysis method includes the following steps:
step S514b: if the error reporting rate is lower than the set access quantity threshold value for the access request of each user in the access response time of the network link address to be tested for each user, the network pressure test conclusion is that the current access quantity of the network link address to be tested is within the pressure bearing limit of the Linux virtual machine.
The step S514 of analyzing the data of the network link address to be tested for the access response time length data of each user, and obtaining the network pressure test conclusion further includes the following steps:
step S514c: gradually increasing the number of users accessing the network link address to be tested at the same moment until the maximum pressure bearing access number of the Linux virtual machine is taken as the number of users accessing the network link address to be tested corresponding to the time when the first error reporting rate is higher than the set threshold value when the error reporting rate is higher than the set error reporting rate threshold value for the access request of each user within the access response time of the network link address to be tested for each user.
When the number of accesses to the network link address to be tested at the same time is known, step S514 performs data analysis according to the click data for the network link address to be tested, and obtaining the network pressure test conclusion includes:
step S514d1: if the response time is within the set access time threshold for the access of the network link address to be tested and the error reporting rate is lower than the set error reporting rate threshold, the load of the Linux virtual machine is feasible;
step S514d2: if the response time length exceeds the set access time length threshold value or the error reporting rate is higher than the set error reporting rate threshold value aiming at the access of the network link address to be tested, prompting the expansion of the Linux virtual machine.
If the response time length exceeds the set access time length threshold for the access of the network link address to be tested, or the error reporting rate is higher than the set error reporting rate threshold, step S514d2 prompts the Linux virtual machine to expand the capacity, and the Linux virtual machine expanding method comprises the following steps:
step S514d21: expanding the capacity of the Linux virtual machine to a first configuration to obtain the Linux virtual machine with the first configuration;
step S514d22: the network link addresses to be tested are accessed by a known number of accesses accessing the network link addresses to be tested at the same time, if the response time length exceeds a set access time length threshold value for the accesses of the network link addresses to be tested, or the error reporting rate is higher than a set error reporting rate threshold value,
step S514d23: expanding the capacity of the Linux virtual machine to a second configuration to obtain the Linux virtual machine with the second configuration;
step S514d24: the network link addresses to be tested are accessed by a known number of accesses accessing the network link addresses to be tested at the same time, if the response time length exceeds a set access time length threshold value for the accesses of the network link addresses to be tested, or the error reporting rate is higher than a set error reporting rate threshold value,
step S514d25: and continuously expanding the capacity of the Linux virtual machine until the Linux virtual machine is expanded to the Nth configuration, and obtaining the Linux virtual machine with the Nth configuration, so that the response time is within a set access time threshold for the access of the network link address to be tested, and the error reporting rate is lower than the set error reporting rate threshold, and accessing the known number of configuration thresholds for the access of the network link address to be tested at the same time by taking the Nth configuration as the natural number.
Under the condition, the Linux virtual machine can achieve Linux virtual machine configuration data which is suitable for the access peak time through gradual capacity expansion, and on the basis, the configuration of the entity server is arranged according to the Linux virtual machine configuration condition at the peak time, so that resources can be saved, and the network link address to be tested can safely pass the access peak time.
Network pressure testing device
The network pressure testing device provided by the invention comprises:
and the network link address acquisition module is used for acquiring the network link address to be tested.
Specifically, the network link address to be tested refers to a network link address to be tested in pressure, for example, a 12306 network train ticket purchase address, or a network address of a shopping website, etc., where the 12306 network train ticket purchase address causes a click volume increase during spring transportation, the network address of the shopping website causes a click volume increase during shopping festival, and the click volume is several times, tens of times, or even higher times of the daily click volume, so in order to cope with the possibility that the error reporting rate of the network link address is increased or even paralyzed caused by the situation of the click volume increase of the network, the network link address to be tested needs to be tested in pressure.
And the test network segment determining module is used for determining the network segment of the network link address to be tested according to the network link address to be tested.
In particular, a network segment refers to a part of a computer network that uses the same physical layer to directly communicate, and devices that typically use the same physical layer are necessarily directly connected to each other through the same transmission medium, such as two hosts that are directly connected by a cross twisted pair, but two groups of network devices whose transmission mediums are not directly connected, and if their transmission mediums are connected in a switching manner through an expansion device that operates in the physical layer, such as a repeater and a hub, the network segment is still considered to be a device in the same physical layer.
And the Linux virtual machine creation module is used for creating the Linux virtual machine in the network segment of the network link address to be tested.
Specifically, in the performance pressure test method of the same network segment, the Linux virtual machine of the same network segment is used for evaluation, so that error influence caused by network bandwidth can be ignored, and various indexes of the performance of the product can be evaluated more accurately.
And the click data acquisition module is used for acquiring click data aiming at the network link address to be tested by using the Linux virtual machine.
Specifically, in the step of the network pressure testing method in the prior art, the acquisition of the click data for the network link address to be tested is usually implemented by using an entity server, in this case, the entity server needs to be configured according to the specific number of clicks or the maximum bearing specific number of the network link address to be tested, so that the cost is high, the configuration is difficult to be increased step by step, and once the configuration is increased once, the configuration is large, and the configuration resource waste is also caused. According to the network pressure testing method provided by the embodiment of the invention, as the configuration of the Linux virtual machine is the virtual space created on the basis of the cloud service, the configuration can be easily increased step by step, and the purchase of an entity server is not needed, so that the cost is low, and the configuration resources can be saved.
And the data analysis module is used for carrying out data analysis according to click data aiming at the network link address to be tested to obtain a network pressure test conclusion.
According to the network pressure testing device provided by the invention, the Linux virtual machine is created in the network segment of the network link address to be tested, and the pressure test of clicking the network link at the same time is executed through the created Linux virtual machine, so that an entity testing server does not need to be purchased, and the configuration of the Linux virtual machine can be flexibly configured according to the predicted maximum clicking number of the network link, so that the testing process is more flexible and convenient, and resources can be saved.
Computer readable storage medium
The computer readable storage medium provided by the invention stores a network pressure test program, and when the network pressure test program is executed by a processor, the steps of the network pressure test method provided by the invention are realized.
The computer readable storage medium provided by the invention creates the Linux virtual machine in the network segment of the network link address to be tested, and executes the pressure test of clicking the network link at the same time through the created Linux virtual machine without purchasing an entity test server, and the configuration of the Linux virtual machine can be flexibly configured according to the predicted maximum number of network link clicks, so that the test process is more flexible and convenient, and resources can be saved.
Electronic equipment
The electronic equipment provided by the invention comprises a memory and a processor, wherein the memory stores a network pressure test program, and when the network pressure test program is executed by the processor, the steps of the network pressure test method provided by the invention are realized.
According to the method and the device for testing the network link address, the Linux virtual machine is created in the network segment of the network link address to be tested, and the created Linux virtual machine is used for executing the pressure test of clicking the network link at the same time, so that a purchase entity test server is not needed, and the configuration of the Linux virtual machine can be flexibly configured according to the predicted maximum network link clicking number, so that the testing process is more flexible and convenient, and resources can be saved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a network pressure testing device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 5, the network pressure test apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 5 is not limiting of the network pressure testing apparatus and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 5, an operating system, a data storage module, a network communication module, a user interface module, and a network pressure test program may be included in the memory 1005 as one type of storage medium.
In the network pressure test apparatus shown in fig. 5, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the network pressure test apparatus of the present invention may be disposed in the network pressure test apparatus, and the network pressure test apparatus invokes the network pressure test program stored in the memory 1005 through the processor 1001 and executes the network pressure test method provided by the embodiment of the present invention.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A network pressure testing method, comprising the steps of:
acquiring a network link address to be tested;
determining a network segment of the network link address to be tested according to the network link address to be tested;
creating a Linux virtual machine in a network segment of the network link address to be tested, so that the potential load of the Linux virtual machine does not exceed 80% of the maximum load of the Linux virtual machine;
acquiring click data aiming at the network link address to be tested by using the Linux virtual machine;
and carrying out data analysis according to the click data aiming at the network link address to be tested to obtain the network pressure test conclusion.
2. The network pressure testing method according to claim 1, wherein the step of performing data analysis according to the click data for the network link address to be tested to obtain the network pressure testing conclusion specifically includes the following steps:
acquiring a user address of the network link address to be tested at the same time and access time data of a user accessing the network link address to be tested;
acquiring response time data of each user accessing the network link address to be tested;
obtaining access response time length data of the network link address to be tested for each user according to the response time data of each user accessing the network link address to be tested and the access time data of the user accessing the network link address to be tested;
and the network link address to be tested is used for carrying out data analysis on the access response time length data of each user to obtain the network pressure test conclusion.
3. The network pressure testing method according to claim 2, wherein the network link address to be tested performs data analysis on access response duration data of each user, and the method for data analysis includes,
the network link address to be tested is aimed at the access response time length data of each user, and the average value of the access response time length of the network link address to be tested is calculated;
obtaining the network pressure test conclusion according to the average value of the access response time length of the network link address to be tested for each user;
the calculation formula of the average value of the access response time length of the network link address to be tested for each user is as follows:
t=(x 1 ·t 1 +x 2 ·t 2 +x 3 ·t 3 +…x n ·t n )/(x 1 +x 2 +x 3 +…x n )
t-average value of access response time length of network link address to be tested for each user;
t 1 、t 2 、t 3 …t n -a real value of the access response time length of the network link address to each user to be tested;
x 1 、x 2 、x 3 …x n -respectively corresponding to t 1 、t 2 、t 3 …t n The number of access response time durations of the network link address to be tested for each user;
wherein n is a natural number.
4. The network pressure testing method according to claim 2, wherein in the step of obtaining the network pressure test conclusion by performing data analysis on access response duration data of the network link address to be tested for each user, the method for data analysis includes the following steps:
if the error reporting rate is lower than the set access quantity threshold value for the access request of each user in the access response time of the network link address to be tested for each user, the network pressure test conclusion is that the current access quantity of the network link address to be tested is within the pressure bearing limit of the Linux virtual machine.
5. The network pressure testing method according to claim 4, wherein the network link address to be tested performs data analysis on access response duration data of each user, and the network pressure testing conclusion is obtained further comprising the following steps:
gradually increasing the number of users accessing the network link address to be tested at the same moment until the maximum pressure bearing access number of the Linux virtual machine is used as the number of users accessing the network link address to be tested corresponding to the first time when the error reporting rate is higher than the set threshold value when the error reporting rate is higher than the set error reporting rate threshold value for the access request of each user within the access response time of the network link address to be tested for each user.
6. The network pressure testing method according to claim 1, wherein when the number of accesses to the network link address to be tested at the same time is known, the performing data analysis according to the click data for the network link address to be tested, to obtain the network pressure testing conclusion includes:
if the response time is within the set access time threshold for the access of the network link address to be tested and the error reporting rate is lower than the set error reporting rate threshold, the load of the Linux virtual machine is feasible;
and if the response time length exceeds the set access time length threshold value or the error reporting rate is higher than the set error reporting rate threshold value aiming at the access of the network link address to be tested, prompting the Linux virtual machine to expand.
7. The network pressure testing method according to claim 6, wherein if the response time length exceeds a set access time length threshold for the access of the network link address to be tested or the error reporting rate is higher than a set error reporting rate threshold, the Linux virtual machine capacity expansion method includes the following steps:
expanding the capacity of the Linux virtual machine to a first configuration to obtain the Linux virtual machine with the first configuration;
accessing the network link address to be tested in a known number of accesses accessing the network link address to be tested at the same time, if the response time length exceeds a set access time length threshold value or the error reporting rate is higher than a set error reporting rate threshold value for the access of the network link address to be tested,
expanding the capacity of the Linux virtual machine to a second configuration to obtain the Linux virtual machine with the second configuration;
accessing the network link address to be tested in a known number of accesses accessing the network link address to be tested at the same time, if the response time length exceeds a set access time length threshold value or the error reporting rate is higher than a set error reporting rate threshold value for the access of the network link address to be tested,
and continuously expanding the capacity of the Linux virtual machine until the capacity of the Linux virtual machine is expanded to an Nth configuration, and obtaining the Linux virtual machine with the Nth configuration, so that the response time is within a set access time threshold for the access of the network link address to be tested, and the error reporting rate is lower than the set error reporting rate threshold, wherein the Nth configuration is used as a configuration threshold for accessing the known number of accesses of the network link address to be tested at the same time, and N is a natural number.
8. A network pressure testing apparatus, comprising:
the network link address acquisition module is used for acquiring the network link address to be tested;
the test network segment determining module is used for determining the network segment of the network link address to be tested according to the network link address to be tested;
the Linux virtual machine creation module is used for creating a Linux virtual machine in the network segment of the network link address to be tested;
the clicking data acquisition module is used for acquiring clicking data aiming at the network link address to be tested by utilizing the Linux virtual machine;
and the data analysis module is used for carrying out data analysis according to the click data aiming at the network link address to be tested to obtain the network pressure test conclusion.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a network pressure test program, which, when executed by a processor, implements the steps of the network pressure test method of any of claims 1-7.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a network pressure test program which, when executed by the processor, implements the steps of the network pressure test method of any of claims 1-7.
CN202310134419.5A 2023-02-10 2023-02-10 Network pressure testing method and device, storage medium and electronic equipment Pending CN116132328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310134419.5A CN116132328A (en) 2023-02-10 2023-02-10 Network pressure testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310134419.5A CN116132328A (en) 2023-02-10 2023-02-10 Network pressure testing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116132328A true CN116132328A (en) 2023-05-16

Family

ID=86311564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310134419.5A Pending CN116132328A (en) 2023-02-10 2023-02-10 Network pressure testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116132328A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581247A (en) * 2012-07-30 2014-02-12 杭州洱海科技有限公司 Method for testing distributed type Web based on cloud computing environment
US20170295084A1 (en) * 2016-04-06 2017-10-12 Ixia Methods, systems, and computer readable media for emulating network traffic patterns on a virtual machine
CN108205477A (en) * 2016-12-16 2018-06-26 上海仪电(集团)有限公司中央研究院 Server stress test method
CN108694116A (en) * 2017-04-10 2018-10-23 北京金山云网络技术有限公司 A kind of network stabilization test method of VPC clusters, apparatus and system
CN110677321A (en) * 2019-09-25 2020-01-10 广州通导信息技术服务有限公司 Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium
CN111723018A (en) * 2020-06-28 2020-09-29 中国平安财产保险股份有限公司 Performance pressure testing method, device, equipment and storage medium
CN112052163A (en) * 2020-08-19 2020-12-08 北京天融信网络安全技术有限公司 High-concurrency webpage pressure testing method and device, electronic equipment and storage medium
CN112187574A (en) * 2020-09-24 2021-01-05 苏州浪潮智能科技有限公司 Method, system and storage medium for network stress testing using virtual machines
CN114880179A (en) * 2022-06-16 2022-08-09 苏州浪潮智能科技有限公司 Server virtualization pressure testing method, device, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581247A (en) * 2012-07-30 2014-02-12 杭州洱海科技有限公司 Method for testing distributed type Web based on cloud computing environment
US20170295084A1 (en) * 2016-04-06 2017-10-12 Ixia Methods, systems, and computer readable media for emulating network traffic patterns on a virtual machine
CN108205477A (en) * 2016-12-16 2018-06-26 上海仪电(集团)有限公司中央研究院 Server stress test method
CN108694116A (en) * 2017-04-10 2018-10-23 北京金山云网络技术有限公司 A kind of network stabilization test method of VPC clusters, apparatus and system
CN110677321A (en) * 2019-09-25 2020-01-10 广州通导信息技术服务有限公司 Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium
CN111723018A (en) * 2020-06-28 2020-09-29 中国平安财产保险股份有限公司 Performance pressure testing method, device, equipment and storage medium
CN112052163A (en) * 2020-08-19 2020-12-08 北京天融信网络安全技术有限公司 High-concurrency webpage pressure testing method and device, electronic equipment and storage medium
CN112187574A (en) * 2020-09-24 2021-01-05 苏州浪潮智能科技有限公司 Method, system and storage medium for network stress testing using virtual machines
CN114880179A (en) * 2022-06-16 2022-08-09 苏州浪潮智能科技有限公司 Server virtualization pressure testing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10127146B2 (en) Systems and methods to identify and classify performance bottlenecks in cloud based applications
JP6592474B2 (en) Providing resource usage information for each application
US20110161825A1 (en) Systems and methods for testing multiple page versions across multiple applications
US9588813B1 (en) Determining cost of service call
US9043317B2 (en) System and method for event-driven prioritization
CN101258708A (en) Performance evaluation of a network-based application
CN114095567B (en) Data access request processing method and device, computer equipment and medium
US10796038B2 (en) Estimating think times
CN108259266A (en) Web site performance monitoring method and system
US20150113036A1 (en) Server and method for sharing application services
CN109586942A (en) Web site performance assessment method and device
CN116132328A (en) Network pressure testing method and device, storage medium and electronic equipment
US10171602B2 (en) Determining device counts
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN113746920B (en) Data forwarding method and device, electronic equipment and computer readable storage medium
CN111967938B (en) Cloud resource recommendation method and device, computer equipment and readable storage medium
CN108229127B (en) System and method for generating authentication data in advance to distinguish clients
CN109597724A (en) Service stability measurement method, device, computer equipment and storage medium
CN107277088B (en) High-concurrency service request processing system and method
CN108234229A (en) A kind of network speed measuring method and device
CN109348236B (en) Storage capacity evaluation method and device, server and storage medium
Arul et al. Load testing for query based e-commerce web applications with cloud performance Testing Tools
CN108073502B (en) Test method and system thereof
CN115134274B (en) Network speed measuring method and device, electronic equipment and storage medium
CN108874431B (en) Method and device for updating application

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