CN107196820B - Switch performance test method, device and system - Google Patents

Switch performance test method, device and system Download PDF

Info

Publication number
CN107196820B
CN107196820B CN201710373080.9A CN201710373080A CN107196820B CN 107196820 B CN107196820 B CN 107196820B CN 201710373080 A CN201710373080 A CN 201710373080A CN 107196820 B CN107196820 B CN 107196820B
Authority
CN
China
Prior art keywords
switch
packet sending
tested
performance
sending rate
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.)
Active
Application number
CN201710373080.9A
Other languages
Chinese (zh)
Other versions
CN107196820A (en
Inventor
肖小军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hi Scom Network Technology Co ltd
Original Assignee
Shanghai Hi Scom Network 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 Shanghai Hi Scom Network Technology Co ltd filed Critical Shanghai Hi Scom Network Technology Co ltd
Priority to CN201710373080.9A priority Critical patent/CN107196820B/en
Publication of CN107196820A publication Critical patent/CN107196820A/en
Application granted granted Critical
Publication of CN107196820B publication Critical patent/CN107196820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a system for testing the performance of a switch. The method comprises the following steps: sending a communication command to a switch to be tested to monitor communication parameters and operation parameters of the switch to be tested, wherein the switch to be tested acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time; if the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate; returning to execute the operation of sending a communication command to the switch to be tested so as to monitor the operation of communication parameters and operation parameters of the switch to be tested until the switch to be tested is determined to meet the set performance condition; and acquiring the packet sending rate of the data packet sender at the moment as the CPU performance parameter value of the switch to be tested. By the technical scheme, the CPU performance of the network-managed two-layer switch can be quickly and effectively tested.

Description

Switch performance test method, device and system
Technical Field
The embodiment of the invention relates to a performance test technology, in particular to a method, a device and a system for testing the performance of a switch.
Background
For a conventional two-layer switch, it is usually used to forward data signals. Therefore, when a conventional two-layer switch is subjected to a performance test at present, the data forwarding capability of the two-layer switch is often tested, that is, the performance of a switching chip in the two-layer switch is tested, for example, the RFC2544 performance test or the RFC2889 performance test in the RFC standard, and the main consideration is the parameters of the switching chip, such as throughput, delay and the like.
With the increasing use demand and the development of technology, a network-managed two-layer switch has appeared, which not only can forward data signals, but also provides a management function for the two-layer switch, that is, the network-managed two-layer switch mainly includes a Central Processing Unit (CPU) in addition to a switch chip. The CPU is mainly used to better cope with network attacks such as Address Resolution Protocol (ARP) attacks or Distributed Denial of Service (DDoS) attacks suffered by the network-managed two-layer switch, ensure the security of data, and efficiently process protocol packets and management packets sent to the network-managed two-layer switch, so as to make all network resources in a good state. Therefore, the performance of the CPU in the network-manageable two-layer switch also has a great influence on the overall performance of the network-manageable two-layer switch. Then, when the network-managed two-layer switch is subjected to performance test, it is not only possible to test the data forwarding performance of the switch chip, but also to test the CPU performance.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for testing the performance of a switch, which are used for quickly and effectively testing the performance of a CPU of a network-managed two-layer switch.
In a first aspect, an embodiment of the present invention provides a method for testing performance of a switch, including:
the performance monitor sends a communication command to a to-be-tested switch to monitor communication parameters of the to-be-tested switch and operation parameters of the to-be-tested switch, wherein the to-be-tested switch acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time and is a network-managed two-layer switch;
if the performance monitor determines that the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate;
returning to the performance monitor to send a communication command to the switch to be tested so as to monitor the communication parameters of the switch to be tested and the operation of the running parameters of the switch to be tested until the performance monitor determines that the switch to be tested meets the set performance condition;
and the performance monitor acquires the packet sending rate of the data packet sending instrument as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition.
In a second aspect, an embodiment of the present invention further provides an apparatus for testing performance of an exchange, where the apparatus includes:
the system comprises a parameter monitoring module, a data packet sending module and a data packet receiving module, wherein the parameter monitoring module is used for sending a communication command to a to-be-tested switch so as to monitor communication parameters of the to-be-tested switch and operation parameters of the to-be-tested switch, the to-be-tested switch acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time, and the to-be-tested switch is a network-managed two-layer switch;
a packet sending rate adjusting module, configured to execute a packet sending rate adjusting policy if it is determined that the switch to be tested does not meet a set performance condition according to at least one of the set packet sending rate, the communication parameter, and the operation parameter, so that the data packet sender changes a current packet sending rate;
the cyclic operation module is used for triggering the execution of the parameter monitoring module until the performance monitor determines that the switch to be tested meets the set performance condition;
and the CPU performance parameter value determining module is used for acquiring the packet sending rate of the data packet sending instrument as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition.
In a third aspect, an embodiment of the present invention further provides a system for testing performance of a switch, where the system includes:
the switch to be tested is a network-managed two-layer switch;
the data packet sending instrument is connected with the switch to be tested and used for receiving a set packet sending rate and sending a data packet to the switch to be tested according to the set packet sending rate;
the performance monitor is connected with the switch to be tested and comprises a parameter monitoring device, a packet sending rate adjusting device, a cyclic operation device and a CPU performance parameter value determining device;
the parameter monitoring device is used for sending a communication command to a switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested;
the packet sending rate adjusting device is used for executing a packet sending rate adjusting strategy to enable the data packet sending instrument to change the current packet sending rate if the switch to be tested is determined not to meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters;
the circulating operation device is used for triggering the execution of the parameter monitoring device until the performance monitor determines that the switch to be tested meets the set performance condition;
the CPU performance parameter value determining device is used for acquiring the packet sending rate of the data packet sending instrument as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition.
In a fourth aspect, an embodiment of the present invention further provides a system for testing performance of a switch, where the system includes:
the switch to be tested is a network-managed two-layer switch;
the performance monitor is connected with the switch to be tested and comprises a data packet sending device, a parameter monitoring device, a packet sending rate adjusting device, a cyclic operation device and a CPU performance parameter value determining device;
the data packet sending device is used for sending data packets to the switch to be tested according to the set packet sending rate;
the parameter monitoring device is used for sending a communication command to a switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested;
the packet sending rate adjusting device is used for executing a packet sending rate adjusting strategy to enable the data packet sending device to change the current packet sending rate if the switch to be tested is determined not to meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters;
the circulating operation device is used for triggering the execution of the parameter monitoring device until the performance monitor determines that the switch to be tested meets the set performance condition;
the CPU performance parameter value determining device is used for acquiring the packet sending rate of the data packet sending device as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition.
The method comprises the steps of monitoring communication parameters of a to-be-detected switch and operation parameters of the to-be-detected switch by sending a communication command to the to-be-detected switch, wherein the to-be-detected switch acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time; if the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate; returning to execute the operation of sending a communication command to the switch to be tested so as to monitor the communication parameters of the switch to be tested and the operation parameters of the switch to be tested until the performance monitor determines that the switch to be tested meets the set performance condition; and when the switch to be tested meets the set performance condition, the packet sending rate of the data packet sending instrument is obtained and used as the CPU performance parameter value of the switch to be tested. The problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch is solved, and the CPU performance of the network-managed two-layer switch is quickly and effectively tested, so that the performance test of the network-managed two-layer switch is more comprehensive.
Drawings
Fig. 1 is a flowchart of a method for testing switch performance according to a first embodiment of the present invention;
fig. 2 is a flowchart of another switch performance testing method in the second embodiment of the present invention;
fig. 3 is a flowchart of another switch performance testing method in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a switch performance testing apparatus in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a switch performance testing system in the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of another switch performance testing system in the sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a performance monitor according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for testing performance of an exchange according to an embodiment of the present invention, where the embodiment is applicable to a CPU performance test of a network-managed two-layer exchange, and the method may be executed by an exchange performance testing apparatus, where the apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in a device capable of communicating with the exchange, for example, a typical user terminal device, such as a portable computer or a desktop computer. The method specifically comprises the following steps:
s110, the performance monitor sends a communication command to the switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested, wherein the switch to be tested obtains data packets sent by the data packet sending instrument according to a set packet sending rate in real time.
The set packet sending rate refers to a packet sending rate received by a data packet sender, and may be a packet sending rate input manually or a packet sending rate set automatically by a performance monitor.
Preferably, the performance monitor is provided as a computer. Since the present embodiment performs the performance test on the CPU of the network-manageable two-layer switch, the switch to be tested is preferably set as the network-manageable two-layer switch. The CPU of the network-manageable two-layer switch mainly processes two types of Data packets, namely, two-layer Protocol Data packets such as Bridge Protocol Data Unit (BPDU) Data packets and ARP Data packets, and management Data packets such as web Data packets, Simple Network Management Protocol (SNMP) Data packets, and remote terminal Protocol (Telnet) Data packets, in which the destination MAC address is the MAC address of the CPU of the switch to be tested, so that the Data packet sent by the Data packet sender is preferably one or both of the Protocol Data packet and the management Data packet. The premise of performing the performance test is that the switch to be tested is in a normal operation state, so the operation parameters of the switch to be tested are preferably at least one of the conditions that whether a CPU is overloaded, whether a memory is leaked, whether a system process is lost, whether the switch to be tested has power failure, restart or crash and the like.
Specifically, the data packet and the packet sending rate sent by the data packet sender are firstly set, that is, the data packet sender sends the protocol data packet and/or the management data packet, and the packet sending rate for sending the data packet is set. And then, the data packet sending instrument sends the data packets to the switch to be tested according to the setting, and the switch to be tested acquires the data packets in real time and processes the data packets correspondingly. Meanwhile, the performance monitor is in communication connection with the switch to be tested, on one hand, sends a communication command such as an Internet Packet locator (PING) command, a Trace Router (tracerouter, TRACERT) command or a routing node Packet loss rate (patpinging) command to the switch to be tested, and returns information according to the processing of the switch to be tested on the communication command, so as to monitor the communication parameters of the switch to be tested, and on the other hand, monitors the operation parameters of the switch to be tested, so as to be used as a judgment basis of S120.
Illustratively, the sending, by the performance monitor, a communication command to a switch under test to monitor communication parameters with the switch under test comprises: the performance monitor sends a PING command to the switch to be tested; and the performance monitor monitors the packet loss rate and/or the time delay of a data packet returned by the PING command as a communication parameter with the switch to be tested.
Specifically, the performance monitor sends a PING command to the switch to be tested, and determines any one or two of a packet loss rate and a time delay of communication between the performance monitor and the switch to be tested according to a return data packet of the PING command, as a communication parameter between the performance monitor and the switch to be tested. The advantage of such setting is that the PING command can rapidly acquire the communication parameters of the performance monitor and the switch to be tested, and the communication parameters are set to be the packet loss rate and/or the time delay, so that the communication condition between the performance monitor and the switch to be tested, namely whether the communication is normal or not, can be determined intuitively.
And S120, the performance monitor determines whether the switch to be tested meets the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters.
The set performance refers to the performance of the to-be-tested switch CPU, which may be the maximum packet sending rate that the to-be-tested switch CPU can bear, or the CPU packet sending rate that the to-be-tested switch that a user needs can bear. It should be noted that, here, the packet sending rate is used to represent the CPU performance, because the main processing object of the switch CPU to be tested is the protocol data packet and/or the management data packet acquired by the switch to be tested, and then the amount of the data packet of the corresponding type processed by the CPU determines the performance of the switch CPU to be tested. The packet sending rate of the data packet sender determines the amount of the data packets which are obtained and processed by the switch to be tested within a certain time, so that the CPU performance of the switch to be tested can be represented by directly utilizing the packet sending rate of the data packet sender.
Accordingly, the set performance condition is a judgment condition for judging whether the switch to be tested reaches the set performance. For example, the setting of the performance condition may include that the communication parameter is within a set communication parameter interval and the operation parameter is normal, which corresponds to the performance monitor automatically monitoring the maximum packet transmission rate that the CPU can bear (CPU maximum performance). Or, the setting of the performance condition includes that the set packet sending rate is not less than the set required packet sending rate, the communication parameter is in the set communication parameter interval, and the operation parameter is normal, which corresponds to the case that the performance monitor monitors whether the packet sending rate borne by the CPU meets the packet sending rate required by the user (CPU required performance).
The communication parameter interval is set to represent the communication parameter range of normal communication between the switch to be tested and the performance monitor. If the communication parameter is less than or equal to the interval maximum value of the communication parameter interval, the communication condition is normal; if the communication parameter is greater than the maximum value of the interval, the communication condition is abnormal. For example, for PING communication, the set communication parameter interval corresponds to a numerical range of packet loss rate and/or delay, the minimum value of the interval may be set to be slightly greater than the packet loss rate (usually zero) and/or delay during normal communication, that is, a numerical value at which the packet loss rate and/or delay just start to increase, and the maximum value of the interval may set a corresponding packet loss rate and/or delay numerical value according to actual conditions. Of course, the interval maximum value may also be set as the interval minimum value, that is, the communication parameter interval is set as a single point value. The set required packet sending rate is the packet sending rate of the data packet sending instrument set by the user according to the required CPU performance.
Specifically, the performance monitor may compare the set packet sending rate with the set required packet sending rate, or compare the communication parameter with the set communication parameter interval, or determine whether the operation parameter is normal, or determine whether the switch to be tested satisfies the set performance condition by any one or a combination of several of the operation parameters.
It should be noted that the communication parameter is set as the set performance condition here, because the communication parameter between the performance monitor and the switch to be tested can well reflect whether the CPU load of the switch to be tested reaches the maximum performance of the CPU or the performance required by the CPU, for example, the packet loss rate and/or the time delay starts to increase, which indicates that the CPU resource consumption of the switch to be tested has exceeded the normal loadable range, that is, the maximum performance of the CPU is reached. Moreover, the influence of the communication between the two on the CPU performance of the switch to be tested is negligible compared with the influence of the processing protocol data packet and/or the management data packet on the CPU performance of the switch to be tested, that is, the communication between the two has little influence on the CPU performance.
S130, if not, the performance monitor executes a packet sending rate adjusting strategy so that the data packet sending instrument changes the current packet sending rate.
Specifically, if it is determined in S120 that the switch to be tested does not satisfy the set performance condition, the performance monitor executes a packet sending rate adjustment policy, for example, the performance monitor automatically adjusts or prompts the user to manually adjust the packet sending rate of the data packet sender according to a numerical adjustment method such as a binary method with high numerical adjustment efficiency. And then, returning to execute S110-S130 until the switch to be tested meets the set performance condition in S120, and executing S140.
And S140, if so, the performance monitor acquires the packet sending rate of the data packet sender as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition.
Specifically, if it is determined in S120 that the switch to be tested satisfies the set performance condition, the performance monitor automatically or prompts the user to manually obtain the packet sending rate of the packet sender as the CPU performance parameter value of the switch to be tested when the switch to be tested satisfies the set performance condition.
The technical scheme of the embodiment is that a communication command is sent to a switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested, wherein the switch to be tested acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time; if the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate; returning to execute the operation of sending a communication command to the switch to be tested so as to monitor the communication parameters of the switch to be tested and the operation parameters of the switch to be tested until the performance monitor determines that the switch to be tested meets the set performance condition; and when the switch to be tested meets the set performance condition, the packet sending rate of the data packet sending instrument is obtained and used as the CPU performance parameter value of the switch to be tested. The problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch is solved, and the CPU performance of the network-managed two-layer switch is quickly and effectively tested, so that the performance test of the network-managed two-layer switch is more comprehensive.
Example two
Fig. 2 is a flowchart of a switch performance testing method according to a second embodiment of the present invention, and this embodiment further describes S120 on the basis of the foregoing embodiment, and sets the packet sending device as a hardware execution mode, that is, further optimizes S130 and S140. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted. The method of the embodiment comprises the following steps:
s210, the performance monitor sends a communication command to the switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested, wherein the switch to be tested obtains data packets sent by the data packet sending instrument according to a set packet sending rate in real time.
S220, the performance monitor determines whether the switch to be tested meets the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters.
According to the description of S120 in the first embodiment, the setting of the performance condition may include that the communication parameter is within a set communication parameter interval, and the operation parameter is normal. This situation corresponds to the performance monitor using the set performance conditions to test the maximum performance that can be achieved by the CPU of the switch under test.
Then, the switch under test satisfying the set performance condition corresponds to:
a1, in a set time period, the performance monitor judges that the communication parameter is in the set communication parameter interval and the operation parameter is normal. This situation corresponds to the CPU performance of the switch under test just reaching its maximum performance, at which point the CPU performance test may be stopped, i.e. the steps of S230 or S250 are not executed any more, and S240 or S260 is executed directly.
Accordingly, the switch under test not satisfying the set performance condition corresponds to:
b1, in a set time period, the performance monitor judges that the communication parameter is not in the set communication parameter interval and/or the operation parameter is abnormal.
Further, the unsatisfied set performance condition B1 may be:
and B11, in a set time period, the performance monitor judges that the communication parameter is smaller than the minimum interval value of the set communication parameter interval, and the operation parameter is normal. The situation corresponds to the normal communication condition of the switch to be tested, and the running condition is also normal, namely the switch to be tested does not reach the maximum performance of the CPU, the amount of the processed data packets can be continuously increased, namely the packet sending rate of the data packet sending instrument can be continuously adjusted upwards.
And B12, in a set time period, the performance monitor judges that the communication parameter is larger than the interval maximum value of the set communication parameter interval and/or the operation parameter is abnormal. The situation corresponds to the fact that the communication condition of the switch to be tested is abnormal, or the operation condition is abnormal, or both the communication condition and the operation condition are abnormal, namely the switch to be tested already reaches the maximum performance of the CPU, and the switch to be tested can not process all data packets acquired at present, namely the packet sending rate of the data packet sending instrument needs to be adjusted downwards, so that the data packet amount processed by the CPU of the switch to be tested is reduced.
According to the description of S120 in the first embodiment, the setting of the performance condition may further include that the set packet sending rate is not less than the set required packet sending rate, the communication parameter is within the set communication parameter interval, and the operation parameter is normal. This situation corresponds to the performance monitor using the set performance conditions to test whether the CPU performance of the switch under test meets the CPU performance required by the user.
Then, the switch under test satisfying the set performance condition corresponds to:
a2, in a set time period, the set packet sending rate is not less than the set required packet sending rate, the communication parameters are in the set communication parameter interval, and the operation parameters are normal. This situation corresponds to the packet amount that the packet amount processed by the switch CPU to be tested has already reached the user's demand, and the communication status of the switch to be tested is normal, and the operating conditions are also normal, i.e., the switch CPU performance to be tested is sufficient to meet the user's demand. At this time, it is preferable to stop the CPU performance test of the switch under test, i.e. not to execute the step of S230 or S250, but to directly execute S240 or S260, so as to save the test time and resource consumption. Of course, the user may also choose to continue the CPU performance test to determine the maximum performance of the CPU, and at this time, the execution may be continued according to the operation of testing the maximum performance of the CPU.
Accordingly, the switch under test not satisfying the set performance condition corresponds to:
and B2, in a set time period, the performance monitor judges that the set packet sending rate is less than the set required packet sending rate.
Further, the unsatisfied set performance condition B2 may be:
and B21, in a set time period, the performance monitor judges that the set packet sending rate is less than the set required packet sending rate, the communication parameter is less than or equal to the interval maximum value of the set communication parameter interval, and the operation parameter is normal. The situation corresponds to the data packet quantity processed by the CPU of the switch to be tested, which does not reach the data packet quantity required by the user, the communication condition of the switch to be tested is normal, the running condition is normal, namely, the switch to be tested does not reach the performance required by the CPU, the data packet quantity processed by the switch to be tested can be increased continuously, namely, the packet sending rate of the data packet sender can be adjusted continuously.
And B22, in a set time period, the performance monitor judges that the set packet sending rate is less than the set required packet sending rate, and the communication parameter is greater than the interval maximum value of the set communication parameter interval or the operation parameter is abnormal. This situation corresponds to the situation that the amount of the data packets processed by the CPU of the switch to be tested has not yet reached the amount of the data packets required by the user, but the communication condition, or the operation condition, or both the communication condition and the operation condition of the switch to be tested are abnormal, that is, although the CPU performance of the switch to be tested has not yet reached the CPU performance required by the user, the CPU performance has already reached the maximum CPU performance, and the switch to be tested cannot process all the data packets acquired at present. That is, the switch under test is not able to meet the user's requirement, and the CPU performance test of the switch under test is preferably stopped, i.e., no further operation is performed. Certainly, the user may also choose to continue to test the CPU performance of the switch to be tested to determine the maximum performance of the CPU for comparing the difference between the maximum performance of the CPU and the user requirement.
Specifically, the performance monitor may determine whether the switch under test satisfies the set performance condition according to the set packet sending rate, the communication parameter, the operation parameter, and any one of the above conditions, and then execute S230 or S240.
And S230, if not, the performance monitor displays prompt information for adjusting the current packet sending rate of the data packet sending instrument so as to prompt a user to adjust the current packet sending rate of the data packet sending instrument according to the prompt information, and the prompt information comprises a set adjusting method and/or an adjusting value.
The setting adjustment method is a preset adjustment method of packet sending rate, such as dichotomy.
Specifically, if it is determined in S220 that the switch to be tested does not satisfy the set performance condition, the performance monitor displays a prompt message for adjusting the current packet sending rate of the packet sending instrument, so that the user manually adjusts the packet sending rate of the packet sending instrument according to the prompt message, and then executes S210-S230 until it is determined in S220 that the switch to be tested satisfies the set performance condition, and executes S240.
For example, the user is prompted to adjust the current packet sending rate of the data packet sending instrument according to the set adjusting method and the set packet sending rate, or the user is directly prompted to specifically adjust the value. Whether the packet sending rate is adjusted up or down can be prompted according to the specific situation in S220. For example, if the performance monitor determines that the switch to be tested does not satisfy the set performance condition corresponds to B11 or B21 in S220, the user is prompted to adjust the current packet sending rate of the packet sender; and if the performance monitor determines that the condition that the switch to be tested does not meet the set performance condition corresponds to B12 or B22 in S220, the user is prompted to adjust the current packet sending rate of the packet sender downwards.
And S240, if so, the performance monitor acquires the system time when the switch to be tested meets the set performance condition, and displays the system time so that a user determines the packet sending rate corresponding to the system time in the packet sending log of the data packet sending instrument as the CPU performance parameter value of the switch to be tested.
The package sending log is a work record of the data package sending instrument and can record package sending time, package sending rate, package sending state and other information.
Specifically, if it is determined in S220 that the switch to be tested satisfies the set performance condition, the performance monitor acquires the system time when the switch to be tested satisfies the set performance condition, and then displays the system time, so that the user can manually determine the packet sending rate of the system time in the packet sending log of the data packet sender according to the system time, and the packet sending rate is used as the CPU performance parameter value of the switch to be tested.
The technical scheme of the embodiment solves the problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch, realizes the manual adjustment of the packet sending rate of the data packet sending instrument, further manually determines the CPU performance parameter value of the switch to be tested, and can effectively test the CPU performance of the network-managed two-layer switch, thereby enabling the performance test of the network-managed two-layer switch to be more comprehensive.
EXAMPLE III
Fig. 3 is a flowchart of a method for testing performance of an exchange according to a third embodiment of the present invention, where in this embodiment, a data packet sender is set as a software execution mode based on the third embodiment, that is, if the data packet sender is not the same as the first embodiment, a packet sending rate adjustment policy is executed by a performance monitor so that the data packet sender changes a current packet sending rate, and if the data packet sender is the same as the second embodiment, the performance monitor obtains the packet sending rate of the data packet sender as a CPU performance parameter value of the exchange to be tested, and further optimizes the packet sending rate when the exchange to be tested meets a set performance condition. Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 3, the method of the present embodiment includes:
s310, the performance monitor sends a communication command to the switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested, wherein the switch to be tested obtains data packets sent by the data packet sending instrument according to a set packet sending rate in real time.
S320, the performance monitor determines whether the switch to be tested meets the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters.
S330, if not, the performance monitor adjusts the current packet sending rate of the data packet sender according to the set adjusting method.
Specifically, if it is determined in S320 that the switch to be tested does not satisfy the set performance condition, the performance monitor may automatically adjust the current packet sending rate of the packet sending device according to the set packet sending rate, the set adjustment method, and the specific determination condition that the set performance condition is not satisfied, and then perform S310-S330, until it is determined in S320 that the switch to be tested satisfies the set performance condition, perform S340 and S350. For specific determination that the set performance condition is not satisfied, see the specific descriptions of B1, B11, B12, B2, B21, and B22 in example two S220.
For example, the current value of the packet sending rate can be automatically determined to be adjusted up or down according to the above specific determination in S220. The relationship between the up-regulation packet sending rate or the down-regulation packet sending rate and the specific determination condition in S220 can be referred to the specific description in the second embodiment S230, and the specific rate regulation value is automatically determined by the set packet sending rate and the set regulation method.
And S340, if so, the performance monitor acquires the system time and the packet sending log when the switch to be tested meets the set performance condition.
Specifically, if it is determined in S320 that the switch under test satisfies the set performance condition, the performance monitor automatically obtains the system time when the switch under test satisfies the set performance condition and the packet sending log of the packet sender, and then executes S350.
Of course, if the determination in S320 that the switch to be tested satisfies the set performance condition is the case a2 in the second embodiment S220, that is, the CPU performance of the switch to be tested already satisfies the CPU performance requirement of the user, but the CPU maximum performance of the switch to be tested has not been reached, and the user selects to continue the CPU performance test, the process may continue to return to S310-S330 until the switch to be tested is determined to satisfy the set performance condition corresponding to the CPU maximum performance in S320, and then the step is executed again.
And S350, taking the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch to be tested.
Specifically, after the performance monitor acquires the system time and the packet sending log, the performance monitor automatically determines the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch to be tested.
The technical scheme of the embodiment solves the problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch, realizes automatic adjustment of the packet sending rate of the data packet sending instrument, further automatically determines the CPU performance parameter value of the switch to be tested, and achieves the effect of quickly and effectively testing the CPU performance of the network-managed two-layer switch, thereby enabling the performance test of the network-managed two-layer switch to be more comprehensive.
It should be noted that, for the adjustment of the packet sending rate and the automatic determination of the CPU performance parameter value, in addition to the implementation manner of the third embodiment, the adjustment may be implemented by establishing a communication connection between the packet sender and the performance monitor. For example, the performance monitor obtains a packet sending log of the packet sending instrument in real time, and sends the determined packet sending rate adjustment value to the packet sending instrument in real time, so that the packet sending instrument correspondingly adjusts the packet sending rate, and automatic adjustment of the packet sending rate and automatic determination of the CPU performance parameter value are realized.
The following is an embodiment of the switch performance testing apparatus provided in the embodiments of the present invention, and the apparatus and the switch performance testing method in the embodiments described above belong to the same inventive concept, and details that are not described in detail in the embodiment of the switch performance testing apparatus may refer to the embodiment of the switch performance testing method described above.
Example four
Fig. 4 is a schematic structural diagram of a switch performance testing apparatus according to a fourth embodiment of the present invention, where the apparatus specifically includes:
the parameter monitoring module 410 is configured to send a communication command to a switch to be tested to monitor a communication parameter with the switch to be tested and an operation parameter of the switch to be tested, where the switch to be tested obtains a data packet sent by a data packet sending instrument according to a set packet sending rate in real time, and the switch to be tested is a network-managed two-layer switch;
a packet sending rate adjusting module 420, configured to execute a packet sending rate adjusting policy if it is determined that the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameter, and the operation parameter, so that the data packet sender changes the current packet sending rate;
a loop operation module 430, configured to trigger execution of the parameter monitoring module 410 until the performance monitor determines that the switch to be tested meets a set performance condition;
the CPU performance parameter value determining module 440 is configured to obtain a packet sending rate of the data packet sending instrument as a CPU performance parameter value of the switch to be tested when the switch to be tested satisfies a set performance condition.
The parameter monitoring module 410 is specifically configured to:
the performance monitor sends a PING command to the switch to be tested;
and the performance monitor monitors the packet loss rate and/or the time delay of a data packet returned by the PING command as a communication parameter with the switch to be tested.
Wherein the performance monitor is a computer; or, the data packet comprises a protocol data packet and/or a management data packet; or, the operation parameter includes at least one of whether a CPU of the switch is overloaded, whether a memory is leaked, whether a system process is lost, and whether the switch to be tested is operating.
Optionally, the setting of the performance condition includes that the communication parameter is within a set communication parameter interval, and the operation parameter is normal;
accordingly, the packet sending rate adjusting module 420 is specifically configured to:
and if the performance monitor judges that the communication parameters are not in the set communication parameter interval and/or the operation parameters are abnormal in a set time period, executing a packet sending rate adjustment strategy to enable the data packet sender to change the current packet sending rate.
Optionally, the setting of the performance condition includes that the set packet sending rate is not less than a set required packet sending rate, the communication parameter is within the set communication parameter interval, and the operating parameter is normal;
accordingly, the packet sending rate adjusting module 420 is specifically configured to:
and if the performance monitor judges that the set packet sending rate is less than the set required packet sending rate within a set time period, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate.
Optionally, the data packet sender is a stand-alone hardware,
accordingly, the packet sending rate adjusting module 420 is specifically configured to:
the performance monitor displays prompt information for adjusting the current packet sending rate of the data packet sending instrument so as to prompt a user to adjust the current packet sending rate of the data packet sending instrument according to the prompt information, and the prompt information comprises a set adjusting method and/or an adjusting value;
accordingly, the CPU performance parameter value determining module 440 is specifically configured to:
and the performance monitor acquires the system time when the switch to be tested meets the set performance condition and displays the system time so that a user determines the packet sending rate corresponding to the system time in the packet sending log of the data packet sending instrument as the CPU performance parameter value of the switch to be tested.
Optionally, the packet transmitter is configured in the performance monitor,
accordingly, the packet sending rate adjusting module 420 is specifically configured to:
the performance monitor adjusts the current packet sending rate of the data packet sending instrument according to the set adjusting method;
accordingly, the CPU performance parameter value determining module 440 is specifically configured to:
the performance monitor acquires the system time and the packet sending log when the switch to be tested meets the set performance condition;
and taking the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch to be tested.
The switch performance testing device of the third embodiment of the invention solves the problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch, and realizes the quick and effective test of the CPU performance of the network-managed two-layer switch, thereby enabling the performance test of the network-managed two-layer switch to be more comprehensive.
The switch performance testing device provided by the embodiment of the invention can execute the switch performance testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the embodiment of the switch performance testing apparatus, each included module is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific names of the functional modules are only for convenience of distinguishing from each other and are not used for limiting the protection scope of the present invention.
The following is an embodiment of the switch performance testing system provided in the embodiments of the present invention, and the system and the switch performance testing method in the embodiments described above belong to the same inventive concept, and details that are not described in detail in the embodiment of the switch performance testing system may refer to the embodiment of the switch performance testing method described above.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a switch performance testing system according to a fifth embodiment of the present invention, where the system specifically includes:
the switch to be tested 510, wherein the switch to be tested 510 is a network-managed two-layer switch;
a data packet transmitter 520, connected to the switch 510 to be tested, for receiving a set packet transmission rate and transmitting a data packet to the switch 510 to be tested according to the set packet transmission rate;
the performance monitor 530 is connected with the switch 510 to be tested, and the performance monitor 530 comprises a parameter monitoring device, a packet sending rate adjusting device, a cycle operation device and a CPU performance parameter value determining device;
the parameter monitoring device is used for sending a communication command to the switch to be tested 510 so as to monitor the communication parameters of the switch to be tested 510 and the operation parameters of the switch to be tested 510;
the packet sending rate adjusting device is configured to execute a packet sending rate adjusting policy if it is determined that the switch 510 to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameter, and the operation parameter, so that the data packet sender 520 changes the current packet sending rate;
the loop operation device is configured to trigger execution of the parameter monitoring device until the performance monitor 530 determines that the switch 510 to be tested meets a set performance condition;
the CPU performance parameter value determining device is configured to obtain a packet sending rate of the data packet sending instrument 520 as a CPU performance parameter value of the switch to be tested 510 when the switch to be tested 510 satisfies a set performance condition.
The data packet sending instrument 520 is connected to the switch 510 to be tested through a twisted pair 501, where the twisted pair 501 may be a common 5-type twisted pair, and connects the data packet sending instrument 520 to a common port of the switch 510 to be tested; the performance monitor 530 is connected to the switch 510 to be tested through a twisted pair 501 and a configuration line 502, the twisted pair 501 may be a common 5-type twisted pair, and connects the network port of the performance monitor 530 to the common port of the switch 510 to be tested, the configuration line 502 (i.e., a console line) is a serial port line, and connects the serial port of the performance monitor 530 to the console port of the switch 510 to be tested.
Optionally, the packet sending rate adjusting device is specifically configured to:
and displaying prompt information for adjusting the current packet sending rate of the data packet sending instrument 520 to prompt a user to adjust the current packet sending rate of the data packet sending instrument 520 according to the prompt information, wherein the prompt information comprises a setting adjustment method and/or an adjustment value.
Optionally, the CPU performance parameter value determining apparatus is specifically configured to:
and acquiring the system time when the switch to be tested 510 meets the set performance condition, and displaying the system time so that a user determines the packet sending rate corresponding to the system time in the packet sending log of the data packet sending instrument 520 as the CPU performance parameter value of the switch to be tested 510.
The switch performance testing system of the fourth embodiment of the invention solves the problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch, and realizes the quick and effective test of the CPU performance of the network-managed two-layer switch, thereby enabling the performance test of the network-managed two-layer switch to be more comprehensive.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a switch performance testing system according to a sixth embodiment of the present invention, where the system specifically includes:
the switch 610 to be tested is a network-managed two-layer switch 610;
a performance monitor 620 connected to the switch under test 610, referring to fig. 7, the performance monitor 620 includes a packet sending device 721, a parameter monitoring device 722, a packet sending rate adjusting device 723, a loop operation device 724, and a CPU performance parameter value determining device 725;
the data packet sending device 721 is configured to send a data packet to the switch to be tested 610 according to the set packet sending rate;
the parameter monitoring device 722 is configured to send a communication command to the switch under test 610, so as to monitor a communication parameter with the switch under test 610 and an operation parameter of the switch under test 610;
the packet sending rate adjusting device 723 is configured to execute a packet sending rate adjusting policy if it is determined that the switch 610 to be tested does not meet a set performance condition according to at least one of the set packet sending rate, the communication parameter, and the operation parameter, so that the data packet sending device 721 changes a current packet sending rate;
the loop operation device 724 is configured to trigger the execution of the parameter monitoring device 722 until the performance monitor 620 determines that the switch 610 under test satisfies a set performance condition;
the CPU performance parameter value determining means 725 is configured to obtain the packet sending rate of the packet sending means 721 when the switch 610 to be tested satisfies the set performance condition, as the CPU performance parameter value of the switch 610 to be tested.
The performance monitor 620 is connected to the switch under test 610 through a twisted pair 601 and a configuration line 602. The twisted pair 601 may be a normal category 5 twisted pair, which connects the network port of the performance monitor 620 with the normal port of the switch 610 to be tested, and the configuration line 602 (i.e., the console line) is a serial port, which connects the serial port of the performance monitor 620 with the console port of the switch 610 to be tested.
Optionally, the packet sending rate adjusting device 723 is specifically configured to:
the current packet transmission rate of the packet transmission device 721 is adjusted according to the setting adjustment method.
Optionally, the CPU performance parameter value determining device 725 is specifically configured to:
acquiring system time when the switch 610 to be tested meets a set performance condition and a packet sending log of the data packet sending device 721;
and taking the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch 610 to be tested.
The switch performance testing system of the fifth embodiment of the invention solves the problem that the network-managed two-layer switch cannot test the CPU performance of the network-managed two-layer switch, and realizes the quick and effective test of the CPU performance of the network-managed two-layer switch, thereby enabling the performance test of the network-managed two-layer switch to be more comprehensive.
The switch performance testing system provided by the embodiment of the invention can execute the switch performance testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for testing switch performance, comprising:
the performance monitor sends a communication command to a to-be-tested switch to monitor communication parameters of the to-be-tested switch and operation parameters of the to-be-tested switch, wherein the to-be-tested switch acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time and is a network-managed two-layer switch;
if the performance monitor determines that the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate;
returning to the performance monitor to send a communication command to the switch to be tested so as to monitor the communication parameters of the switch to be tested and the operation of the running parameters of the switch to be tested until the performance monitor determines that the switch to be tested meets the set performance condition;
the performance monitor acquires the packet sending rate of the data packet sending instrument as a CPU performance parameter value of the switch to be tested when the switch to be tested meets a set performance condition;
the set performance condition comprises that the set packet sending rate is not less than a set required packet sending rate, the communication parameter is in a set communication parameter interval, and the operation parameter is normal;
correspondingly, if the performance monitor determines that the switch to be tested does not meet the set performance condition according to at least one of the set packet sending rate, the communication parameter and the operation parameter, executing a packet sending rate adjustment strategy to enable the data packet sender to change the current packet sending rate includes:
and if the performance monitor judges that the set packet sending rate is less than the set required packet sending rate within a set time period, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate.
2. The method of claim 1, wherein the performance monitor sending communication commands to a switch under test to monitor communication parameters with the switch under test comprises:
the performance monitor sends a PING command to the switch to be tested;
and the performance monitor monitors the packet loss rate and/or the time delay of a data packet returned by the PING command as a communication parameter with the switch to be tested.
3. The method of claim 1,
the performance monitor is a computer; or the like, or, alternatively,
the data packet comprises a protocol data packet and/or a management data packet; or the like, or, alternatively,
the operation parameters comprise at least one of whether a CPU is overloaded or not, whether a memory is leaked or not, whether a system process is lost or not and whether the switch to be tested operates or not.
4. The method according to any one of claims 1 to 3, wherein the packet transmitter is a stand-alone hardware,
correspondingly, the executing the packet sending rate adjustment strategy comprises the following steps:
the performance monitor displays prompt information for adjusting the current packet sending rate of the data packet sending instrument so as to prompt a user to adjust the current packet sending rate of the data packet sending instrument according to the prompt information, and the prompt information comprises a set adjusting method and/or an adjusting value;
correspondingly, the performance monitor acquiring the packet sending rate of the data packet sender as the CPU performance parameter value of the switch to be tested when the switch to be tested satisfies the set performance condition includes:
and the performance monitor acquires the system time when the switch to be tested meets the set performance condition and displays the system time so that a user determines the packet sending rate corresponding to the system time in the packet sending log of the data packet sending instrument as the CPU performance parameter value of the switch to be tested.
5. The method of any of claims 1-3, wherein the packet transmitter is configured in the performance monitor,
correspondingly, the executing the packet sending rate adjustment strategy comprises the following steps:
the performance monitor adjusts the current packet sending rate of the data packet sending instrument according to a set adjusting method;
correspondingly, the performance monitor acquiring the packet sending rate of the data packet sender as the CPU performance parameter value of the switch to be tested when the switch to be tested satisfies the set performance condition includes:
the performance monitor acquires system time and a packet sending log when the switch to be tested meets set performance conditions;
and taking the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch to be tested.
6. A switch performance testing device is applied to a performance monitor and is characterized by comprising:
the system comprises a parameter monitoring module, a data packet sending module and a data packet receiving module, wherein the parameter monitoring module is used for sending a communication command to a to-be-tested switch so as to monitor communication parameters of the to-be-tested switch and operation parameters of the to-be-tested switch, the to-be-tested switch acquires a data packet sent by a data packet sending instrument according to a set packet sending rate in real time, and the to-be-tested switch is a network-managed two-layer switch;
a packet sending rate adjusting module, configured to execute a packet sending rate adjusting policy if it is determined that the switch to be tested does not meet a set performance condition according to at least one of the set packet sending rate, the communication parameter, and the operation parameter, so that the data packet sender changes a current packet sending rate;
the circulating operation module is used for triggering the execution of the parameter monitoring module until the switch to be tested is determined to meet the set performance condition;
the CPU performance parameter value determining module is used for acquiring the packet sending rate of the data packet sending instrument as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition;
the set performance condition comprises that the set packet sending rate is not less than a set required packet sending rate, the communication parameter is in a set communication parameter interval, and the operation parameter is normal;
correspondingly, the packet sending rate adjusting module is specifically configured to:
and if the performance monitor judges that the set packet sending rate is less than the set required packet sending rate within a set time period, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate.
7. A switch performance testing system, comprising:
the switch to be tested is a network-managed two-layer switch;
the data packet sending instrument is connected with the switch to be tested and used for receiving a set packet sending rate and sending a data packet to the switch to be tested according to the set packet sending rate;
the performance monitor is connected with the switch to be tested and comprises a parameter monitoring device, a packet sending rate adjusting device, a cyclic operation device and a CPU performance parameter value determining device;
the parameter monitoring device is used for sending a communication command to a switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested;
the packet sending rate adjusting device is used for executing a packet sending rate adjusting strategy to enable the data packet sending instrument to change the current packet sending rate if the switch to be tested is determined not to meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters;
the circulating operation device is used for triggering the execution of the parameter monitoring device until the performance monitor determines that the switch to be tested meets the set performance condition;
the CPU performance parameter value determining device is used for acquiring the packet sending rate of the data packet sending instrument as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition;
the set performance condition comprises that the set packet sending rate is not less than a set required packet sending rate, the communication parameter is in a set communication parameter interval, and the operation parameter is normal;
correspondingly, the packet sending rate adjusting device is specifically configured to:
and if the performance monitor judges that the set packet sending rate is less than the set required packet sending rate within a set time period, executing a packet sending rate adjustment strategy to enable the data packet sending instrument to change the current packet sending rate.
8. The system of claim 7,
the data packet sending instrument is connected with the switch to be tested through a twisted pair; the performance monitor is connected with the switch to be tested through a twisted pair and a configuration line; or
The packet sending rate adjusting device is specifically configured to:
displaying prompt information for adjusting the current packet sending rate of the data packet sending instrument to prompt a user to adjust the current packet sending rate of the data packet sending instrument according to the prompt information, wherein the prompt information comprises a set adjusting method and/or an adjusting value; or the like, or, alternatively,
the CPU performance parameter value determination apparatus is specifically configured to:
and acquiring the system time when the switch to be tested meets the set performance condition, and displaying the system time so that a user determines the packet sending rate corresponding to the system time in the packet sending log of the data packet sending instrument as the CPU performance parameter value of the switch to be tested.
9. A switch performance testing system, comprising:
the switch to be tested is a network-managed two-layer switch;
the performance monitor is connected with the switch to be tested and comprises a data packet sending device, a parameter monitoring device, a packet sending rate adjusting device, a cyclic operation device and a CPU performance parameter value determining device;
the data packet sending device is used for sending data packets to the switch to be tested according to a set packet sending rate;
the parameter monitoring device is used for sending a communication command to a switch to be tested so as to monitor communication parameters of the switch to be tested and operation parameters of the switch to be tested;
the packet sending rate adjusting device is used for executing a packet sending rate adjusting strategy to enable the data packet sending device to change the current packet sending rate if the switch to be tested is determined not to meet the set performance condition according to at least one of the set packet sending rate, the communication parameters and the operation parameters;
the circulating operation device is used for triggering the execution of the parameter monitoring device until the performance monitor determines that the switch to be tested meets the set performance condition;
the CPU performance parameter value determining device is used for acquiring the packet sending rate of the data packet sending device as the CPU performance parameter value of the switch to be tested when the switch to be tested meets the set performance condition;
the set performance condition comprises that the set packet sending rate is not less than a set required packet sending rate, the communication parameter is in a set communication parameter interval, and the operation parameter is normal;
correspondingly, the packet sending rate adjusting device is specifically configured to:
and if the performance monitor judges that the set packet sending rate is less than the set required packet sending rate within a set time period, executing a packet sending rate adjustment strategy to enable the data packet sending device to change the current packet sending rate.
10. The system of claim 9,
the performance monitor is connected with the switch to be tested through a twisted pair and a configuration line; or the like, or, alternatively,
the packet sending rate adjusting device is specifically configured to:
adjusting the current packet sending rate of the data packet sending device according to a set adjusting method; or the like, or, alternatively,
the CPU performance parameter value determination apparatus is specifically configured to:
acquiring system time and a packet sending log of the data packet sending device when the switch to be tested meets set performance conditions;
and taking the packet sending rate corresponding to the system time in the packet sending log as a CPU performance parameter value of the switch to be tested.
CN201710373080.9A 2017-05-24 2017-05-24 Switch performance test method, device and system Active CN107196820B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710373080.9A CN107196820B (en) 2017-05-24 2017-05-24 Switch performance test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710373080.9A CN107196820B (en) 2017-05-24 2017-05-24 Switch performance test method, device and system

Publications (2)

Publication Number Publication Date
CN107196820A CN107196820A (en) 2017-09-22
CN107196820B true CN107196820B (en) 2020-08-18

Family

ID=59874307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710373080.9A Active CN107196820B (en) 2017-05-24 2017-05-24 Switch performance test method, device and system

Country Status (1)

Country Link
CN (1) CN107196820B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547561B (en) * 2017-09-25 2020-10-30 新华三信息安全技术有限公司 Method and device for carrying out DDOS attack protection processing
CN109302323B (en) * 2018-11-20 2022-03-18 超越科技股份有限公司 Dynamic monitoring system for switch
CN109728978B (en) * 2019-01-29 2023-04-07 中国航空无线电电子研究所 AFDX (avionics full Duplex switched Ethernet) switch line speed control capability test method considering clock drift
CN111385166A (en) * 2020-02-21 2020-07-07 苏州浪潮智能科技有限公司 Network switch testing method, device, equipment and storage medium
CN112217670A (en) * 2020-09-29 2021-01-12 北京东土军悦科技有限公司 Network device and message processing method thereof
CN114363214A (en) * 2021-12-31 2022-04-15 中国信息通信研究院 Method and device for switch anti-seismic test, computer equipment and storage medium
CN115297070B (en) * 2022-07-15 2024-02-27 中国航空无线电电子研究所 Multi-metadata-excited ARINC664 switch cache overflow test method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164058A (en) * 2011-05-13 2011-08-24 北京航空航天大学 IEC61850 standard transformer substation based communication network and system test method
CN102497659A (en) * 2011-12-05 2012-06-13 中国电信股份有限公司 Method and system for network selection under dual-network coverage, and dual-mode terminal
CN104394043A (en) * 2014-12-17 2015-03-04 上海斐讯数据通信技术有限公司 Switch testing device and method
CN105337890A (en) * 2014-07-16 2016-02-17 杭州迪普科技有限公司 Control strategy generation method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164058A (en) * 2011-05-13 2011-08-24 北京航空航天大学 IEC61850 standard transformer substation based communication network and system test method
CN102497659A (en) * 2011-12-05 2012-06-13 中国电信股份有限公司 Method and system for network selection under dual-network coverage, and dual-mode terminal
CN105337890A (en) * 2014-07-16 2016-02-17 杭州迪普科技有限公司 Control strategy generation method and apparatus
CN104394043A (en) * 2014-12-17 2015-03-04 上海斐讯数据通信技术有限公司 Switch testing device and method

Also Published As

Publication number Publication date
CN107196820A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107196820B (en) Switch performance test method, device and system
US10951733B2 (en) Route selection method and system, network acceleration node, and network acceleration system
CN106817264B (en) Method, device and system for detecting link fault
US7545750B2 (en) Apparatus and method for detecting network failure
CN107070689B (en) Method and apparatus for reducing false alarms when using network keep-alive messages
US20150319090A1 (en) Method and apparatus for notifying network abnormality
CN111682989B (en) Method, device and system for detecting port link state
CN112491700B (en) Network path adjustment method, system, device, electronic equipment and storage medium
CN111786804B (en) Link fault monitoring method and device
CN102761461B (en) A kind of link health examination method and device
US7561587B2 (en) Method and system for providing layer-4 switching technologies
CN107547430B (en) Message sending method and device
CN107645479B (en) Method and terminal for realizing multi-activity high availability of firewall
JP2023126364A (en) Congestion avoidance in slice-based network
CN102611630B (en) A kind of message acceptance control method and system
CN101841424B (en) EMS network management system and method based on SOCKS proxy connection
JP2010538551A (en) Method and system for automatically confirming connectivity status of an IP link on an IP network
US20230087446A1 (en) Network monitoring method, electronic device and storage medium
US7746949B2 (en) Communications apparatus, system and method of creating a sub-channel
CN110380981B (en) Flow distribution method and equipment
US10924341B2 (en) Communication device, communication method and communication system
CN101753372B (en) Detection method and device of bearer network router equipment
CN114268578B (en) Data transmission method, device, equipment and storage medium for switching line
CN106301832B (en) Method and device for processing system log message
CN112039792B (en) Network scanning scheduling method for avoiding congestion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant