A method and device for determining a scheduling strategy for bandwidth stress testing under network nodes

By obtaining network node parameters and server interference factors, and dynamically adjusting the number of clients and servers, the problem of client and server scheduling imbalance in existing tools is solved, and the accuracy and efficiency of bandwidth stress testing are achieved.

CN116095022BActive Publication Date: 2024-09-27CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211681420.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2024-09-27
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

Existing bandwidth stress testing tools based on C/S architecture have balance issues in client and server scheduling, resulting in low or overpressure, abnormal results, and may cause a sudden increase in traffic, leading to customer complaints or network closures, and lack of dynamics. Stress testing strategy to automatically control the stress testing process.

Method used

By obtaining the parameters of network nodes, determine the required number of clients and server interference factors, dynamically adjust the number of clients and servers, and formulate scheduling strategies to achieve real-time scheduling and accuracy.

Benefits of technology

Reduce bandwidth waste, improve the accuracy of bandwidth stress testing, avoid sudden increases in traffic, and optimize the stress testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095022B
    Figure CN116095022B
Patent Text Reader

Abstract

The present invention provides a method and device for determining a scheduling strategy for bandwidth stress testing under a network node. The method introduces an interference factor of a server, and uses the interference factor of the server to perform real-time deviation correction and dynamic adjustment on the number of clients corresponding to each server, so as to achieve on-demand allocation of clients when the capabilities provided by the server and the client are not uniform in complex scenarios, that is, the scheduling between the client and the server for bandwidth stress testing can be adjusted in real time to reduce bandwidth waste, and the accuracy of the scheduling strategy of the server and the client for bandwidth stress testing of the network node can be improved, providing a basic basis for upper-layer scheduling for bandwidth stress testing of network nodes based on the C / S architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network technology, and in particular to a method and device for determining a scheduling strategy for bandwidth stress testing under a network node. Background Art

[0002] When network nodes are handed over for maintenance and acceptance, bandwidth stress testing of the nodes is required to determine whether they meet the delivery conditions. The current stress testing tool is represented by iperf, which is a testing tool based on the C / S architecture. The usage process is described as follows: first, start the server on the target host and wait for the client to connect; then start the client on the source host and start the test according to the set parameters; obtain the results and close the server. The main execution method is manual or script startup. The above process has the following problems: (1) The stress testing software based on the C / S architecture provides bandwidth stress testing capabilities, but there is currently no relevant research to solve the balance problem between the client and the server. Low pressure or overpressure often causes abnormal results and fails to meet expectations; (2) Improper selection of clients and stress testing bandwidth may cause a sudden increase in traffic, causing customer complaints or even network blocking.

[0003] In summary, open source tools such as iperf are still the preferred underlying tools for stress testing solutions. What is currently lacking is an upper-level scheduling method that can provide dynamic stress testing strategies to automatically control the overall stress testing process, in order to solve the scheduling problems of stress testing clients and servers. Summary of the invention

[0004] In view of this, the embodiments of the present invention provide a method, apparatus, computer equipment and computer-readable storage medium for determining a scheduling strategy for bandwidth stress testing on a network node, so as to achieve real-time adjustment of the scheduling between a client and a server performing bandwidth stress testing, so as to reduce bandwidth waste, and improve the accuracy of the scheduling strategy of the server and the client used for bandwidth stress testing on the network node, thereby providing a basic basis for upper-layer scheduling for bandwidth stress testing of network nodes based on a C / S architecture.

[0005] A first aspect of an embodiment of the present invention provides a method for determining a scheduling strategy for bandwidth stress testing at a network node, the method comprising:

[0006] Obtaining node parameters of a network node to be subjected to bandwidth stress testing; wherein the network node includes a number of servers to be subjected to bandwidth stress testing and a number of clients available for stress testing;

[0007] Determining the number of clients required for performing bandwidth stress testing on the network node according to the node parameters;

[0008] For each server, determining an interference factor of the server according to an influencing factor of the server and a distribution type of a dynamic influence value corresponding to the influencing factor;

[0009] Determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server;

[0010] According to the number of clients corresponding to each server, a scheduling strategy for servers and clients used to perform bandwidth stress testing on the network node is determined.

[0011] A second aspect of an embodiment of the present invention provides a device for determining a scheduling strategy for bandwidth stress testing at a network node, the device comprising:

