CN107196820A - A kind of switch performance method of testing, apparatus and system - Google Patents
A kind of switch performance method of testing, apparatus and system Download PDFInfo
- Publication number
- CN107196820A CN107196820A CN201710373080.9A CN201710373080A CN107196820A CN 107196820 A CN107196820 A CN 107196820A CN 201710373080 A CN201710373080 A CN 201710373080A CN 107196820 A CN107196820 A CN 107196820A
- Authority
- CN
- China
- Prior art keywords
- interchanger
- measured
- packet
- performance
- sending speed
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/22—Traffic shaping
- H04L47/225—Determination of shaping rate, e.g. using a moving window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
Abstract
The embodiment of the invention discloses a kind of switch performance method of testing, device and system.This method includes:Communications command is sent to interchanger to be measured, to monitor messaging parameter and operational factor with interchanger to be measured, the interchanger to be measured obtains packet and sends the packet that instrument is sent according to setting packet sending speed in real time;If determining that interchanger to be measured is unsatisfactory for setting performance condition according at least one of setting packet sending speed, messaging parameter and operational factor, packet sending speed adjustable strategies are performed, so that packet sends instrument and changes current packet sending speed;Return to perform to interchanger to be measured and send communications command, to monitor messaging parameter and the operation of operational factor with interchanger to be measured, until determining that interchanger to be measured meets setting performance condition;The packet sending speed for obtaining now packet transmission instrument is used as the cpu performance parameter value of interchanger to be measured.By above-mentioned technical proposal, realize quickly and efficiently pair can the cpu performance of webmaster Layer 2 switch test.
Description
Technical field
The present embodiments relate to Performance Testing Technology, more particularly to a kind of switch performance method of testing, device and it is
System.
Background technology
For traditional Layer 2 switch, it is typically the forwarding for being used to carry out data-signal.Therefore, at present to traditional two layers
When interchanger carries out performance test, more is that its data forwarding capability is tested, that is, tests in Layer 2 switch exchanging
RFC2544 performance tests or RFC2889 performance tests in the performance of chip, such as RFC standards, primary concern is all to exchange
The parameters such as the handling capacity and time delay of chip.
With the use demand of people improve and technology development, occur in that can webmaster Layer 2 switch, it is except can
Carry out data-signal forwarding outside, the management function to Layer 2 switch is also provided, you can in webmaster Layer 2 switch except
Outside exchange chip, central processing unit (Central Processing Unit, CPU) is also mainly included.CPU is mainly used
Can such as address resolution protocol (the Address Resolution that are subjected to of webmaster Layer 2 switch in preferably reply
Protocol, ARP) attack or distributed denial of service (Distributed Denial of Service, DDoS) attack etc.
Network attack, it is ensured that the security of data, and to be sent to can webmaster Layer 2 switch protocol data bag and management packet
Efficiently handled, so that all Internet resources are in good state.So, CPU that can be in webmaster Layer 2 switch
Performance for can the overall performance of webmaster Layer 2 switch also have a great impact.So, pair can webmaster Layer 2 switch enter
During row performance test, it is impossible to only the data forwarding performance of exchange chip is tested, also its cpu performance should be tested.
The content of the invention
The embodiment of the present invention provides a kind of switch performance method of testing, apparatus and system, quickly and efficiently right to realize
Can the cpu performance of webmaster Layer 2 switch tested.
In a first aspect, the embodiments of the invention provide a kind of switch performance method of testing, including:
Performance monitor sends communications command to interchanger to be measured, to monitor the messaging parameter with the interchanger to be measured,
And the operational factor of the interchanger to be measured, wherein, the interchanger to be measured obtains packet and sends instrument according to setting in real time
The packet that packet sending speed is sent, and the interchanger to be measured is can webmaster Layer 2 switch;
If the performance monitor is according in the setting packet sending speed, the messaging parameter and the operational factor
At least one determines that the interchanger to be measured is unsatisfactory for setting performance condition, then packet sending speed adjustable strategies is performed, so that described
Packet sends instrument and changes current packet sending speed;
Return and perform the performance monitor to interchanger to be measured transmission communications command, to monitor and the interchanger to be measured
Messaging parameter, and the operational factor of the interchanger to be measured operation, until the performance monitor determine it is described to be measured
Interchanger meets setting performance condition;
The performance monitor is obtained when the interchanger to be measured meets setting performance condition, and the packet sends instrument
Packet sending speed as the interchanger to be measured cpu performance parameter value.
Second aspect, the embodiment of the present invention additionally provides a kind of switch performance test device, and the device includes:
Parameter monitoring module, it is logical with the interchanger to be measured to monitor for sending communications command to interchanger to be measured
Believe parameter, and the interchanger to be measured operational factor, wherein, the interchanger to be measured obtain in real time packet send instrument press
The packet sent according to setting packet sending speed, and the interchanger to be measured is can webmaster Layer 2 switch;
Packet sending speed adjusting module, if for according to the setting packet sending speed, the messaging parameter and the operation
At least one of parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies,
So that the packet sends instrument and changes current packet sending speed;
Circulate operation module, is triggered for the execution to the parameter monitoring module, until the performance monitor
Determine that the interchanger to be measured meets setting performance condition;
Cpu performance parameter value determining module, it is described for obtaining when the interchanger to be measured meets setting performance condition
The packet sending speed that packet sends instrument is used as the cpu performance parameter value of the interchanger to be measured.
The third aspect, the embodiment of the present invention additionally provides a kind of switch performance test system, and the system includes:
Interchanger to be measured, the interchanger to be measured is can webmaster Layer 2 switch;
Packet sends instrument, is connected with the interchanger to be measured, for receiving setting packet sending speed, and according to the setting
Packet sending speed sends packet to the interchanger to be measured;
Performance monitor, is connected with the interchanger to be measured, and the performance monitor includes parameter monitoring device, speed of giving out a contract for a project
Rate adjusting apparatus, circulate operation device and cpu performance parameter value determining device;
The parameter monitoring device is used to send communications command to interchanger to be measured, to monitor and the interchanger to be measured
Messaging parameter, and the interchanger to be measured operational factor;
If the packet sending speed adjusting apparatus is used for according to the setting packet sending speed, the messaging parameter and the fortune
At least one of row parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustment plan
Slightly, so that the packet sends instrument and changes current packet sending speed;
The execution that the circulate operation device is used for the parameter monitoring device is triggered, until the performance monitoring
Device determines that the interchanger to be measured meets setting performance condition;
The cpu performance parameter value determining device is used to obtain when the interchanger to be measured meets setting performance condition,
The packet sending speed that the packet sends instrument is used as the cpu performance parameter value of the interchanger to be measured.
Fourth aspect, the embodiment of the present invention additionally provides a kind of switch performance test system, and the system includes:
Interchanger to be measured, the interchanger to be measured is can webmaster Layer 2 switch;
Performance monitor, is connected with the interchanger to be measured, and the performance monitor includes data packet transmitter, parameter
Supervising device, packet sending speed adjusting apparatus, circulate operation device and cpu performance parameter value determining device;
The data packet transmitter is used to send packet to the interchanger to be measured according to the setting packet sending speed;
The parameter monitoring device is used to send communications command to interchanger to be measured, to monitor and the interchanger to be measured
Messaging parameter, and the interchanger to be measured operational factor;
If the packet sending speed adjusting apparatus is used for according to the setting packet sending speed, the messaging parameter and the fortune
At least one of row parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustment plan
Slightly, so that the data packet transmitter changes current packet sending speed;
The execution that the circulate operation device is used for the parameter monitoring device is triggered, until the performance monitoring
Device determines that the interchanger to be measured meets setting performance condition;
The cpu performance parameter value determining device is used to obtain when the interchanger to be measured meets setting performance condition,
The packet sending speed of the data packet transmitter as the interchanger to be measured cpu performance parameter value.
The embodiment of the present invention to interchanger to be measured by sending communications command, to monitor the communication with the interchanger to be measured
The operational factor of parameter and the interchanger to be measured, wherein, the interchanger to be measured obtains packet and sends instrument according to setting in real time
Determine the packet of packet sending speed transmission;If according in the setting packet sending speed, the messaging parameter and the operational factor
At least one determine the interchanger to be measured be unsatisfactory for set performance condition, then perform packet sending speed adjustable strategies so that institute
State packet and send the current packet sending speed of instrument change;Return to perform to interchanger to be measured and send communications command, with monitoring and institute
State the messaging parameter of interchanger to be measured, and the operational factor of the interchanger to be measured operation, until the performance monitor
Determine that the interchanger to be measured meets setting performance condition;Obtain when the interchanger to be measured meets setting performance condition, institute
The packet sending speed for stating packet transmission instrument is used as the cpu performance parameter value of the interchanger to be measured.Solving can two layers of friendship of webmaster
Change planes the problem of its cpu performance can not being tested, realize quickly and efficiently pair can webmaster Layer 2 switch CPU
Can be tested so that can webmaster Layer 2 switch performance test it is more comprehensive.
Brief description of the drawings
Fig. 1 is a kind of flow chart of switch performance method of testing in the embodiment of the present invention one;
Fig. 2 is the flow chart of another switch performance method of testing in the embodiment of the present invention two;
Fig. 3 is the flow chart of another switch performance method of testing in the embodiment of the present invention three;
Fig. 4 is a kind of structural representation of switch performance test device in the embodiment of the present invention four;
Fig. 5 is a kind of structural representation of switch performance test system in the embodiment of the present invention five;
Fig. 6 is the structural representation of another switch performance test system in the embodiment of the present invention six;
Fig. 7 is the structural representation of the performance monitor in the embodiment of the present invention six.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for switch performance method of testing that the embodiment of the present invention one is provided, and the present embodiment can be fitted
For can webmaster type Layer 2 switch cpu performance test, this method can perform by switch performance test device, the dress
Putting can be realized by the mode of software and/or hardware, and the device can be integrated in the equipment that can be communicated with interchanger,
Subscriber terminal equipment is for example typically, such as portable computer or desktop computer.Specifically include following steps:
S110, performance monitor send communications command to interchanger to be measured, to monitor the messaging parameter with interchanger to be measured,
And the operational factor of interchanger to be measured, wherein, interchanger to be measured obtains packet and sends instrument according to setting packet sending speed in real time
The packet of transmission.
Wherein, setting packet sending speed refers to that packet sends the packet sending speed that instrument is received, and it can be artificial input
Packet sending speed or the packet sending speed that sets automatically of performance monitor.
Preferably, performance monitor is set to computer.Due to the present embodiment be pair can the CPU of webmaster Layer 2 switch enter
Row performance test, so be preferably arranged to can webmaster Layer 2 switch for interchanger to be measured.And can webmaster type Layer 2 switch CPU
Main processing two class packets, i.e. such as BPDU (Bridge Protocol Data Unit, BPDU) data
Bag and the two-layer protocol packet such as ARP packets, and such as web data bag, Simple Network Management Protocol SNMP packets and remote
The target MAC (Media Access Control) address such as journey terminal protocol Telnet packets are the management packet of switch CPU MAC Address to be measured, more than institute
The packet for stating packet transmission instrument transmission is preferably any of protocol data bag and management packet or two kinds.Progressive
The premise that can be tested is that interchanger to be measured is in normal running status, so the operational factor of above-mentioned interchanger to be measured is preferably
Whether CPU overloads, whether internal memory leaks, whether system process lacks and interchanger to be measured with the presence or absence of power down, restart or
Not at least one of the running situation such as crash.
Specifically, set packet to send packet and the packet sending speed that instrument is sent first, that is, set packet to send instrument
Protocol data bag and/or management packet are sent, and sends the packet sending speed of above-mentioned packet.Then, packet sends instrument
Packet is sent to interchanger to be measured according to above-mentioned setting, and interchanger to be measured obtains these packets in real time, and it is carried out
Correspondingly handle.Meanwhile, performance monitor is communicatively coupled with interchanger to be measured, is on the one hand sent such as to interchanger to be measured
The Internet packets survey meter (Packet Internet Groper, PING) order, tracking route (Trace Router,
TRACERT) the communications command such as order or routing node packet loss (PATHPING) order, and according to interchanger to be measured to the communication
The processing return information of order, monitoring and the messaging parameter of interchanger to be measured, on the other hand monitor the operation ginseng of interchanger to be measured
Number, using the basis for estimation as S120.
Exemplarily, the performance monitor sends communications command to interchanger to be measured, to be measured is exchanged with described with monitoring
The messaging parameter of machine includes:The performance monitor sends PING orders to the interchanger to be measured;The performance monitor prison
The packet loss and/or time delay of the PING orders returned data bag are surveyed, the messaging parameter with the interchanger to be measured is used as.
Specifically, performance monitor sends PING orders to interchanger to be measured, and according to the returned data bag of PING orders
Come any one or two kinds of of the timely Yanzhong of packet loss that determines to communicate between performance monitor and this interchanger to be measured, both are used as
Between messaging parameter.So set and be advantageous in that, the acquisition performance monitor that PING orders can be faster is with treating test cross
The messaging parameter changed planes, and communication parameter setting be packet loss and/or time delay, can be more intuitively to communication shape between the two
Whether normal condition, that is, communicate, judged.
S120, performance monitor determine to treat according at least one of setting packet sending speed, messaging parameter and operational factor
Whether test cross is changed planes meets setting performance condition.
Wherein, setting performance refers to the performance of switch CPU to be measured, and it can be that switch CPU to be measured can bear
Maximum packet sending speed or user's request the CPU packet sending speeds that can bear of interchanger to be measured.Need explanation
It is to characterize cpu performance with packet sending speed here, is because the main process object of switch CPU to be measured is interchanger to be measured
The protocol data bag and/or management packet of acquisition, then the packet amount of the corresponding types handled by CPU just determines that this is treated
Survey the performance of switch CPU.And the packet sending speed that packet sends instrument determines that interchanger to be measured is obtained simultaneously within a certain period of time
The packet amount of processing, it is possible to directly send the packet sending speed of instrument to characterize the CPU of interchanger to be measured using packet
Energy.
Correspondingly, setting performance condition is exactly for judging whether interchanger to be measured reaches the Rule of judgment of setting performance.
Exemplarily, setting performance condition can include the messaging parameter in setting messaging parameter is interval, and the operational factor
Normally, such case monitors maximum data packet sending speed (the CPU maximums that CPU can bear automatically corresponding to performance monitor
Performance).Or, setting performance condition includes the setting packet sending speed and is not less than setting demand packet sending speed, and the communication
Parameter is in the setting messaging parameter is interval, and the operational factor is normal, and such case is monitored corresponding to performance monitor
Whether the packet sending speed that CPU is born meets the data package transmission velocity (cpu demand performance) of user's request.
Wherein, setting messaging parameter interval is to characterize the normal communication that communicates between interchanger to be measured and performance monitor to join
Number scope.Messaging parameter is less than or equal to the interval interval maximum of the messaging parameter, means that communication conditions are normal;And communicate
Parameter is more than above-mentioned interval maximum, then it represents that communication conditions are abnormal.Such as, for PING communications, setting communication ginseng
Number interval then corresponds to the number range of packet loss and/or time delay, and its interval minimum value can be set as being slightly larger than proper communication
When packet loss (be usually zero) and/or time delay, i.e. packet loss and/or time delay just start a numerical value of increase, and it is interval
Maximum can set corresponding packet loss and/or time delay numerical value according to actual conditions.Certainly, the interval maximum can also be set
It is set to interval minimum value, that is, it is a single-point numerical value to set messaging parameter interval.Setting demand packet sending speed is user according to it
The packet of the cpu performance setting of demand sends the packet sending speed of instrument.
Specifically, setting packet sending speed can be compared by performance monitor with setting demand packet sending speed, or will be logical
Letter parameter is compared with setting messaging parameter interval, or whether judgement operational factor any of normal or several combinations
To judge whether interchanger to be measured meets setting performance condition.
It should be noted that here by messaging parameter be set to set performance condition, be because performance monitor with it is to be measured
Messaging parameter between interchanger can reflect well interchanger to be measured CPU carrying whether reach CPU maximum performances or
Cpu demand performance, such as packet loss and/or time delay start increase, illustrate that the cpu resource consumption of interchanger to be measured alreadys exceed it
Normally can loading range, that is, reach CPU maximum performances.Produced moreover, the cpu performance that test cross changes planes is treated in communication between the two
Raw influence, the influence produced by the cpu performance that test cross is changed planes is treated relative to processing protocol packet and/or management packet
For, it can ignore, i.e., communication between the two is nearly free from influence on cpu performance.
S130, if it is not, then performance monitor performs packet sending speed adjustable strategies, so that packet sends instrument and changes current
Packet sending speed.
Specifically, if judging that interchanger to be measured is unsatisfactory for setting performance condition in S120, then performance monitor is performed
Packet sending speed adjustable strategies, such as performance monitor are according to numerical value methods of adjustment such as the higher dichotomies of numerical value regulated efficiency
Carry out adjust automatically or prompting user manually adjusts data and given out a contract for a project the packet sending speed of instrument.Afterwards, return and perform S110-S130, until
Determine that interchanger to be measured meets setting performance condition in S120, then perform S140.
S140, if so, then performance monitor obtain interchanger to be measured meet setting performance condition when, packet send instrument
Packet sending speed as interchanger to be measured cpu performance parameter value.
Specifically, if determining that interchanger to be measured meets setting performance condition in S120, then performance monitor it is automatic or
Person's prompting user obtains when interchanger to be measured meets setting performance condition manually, and packet sends the packet sending speed of instrument as treating
The cpu performance parameter value that test cross is changed planes.
The technical scheme of the present embodiment to interchanger to be measured by sending communications command, to monitor and the interchanger to be measured
Messaging parameter and the interchanger to be measured operational factor, wherein, the interchanger to be measured obtain in real time packet send instrument
The packet sent according to setting packet sending speed;If according to the setting packet sending speed, the messaging parameter and the operation
At least one of parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies,
So that the packet sends instrument and changes current packet sending speed;Return to perform to interchanger to be measured and send communications command, to supervise
Control and the messaging parameter of the interchanger to be measured, and the operational factor of the interchanger to be measured operation, until the performance
Monitor determines that the interchanger to be measured meets setting performance condition;Obtain and meet setting performance condition in the interchanger to be measured
When, the packet sending speed that the packet sends instrument is used as the cpu performance parameter value of the interchanger to be measured.Solving can webmaster two
The problem of layer switch can not be tested its cpu performance, realizing quickly and efficiently pair can webmaster Layer 2 switch
Cpu performance is tested so that can webmaster Layer 2 switch performance test it is more comprehensive.
Embodiment two
Fig. 2 is a kind of flow chart for switch performance method of testing that the embodiment of the present invention two is provided, and the present embodiment is upper
State on the basis of embodiment, S120 is further illustrated, while sending the packet within instrument is set to hardware executive mode,
Further optimization has been carried out to S130 and S140.The explanation of identical wherein with the various embodiments described above or corresponding term is herein
Repeat no more.The method of the present embodiment includes:
S210, performance monitor send communications command to interchanger to be measured, to monitor the messaging parameter with interchanger to be measured,
And the operational factor of interchanger to be measured, wherein, interchanger to be measured obtains packet and sends instrument according to setting packet sending speed in real time
The packet of transmission.
S220, performance monitor determine to treat according at least one of setting packet sending speed, messaging parameter and operational factor
Whether test cross is changed planes meets setting performance condition.
Understood according to the explanation of S120 in embodiment one, it is logical in setting that setting performance condition can include the messaging parameter
In believing that parameter is interval, and the operational factor is normal.Such case is gone corresponding to performance monitor using the setting performance condition
Test the maximum performance that the CPU of interchanger to be measured can reach.
So, interchanger to be measured meets setting performance condition and then corresponded to:
A1, in setting time section, the performance monitor judges the messaging parameter in the setting messaging parameter area
In, and the operational factor is normal.The cpu performance that such case corresponds to interchanger to be measured reaches its maximum performance just,
Cpu performance test can now be stopped, i.e., the step of no longer performing S230 or S250 directly performs S240 or S260.
Correspondingly, interchanger to be measured be unsatisfactory for setting performance condition then correspond to:
B1, in setting time section, the performance monitor judges the messaging parameter not in the setting messaging parameter
In interval, and/or the operational factor is abnormal.
Further, the above-mentioned setting performance condition B1 that is unsatisfactory for is specifically as follows:
B11, in setting time section, the performance monitor judges that the messaging parameter is less than the setting messaging parameter
Interval interval minimum value, and the operational factor is normal.The communication conditions that such case corresponds to interchanger to be measured are normal, fortune
Market condition is also normal, i.e., interchanger to be measured is also not up to CPU maximum performances, and the packet amount handled by it can also continue to increase
Greatly, namely packet send instrument packet sending speed can also continue to up-regulation.
B12, in setting time section, the performance monitor judges that the messaging parameter is more than the setting messaging parameter
Interval interval maximum, and/or the operational factor are abnormal.The communication conditions that such case corresponds to interchanger to be measured are different
Often, either running situation exception or communication conditions and running situation are abnormal, i.e., interchanger to be measured has reached that CPU is maximum
Performance, it can not handle all packets acquired at present, namely packet is sent under the packet sending speed needs of instrument
Adjust, to reduce the packet amount of switch CPU processing to be measured.
Understood according to the explanation of S120 in embodiment one, setting performance condition can also include the setting packet sending speed not
Less than setting demand packet sending speed, and the messaging parameter is in the setting messaging parameter is interval, and the operational factor is just
Often.Such case goes whether the cpu performance for testing interchanger to be measured reaches corresponding to performance monitor using the setting performance condition
To the cpu performance of user's request.
So, interchanger to be measured meets setting performance condition and then corresponded to:
A2, setting time section in, it is described setting packet sending speed be not less than setting demand packet sending speed, and it is described communication ginseng
Number is in the setting messaging parameter is interval, and the operational factor is normal.Such case corresponds to residing for switch CPU to be measured
The packet amount of reason has reached the packet amount of user's request, and the communication conditions of interchanger to be measured are normal, running situation
Also normal, i.e., switch CPU performance to be measured is sufficient for user's request.At this moment, preferably it is off the CPU of the interchanger to be measured
It can test, i.e., the step of no longer performing S230 or S250 directly performs S240 or S260, disappeared with saving testing time and resource
Consumption.Certainly, user can also select to continue cpu performance test, at this moment, can be according to test to determine CPU maximum performances
The operation of CPU maximum performances is continued executing with.
Correspondingly, interchanger to be measured be unsatisfactory for setting performance condition then correspond to:
B2, in setting time section, the performance monitor judges that the setting packet sending speed is less than the setting demand
Packet sending speed.
Further, the above-mentioned setting performance condition B2 that is unsatisfactory for is specifically as follows:
B21, in setting time section, the performance monitor judges that the setting packet sending speed is less than the setting demand
Packet sending speed, the messaging parameter is less than or equal to the interval interval maximum and the operational factor of the setting messaging parameter
Normally.The packet amount that such case corresponds to handled by switch CPU to be measured is also not up to the packet amount of user's request, and
The communication conditions of interchanger to be measured are normal, and running situation is also normal, i.e., interchanger to be measured is also not up to cpu demand performance, its institute
The packet amount of processing can also continue to increase, namely the packet sending speed of packet transmission instrument can also continue to up-regulation.
B22, in setting time section, the performance monitor judges that the setting packet sending speed is less than the setting demand
Packet sending speed, the messaging parameter is more than the interval interval maximum of the setting messaging parameter or the operational factor is abnormal.
The packet amount that such case corresponds to handled by switch CPU to be measured is also not up to the packet amount of user's request, but treats
The communication conditions that test cross is changed planes are abnormal, and either running situation exception or communication conditions and running situation are abnormal, that is, treat test cross
Although the cpu performance changed planes also is not up to the cpu performance of user's request, its CPU maximum performance is reached, it is not
All packets acquired at present can be handled.That is, it is impossible to meet the need of user for this interchanger to be measured
Ask, at this moment, be preferably off the cpu performance test of the interchanger to be measured, i.e., no longer perform follow-up any operation.Certainly, user
The cpu performance for continuing to test the interchanger to be measured can also be selected, to determine CPU maximum performances, for comparing itself and user
Gap between demand, at this moment, can be continued executing with, namely continue to lower packet according to the operation of test CPU maximum performances
Send the packet sending speed of instrument.
Specifically, performance monitor can be according to the setting packet sending speed of its acquisition, messaging parameter, operational factor and above-mentioned
Any situation determines whether interchanger to be measured meets setting performance condition, and S230 or S240 is performed afterwards.
S230, if it is not, then the performance monitor display adjustment packet sends carrying for the current packet sending speed of instrument
Show information, the current packet sending speed of instrument, the prompting are sent to point out user to adjust the packet according to the prompt message
Information includes setting method of adjustment and/or adjustment numerical value.
Wherein, setting method of adjustment is the method for adjustment of packet sending speed set in advance, such as dichotomy.
Specifically, if judging that interchanger to be measured is unsatisfactory for setting performance condition in S220, then performance monitor is shown
The prompt message that the packet sends the current packet sending speed of instrument is adjusted, so that user manually adjusts according to the prompt message
Packet sends the packet sending speed of instrument, and S210-S230 is performed afterwards, until determining that interchanger to be measured meets setting performance in S220
Condition, then perform S240.
Such as, prompting user adjusts packet according to setting method of adjustment and setting packet sending speed and sends the hair of instrument currently
Packet rate, or directly prompting user specifically adjusts numerical value.It is up-regulation or downward as packet sending speed, can be according to S220
In concrete condition pointed out accordingly.Such as, performance monitor determines that interchanger to be measured is unsatisfactory for setting performance condition
B11 or B21 that situation corresponds in S220, then prompting user's up-regulation packet sends the current packet sending speed of instrument;And if
Performance monitor determines that interchanger to be measured is unsatisfactory for setting B12 or B22 that the situation of performance condition corresponds in S220, then carry
Show that user lowers packet and sends the current packet sending speed of instrument.
S240, if so, then the performance monitor obtains and is when the interchanger to be measured meets setting performance condition
The system time, and the system time is shown, during so that user is by the daily record of giving out a contract for a project of packet transmission instrument with the system
Between corresponding packet sending speed be defined as the cpu performance parameter value of the interchanger to be measured.
Wherein, daily record of giving out a contract for a project is the logging that packet sends instrument, and it can record moment of giving out a contract for a project, packet sending speed and hair
The information such as bag-like state.
Specifically, if judging that interchanger to be measured meets setting performance condition in S220, then performance monitor is just obtained
Interchanger to be measured meets system time during setting performance condition, is then shown the system time, so that user can
According to the system time, the packet sending speed of the system time is manually determined in the daily record of giving out a contract for a project that packet sends instrument, is made
For the cpu performance parameter value of interchanger to be measured.
The technical scheme of the present embodiment is solved can asking of can not being tested its cpu performance of webmaster Layer 2 switch
Topic, realizes manually adjustment packet and sends the packet sending speed of instrument, and then manually determine switch CPU performance parameter to be measured
Value, can effectively pair can the cpu performance of webmaster Layer 2 switch test so that can webmaster Layer 2 switch property
It can test more comprehensive.
Embodiment three
Fig. 3 is a kind of flow chart for switch performance method of testing that the embodiment of the present invention three is provided, and the present embodiment is upper
State on the basis of embodiment, send the packet within instrument and be set to software executive mode, i.e., to " if it is not, then performance monitor is performed
Packet sending speed adjustable strategies, so that packet sends instrument and changes current packet sending speed " and " if so, then performance monitor is obtained
Take when interchanger to be measured meets setting performance condition, the packet sending speed that packet sends instrument is used as the CPU of interchanger to be measured
Energy parameter value " has carried out further optimization.The explanation of identical wherein with the various embodiments described above or corresponding term is no longer gone to live in the household of one's in-laws on getting married herein
State.
Referring to Fig. 3, the method for the present embodiment includes:
S310, performance monitor send communications command to interchanger to be measured, to monitor the messaging parameter with interchanger to be measured,
And the operational factor of interchanger to be measured, wherein, interchanger to be measured obtains packet and sends instrument according to setting packet sending speed in real time
The packet of transmission.
S320, performance monitor determine to treat according at least one of setting packet sending speed, messaging parameter and operational factor
Whether test cross is changed planes meets setting performance condition.
S330, if it is not, then the performance monitor adjusts the packet and sends instrument and work as according to the setting method of adjustment
Preceding packet sending speed.
Specifically, if judging that interchanger to be measured is unsatisfactory for setting performance condition in S320, then performance monitor can
With according to setting packet sending speed, setting method of adjustment and be unsatisfactory for set performance condition specific judgement situation come adjust automatically number
The current packet sending speed of instrument is sent according to bag, S310-S330 is performed afterwards, until determining that interchanger to be measured meets setting property in S320
Energy condition, then perform S340 and S350.Wherein, the specific judgement situation for being unsatisfactory for setting performance condition may refer to embodiment two
Illustrating about B1, B11, B12, B2, B21 and B22 in S220.
Such as, above-mentioned specific judgement situation that can be in S220 raises or lowered current speed of giving out a contract for a project to automatically determine
Rate score.Wherein, up-regulation packet sending speed or the relation lowered in packet sending speed and S220 between specific judgement situation may refer to
The S230's of embodiment two illustrates, and specific speed adjust numerical value, is come from by setting packet sending speed and setting method of adjustment
It is dynamic to determine.
S340, if so, then the performance monitor obtains and is when the interchanger to be measured meets setting performance condition
System time and the daily record of giving out a contract for a project.
Specifically, if judging that interchanger to be measured meets setting performance condition in S320, then performance monitor is obtained automatically
The system time and packet for taking interchanger to be measured to meet when setting performance condition send the daily record of giving out a contract for a project of instrument, perform afterwards
S350。
Certainly, if in judging that interchanger to be measured meets the situation for setting performance condition as the S220 of embodiment two in S320
A2 situations, i.e., the cpu performance of interchanger to be measured has met the cpu performance demand of user, but is also not up to interchanger to be measured
CPU maximum performances, and user have selected proceed cpu performance test, then can continue return perform S310-
S330, until determining that interchanger to be measured meets the corresponding setting performance condition of CPU maximum performances in S320, then performs this step again
Suddenly.
S350, it regard packet sending speed corresponding with the system time in the daily record of giving out a contract for a project as the interchanger to be measured
Cpu performance parameter value.
Specifically, performance monitor is after system time and daily record of giving out a contract for a project is obtained, the system in the daily record that will give out a contract for a project automatically
Time corresponding packet sending speed, is defined as the cpu performance parameter value of interchanger to be measured.
The technical scheme of the present embodiment is solved can asking of can not being tested its cpu performance of webmaster Layer 2 switch
Topic, realizes automatically adjustment packet and sends the packet sending speed of instrument, and then automatically determine switch CPU performance parameter to be measured
Value, reached quickly and efficiently pair can the cpu performance of webmaster Layer 2 switch test so that can two layers of webmaster hand over
The more comprehensive effect of performance test changed planes.
It should be noted that adjustment and cpu performance parameter value for packet sending speed automatically determines mode, except above-mentioned
Outside the implementation of embodiment three, it can also be by setting up the communication connection between packet transmission instrument and performance monitor
To realize.Such as, performance monitor obtains the daily record of giving out a contract for a project that packet sends instrument in real time, and in real time by the packet sending speed of determination
Adjustment numerical value, which is sent to packet, sends instrument, correspondingly adjusts packet sending speed so as to obtain packet and send instrument, gives out a contract for a project so as to realize
The adjust automatically of speed and automatically determining for cpu performance parameter value.
The following is the embodiment of switch performance test device provided in an embodiment of the present invention, the device and above-mentioned each implementation
The switch performance method of testing of example belongs to same inventive concept, not detailed in the embodiment of switch performance test device
The detail content of description, may be referred to the embodiment of above-mentioned switch performance method of testing.
Example IV
Fig. 4 is a kind of structural representation for switch performance test device that the embodiment of the present invention four is provided, device tool
Body includes:
Parameter monitoring module 410, for sending communications command to interchanger to be measured, to monitor and the interchanger to be measured
Messaging parameter, and the interchanger to be measured operational factor, wherein, the interchanger to be measured obtain in real time packet send instrument
The packet sent according to setting packet sending speed, and the interchanger to be measured is can webmaster Layer 2 switch;
Packet sending speed adjusting module 420, if for according to the setting packet sending speed, the messaging parameter and the fortune
At least one of row parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustment plan
Slightly, so that the packet sends instrument and changes current packet sending speed;
Circulate operation module 430, is triggered for the execution to the parameter monitoring module 410, until the performance
Monitor determines that the interchanger to be measured meets setting performance condition;
Cpu performance parameter value determining module 440, for obtaining when the interchanger to be measured meets setting performance condition,
The packet sending speed that the packet sends instrument is used as the cpu performance parameter value of the interchanger to be measured.
Wherein, the parameter monitoring module 410 specifically for:
Performance monitor sends PING orders to the interchanger to be measured;
The performance monitor monitors the packet loss and/or time delay of the PING orders returned data bag, as with it is described
The messaging parameter of interchanger to be measured.
Wherein, the performance monitor is computer;Or, the packet includes protocol data bag and/or management data
Bag;Or, whether the CPU of the operational factor including the interchanger overloads, whether internal memory leaks, system process whether lack with
And the whether operating at least one of interchanger to be measured.
Alternatively, the setting performance condition includes the messaging parameter in setting messaging parameter is interval, and the fortune
Row parameter is normal;
Correspondingly, the packet sending speed adjusting module 420 specifically for:
If in setting time section, the performance monitor judges the messaging parameter not in the setting messaging parameter
In interval, and/or the operational factor is abnormal, then performs packet sending speed adjustable strategies, so that the packet sends instrument and changed
Current packet sending speed.
Alternatively, the setting performance condition includes the setting packet sending speed and is not less than setting demand packet sending speed, and
The messaging parameter is in the setting messaging parameter is interval, and the operational factor is normal;
Correspondingly, the packet sending speed adjusting module 420 specifically for:
If in setting time section, the performance monitor judges that the setting packet sending speed is less than the setting demand
Packet sending speed, then perform packet sending speed adjustable strategies, so that the packet sends instrument and changes current packet sending speed.
Alternatively, it is separate hardware that the packet, which sends instrument,
Correspondingly, the packet sending speed adjusting module 420 specifically for:
The performance monitor display adjustment packet sends the prompt message of the current packet sending speed of instrument, to point out
User adjusts the packet according to the prompt message and sends the current packet sending speed of instrument, and the prompt message includes setting and adjusted
Adjusting method and/or adjustment numerical value;
Correspondingly, the cpu performance parameter value determining module 440 specifically for:
The performance monitor obtains the system time when the interchanger to be measured meets setting performance condition, and shows
The system time so that user by the packet send instrument daily record of giving out a contract for a project in speed of giving out a contract for a project corresponding with the system time
Rate is defined as the cpu performance parameter value of the interchanger to be measured.
Alternatively, the packet sends instrument and is configured in the performance monitor,
Correspondingly, the packet sending speed adjusting module 420 specifically for:
The performance monitor adjusts the packet and sends the speed of giving out a contract for a project of instrument currently according to the setting method of adjustment
Rate;
Correspondingly, the cpu performance parameter value determining module 440 specifically for:
The performance monitor obtains system time when the interchanger to be measured meets setting performance condition and described
Give out a contract for a project daily record;
Using CPU of the packet sending speed corresponding with the system time as the interchanger to be measured in the daily record of giving out a contract for a project
Can parameter value.
By a kind of switch performance test device of the embodiment of the present invention three, solve can webmaster Layer 2 switch can not
The problem of testing its cpu performance, realize quickly and efficiently pair can the cpu performance of webmaster Layer 2 switch survey
Examination so that can webmaster Layer 2 switch performance test it is more comprehensive.
The switch performance test device that the embodiment of the present invention is provided can perform what any embodiment of the present invention was provided
Switch performance method of testing, possesses the corresponding functional module of execution method and beneficial effect.
It is worth noting that, in the embodiment of above-mentioned switch performance test device, included modules are to press
Divided according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition,
The specific name of each functional module is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
The following is the embodiment of switch performance test system provided in an embodiment of the present invention, the system and above-mentioned each implementation
The switch performance method of testing of example belongs to same inventive concept, not detailed in the embodiment of switch performance test system
The detail content of description, may be referred to the embodiment of above-mentioned switch performance method of testing.
Embodiment five
Fig. 5 is a kind of structural representation for switch performance test system that the embodiment of the present invention five is provided, system tool
Body includes:
Interchanger 510 to be measured, the interchanger 510 to be measured is can webmaster Layer 2 switch;
Packet sends instrument 520, is connected with the interchanger 510 to be measured, for receiving setting packet sending speed, and according to institute
State setting packet sending speed and send packet to the interchanger 510 to be measured;
Performance monitor 530, is connected with the interchanger 510 to be measured, and the performance monitor 530 is filled including parameter monitoring
Put, packet sending speed adjusting apparatus, circulate operation device and cpu performance parameter value determining device;
The parameter monitoring device is used to send communications command to interchanger 510 to be measured, to be measured is exchanged with described with monitoring
The messaging parameter of machine 510, and the interchanger to be measured 510 operational factor;
If the packet sending speed adjusting apparatus is used for according to the setting packet sending speed, the messaging parameter and the fortune
At least one of row parameter determines that the interchanger 510 to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustment
Strategy, so that the packet sends instrument 520 and changes current packet sending speed;
The execution that the circulate operation device is used for the parameter monitoring device is triggered, until the performance monitoring
Device 530 determines that the interchanger to be measured 510 meets setting performance condition;
The cpu performance parameter value determining device is used to obtain meets setting performance condition in the interchanger 510 to be measured
When, the packet sending speed that the packet sends instrument 520 is used as the cpu performance parameter value of the interchanger 510 to be measured.
Wherein, the packet sends instrument 520 and is connected by twisted-pair feeder 501 with the interchanger 510 to be measured, the twisted-pair feeder
501 can be common category 5 twisted pair, connect the common port that the packet sends instrument 520 and the interchanger 510 to be measured;
The performance monitor 530 is connected by twisted-pair feeder 501 and layout line 502 with the interchanger 510 to be measured, the twisted-pair feeder 501
Can be common category 5 twisted pair, the common port of the network interface of switching performance monitor 530 and interchanger 510 to be measured, the layout line
502 (i.e. console lines) are Serial Port Line, the console ports of the serial ports of switching performance monitor 530 and interchanger 510 to be measured.
Alternatively, the packet sending speed adjusting apparatus specifically for:
The display adjustment packet sends the prompt message of the current packet sending speed of instrument 520, to point out user according to institute
State prompt message and adjust the current packet sending speed of the packet transmission instrument 520, the prompt message includes setting method of adjustment
And/or adjustment numerical value.
Alternatively, the cpu performance parameter value determining device specifically for:
The system time when the interchanger 510 to be measured meets setting performance condition is obtained, and when showing the system
Between, so that user determines packet sending speed corresponding with the system time in the daily record of giving out a contract for a project of packet transmission instrument 520
For the cpu performance parameter value of the interchanger 510 to be measured.
By a kind of switch performance test system of the embodiment of the present invention four, solve can webmaster Layer 2 switch can not
The problem of testing its cpu performance, realize quickly and efficiently pair can the cpu performance of webmaster Layer 2 switch survey
Examination so that can webmaster Layer 2 switch performance test it is more comprehensive.
Embodiment six
Fig. 6 is a kind of structural representation for switch performance test system that the embodiment of the present invention six is provided, system tool
Body includes:
Interchanger 610 to be measured, the interchanger 610 to be measured is can webmaster Layer 2 switch;
Performance monitor 620, is connected with the interchanger 610 to be measured, referring to Fig. 7, and the performance monitor 620 includes number
According to packet transmitter 721, parameter monitoring device 722, packet sending speed adjusting apparatus 723, circulate operation device 724 and cpu performance
Parameter value determining device 725;
The data packet transmitter 721 is used to send to the interchanger 610 to be measured according to the setting packet sending speed
Packet;
The parameter monitoring device 722 is used to send communications command to interchanger 610 to be measured, and test cross is treated with described to monitor
Change planes 610 messaging parameter, and the interchanger to be measured 610 operational factor;
If the packet sending speed adjusting apparatus 723 is used for according to the setting packet sending speed, the messaging parameter and institute
State at least one of operational factor and determine that the interchanger 610 to be measured is unsatisfactory for setting performance condition, then perform packet sending speed
Adjustable strategies, so that the data packet transmitter 721 changes current packet sending speed;
The execution that the circulate operation device 724 is used for the parameter monitoring device 722 is triggered, until the property
Energy monitor 620 determines that the interchanger to be measured 610 meets setting performance condition;
The cpu performance parameter value determining device 725 is used to obtain meets setting performance bar in the interchanger 610 to be measured
During part, the packet sending speed of the data packet transmitter 721 as the interchanger 610 to be measured cpu performance parameter value.
Wherein, the performance monitor 620 is connected by twisted-pair feeder 601 and layout line 602 with the interchanger 610 to be measured
Connect.The twisted-pair feeder 601 can be common category 5 twisted pair, and the network interface of switching performance monitor 620 is general with interchanger 610 to be measured
Go side mouthful, the layout line 602 (i.e. console lines) is Serial Port Line, the serial ports of switching performance monitor 620 and interchanger to be measured
610 console ports.
Alternatively, the packet sending speed adjusting apparatus 723 specifically for:
According to setting method of adjustment, the current packet sending speed of the data packet transmitter 721 is adjusted.
Alternatively, the cpu performance parameter value determining device 725 specifically for:
Obtain system time and the packet when the interchanger 610 to be measured meets setting performance condition and send dress
Put 721 daily record of giving out a contract for a project;
It regard packet sending speed corresponding with the system time in the daily record of giving out a contract for a project as the interchanger 610 to be measured
Cpu performance parameter value.
By a kind of switch performance test system of the embodiment of the present invention five, solve can webmaster Layer 2 switch can not
The problem of testing its cpu performance, realize quickly and efficiently pair can the cpu performance of webmaster Layer 2 switch survey
Examination so that can webmaster Layer 2 switch performance test it is more comprehensive.
The switch performance test system that the embodiment of the present invention is provided can perform what any embodiment of the present invention was provided
Switch performance method of testing, possesses the corresponding functional module of execution method and beneficial effect.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (12)
1. a kind of switch performance method of testing, it is characterised in that including:
Performance monitor sends communications command to interchanger to be measured, to monitor the messaging parameter with the interchanger to be measured, and
The operational factor of the interchanger to be measured, wherein, the interchanger to be measured obtains packet transmission instrument and given out a contract for a project according to setting in real time
The packet that speed is sent, and the interchanger to be measured is can webmaster Layer 2 switch;
If the performance monitor is set in packet sending speed, the messaging parameter and the operational factor at least according to described
One kind determines that the interchanger to be measured is unsatisfactory for setting performance condition, then packet sending speed adjustable strategies is performed, so that the data
Bag sends instrument and changes current packet sending speed;
Return and perform the performance monitor to interchanger to be measured transmission communications command, it is logical with the interchanger to be measured to monitor
Believe parameter, and the operational factor of the interchanger to be measured operation, until the performance monitor determine it is described it is to be measured exchange
Machine meets setting performance condition;
The performance monitor is obtained when the interchanger to be measured meets setting performance condition, and the packet sends the hair of instrument
Packet rate as the interchanger to be measured cpu performance parameter value.
2. according to the method described in claim 1, it is characterised in that the performance monitor sends communication life to interchanger to be measured
Order, is included with the messaging parameter monitored with the interchanger to be measured:
The performance monitor sends PING orders to the interchanger to be measured;
The performance monitor monitors the packet loss and/or time delay of the PING orders returned data bag, as with it is described to be measured
The messaging parameter of interchanger.
3. according to the method described in claim 1, it is characterised in that
The performance monitor is computer;Or,
The packet includes protocol data bag and/or management packet;Or,
Whether the operational factor overloads including CPU, whether internal memory leaks, whether system process lacks and the exchange to be measured
The whether operating at least one of machine.
4. according to the method described in claim 1, it is characterised in that the setting performance condition is being set including the messaging parameter
Determine messaging parameter interval interior, and the operational factor is normal;
Correspondingly, if the performance monitor is according to the setting packet sending speed, the messaging parameter and the operation
At least one of parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies,
So that the packet sends the current packet sending speed of instrument change and included:
If in setting time section, the performance monitor judges that the messaging parameter is not interval in the setting messaging parameter
It is interior, and/or operational factor exception, then packet sending speed adjustable strategies are performed, so that the packet sends instrument and changes current
Packet sending speed.
5. according to the method described in claim 1, it is characterised in that the setting performance condition includes the setting packet sending speed
Not less than setting demand packet sending speed, and the messaging parameter is in the setting messaging parameter is interval, and the operational factor
Normally;
Correspondingly, if the performance monitor is according to the setting packet sending speed, the messaging parameter and the operation
At least one of parameter determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies,
So that the packet sends the current packet sending speed of instrument change and included:
If in setting time section, the performance monitor judges that the setting packet sending speed is given out a contract for a project less than the setting demand
Speed, then perform packet sending speed adjustable strategies, so that the packet sends instrument and changes current packet sending speed.
6. the method according to claim any one of 1-4, it is characterised in that it is separate hardware that the packet, which sends instrument,
Correspondingly, the execution packet sending speed adjustable strategies include:
The performance monitor display adjustment packet sends the prompt message of the current packet sending speed of instrument, to point out user
The packet is adjusted according to the prompt message and sends the current packet sending speed of instrument, and the prompt message includes setting adjustment side
Method and/or adjustment numerical value;
Correspondingly, the performance monitor is obtained when the interchanger to be measured meets setting performance condition, the packet hair
Send the packet sending speed of instrument includes as the cpu performance parameter value of the interchanger to be measured:
The performance monitor obtains the system time when the interchanger to be measured meets setting performance condition, and shows described
System time, so that user is true by packet sending speed corresponding with the system time in the daily record of giving out a contract for a project of packet transmission instrument
It is set to the cpu performance parameter value of the interchanger to be measured.
7. the method according to claim any one of 1-4, it is characterised in that the packet sends instrument and is configured at the property
In energy monitor,
Correspondingly, the execution packet sending speed adjustable strategies include:
The performance monitor adjusts the packet and sends the current packet sending speed of instrument according to the setting method of adjustment;
Correspondingly, the performance monitor is obtained when the interchanger to be measured meets setting performance condition, the packet hair
Send the packet sending speed of instrument includes as the cpu performance parameter value of the interchanger to be measured:
The performance monitor obtains system time when the interchanger to be measured meets setting performance condition and described given out a contract for a project
Daily record;
Join packet sending speed corresponding with the system time in the daily record of giving out a contract for a project as the cpu performance of the interchanger to be measured
Numerical value.
8. a kind of switch performance test device, applied in performance monitor, it is characterised in that including:
Parameter monitoring module, for sending communications command to interchanger to be measured, is joined with the communication monitored with the interchanger to be measured
Number, and the interchanger to be measured operational factor, wherein, the interchanger to be measured obtains packet and sends instrument according to setting in real time
Determine the packet of packet sending speed transmission, and the interchanger to be measured is can webmaster Layer 2 switch;
Packet sending speed adjusting module, if for according to the setting packet sending speed, the messaging parameter and the operational factor
At least one of determine that the interchanger to be measured is unsatisfactory for setting performance condition, then perform packet sending speed adjustable strategies so that
The packet sends instrument and changes current packet sending speed;
Circulate operation module, is triggered for the execution to the parameter monitoring module, until determining the interchanger to be measured
Meet setting performance condition;
Cpu performance parameter value determining module, for obtaining when the interchanger to be measured meets setting performance condition, the data
The packet sending speed that bag sends instrument is used as the cpu performance parameter value of the interchanger to be measured.
9. a kind of switch performance test system, it is characterised in that including:
Interchanger to be measured, the interchanger to be measured is can webmaster Layer 2 switch;
Packet sends instrument, is connected with the interchanger to be measured, gives out a contract for a project for receiving setting packet sending speed, and according to the setting
Speed sends packet to the interchanger to be measured;
Performance monitor, is connected with the interchanger to be measured, and the performance monitor includes parameter monitoring device, packet sending speed and adjusted
Engagement positions, circulate operation device and cpu performance parameter value determining device;
The parameter monitoring device is used to send communications command to interchanger to be measured, to monitor the communication with the interchanger to be measured
Parameter, and the interchanger to be measured operational factor;
If the packet sending speed adjusting apparatus is used to be joined according to the setting packet sending speed, the messaging parameter and the operation
At least one of number determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies, with
The packet is sent instrument and change current packet sending speed;
The execution that the circulate operation device is used for the parameter monitoring device is triggered, until the performance monitor is true
The fixed interchanger to be measured meets setting performance condition;
The cpu performance parameter value determining device is used to obtain when the interchanger to be measured meets setting performance condition, described
The packet sending speed that packet sends instrument is used as the cpu performance parameter value of the interchanger to be measured.
10. system according to claim 9, it is characterised in that
The packet sends instrument and is connected by twisted-pair feeder with the interchanger to be measured;The performance monitor by twisted-pair feeder and
Layout line is connected with the interchanger to be measured;Or
The packet sending speed adjusting apparatus specifically for:
The display adjustment packet sends the prompt message of the current packet sending speed of instrument, to point out user to believe according to the prompting
The breath adjustment packet sends the current packet sending speed of instrument, and the prompt message includes setting method of adjustment and/or adjustment number
Value;Or,
The cpu performance parameter value determining device specifically for:
The system time when the interchanger to be measured meets setting performance condition is obtained, and shows the system time, so that
Packet sending speed corresponding with the system time in the daily record of giving out a contract for a project of packet transmission instrument is defined as described to be measured by user
The cpu performance parameter value of interchanger.
11. a kind of switch performance test system, it is characterised in that including:
Interchanger to be measured, the interchanger to be measured is can webmaster Layer 2 switch;
Performance monitor, is connected with the interchanger to be measured, and the performance monitor includes data packet transmitter, parameter monitoring
Device, packet sending speed adjusting apparatus, circulate operation device and cpu performance parameter value determining device;
The data packet transmitter is used to send packet to the interchanger to be measured according to the setting packet sending speed;
The parameter monitoring device is used to send communications command to interchanger to be measured, to monitor the communication with the interchanger to be measured
Parameter, and the interchanger to be measured operational factor;
If the packet sending speed adjusting apparatus is used to be joined according to the setting packet sending speed, the messaging parameter and the operation
At least one of number determines that the interchanger to be measured is unsatisfactory for setting performance condition, then performs packet sending speed adjustable strategies, with
The data packet transmitter is set to change current packet sending speed;
The execution that the circulate operation device is used for the parameter monitoring device is triggered, until the performance monitor is true
The fixed interchanger to be measured meets setting performance condition;
The cpu performance parameter value determining device is used to obtain when the interchanger to be measured meets setting performance condition, described
The packet sending speed of data packet transmitter as the interchanger to be measured cpu performance parameter value.
12. system according to claim 11, it is characterised in that
The performance monitor is connected by twisted-pair feeder and layout line with the interchanger to be measured;Or,
The packet sending speed adjusting apparatus specifically for:
According to setting method of adjustment, the current packet sending speed of the data packet transmitter is adjusted;Or,
The cpu performance parameter value determining device specifically for:
Obtain the hair of the system time and the data packet transmitter when the interchanger to be measured meets setting performance condition
Bag daily record;
Join packet sending speed corresponding with the system time in the daily record of giving out a contract for a project as the cpu performance of the interchanger to be measured
Numerical value.
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 true CN107196820A (en) | 2017-09-22 |
CN107196820B 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) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547561A (en) * | 2017-09-25 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of method and device for carrying out DDOS attack protective treatment |
CN109302323A (en) * | 2018-11-20 | 2019-02-01 | 山东超越数控电子股份有限公司 | A kind of interchanger dynamic monitoring system |
CN109728978A (en) * | 2019-01-29 | 2019-05-07 | 中国航空无线电电子研究所 | Consider the AFDX interchanger linear speed control aptitude tests method of 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 |
CN115297070A (en) * | 2022-07-15 | 2022-11-04 | 中国航空无线电电子研究所 | Multi-metadata-excited ARINC664 switch cache overflow test method |
Citations (4)
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 |
-
2017
- 2017-05-24 CN CN201710373080.9A patent/CN107196820B/en active Active
Patent Citations (4)
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 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547561A (en) * | 2017-09-25 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of method and device for carrying out DDOS attack protective treatment |
CN107547561B (en) * | 2017-09-25 | 2020-10-30 | 新华三信息安全技术有限公司 | Method and device for carrying out DDOS attack protection processing |
CN109302323A (en) * | 2018-11-20 | 2019-02-01 | 山东超越数控电子股份有限公司 | A kind of interchanger dynamic monitoring system |
CN109302323B (en) * | 2018-11-20 | 2022-03-18 | 超越科技股份有限公司 | Dynamic monitoring system for switch |
CN109728978A (en) * | 2019-01-29 | 2019-05-07 | 中国航空无线电电子研究所 | Consider the AFDX interchanger linear speed control aptitude tests method of 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 |
CN115297070A (en) * | 2022-07-15 | 2022-11-04 | 中国航空无线电电子研究所 | Multi-metadata-excited ARINC664 switch cache overflow test method |
CN115297070B (en) * | 2022-07-15 | 2024-02-27 | 中国航空无线电电子研究所 | Multi-metadata-excited ARINC664 switch cache overflow test method |
Also Published As
Publication number | Publication date |
---|---|
CN107196820B (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107196820A (en) | A kind of switch performance method of testing, apparatus and system | |
WO2018152919A1 (en) | Path selection method and system, network acceleration node, and network acceleration system | |
CN101132320B (en) | Method for detecting interface trouble and network node equipment | |
CN102684951B (en) | The system of selection of many Wide Area Network interface networking, system and network equipment | |
CN104202409B (en) | The SSL VPN devices group system and its method of work of a kind of load balancing | |
CN102130776B (en) | Communication method and system | |
CN108306777A (en) | Virtual gateway main/standby switching method and device based on SDN controllers | |
CN101668025B (en) | Method and device for discovering link layer network topology | |
CN104753828A (en) | SDN controller, data central system and route connection method | |
CN111786804A (en) | Link fault monitoring method and device | |
CN106533973A (en) | Method and system for distributing service message, and equipment | |
CN106603261A (en) | Hot backup method, first master device, backup device and communication system | |
CN204043128U (en) | Multi-online air-conditioning system | |
CN102469045B (en) | Method for improving concurrency of WEB security gateway | |
JP2010538551A (en) | Method and system for automatically confirming connectivity status of an IP link on an IP network | |
CN103220189A (en) | Multi-active detection (MAD) backup method and equipment | |
CN101815027A (en) | Method and device for determining availability of bundled link | |
CN104506339A (en) | Industrial Ethernet network topology management implementation method based on PROFINET | |
WO2016177190A1 (en) | Method and device for auto-negotiating lacp reference system and reference port | |
CN106817267A (en) | A kind of fault detection method and equipment | |
CN108353027A (en) | A kind of software defined network system for detecting port failure | |
CN101150478B (en) | A method, system and router for establishing master/slave link | |
CN107749796A (en) | The output power distribution method and device of PoE system | |
CN102724193B (en) | Control method aiming at streaming service survivability in IP (Internet protocol) network environment | |
CN101667927A (en) | Method and device for rapidly restoring service |
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 |