Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices are shown to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be used. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that there are three relationships. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" refers to an association or binding relationship, and a corresponds to B refers to an association or binding relationship between a and B.
With reference to fig. 1, a first method for switch seismic testing is provided in the embodiments of the present disclosure, which includes:
step S101, before the switch is vibrated, detecting and obtaining a first operation parameter and a first packet loss rate of the switch;
step S102, detecting and obtaining a third packet loss rate of the switch when the switch is vibrated;
step S103, after the switch is vibrated, detecting and obtaining a second operation parameter and a second packet loss rate of the switch;
and step S104, determining the performance earthquake resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate.
By adopting the method for the switch anti-vibration test provided by the embodiment of the disclosure, the first operation parameter and the first packet loss rate of the switch are obtained by detection before the switch is vibrated; detecting to obtain a third packet loss rate of the switch when the switch is vibrated; after the switch is vibrated, detecting and obtaining a second operation parameter and a second packet loss rate of the switch; and determining the performance earthquake-resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate. Therefore, the switch is vibrated to simulate an earthquake scene, the operation parameters of the switch before, after and in the earthquake scene are respectively obtained, the performance earthquake-resistant grade of the switch is determined according to the operation parameters and the packet loss rate of the switch, the performance earthquake-resistant grade of the switch can be automatically determined, and a user can conveniently construct a data center capable of stably operating according to the performance earthquake-resistant grade of the switch.
In some embodiments, vibrating the switch is accomplished by seismic modeling of a vibrating table, namely: placing a switch to be tested on a preset earthquake simulation shaking table, and connecting the switch with a power supply of the earthquake simulation shaking table through a power line; and a triaxial acceleration sensor is mounted on the exchanger and used for detecting the natural frequency and the damping ratio parameter of the exchanger. Because the earthquake simulation shaking table controls the input acceleration so as to simulate the earthquake scene, the switch is shaken by the earthquake simulation shaking table so as to simulate the earthquake scene.
Optionally, shaking the switch comprises shaking the switch in a first manner or shaking the switch in a second manner.
Optionally, the first mode is a multi-axial multi-frequency vibration mode; the second mode is a single-axial multi-frequency vibration mode.
In some embodiments, the axial direction of the vibrational mode comprises: one or more of a horizontal X-axis, a horizontal Y-axis, and a vertical Z-axis. The frequency of the vibration mode is that the exchanger is vibrated in the frequency range of 1Hz to 50 Hz.
In some embodiments, the first operating parameter of the exchange is a pre-earthquake operating parameter of the exchange and the second operating parameter of the exchange is a post-earthquake operating parameter corresponding to the pre-earthquake operating parameter of the exchange. The pre-earthquake operation parameters and the corresponding post-earthquake operation parameters of the exchanger comprise one or more of the working temperature of the processor, the rotating speed of the fan and the system voltage. Therefore, the performance earthquake-resistant grade of the switch can be automatically determined by obtaining the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate of the switch to determine the performance earthquake-resistant grade of the switch.
Optionally, determining a performance earthquake resistant level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate, includes: comparing the first operating parameter with the second operating parameter to obtain a comparison result; and determining the performance earthquake resistant grade of the switch according to the first packet loss rate, the second packet loss rate, the third packet loss rate and the comparison result.
Optionally, comparing the first operating parameter and the second operating parameter to obtain a comparison result, comprising: the difference between the first operating parameter and the second operating parameter is determined as a result of the comparison.
In some embodiments, the first operating parameter is a fan speed before the switch is vibrated, i.e., a first wind speed; the second operation parameter is the rotating speed of the fan after the exchanger is vibrated, namely the second wind speed rotating speed; the difference between the first fan speed and the second fan speed is determined as a result of the comparison.
Optionally, the pre-earthquake operation parameters and the corresponding post-earthquake operation parameters of the exchanger further include: the time delay of the data packet passing through the switch and the throughput of the switch; the throughput of the switch is used for representing the maximum data volume which can be forwarded by the switch under the condition of no packet loss.
In some embodiments, the first operating parameter is a time delay of the data packet passing through the switch before the switch is vibrated, i.e., a first time delay of the switch; the second operation parameter is a time delay of the data packet passing through the switch after the switch is vibrated, namely, a second time delay of the switch. And determining the difference value of the second time delay of the switch and the first time delay of the switch as a comparison result, and determining the performance earthquake resistant grade of the switch according to the first packet loss rate, the second packet loss rate, the third packet loss rate and the comparison result.
Optionally, comparing the first operating parameter and the second operating parameter to obtain a comparison result, comprising: determining that the comparison result is normal under the condition that the second operation parameter meets the rated parameter corresponding to the first operation parameter; and determining that the comparison result is abnormal under the condition that the second operation parameter meets the rated parameter corresponding to the first operation parameter.
In some embodiments, the first operating parameter is a system voltage, and then the rated parameter corresponding to the first operating parameter is a switch system rated voltage.
In some embodiments, when the difference between the second operating parameter and the rated parameter corresponding to the first operating parameter is within the preset value range, the second operating parameter satisfies the rated parameter corresponding to the first operating parameter, and meanwhile, it is determined that the comparison result is normal.
Optionally, comparing the first operating parameter and the second operating parameter to obtain a comparison result, comprising: determining the comparison result to be normal under the condition that the second operation parameter is consistent with the first operation parameter; in the case where the second operating parameter is not identical to the first operating parameter, the comparison result is determined to be abnormal.
In some embodiments, the first operating parameter is a color of the signal indicator light before the switch is vibrated, i.e., a first color of the signal indicator light; the second operation parameter is the color of the signal indicator lamp after the switch is vibrated, namely the second color of the signal indicator lamp; in the case where the first color coincides with the second color, the comparison result is determined to be normal.
Optionally, determining the performance earthquake resistant level of the switch according to the first packet loss rate, the second packet loss rate, the third packet loss rate and the comparison result, includes: under the condition that the first packet loss rate, the second packet loss rate and the third packet loss rate are all smaller than or equal to a preset threshold value, performing table look-up operation on a comparison result by using a preset first performance anti-seismic grade database to obtain a first performance anti-seismic grade corresponding to the comparison result; the first performance earthquake-resistant grade database stores the corresponding relation between the comparison result and the first performance earthquake-resistant grade; and/or under the condition that the first packet loss rate and the second packet loss rate are both smaller than or equal to a preset threshold value and the third packet loss rate is larger than the preset threshold value, performing table look-up operation on a comparison result by using a preset second performance earthquake-resistant grade database to obtain a second performance earthquake-resistant grade corresponding to the comparison result; and the second performance earthquake-resistant grade database stores the corresponding relation between the comparison result and the second performance earthquake-resistant grade.
In some embodiments, the performance earthquake resistance rating comprises a performance earthquake resistance rating of class a and a performance earthquake resistance rating of class B; the performance anti-seismic grade A is used for representing the performance anti-seismic grade of the switch, the switch can maintain stable operation, and the performance anti-seismic grade B is used for representing the performance anti-seismic grade of the switch, and the switch can recover stable operation. The performance earthquake-proof grade A corresponds to a first performance earthquake-proof grade database, and a first performance earthquake-proof grade corresponding to the comparison result is stored in the first performance earthquake-proof grade database, for example: … … M gear for gear 1 and gear 2; the 1-gear represents that the performance anti-seismic level of the switch is highest under the condition that the switch can maintain stable operation, and the M-gear represents that the performance anti-seismic level of the switch is lowest under the condition that the switch can maintain stable operation; from gear 1 to gear M, the performance shock resistance level of the switch respectively represented gradually decreases. The performance earthquake-resistant grade B level corresponds to a second performance earthquake-resistant grade database, and a second performance earthquake-resistant grade corresponding to the comparison result is stored in the second performance earthquake-resistant grade database, for example: a gear a, a gear b … … z; the a-gear represents that the performance anti-seismic level of the switch is highest under the condition that the switch can recover stable operation, and the z-gear represents that the performance anti-seismic level of the switch is lowest under the condition that the switch can recover stable operation; from the a gear to the z gear, the performance shock resistance level of the switch respectively represented is gradually reduced.
In some embodiments, the first packet loss rate, the second packet loss rate and the third packet loss rate of the switch are all 0; the preset threshold value is 1; detecting and obtaining a first operating parameter of the switch as a first switch working temperature and a first switch fan rotating speed; the second operation parameter is the working temperature of the second exchanger and the rotating speed of a fan of the second exchanger; the working temperature of the first exchanger is the working temperature of a processor before the exchanger is vibrated; the rotating speed of the fan of the first exchanger is the rotating speed of the fan before the exchanger is vibrated; the working temperature of the second exchanger is the working temperature of the processor after the exchanger is vibrated; the rotating speed of the fan of the second exchanger is the rotating speed of the fan after the exchanger is vibrated; comparing the working temperature of the first exchanger with the working temperature of the second exchanger to obtain a working temperature comparison result; and comparing the rotating speed of the first exchanger fan with the rotating speed of the second exchanger fan to obtain a fan rotating speed comparison result. And the first packet loss rate, the second packet loss rate and the third packet loss rate are all 0 and are smaller than a preset threshold value 1, a preset first performance anti-vibration level database is utilized, table look-up operation is carried out on the working temperature comparison result and the fan rotating speed comparison result, and a first performance anti-vibration level which corresponds to the working temperature comparison result and the fan rotating speed comparison result together is an A-level 1 level.
In some embodiments, the first packet loss rate of the switch is obtained to be 0, the second packet loss rate of the switch is obtained to be 0, and the third packet loss rate of the switch is obtained to be 20; the preset threshold value is 0; the first operation parameter is the rotating speed of a fan before the switch is vibrated, the second operation parameter is the rotating speed of the wind speed after the switch is vibrated, and the first operation parameter and the second operation parameter are compared to obtain the difference value of the first operation parameter and the second operation parameter, such as: 500 rpm; 500rpm was determined as the comparison result. And the first packet loss rate and the second packet loss rate are equal to a preset threshold value, the third packet loss rate is greater than the preset threshold value, and the second performance anti-seismic grade corresponding to the comparison result is a B-grade c grade by using a preset second performance anti-seismic grade database and comparing the comparison result through table look-up operation.
In some embodiments, the first operating parameter is a pre-earthquake natural frequency and damping ratio parameter of the exchanger obtained by detecting the three-axial acceleration sensor; and the second operation parameter is the parameters of the natural frequency and the damping ratio of the exchanger after the earthquake obtained by the three-axial acceleration sensor.
In some embodiments, before the switch is vibrated, the switch is tested by adopting a white noise excitation method, and the parameters of the natural frequency and the damping ratio of the switch before the vibration are obtained through the triaxial acceleration sensor; after the exchanger is vibrated, the exchanger is tested by adopting a white noise excitation method, and the natural frequency and the damping ratio parameter of the exchanger after the vibration are obtained through the triaxial acceleration sensor.
In some embodiments, the first operating parameter is a data recovery time of the switch when the redundant device of the switch is plugged and unplugged once before the switch is shaken. The second operation parameter is the data recovery time of the switch under the condition that the redundant equipment of the switch is plugged once after the switch is vibrated. Optionally, the redundant devices of the switch are a plurality of switch devices.
Referring to fig. 2, a second method for switch seismic testing is provided in an embodiment of the present disclosure, which includes:
step S201, before the switch is vibrated, detecting and obtaining a first operation parameter and a first packet loss rate of the switch;
step S202, acquiring a third packet loss rate of the switch in the process of vibrating the switch;
step S203, obtaining a switch performance closing instruction after vibrating the switch;
step S204, a second operation parameter and a second packet loss rate of the switch corresponding to the switch performance closing instruction are obtained;
step S205, determining a performance earthquake resistant level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate.
By adopting the method for the switch anti-vibration test provided by the embodiment of the disclosure, the first operation parameter and the first packet loss rate before the switch is vibrated are obtained; in the process of vibrating the switch, the third packet loss rate of the switch is obtained; after the switch is vibrated, a second operation parameter and a second packet loss rate of the switch corresponding to the switch performance closing instruction are obtained; thereby determining the performance seismic rating of the switch. Therefore, in the vibration process, operation errors may occur in part of the switch devices, the second operation parameters and the second packet loss rate corresponding to the switch performance closing instruction are obtained, and the anti-vibration performance of the switch can be more accurately obtained.
Optionally, the switch performance shutdown instruction includes: and closing part of the switch devices supporting the redundant operation. And the part of the switch devices supporting the redundant operation is shut down, and one or more of part of the fans, part of the power supply and part of the switch screen board are shut down. It should be understood that a switch device that supports redundant operation refers to a switch device that has a plurality of switch devices that perform the same function.
Optionally, after determining the performance earthquake resistant level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate, the method further includes: acquiring an appearance image of the switch; and determining the shell anti-seismic grade of the switch according to the appearance image.
As shown in fig. 3, the present disclosure provides a third method for anti-seismic testing of a switch, including:
step S301, before the switch is vibrated, detecting and obtaining a first operation parameter and a first packet loss rate of the switch;
step S302, detecting and obtaining a third packet loss rate of the switch when the switch is vibrated;
step S303, after the switch is vibrated, detecting and obtaining a second operation parameter and a second packet loss rate of the switch;
step S304, determining the performance earthquake resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate;
step S305, obtaining an appearance image of the switch after vibrating the switch;
and step S306, determining the shell anti-seismic grade of the switch according to the appearance image.
By adopting the method for the switch anti-seismic test provided by the embodiment of the disclosure, the appearance image of the switch after the switch is vibrated is obtained, and the shell anti-seismic grade of the switch is determined according to the appearance image. Therefore, the shell anti-seismic grade of the switch can be automatically determined, and a user can conveniently improve the shell quality of the switch according to the shell anti-seismic grade of the switch.
Optionally, determining the enclosure seismic rating of the switch from the appearance image comprises: determining a shadow area of the appearance image; comparing the area of the shadow area with a preset area to obtain an area comparison result; and determining the shell anti-seismic grade of the switch according to the area comparison result.
Optionally, determining a shadow region of the appearance image comprises: acquiring coordinate information of the appearance image; selecting a reference position according to the coordinate information; determining a plurality of interval positions at preset intervals in a coordinate area corresponding to the reference position; and determining the shadow area of the appearance image of the switch according to the interval position.
Alternatively, the reference position corresponding coordinate region is a lateral coordinate region of the reference position or a longitudinal coordinate region of the reference position. The predetermined interval is a coordinate interval 20, 60, 80 or other value, and the coordinate interval 20 is generally selected as the predetermined interval value.
Optionally, determining the shadow area of the switch appearance image according to the interval position includes: acquiring the gray value of the interval position; under the condition that the gray value of the interval position is smaller than a preset gray value, identifying the interval position corresponding to the gray value as a shadow position; and under the condition that the number of the shadow positions is greater than the preset number, identifying the coordinate area corresponding to the interval position as a shadow area.
In some embodiments, in the case that the gray value of the spacing position is less than the preset gray value, the spacing position corresponding to the gray value is identified as a shadow position, that is: in the case where the grayscale value of the spacing position is less than 20, 25, 30, or other numerical value, the spacing position corresponding to the grayscale value is identified as a shadow position. Usually 25 is selected as the predetermined gray value.
Optionally, comparing the area of the shadow region with a preset area to obtain an area comparison result, including: and determining the area comparison result by dividing the area of the shadow area by a preset area value.
Optionally, determining the shell earthquake resistance level of the switch according to the area comparison result includes: acquiring the vibration intensity of the switch for vibrating; performing table look-up operation on the area comparison result and the vibration intensity by using a preset shell vibration-resistance grade database to obtain a shell vibration-resistance grade corresponding to the area comparison result and the vibration intensity together; the preset shell anti-seismic grade database stores the corresponding relation among the area comparison result, the vibration strength and the shell anti-seismic grade. In this way, the shell anti-vibration grade of the switch is determined by vibrating the switch and detecting and obtaining the appearance image of the switch. The anti-seismic detection of the shell of the switch is realized under the simulated earthquake scene.
In some embodiments, the enclosure seismic rating comprises an enclosure seismic rating of 1, an seismic rating of 2, and an enclosure seismic rating of … …, level N; the shell anti-seismic level of the switch represented by the shell anti-seismic level 1 is the highest, the shell anti-seismic level of the switch represented by the shell anti-seismic level N is the lowest, and the shell anti-seismic levels of the switches represented by the shell anti-seismic level 1 to the shell anti-seismic level N are gradually reduced.
In some embodiments, the vibration intensity is classified into a primary vibration intensity, a secondary vibration intensity, and a tertiary vibration intensity. The first level vibration intensity is less than the second level vibration intensity, and the second level vibration intensity is less than the third level vibration intensity. And acquiring a shell anti-seismic grade which corresponds to the third-level vibration intensity and the area comparison result 0.2 together as a shell anti-seismic grade of 2 by utilizing a preset shell anti-seismic grade database, wherein the acquired vibration intensity is first-level vibration intensity, and the acquired area comparison result is 0.2.
Optionally, after determining the performance earthquake resistant level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate, the method further includes: and displaying the performance earthquake-resistant grade of the switch to a user.
As shown in fig. 4, a fourth method for switch seismic testing is provided in the embodiments of the present disclosure, including:
step S401, before the switch is vibrated, detecting and obtaining a first operation parameter and a first packet loss rate of the switch;
step S402, detecting and obtaining a third packet loss rate of the switch when the switch is vibrated;
step S403, after the switch is vibrated, detecting and obtaining a second operation parameter and a second packet loss rate of the switch;
step S404, determining the performance earthquake resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate;
and step S405, displaying the performance earthquake-resistant grade of the switch to a user.
By adopting the method for the switch anti-seismic test provided by the embodiment of the disclosure, the switch is vibrated to simulate the earthquake scene, the operation parameters of the switch before, after and in the earthquake scene are respectively obtained, the performance anti-seismic grade of the switch is determined according to the operation parameters and the packet loss rate of the switch, the performance anti-seismic grade of the switch can be automatically determined, and the performance anti-seismic grade of the switch is displayed to a user, so that the user can intuitively obtain the performance anti-seismic grade of the switch, and the user can conveniently construct a data center capable of stably running according to the performance anti-seismic grade of the switch.
Optionally, the displaying the performance earthquake-resistance rating of the switch to the user includes: and pushing the performance earthquake-resistant grade of the switch to a preset client.
Optionally, the displaying the performance earthquake-resistance rating of the switch to the user includes: and sending the performance earthquake-resistant grade of the switch to a preset display screen, and triggering the display screen to display the performance earthquake-resistant grade of the switch.
As shown in fig. 5, an embodiment of the present disclosure provides an apparatus for an anti-seismic test of a switch, including: a first test module 501, a second test module 502, a third test module 503, and a seismic grade determination module 504; the first testing module 501 is configured to detect and obtain a first operating parameter and a first packet loss rate of the switch before the switch is vibrated; the second testing module 502 is configured to detect and obtain a third packet loss rate of the switch when the switch is vibrated; the third testing module 503 is configured to detect and obtain a second operating parameter and a second packet loss rate of the switch after the switch is vibrated; a seismic level determination module 504 configured to determine a performance seismic level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate.
By adopting the device for the switch anti-vibration test provided by the embodiment of the disclosure, before the switch is vibrated through the first test module, the first operation parameter and the first packet loss rate of the switch are obtained through detection; when the second testing module shakes the switch, detecting to obtain a third packet loss rate of the switch; after the third testing module vibrates the switch, detecting and obtaining a second operation parameter and a second packet loss rate of the switch; the earthquake resistant grade determining module determines the performance earthquake resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate. Therefore, the switch is vibrated to simulate the earthquake scene, the operation parameters of the switch before, after and in the earthquake scene are respectively obtained, the performance earthquake-resistant grade of the switch is determined according to the operation parameters and the packet loss rate of the switch, the performance earthquake-resistant grade of the switch can be automatically determined, and a user can conveniently construct a data center capable of stably operating according to the performance earthquake-resistant grade of the switch.
Optionally, the earthquake resistance level determining module determines the performance earthquake resistance level of the switch according to the first operating parameter, the second operating parameter, the first packet loss rate, the second packet loss rate, and the third packet loss rate in the following manner: comparing the first operating parameter with the second operating parameter to obtain a comparison result; and determining the performance earthquake resistant grade of the switch according to the first packet loss rate, the second packet loss rate, the third packet loss rate and the comparison result.
Optionally, the earthquake resistance level determining module determines the performance earthquake resistance level of the switch according to the first packet loss rate, the second packet loss rate, the third packet loss rate and the comparison result in the following manner: under the condition that the first packet loss rate, the second packet loss rate and the third packet loss rate are all smaller than or equal to a preset threshold value, performing table look-up operation on a comparison result by using a preset first performance anti-seismic grade database to obtain a first performance anti-seismic grade corresponding to the comparison result; the first performance earthquake-resistant grade database stores the corresponding relation between the comparison result and the first performance earthquake-resistant grade; and/or under the condition that the first packet loss rate and the second packet loss rate are both smaller than or equal to a preset threshold value and the third packet loss rate is larger than the preset threshold value, performing table look-up operation on a comparison result by using a preset second performance earthquake-resistant grade database to obtain a second performance earthquake-resistant grade corresponding to the comparison result; and the second performance earthquake-resistant grade database stores the corresponding relation between the comparison result and the second performance earthquake-resistant grade.
As shown in fig. 6, the embodiment of the present disclosure provides a computer device including a processor (processor)600 and a memory (memory)601 storing program instructions. Optionally, the electronic device may further include a Communication Interface 602 and a bus 603. The processor 600, the communication interface 602, and the memory 601 may communicate with each other via a bus 603. The communication interface 602 may be used for information transfer. Processor 600 may invoke program instructions in memory 601 to perform the method for switch seismic testing of the above-described embodiments.
In addition, the program instructions in the memory 601 may be implemented in the form of software functional units and stored in a readable storage medium when the program instructions are sold or used as independent products.
The memory 601 is a readable storage medium, and can be used for storing software programs, executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 600 executes the functional application and data processing by executing the program instructions/modules stored in the memory 601, that is, implements the method for the switch anti-vibration test in the above-described embodiment.
The memory 601 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 601 may include a high speed random access memory, and may also include a non-volatile memory.
Optionally, the computer device comprises a computer or a server, etc.
By adopting the computer equipment provided by the embodiment of the disclosure, the first operating parameter and the first packet loss rate of the switch are detected and obtained before the switch is vibrated; detecting to obtain a third packet loss rate of the switch when the switch is vibrated; after the switch is vibrated, detecting and obtaining a second operation parameter and a second packet loss rate of the switch; and determining the performance earthquake-resistant grade of the switch according to the first operation parameter, the second operation parameter, the first packet loss rate, the second packet loss rate and the third packet loss rate. Therefore, the switch is vibrated to simulate an earthquake scene, the operation parameters of the switch before, after and in the earthquake scene are respectively obtained, the performance earthquake-resistant grade of the switch is determined according to the operation parameters and the packet loss rate of the switch, the performance earthquake-resistant grade of the switch can be automatically determined, and a user can conveniently construct a data center capable of stably operating according to the performance earthquake-resistant grade of the switch.
The embodiment of the disclosure provides a storage medium, which stores executable instructions configured to execute the method for the switch anti-seismic test.
Embodiments of the present disclosure provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for switch seismic testing.
The readable storage medium may be a transitory readable storage medium or a non-transitory readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.