[0012] A parameter acquisition unit, used to acquire node parameters of a network node to be subjected to bandwidth stress testing; wherein the network node includes a number of servers to be subjected to bandwidth stress testing and a number of clients available for stress testing;

[0013] A first determining unit, configured to determine, according to the node parameters, the number of clients required for performing bandwidth stress testing on the network node;

[0014] A factor determination unit, configured to determine, for each server, an interference factor of the server according to an influencing factor of the server and a distribution type of a dynamic influence value corresponding to the influencing factor;

[0015] A second determining unit is used to determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server;

[0016] The strategy determination unit is used to determine the scheduling strategy of the server and the client for performing bandwidth stress testing on the network node according to the number of clients corresponding to each server.

[0017] According to a third aspect of an embodiment of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0018] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0019] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: In the present embodiment, the node parameters of the network node to be subjected to bandwidth stress testing are first obtained; wherein, the network node includes several servers to be subjected to bandwidth stress testing and several clients available for stress testing. Then, the number of clients required for performing bandwidth stress testing on the network node can be determined based on the node parameters. Next, for each server, the interference factor of the server is determined based on the influencing factors of the server and the distribution type of the dynamic influence values ​​corresponding to the influencing factors. Next, the number of clients corresponding to each server can be determined based on the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server. Finally, the scheduling strategy of the server and the client for performing bandwidth stress testing on the network node can be determined based on the number of clients corresponding to each server. It can be seen that this embodiment introduces the interference factor of the server and uses the interference factor of the server to perform real-time correction and dynamic adjustment on the number of clients corresponding to each server, so as to achieve on-demand allocation of clients when the capabilities provided by the server and the client are not uniform in complex scenarios. That is, the scheduling between the client and the server performing bandwidth stress testing can be adjusted in real time to reduce bandwidth waste, and the accuracy of the scheduling strategy of the server and the client used for bandwidth stress testing of the network node can be improved, which provides a basic basis for upper-level scheduling for bandwidth stress testing of network nodes based on the C / S architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a method flow chart of a method for determining a scheduling strategy for bandwidth stress testing at a network node provided by an embodiment of the present invention;

[0022] Figure 2 It is a schematic diagram of the structure of a device for determining a scheduling strategy for bandwidth stress testing at a network node provided by an embodiment of the present invention;

[0023] Figure 3 It is a schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0025] A method and device for determining a scheduling strategy for bandwidth stress testing at a network node according to an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.

[0026] Figure 1 1 is a flow chart of a method for determining a scheduling strategy for bandwidth stress testing at a network node provided by an embodiment of the present invention. Figure 2 As shown, the method for determining the scheduling strategy for bandwidth stress testing under a network node includes:

[0027] S201: Obtain node parameters of a network node to be subjected to bandwidth stress testing.

[0028] In this embodiment, the network node to be subjected to bandwidth stress testing can be understood as a network node that needs to undergo bandwidth stress testing (i.e., bandwidth stress testing) during the delivery and acceptance to determine whether the delivery conditions are met. Among them, the network node may include several servers to be subjected to bandwidth stress testing and several clients available for stress testing. The server to be subjected to bandwidth stress testing can be understood as a server (for example, a server) that needs to undergo bandwidth stress testing. Several clients available for stress testing can be understood as all clients in a client resource pool used to cooperate with the server in performing bandwidth stress testing.

[0029] It is understandable that the node parameters of the network node to be subjected to bandwidth stress testing can be understood as the stress testing parameters involved and adopted by the network node in the process of bandwidth stress testing. In one implementation, the node parameters may include a target bandwidth value, a target stress testing ratio, a maximum increase, and a rated bandwidth parameter of a single client. It should be noted that in one implementation, the rated bandwidth parameters of each of the several clients available for stress testing are the same, that is, they are all rated bandwidth parameters of a single client.

[0030] It should be noted that, in one implementation, after obtaining the node parameters, the node parameters may be verified first, for example, to verify whether the node parameters are abnormal, and subsequent steps may be performed after the verification passes.

[0031] S202: Determine the number of clients required for performing bandwidth stress testing on the network node according to the node parameters.

[0032] In this embodiment, the node parameters of the network node to be subjected to bandwidth stress testing may be used to determine the number of clients required for performing bandwidth stress testing on the network node, that is, to determine the number of all clients required in the bandwidth stress testing process.

[0033] As an example, the actual target bandwidth value may be determined based on the target bandwidth value, the target stress test ratio, and the maximum increase. Specifically, the actual bandwidth stress test bandwidth increase value may be determined based on the target bandwidth value, the target stress test ratio, and the maximum increase. For example, the minimum value between the product of the target bandwidth value and the target stress test ratio and the maximum increase may be used as the actual bandwidth stress test bandwidth increase value. Specifically, the actual bandwidth stress test bandwidth increase value may be determined using the following formula: t =Min(θ t *P t ,M t ), where A t is the bandwidth increase value of the actual bandwidth stress test; θ t is the target bandwidth value; P t The target stress test ratio is; M t is the maximum increase; Min() is the minimum value function. According to the actual bandwidth stress test bandwidth increase value and the target bandwidth value, the actual target bandwidth value is determined. For example, the sum of the actual bandwidth stress test bandwidth increase value and the target bandwidth value can be used as the actual target bandwidth value. Specifically, the actual target bandwidth value can be determined by the following formula: a =θ t +A t ; where θa is the actual target bandwidth value; A t is the bandwidth increase value of the actual bandwidth stress test; θ t is the target bandwidth value. For example, assuming the target bandwidth value θ t =100, the target stress test ratio is P t =1.2, the highest increase is M t =20, according to formula A t =Min(θ t *P t ,M t ) and θ a =θ t +A t The actual target bandwidth value can be calculated as θ a =120.

[0034] Then, the rated bandwidth parameter of the single client may be subjected to strong constraint processing to obtain the actual bandwidth parameter of the single client. As an example, the rated bandwidth parameter of the single client may be subjected to strong constraint processing using a preset strong constraint value to obtain the actual bandwidth parameter of the single client. For example, the rated bandwidth parameter of the single client may be subjected to strong constraint using the following formula: C t =Min(I t ,α); where C t is the actual bandwidth parameter of a single client (i.e., the bandwidth capability actually provided by the client), I t is the rated bandwidth parameter of a single client (i.e., the bandwidth capability input by the user), and α is a strong constraint value. For example, suppose the user inputs the bandwidth capability provided by the client I t =1.5, strong constraint value α=1, according to formula C t =Min(I t ,α), the stress testing capability C provided by each client can be determined t = 1. It should be noted that the strong constraint processing link is introduced in this embodiment to ensure that the client performs stress testing at a lower bandwidth and prevent problems such as flooding attacks.

[0035] Then, the number of clients required for bandwidth stress testing of the network node can be determined based on the actual target bandwidth value and the actual bandwidth parameter of the single client. In one implementation, the value obtained by rounding up the ratio of the actual target bandwidth value and the actual bandwidth parameter of the single client can be used as the number of clients required for bandwidth stress testing of the network node. For example, the number of clients required for bandwidth stress testing of the network node can be determined by the following formula: Among them, N t is the number of clients required for bandwidth stress testing of network nodes, Ceil() is an upward rounding function; θa is the actual target bandwidth value; C t is the actual bandwidth parameter of a single client. For example, assuming the actual target bandwidth value is θ a =120, the actual bandwidth parameter of a single client C t =1, according to the formula The number of clients N required to perform bandwidth stress testing on network nodes can be determined t =120, which is the number of clients N required for this stress test t =120.

[0036] S203: For each server, determine the interference factor of the server according to the influencing factors of the server and the distribution type of the dynamic influence values ​​corresponding to the influencing factors.

[0037] In this embodiment, since the traditional stress test form is to configure the same number of clients on each server, but in actual scenarios, the capabilities that each server can provide are different, and the situation that affects the server's ability to provide is complex. For example, when the client stress test value is greater than its own network card bandwidth capability, the bandwidth becomes its bottleneck. Other reasons such as server status and network performance will affect the actual allocation. In order to reduce this impact and improve the accuracy of allocation, this embodiment introduces an interference factor to interfere with the allocation process of the number of clients corresponding to the server. In actual production, there are many influencing factors, and the calculation method of the interference factor is not the same. This embodiment fully considers this situation, and only limits the determination of the interference factor of the server, and uses the result of the interference factor for subsequent calculation and derivation, without limiting the calculation method of the interference factor, which guarantees the flexibility and versatility of the algorithm to the greatest extent. In other words, the determination method of the interference factor in this embodiment is only used as an example reference, and does not play a limiting role.

[0038] In this embodiment, the interference factor of each server needs to be determined respectively. In this embodiment, the interference factor value of the server in different scenarios can be calculated by combining the fuzzy comprehensive evaluation method, specifying the impact index evaluation model, weight upper limit control and other means.

[0039] Table 1

[0040]

[0041] Table 1 is a table showing the correspondence between influencing factors and the server. It can be seen from the table that different influencing factors have different distribution types of dynamic impact values ​​corresponding to the influencing factors. For example, the influencing factor network card bandwidth conforms to the distribution type of trapezoidal distribution, while the influencing factor network quality conforms to the distribution type of curve distribution. A unified upper limit value w can be set for each factor. max As the external situation changes, the dynamic impact value corresponding to the influencing factor is also constantly changing. This change obeys the distribution curve. The influencing factor value (i.e., dynamic impact value) of each server can be analyzed through the distribution curve. The influencing factor with the largest change can be used as the interference factor of the server.

[0042] Accordingly, in an implementation of this embodiment, for each server, the interference factor of the server can be determined according to the influencing factors of the server and the distribution type of the dynamic influence value corresponding to the influencing factors. Specifically, for each influencing factor of the server, the server influence value corresponding to the influencing factor can be determined according to the distribution type of the dynamic influence value corresponding to the influencing factor; for example, the distribution type of the dynamic influence value corresponding to the influencing factor can be used to determine the difference between the minimum and maximum values ​​of the dynamic influence value corresponding to the influencing factor. The larger the difference, the larger the server influence value corresponding to the influencing factor. On the contrary, the smaller the difference, the smaller the server influence value corresponding to the influencing factor; or, for another example, the distribution type of the dynamic influence value corresponding to the influencing factor can be used to determine the change rate of the dynamic influence value corresponding to the influencing factor (i.e., the degree of change of the dynamic influence value per unit time). The larger the change rate, the larger the server influence value corresponding to the influencing factor. On the contrary, the smaller the change rate, the smaller the server influence value corresponding to the influencing factor. It should be noted that, in an implementation, the server influence value corresponding to the influencing factor can also be preset by the user according to actual conditions.

[0043] Among the service impact values ​​corresponding to the influencing factors corresponding to the server, the service impact value with the largest value can be determined, and the service impact value with the largest value can be used as the interference factor of the server. For example, the interference factor of the server can be determined using the following formula: i =max(w1, w2, ..., w i ), where π i is the interference factor of the ith server; w1, w2, ..., w i is the service impact value corresponding to the first influencing factor corresponding to the server, the service impact value corresponding to the second influencing factor, ..., the service impact value corresponding to the ith influencing factor; max() is the maximum value function.

[0044] S204: Determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server.

[0045] In this embodiment, after determining the interference factor of each server, the interference factor of each server can be used to perform real-time adaptive adjustment on the number of clients corresponding to each server. The number of clients corresponding to each server can be determined based on the number of clients required for bandwidth stress testing of the network node and the interference factor corresponding to each server.

[0046] As an example, the interference factors corresponding to each server end may be summed to obtain a sum value. For example, the sum value of the interference factors corresponding to each server end may be calculated by the following formula: π =π1+π2+…+π X ; Among them, X π Represents the sum of the interference factors corresponding to each server, π1, π2, ..., π X They respectively represent the interference factor corresponding to the first server, the interference factor corresponding to the second server, …, the interference factor corresponding to the Xth server.

[0047] Then, the ratio of the number of clients required for bandwidth stress testing of the network node to the sum value can be determined. For example, the number of allocated clients can be calculated in units of interference factors according to the principle of equal distribution: Among them, B c is the number of clients allocated in units of interference factor (i.e., the ratio of the number of clients required for bandwidth stress testing of the network node to the sum value), N t is the number of clients required for bandwidth stress testing of network nodes, X π Represents the sum of the interference factors corresponding to each server.

[0048] Next, for each server, the product of the ratio and the interference factor corresponding to the server is calculated, and the number of clients corresponding to the server is determined according to the product. For example, if the product is a non-integer, the product is rounded up and the rounded value is used as the number of clients corresponding to the server. For example, the number of clients corresponding to the server (i.e., the number of clients actually allocated to each server) can be determined using the following formula: i =B c *π i Among them, B i is the number of clients corresponding to the i-th server, B c is the number of clients allocated in units of interference factor (i.e., the ratio of the number of clients required for bandwidth stress testing of network nodes to the sum value), π i Represents the interference factor corresponding to the i-th server.

[0049] S205: Determine, according to the number of clients corresponding to each server, a scheduling strategy for servers and clients for performing bandwidth stress testing on the network node.

[0050] The scheduling strategy of the server and client for bandwidth stress testing of the network node may include a server and client mapping table corresponding to each server and stress testing parameters corresponding to each server. Among them, the server and client mapping table corresponding to the server can be understood as a list of clients that need to be used to perform bandwidth stress testing on the server during the bandwidth stress test, for example, it may include the identifier of the client that needs to be used to perform bandwidth stress testing on the server. The stress testing parameters corresponding to the server can be understood as the parameters involved in the process of bandwidth stress testing of the server, such as bandwidth, stress testing ratio, maximum increase and other parameters.

[0051] As an example, a hash algorithm may be used to first perform hash processing on the plurality of clients available for stress testing, and then the clients corresponding to each server may be randomly allocated according to the number of clients corresponding to each server.

[0052] Then, the server-client mapping table corresponding to each server can be determined according to each server and the client corresponding to each server, that is, a corresponding relationship is established between the server and the client randomly assigned to the server, and the corresponding relationship is used as the server-client mapping table.

[0053] Next, the scheduling strategy of the server and client for performing bandwidth stress testing on the network node can be determined according to the server and client mapping table corresponding to each server and the stress testing parameters corresponding to each server. For example, the server and client mapping table corresponding to each server and the stress testing parameters corresponding to each server can be used as the scheduling strategy of the server and client for performing bandwidth stress testing on the network node.

[0054] That is to say, this embodiment can hash all clients in the client resource pool through a hash algorithm, randomly assign clients to servers to form a server-to-client mapping table and stress testing parameters, and transmit them to the issuing device to continue the subsequent process.

[0055] It can be seen that in this embodiment, the node parameters of the network node to be subjected to bandwidth stress testing are first obtained; wherein the network node includes several servers to be subjected to bandwidth stress testing and several clients available for stress testing. Then, the number of clients required for performing bandwidth stress testing on the network node can be determined based on the node parameters. Next, for each server, the interference factor of the server is determined based on the influencing factors of the server and the distribution type of the dynamic influence value corresponding to the influencing factors. Next, the number of clients corresponding to each server can be determined based on the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server. Finally, the scheduling strategy of the server and the client used to perform bandwidth stress testing on the network node can be determined based on the number of clients corresponding to each server. It can be seen that this embodiment introduces the interference factor of the server and uses the interference factor of the server to perform real-time correction and dynamic adjustment on the number of clients corresponding to each server, so as to achieve on-demand allocation of clients in complex scenarios where the capabilities provided by the server and the client are not uniform, that is, the scheduling between the client and the server for bandwidth stress testing can be adjusted in real time to reduce bandwidth waste, and the accuracy of the scheduling strategy of the server and the client for bandwidth stress testing of network nodes can be improved, providing a basic basis for upper-level scheduling for bandwidth stress testing of network nodes based on the C / S architecture. In addition, the scheduling strategy of the server and the client for bandwidth stress testing of network nodes obtained by the dynamic adaptive scheduling method can be accurately used in subsequent processes to improve efficiency and optimize processes.

[0056] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present invention, which will not be described in detail here.

[0057] The following is a system embodiment of the present invention, which can be used to implement the method embodiment of the present invention. For details not disclosed in the system embodiment of the present invention, please refer to the method embodiment of the present invention.

[0058] Figure 2 1 is a schematic diagram of a device structure of a device for determining a scheduling strategy for bandwidth stress testing at a network node provided by an embodiment of the present invention. The device for determining a scheduling strategy for bandwidth stress testing at a network node comprises:

[0059] The parameter acquisition unit 201 is used to acquire node parameters of a network node to be subjected to bandwidth stress testing; wherein the network node includes a number of servers to be subjected to bandwidth stress testing and a number of clients available for stress testing;

[0060] A first determining unit 202 is used to determine the number of clients required for performing bandwidth stress testing on the network node according to the node parameters;

[0061] A factor determination unit 203, configured to determine, for each server, an interference factor of the server according to the influencing factors of the server and the distribution type of the dynamic influence values ​​corresponding to the influencing factors;

[0062] The second determining unit 204 is used to determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server;

[0063] The strategy determination unit 205 is used to determine the scheduling strategy of the server and the client for performing bandwidth stress testing on the network node according to the number of clients corresponding to each server.

[0064] Optionally, the node parameters include a target bandwidth value, a target stress test ratio, a maximum increase, and a rated bandwidth parameter of a single client; the first determining unit 202 is used to:

[0065] Determine an actual target bandwidth value according to the target bandwidth value, the target stress testing ratio and the maximum increase;

[0066] Performing strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client;

[0067] The number of clients required for performing bandwidth stress testing on the network node is determined according to the actual target bandwidth value and the actual bandwidth parameter of the single client.

[0068] Optionally, the first determining unit 202 is configured to:

[0069] Determine an actual bandwidth stress test bandwidth increase value according to the target bandwidth value, the target stress test ratio and the maximum increase;

[0070] An actual target bandwidth value is determined according to the actual bandwidth stress test bandwidth increment value and the target bandwidth value.

[0071] Optionally, the first determining unit 202 is configured to:

[0072] The preset strong constraint value is used to perform strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client.

[0073] Optionally, the factor determination unit 203 is used to:

[0074] For each influencing factor of the server, determine the server impact value corresponding to the influencing factor according to the distribution type of the dynamic impact value corresponding to the influencing factor; among the service impact values ​​corresponding to each of the influencing factors corresponding to the server, determine the service impact value with the largest value, and use the service impact value with the largest value as the interference factor of the server.

[0075] Optionally, the second determining unit 204 is configured to:

[0076] Sum the interference factors corresponding to each server to obtain the sum value;

[0077] Determine a ratio of the number of clients required for performing bandwidth stress testing on the network node to the sum value;

[0078] For each server, the product of the ratio and the interference factor corresponding to the server is calculated, and the number of clients corresponding to the server is determined according to the product.

[0079] Optionally, the policy determination unit 205 is configured to:

[0080] Performing hash processing on the plurality of clients available for stress testing by using a hash algorithm, and randomly allocating the clients corresponding to each server according to the number of clients corresponding to each server;

[0081] According to each server and the client corresponding to each server, a server-client mapping table corresponding to each server is determined respectively;

[0082] According to the server-client mapping table corresponding to each server and the stress testing parameters corresponding to each server, a scheduling strategy of the server and the client for performing bandwidth stress testing on the network node is determined.

[0083] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0084] Figure 3 Schematic diagram of a computer device 3 provided in an embodiment of the present invention. Figure 3 As shown, the computer device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps in the above-mentioned various method embodiments are implemented. Alternatively, when the processor 301 executes the computer program 303, the functions of each module / module in the above-mentioned various embodiments are implemented.

[0085] Exemplarily, the computer program 303 may be divided into one or more modules / modules, which are stored in the memory 302 and executed by the processor 301 to implement the present invention. The one or more modules / modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 303 in the computer device 3.

[0086] The computer device 3 may be a desktop computer, a notebook, a PDA, a cloud server, or other computer devices. The computer device 3 may include but is not limited to a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of computer device 3 and does not constitute a limitation of computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0087] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0088] The memory 302 may be an internal storage module of the computer device 3, for example, a hard disk or memory of the computer device 3. The memory 302 may also be an external storage device of the computer device 3, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 302 may also include both an internal storage module and an external storage device of the computer device 3. The memory 302 is used to store computer programs and other programs and videos required by the computer device. The memory 302 may also be used to temporarily store videos that have been output or are to be output.

[0089] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional modules and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules and modules as needed, that is, the internal structure of the system can be divided into different functional modules or modules to complete all or part of the functions described above. The functional modules and modules in the embodiment can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. In addition, the specific names of the functional modules and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the modules and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0090] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0091] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0092] In the embodiments provided by the present invention, it should be understood that the disclosed system / computer device and method can be implemented in other ways. For example, the system / computer device embodiments described above are only schematic, for example, the module or the division of the module is only a logical function division, and there may be other division methods in actual implementation, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the system or module, which can be electrical, mechanical or other forms.

[0093] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.

[0095] If the integrated module / module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0096] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A method for determining a scheduling strategy for bandwidth stress testing at a network node, characterized in that: The method comprises: Obtaining node parameters of a network node to be subjected to bandwidth stress testing; wherein the network node includes a number of servers to be subjected to bandwidth stress testing and a number of clients available for stress testing; Determining the number of clients required for performing bandwidth stress testing on the network node according to the node parameters; For each server, determining an interference factor of the server according to an influencing factor of the server and a distribution type of a dynamic influence value corresponding to the influencing factor; Determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server; Determine, according to the number of clients corresponding to each server, a scheduling strategy for servers and clients for performing bandwidth stress testing on network nodes; The node parameters include a target bandwidth value, a target stress test ratio, a maximum increase, and a rated bandwidth parameter of a single client; determining the number of clients required for performing bandwidth stress testing on a network node according to the node parameters includes: Determine an actual target bandwidth value according to the target bandwidth value, the target stress testing ratio and the maximum increase; Performing strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client; Determining the number of clients required for performing bandwidth stress testing on the network node according to the actual target bandwidth value and the actual bandwidth parameter of the single client; The determining the interference factor of the server according to the influencing factors of the server and the distribution type of the dynamic influence values ​​corresponding to the influencing factors includes: For each influencing factor of the server, determine the server impact value corresponding to the influencing factor according to the distribution type of the dynamic impact value corresponding to the influencing factor; among the service impact values ​​corresponding to each of the influencing factors corresponding to the server, determine the service impact value with the largest value, and use the service impact value with the largest value as the interference factor of the server.

2. The method according to claim 1, characterized in that The determining the actual target bandwidth value according to the target bandwidth value, the target stress testing ratio and the maximum increase includes: Determine an actual bandwidth stress test bandwidth increase value according to the target bandwidth value, the target stress test ratio and the maximum increase; An actual target bandwidth value is determined according to the actual bandwidth stress test bandwidth increment value and the target bandwidth value.

3. The method according to claim 1, characterized in that The step of performing strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client includes: The preset strong constraint value is used to perform strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client.

4. The method according to claim 1, characterized in that The determining the number of clients corresponding to each server end according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server end respectively includes: Sum the interference factors corresponding to each server to obtain the sum value; Determine a ratio of the number of clients required for performing bandwidth stress testing on the network node to the sum value; For each server, the product of the ratio and the interference factor corresponding to the server is calculated, and the number of clients corresponding to the server is determined according to the product.

5. The method according to claim 1, characterized in that The step of determining, according to the number of clients corresponding to each server, a scheduling strategy for servers and clients for performing bandwidth stress testing on a network node, includes: Performing hash processing on the plurality of clients available for stress testing by using a hash algorithm, and randomly allocating the clients corresponding to each server according to the number of clients corresponding to each server; According to each server and the client corresponding to each server, a server-client mapping table corresponding to each server is determined respectively; According to the server-client mapping table corresponding to each server and the stress testing parameters corresponding to each server, a scheduling strategy of the server and the client for performing bandwidth stress testing on the network node is determined.

6. A device for determining a scheduling strategy for bandwidth stress testing at a network node, characterized in that: The device comprises: A parameter acquisition unit, used to acquire node parameters of a network node to be subjected to bandwidth stress testing; wherein the network node includes a number of servers to be subjected to bandwidth stress testing and a number of clients available for stress testing; A first determining unit, configured to determine, according to the node parameters, the number of clients required for performing bandwidth stress testing on the network node; A factor determination unit, configured to determine, for each server, an interference factor of the server according to an influencing factor of the server and a distribution type of a dynamic influence value corresponding to the influencing factor; A second determining unit is used to determine the number of clients corresponding to each server according to the number of clients required for performing bandwidth stress testing on the network node and the interference factors corresponding to each server; A strategy determination unit, configured to determine a scheduling strategy for servers and clients for performing bandwidth stress testing on network nodes according to the number of clients corresponding to each server; The node parameters include a target bandwidth value, a target stress test ratio, a maximum increase, and a rated bandwidth parameter of a single client; determining the number of clients required for performing bandwidth stress testing on a network node according to the node parameters includes: Determine an actual target bandwidth value according to the target bandwidth value, the target stress testing ratio and the maximum increase; Performing strong constraint processing on the rated bandwidth parameter of the single client to obtain the actual bandwidth parameter of the single client; Determining the number of clients required for performing bandwidth stress testing on the network node according to the actual target bandwidth value and the actual bandwidth parameter of the single client; The determining the interference factor of the server according to the influencing factors of the server and the distribution type of the dynamic influence values ​​corresponding to the influencing factors includes: For each influencing factor of the server, determine the server impact value corresponding to the influencing factor according to the distribution type of the dynamic impact value corresponding to the influencing factor; among the service impact values ​​corresponding to each of the influencing factors corresponding to the server, determine the service impact value with the largest value, and use the service impact value with the largest value as the interference factor of the server.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.