CN115361320B - Test method and test system for automatically testing throughput performance of bypass equipment - Google Patents

Test method and test system for automatically testing throughput performance of bypass equipment Download PDF

Info

Publication number
CN115361320B
CN115361320B CN202210974913.8A CN202210974913A CN115361320B CN 115361320 B CN115361320 B CN 115361320B CN 202210974913 A CN202210974913 A CN 202210974913A CN 115361320 B CN115361320 B CN 115361320B
Authority
CN
China
Prior art keywords
test
packet
sending
packet sending
byte
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210974913.8A
Other languages
Chinese (zh)
Other versions
CN115361320A (en
Inventor
李永辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Sipuling Technology Co Ltd
Original Assignee
Wuhan Sipuling Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Sipuling Technology Co Ltd filed Critical Wuhan Sipuling Technology Co Ltd
Priority to CN202210974913.8A priority Critical patent/CN115361320B/en
Publication of CN115361320A publication Critical patent/CN115361320A/en
Application granted granted Critical
Publication of CN115361320B publication Critical patent/CN115361320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput

Abstract

The application discloses a test method and a test system for automatically testing throughput performance of bypass equipment, wherein the throughput performance of the bypass equipment can be tested by simulating the test method of RFC2544 throughput of forwarding equipment through a suite set of the automatic test cases, so that the throughput performance value of the bypass equipment is obtained, the pain point that the bypass equipment cannot test the throughput performance is solved, the whole test process is realized through python automation, the repetition of manual test is reduced, the test method can find the optimal throughput value faster than a dichotomy, after the test, a recorded test process and test result are generated by a management PC1 and are sent to an external terminal in a mail form, a user can check the test process and the test result through an external computer, a mobile phone and other terminals, and can manually extract the test result, select a certain fixed byte of the test result to perform manual test, and confirm the throughput performance value, so that the accuracy of true test is facilitated.

Description

Test method and test system for automatically testing throughput performance of bypass equipment
Technical Field
The embodiment of the application relates to the technical field of testing of throughput performance of bypass equipment RFC2544, in particular to a testing method and a testing system for automatically testing the throughput performance of bypass equipment.
Background
Usually, forwarding devices such as switches and the like can test the throughput performance of RFC2544 through professional meters such as Testcenter and the like, and the meters can send out a test report according to test results. The principle is as follows: as shown in the networking of fig. 1, the Testcenter meter is connected in series with the switch to be tested, and generally, the RFC2544 throughput test method defines throughput according to the dichotomy. The instrument will firstly send the UDP message with the fixed byte size for 20s at the rate of 100% through the instrument Port1/1, compare the statistics of the received packet of Port1/2 after the sending, if the statistics of the message sent by Port1/1 is inconsistent, adjust the sending rate to 50% for retransmission, if the sending is consistent, adjust the sending rate to 75%, and find the maximum throughput value of the current fixed byte sending without losing the packet through the dichotomy. And typically RFC2544 will test the throughput of a fixed set of bytes, typically 64, 128, 256, 512, 1024, 1280 and 1518. And testing a throughput performance value according to each different byte value, and finally, the instrument can provide a performance test report of RFC2544 according to other performance indexes such as statistically analyzed delay in the test process, so that the throughput performance index of each test byte of the equipment to be tested can be obtained from the report.
However, the bypass device only receives the message for processing and does not forward the message, so the traditional method for testing the throughput performance of the device RFC2544 by using the professional instrument is not applicable any more. There is a need for a new testing method for such bypass deployed devices to perform throughput performance testing.
Disclosure of Invention
The application provides a test method and a test system for automatically testing throughput performance of bypass equipment, wherein the throughput performance test of the bypass equipment can be performed by simulating the test method of RFC2544 throughput of forwarding equipment through a suite set of automatic test cases, so that the throughput performance value of the bypass equipment is obtained, and the pain point that the bypass equipment cannot test the throughput performance is solved.
In a first aspect, the present application provides a test method for automatically testing throughput performance of a bypass device, where the test method is used to test an optimal packet sending rate of specified packet sending bytes of a tested bypass device, and a plurality of specified packet sending bytes form a pre-test byte assembly set, and the test method includes:
responding to the received test instruction, executing a test script;
sending a package sending instruction to a package sending server, wherein the package sending instruction comprises a designated package sending byte, a first package sending rate and package sending time, and the designated package sending byte is any one of the pre-test byte combinations;
acquiring the packet sending number p3 sent by the packet sending server to the tested bypass equipment according to the packet sending instruction; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of the detected bypass equipment for the packets sent by the packet sending server;
comparing p1 and p2 with p3 respectively, and generating test results for passing the appointed packet byte test when p1 and p2 are equal to p 3.
In some embodiments, the method further comprises:
if the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
meanwhile, the step of sending a packet sending instruction to the packet sending server is re-executed, wherein the packet sending instruction comprises a designated packet sending byte, a second packet sending rate and a packet sending time, and the value of the second packet sending rate is different from that of the first packet sending rate.
In some embodiments, the second packet sending rate is the minimum value of a hardware packet receiving success rate and a software processing success rate.
In some embodiments, the packet sending instruction is configured to control the packet sending server to clear the packet sending interface statistics cached by the packet sending server itself before sending packets to the tested bypass device each time;
the package sending instruction is also configured to control the tested bypass device to clear the number of hardware packages and the number of software processing packages cached by the tested bypass device before receiving the package sent by the package sending server each time.
In some embodiments, the method further comprises:
and testing all the designated package bytes in the pre-test byte collection one by one until all the designated package bytes in the pre-test byte collection pass the test.
In some embodiments, the method further comprises:
and after the fact that all the designated package sending bytes in the pre-test byte collection pass the test is monitored, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail mode.
In a second aspect, the present application provides a test system for automatically testing throughput performance of bypass equipment, the test system comprising: the device comprises a tested bypass device, a switch SW, a packet sending server and a management PC, wherein the management PC is respectively connected with the packet sending server and the tested bypass device through the switch SW, and the packet sending server sends packets to the tested bypass device;
the management PC is configured to:
responding to the received test instruction, executing a test script;
transmitting a packet sending instruction to a packet sending server through a switch SW, wherein the packet sending instruction comprises a designated packet sending byte, a first packet sending rate and packet sending time, and the designated packet sending byte is any one of the pre-test byte combinations;
acquiring the number p3 of the packets sent by the packet sending server to the tested bypass equipment according to the packet sending instruction through the switch SW; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of the detected bypass equipment for the packets sent by the packet sending server;
comparing p1 and p2 with p3 respectively, and generating test results for passing the appointed packet byte test when p1 and p2 are equal to p 3.
In some embodiments, the management PC is further configured to:
if the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
meanwhile, the step of sending a packet sending instruction to the packet sending server is re-executed, wherein the packet sending instruction comprises a designated packet sending byte, a second packet sending rate and packet sending time, and the value of the second packet sending rate is different from that of the first packet sending rate;
and the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate.
In some embodiments, the management PC is further configured to:
and after the fact that all the designated package sending bytes in the pre-test byte collection pass the test is monitored, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail mode.
The test method and the test system for automatically testing the throughput performance of the bypass equipment have the following beneficial effects:
according to the application, through the suite set of the automatic test cases, the throughput performance test of the bypass equipment can be carried out by the test method for simulating the throughput of the forwarding equipment RFC2544, so that the throughput performance value of the bypass equipment is obtained, the problem that the bypass equipment cannot test the throughput performance is solved, the hardware of the bypass equipment to be tested, the switch SW, the packet server, the management PC and the like are networked, the test script is stored in the management PC, the whole test process is realized through python automation, and the repetition of manual test is reduced; in the test process, the packet sending rate selects the minimum value of the hardware packet receiving success rate and the software processing success rate, and the best throughput value can be found faster than the dichotomy; after the test, the management PC generates a test report from the recorded test process and test result, and sends the report to an external terminal in the form of mail, a user can check the test process and the test result through the external computer, the mobile phone and other terminals, and can manually extract the test result, select one fixed byte for manual test, and confirm the throughput performance value.
Drawings
FIG. 1 is a schematic diagram of a conventional method of networking;
FIG. 2 is a schematic diagram of the hardware components of the test system according to the present application;
FIG. 3 is a flow chart of a testing method according to the present application;
fig. 4 is a flowchart of a second packet sending rate calculating method in the present application.
In the figure: 1. the system comprises a management PC (personal computer), a 2 switch SW (switch), a 3 bypass device to be tested, a 4 package server.
Detailed Description
In order to make the technical solution of the present application better understood by those skilled in the art, the technical solution of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
RFC2544 is a standard for testing and measuring the performance of network devices, which standard was specified in 1999, 6 tests being defined in RFC 2544: throughput, delay, packet loss rate, back-to-back test, reset test and system recovery.
Referring to fig. 1, the present RFC2544 throughput performance test method comprises: the method comprises the steps that a professional test instrument is connected with a switch to be tested in series, the professional test instrument firstly sends a UDP message B1 with a fixed byte size to the switch to be tested at a speed of 100% through an instrument interface 1/1, the switch to be tested receives the UDP message B1 and stores the UDP message B2 as a UDP message B2, after the transmission is finished, the professional test instrument receives the UDP message B2 sent by the switch to be tested through the interface 1/2, and the professional test instrument compares the sent UDP message B1 with the received UDP message B2, so that whether the current sending speed is an optimal value is judged;
the bypass equipment (such as An Botong eagle eye full flow analysis system) tested by the application only receives the message for processing and does not forward the message, if the special test instrument is still adopted for carrying out RFC2544 throughput performance test, the special test instrument cannot obtain the UDP message sent by the bypass equipment, and further cannot compare, and whether the current sending rate is an optimal value cannot be judged, so that the traditional test method for carrying out the RFC2544 throughput performance of the equipment by using the special instrument is not suitable for the bypass equipment.
Referring to fig. 2, the application discloses a test system for automatically testing throughput performance of a bypass device RFC2544, which comprises a bypass device to be tested 3, a switch SW2, a packet sending server 4 and a management PC1, wherein the management PC1 is respectively connected with the packet sending server 4 and the bypass device to be tested 3 through the switch SW2, and the packet sending server 4 sends packets to the bypass device to be tested 3.
The management PC1 stores therein a test script, and when the management PC1 receives a test instruction, automatically executes a test to find an optimal throughput value of the tested bypass device 3, i.e., an optimal packet sending rate for a specified packet sending byte of the tested bypass device 3.
Before testing, referring to fig. 2, hardware of the tested bypass device 3, the switch SW2, the packet server 4, the management PC1, and the like are networked: the management PC1 is connected with the control tested bypass equipment 3 through SSH; the management PC1 is connected with the packet sending server 4 through SSH, and controls the dpdktrex software to generate a UDP data packet with fixed bytes according to a certain rate through a python program; the packet server 4 sets the source IP change and the destination IP fixed, the source port increases by 20000 from 1025, and the destination port increases by 100 from 1025.
When the test is executed, firstly, configuring bytes required to be subjected to throughput performance test, and defaulting the throughput performance values of 64, 128, 256, 512, 1024, 1280 and 1518 bytes, wherein a user can also specify the package sending bytes, and a plurality of specified package sending bytes form a pre-test byte set;
referring to fig. 3, the management PC1 executes a test script, and sends a packet sending instruction to the packet sending server 4, where the packet sending instruction includes a specified packet sending byte, a first packet sending rate, and a packet sending time, and the specified packet sending byte is any one of the pre-test byte combinations;
when a certain designated packet byte is tested, the packet sending rate of the first test is 100%, taking the designated packet byte as 64 bytes and the packet sending time as 20s as an example, the steps are as follows: the management PC1 controls the packet-issuing server 4 to send UDP messages at a rate of 100% at 64 bytes (including crc) to the tested bypass device 3 for 20s.
Acquiring the packet sending number p3 sent by the packet sending server 4 to the tested bypass equipment 3 according to the packet sending instruction; the method comprises the steps of obtaining the hardware packet receiving number p1 and the software processing packet number p2 of a packet sent by the packet sending server 4 by the bypass equipment 3 to be tested, comparing the p1 and the p2 with the p3 respectively, and generating a test result for passing the specified packet sending byte test when the p1 and the p2 are equal to the p3;
the method comprises the steps that when a packet sending server 4 sends packets to a tested bypass device 3, hardware of the tested bypass device 3 synchronously receives packets, software of the tested bypass device 3 synchronously processes packets, and after the packet sending time is 20s, a management PC1 obtains the packet sending number p3 in the packet sending server 420s, for example, the packet sending number is 30, namely, p3=30; the management PC1 acquires the hardware packet count p1 and the software processing packet count p2 in the tested bypass device 320s, for example, the hardware packet count is 30, the software processing packet count is 30, and p1=p2=p3=30, and then the test is considered to pass, i.e. the optimal packet sending rate of the tested bypass device 3 at 64 bytes is 100%.
If the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
for example, the management PC1 acquires the number of packets within the packet server 420s as 30, that is, p3=30; the management PC1 acquires that the number of hardware packets in the bypass device under test 320s is 30 and the number of software processing packets is 29, that is, p1=30, p2=29, at which point p2+.p3, that is, that there is an unequal term to p3 in p1 and p2, the test is considered to be failed.
When the test does not pass, the management PC1 adjusts the first packet sending rate to the second packet sending rate and retests;
the management PC1 transmits a packet-issuing instruction again to the packet-issuing server 4, the packet-issuing instruction including a specified packet-issuing byte, a second packet-issuing rate, and a packet-issuing time, wherein the value of the second packet-issuing rate is different from the value of the first packet-issuing rate.
Referring to fig. 4, the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate, and the specific calculation method is as follows:
the hardware packet receiving success rate is calculated, and the calculation formula is as follows:
η1=(p1/p3)100%
wherein: η1 is the hardware packet receiving success rate, p1 is the hardware packet receiving number of the read interface on the tested bypass device 3, and p3 is the packet sending number of the packet sending server 4.
The success rate of software processing is calculated, and the calculation formula is as follows:
η2=(p2/p3)100%
wherein: η2 is the software processing success rate, p2 is the number of software processing packets on the tested bypass device 3, and p3 is the number of packets sent by the packet sending server 4.
Taking the number of packets sent as 30, the number of packets received by hardware as 30 and the number of packets processed by software as 29 as an example, the following steps are taken:
η1=(30/30)×100%=100%;
η2=(29/30)×100%=96.66%;
η1>η2;
the hardware packet receiving success rate eta 1 is 100%, the software processing success rate eta 2 is 96.66%, the second packet sending rate is equal to eta 1 because eta 1 is larger than eta 2, the second packet sending rate is 96.66%, the management PC1 controls the packet sending server 4 to send UDP messages to the tested bypass equipment 3 at 64 bytes (including crc) at 96.66%, the test is continued for 20 seconds, the test is repeated, and the test steps are repeated until the optimal packet sending rate of 64 bytes is obtained.
The existing RFC2544 throughput performance test method is characterized in that the optimal sending rate is continuously tested and found through a dichotomy, and the method specifically comprises the following steps:
the instrument will firstly send the UDP message with fixed byte size for 20s through the instrument Port1/1 at 100% rate, compare the statistics of the received packet of Port1/2 after sending, if the statistics of the message sent by Port1/1 is inconsistent, adjust the sending rate to 50% for retransmission, if the sending rate is consistent, adjust the sending rate to 75%, and find the maximum throughput value of the current fixed byte sending without packet loss through the dichotomy;
from the above, the dichotomy is a continuous interval value selection test, and the reduced interval is not calculated, so that the optimal packet sending rate of the fixed byte is obtained, the whole test process is complex, the required time is long, and the efficiency is low.
The test rate of the application is determined according to the hardware packet receiving success rate and the software processing success rate of the test bypass equipment, the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate, and the optimal packet sending rate of the fixed byte can be determined usually by two to three tests, so that the optimal throughput value can be found faster than the best throughput value of the test bypass equipment by a dichotomy.
Referring to fig. 3, the packet sending instruction is configured to control the packet sending server 4 to clear the packet sending interface statistics cached by the packet sending server 4 before sending packets to the tested bypass device 3 each time;
the packet sending instruction is also configured to control the tested bypass equipment 3 to clear the number of hardware packets and the number of software processing packets cached by the tested bypass equipment 3 before receiving the packets sent by the packet sending server 4 each time;
that is, the management PC1 controls the packet sending server 4 to clear the last packet sending statistics buffered by the packet sending server 4 before each packet sending, so as to avoid affecting the subsequent test, and similarly, the management PC1 controls the tested bypass device 3 to clear the last hardware packet receiving statistics and the last software processing packet statistics buffered by the tested bypass device 3 before each packet receiving, so that the accuracy of data acquisition is ensured, and the accuracy of the test is ensured.
Testing all designated package bytes in the pre-test byte assembly one by one until all designated package bytes in the pre-test byte assembly pass the test;
after the optimal packet sending rate of 64 bytes is tested, the test method is adopted to test other untested bytes in the pre-test byte aggregation set until all the specified packet sending bytes in the pre-test byte aggregation set are tested, if the specified test is not set by a user, the throughput performance values of 64, 128, 256, 512, 1024, 1280 and 1518 bytes are defaulted, and the test sequence can be randomly extracted, can be sequentially tested, and can be from big to small, or from small to big.
After all the appointed packet sending bytes in the pre-test byte collection are monitored to pass the test, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail form;
when the management PC1 detects that all the specified package sending bytes in the pre-test byte assembly are tested or all the default test bytes are tested, the management PC1 records the test process, the test result, the package sending number of the package sending server 4 in each test, the hardware package receiving number and the software processing package number of the tested bypass equipment 3, generates a test report according to the record, and sends the test report to an external terminal in a mail form;
the user can check the test process and the test result through the terminals such as an external computer, a mobile phone and the like, can manually extract the test result, selects a certain fixed byte for manual test, and confirms the throughput performance value, thereby verifying the accuracy of the test.
The test system for automatically testing the RFC2544 throughput performance of the bypass equipment has the following advantages:
the handling capacity test method of the RFC2544 handling capacity test method of the forwarding equipment can simulate the handling capacity test of the bypass equipment through the suite set of the automatic test cases, so that the handling capacity value of the bypass equipment is obtained, the problem that the handling capacity of the bypass equipment cannot be tested is solved, the tested bypass equipment 3, the switch SW2, the packet server 4, the management PC1 and other hardware are networked, the management PC1 stores a test script, the whole test process is realized through python automation, and the repetition of manual test is reduced; in the test process, the packet sending rate selects the minimum value of the hardware packet receiving success rate and the software processing success rate, and the best throughput value can be found faster than the dichotomy; after the test, the management PC1 generates a test report from the recorded test process and test result, and sends the report to an external terminal in the form of mail, a user can check the test process and the test result through the terminal such as an external computer, a mobile phone and the like, and can manually extract the test result, select a certain fixed byte for manual test, and confirm the throughput performance value, thereby facilitating the accuracy of the verification test.
The application also discloses a test method and a test system for automatically testing the throughput performance of the bypass equipment, wherein the test method is used for testing the optimal packet sending rate of the appointed packet sending bytes of the bypass equipment to be tested, and a plurality of appointed packet sending bytes form a pre-test byte assembly, and the test method comprises the following steps:
responding to the received test instruction, executing a test script;
sending a package sending instruction to a package sending server, wherein the package sending instruction comprises a designated package sending byte, a first package sending rate and package sending time, and the designated package sending byte is any one of the pre-test byte combinations;
acquiring the packet sending number p3 sent by the packet sending server to the tested bypass equipment according to the packet sending instruction; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of the detected bypass equipment for the packets sent by the packet sending server;
comparing p1 and p2 with p3 respectively, and generating test results of passing the appointed packet byte test when both p1 and p2 are equal to p3;
if the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
meanwhile, the step of sending a packet sending instruction to the packet sending server is re-executed, wherein the packet sending instruction comprises a designated packet sending byte, a second packet sending rate and packet sending time, and the value of the second packet sending rate is different from that of the first packet sending rate;
the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate;
the package sending instruction is configured to control the package sending server to clear package sending interface statistics cached by the package sending server before sending packages to the tested bypass equipment each time;
the package sending instruction is also configured to control the tested bypass equipment to clear the number of hardware packages and the number of software processing packages cached by the tested bypass equipment before receiving the package sent by the package sending server each time;
testing all designated package bytes in the pre-test byte assembly one by one until all designated package bytes in the pre-test byte assembly pass the test;
and after the fact that all the designated package sending bytes in the pre-test byte collection pass the test is monitored, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail mode.
The method for guiding the bypass equipment to carry out throughput performance index test disclosed by the scheme greatly improves the recognition of research and development on the performance of the bypass equipment to be tested, and can confirm the version after performance optimization through each group of results of the test.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A test method for automatically testing throughput performance of bypass equipment is characterized in that: the test method is used for testing the optimal packet sending rate of the appointed packet sending bytes of the tested bypass equipment, and a plurality of appointed packet sending bytes form a pre-test byte assembly, and the test method comprises the following steps:
responding to the received test instruction, executing a test script;
sending a package sending instruction to a package sending server, wherein the package sending instruction comprises a designated package sending byte, a first package sending rate and package sending time, and the designated package sending byte is any one of the pre-test byte combinations;
acquiring the packet sending number p3 sent by the packet sending server to the tested bypass equipment according to the packet sending instruction; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of the detected bypass equipment for the packets sent by the packet sending server;
comparing p1 and p2 with p3 respectively, and generating test results for passing the appointed packet byte test when p1 and p2 are equal to p 3.
2. The method of testing according to claim 1, wherein the method further comprises:
if the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
meanwhile, the step of sending a packet sending instruction to the packet sending server is re-executed, wherein the packet sending instruction comprises a designated packet sending byte, a second packet sending rate and a packet sending time, and the value of the second packet sending rate is different from that of the first packet sending rate.
3. The test method according to claim 2, wherein:
and the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate.
4. A test method according to claim 3, wherein:
the method for calculating the hardware packet receiving success rate comprises the following steps:
η1=(p1/p3)100%
wherein: η1 is the hardware packet receiving success rate, p1 is the hardware packet receiving number of the reading interface on the tested bypass equipment, and p3 is the packet sending number of the packet sending server;
the calculation method of the software processing success rate comprises the following steps:
η2=(p2/p3)100%
wherein: η2 is the software processing success rate, p2 is the number of software processing packages on the tested bypass device, and p3 is the number of packages sent by the package sending server.
5. The method of testing according to claim 4, wherein:
the package sending instruction is configured to control the package sending server to clear package sending interface statistics cached by the package sending server before sending packages to the tested bypass equipment each time;
the package sending instruction is also configured to control the tested bypass device to clear the number of hardware packages and the number of software processing packages cached by the tested bypass device before receiving the package sent by the package sending server each time.
6. The method of testing according to claim 5, further comprising:
and testing all the designated package bytes in the pre-test byte collection one by one until all the designated package bytes in the pre-test byte collection pass the test.
7. The method of testing of claim 6, further comprising:
and after the fact that all the designated package sending bytes in the pre-test byte collection pass the test is monitored, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail mode.
8. A test system for automatically testing throughput performance of bypass equipment is characterized in that: the test system includes: the device comprises a tested bypass device, a switch SW, a packet sending server and a management PC, wherein the management PC is respectively connected with the packet sending server and the tested bypass device through the switch SW, and the packet sending server sends packets to the tested bypass device;
the management PC is configured to:
responding to the received test instruction, executing a test script;
transmitting a packet sending instruction to a packet sending server through a switch SW, wherein the packet sending instruction comprises a designated packet sending byte, a first packet sending rate and packet sending time, and the designated packet sending byte is any one of a set of pre-test bytes;
acquiring the number p3 of the packets sent by the packet sending server to the tested bypass equipment according to the packet sending instruction through the switch SW; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of the detected bypass equipment for the packets sent by the packet sending server;
comparing p1 and p2 with p3 respectively, and generating test results for passing the appointed packet byte test when p1 and p2 are equal to p 3.
9. The test system of claim 8, wherein: the management PC is further configured to:
if the items which are not equal to p3 exist in the p1 and the p2, generating a test result which indicates that the packet byte test is not passed;
meanwhile, the step of sending a packet sending instruction to the packet sending server is re-executed, wherein the packet sending instruction comprises a designated packet sending byte, a second packet sending rate and packet sending time, and the value of the second packet sending rate is different from that of the first packet sending rate;
and the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate.
10. The test system of claim 9, wherein: the management PC is further configured to:
and after the fact that all the designated package sending bytes in the pre-test byte collection pass the test is monitored, generating a test report by the test statistical result, and sending the test report to an external terminal in a mail mode.
CN202210974913.8A 2022-08-15 2022-08-15 Test method and test system for automatically testing throughput performance of bypass equipment Active CN115361320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210974913.8A CN115361320B (en) 2022-08-15 2022-08-15 Test method and test system for automatically testing throughput performance of bypass equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210974913.8A CN115361320B (en) 2022-08-15 2022-08-15 Test method and test system for automatically testing throughput performance of bypass equipment

Publications (2)

Publication Number Publication Date
CN115361320A CN115361320A (en) 2022-11-18
CN115361320B true CN115361320B (en) 2023-11-17

Family

ID=84033958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210974913.8A Active CN115361320B (en) 2022-08-15 2022-08-15 Test method and test system for automatically testing throughput performance of bypass equipment

Country Status (1)

Country Link
CN (1) CN115361320B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734904A (en) * 2013-12-23 2015-06-24 研祥智能科技股份有限公司 Automatic detection method and system of by-pass equipment
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
CN110120894A (en) * 2019-03-25 2019-08-13 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus of testing throughput
CN111711546A (en) * 2020-06-17 2020-09-25 杭州安恒信息技术股份有限公司 Device throughput testing method, device, system and computer readable storage medium
US10929261B1 (en) * 2018-06-25 2021-02-23 Amazon Technologies, Inc. Device diagnosis
CN113282506A (en) * 2021-06-11 2021-08-20 中国农业银行股份有限公司 Test data acquisition method, device, equipment and computer readable storage medium
CN114363217A (en) * 2021-12-23 2022-04-15 北京六方云信息技术有限公司 RFC2544 throughput performance test method, system, equipment and medium
CN114860518A (en) * 2022-04-02 2022-08-05 浙江中控技术股份有限公司 Detection method and system of function safety system, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8514697B2 (en) * 2010-01-08 2013-08-20 Sycamore Networks, Inc. Mobile broadband packet switched traffic optimization
US9961002B2 (en) * 2015-12-02 2018-05-01 Macau University Of Science And Technology PacketUsher: accelerating computer-intensive packet processing
US10567285B2 (en) * 2017-03-17 2020-02-18 Citrix Systems, Inc. Increasing QoS throughput and efficiency through lazy byte batching
WO2022026570A1 (en) * 2020-07-30 2022-02-03 Lisnr Audio-based exit detection and payment confirmation for computing devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734904A (en) * 2013-12-23 2015-06-24 研祥智能科技股份有限公司 Automatic detection method and system of by-pass equipment
CN105224447A (en) * 2014-06-11 2016-01-06 联创汽车电子有限公司 Engine controller software diagnosis module test method and test macro
US10929261B1 (en) * 2018-06-25 2021-02-23 Amazon Technologies, Inc. Device diagnosis
CN110120894A (en) * 2019-03-25 2019-08-13 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus of testing throughput
CN111711546A (en) * 2020-06-17 2020-09-25 杭州安恒信息技术股份有限公司 Device throughput testing method, device, system and computer readable storage medium
CN113282506A (en) * 2021-06-11 2021-08-20 中国农业银行股份有限公司 Test data acquisition method, device, equipment and computer readable storage medium
CN114363217A (en) * 2021-12-23 2022-04-15 北京六方云信息技术有限公司 RFC2544 throughput performance test method, system, equipment and medium
CN114860518A (en) * 2022-04-02 2022-08-05 浙江中控技术股份有限公司 Detection method and system of function safety system, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
IP网络安全产品性能测试技术研究;谢朝海;中国优秀硕士学位论文全文数据库;全文 *
Test strategies on functionally partitioned module-based programmable architecture for base-band processing;S. Leung et.al.;Proceedings Euromicro Symposium on Digital Systems Design;全文 *
一种基于网络旁路的应用系统通用监控与预警系统的设计和实现;臧其事;谢立帆;李思宇;;网络安全技术与应用(12);全文 *

Also Published As

Publication number Publication date
CN115361320A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN111327471B (en) Network quality analysis method, device, computer equipment and storage medium
CN112714047B (en) Industrial control protocol flow based test method, device, equipment and storage medium
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN109067938B (en) Method and device for testing DNS (Domain name Server)
CN106897219B (en) Method and device for testing stability of mobile terminal system
CN110855520B (en) Network performance test method and test device, electronic device and storage medium
CN109613412B (en) Method for analyzing STDF detection data in real time
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN111711544B (en) Link dial testing method and device, electronic equipment and storage medium
CN112752285B (en) Sniffing copy control equipment and method for Wi-SUN network test
CN113542029A (en) Service stability testing method, system and tool of network equipment
CN116719750B (en) Software testing method and device, server equipment and storage medium
CN115361320B (en) Test method and test system for automatically testing throughput performance of bypass equipment
CN113765733A (en) Bus network testing method and device
CN112837640A (en) Screen dynamic picture testing method, system, electronic equipment and storage medium
CN113094272B (en) Application testing method, device, electronic equipment and computer readable medium
CN115225455A (en) Abnormal device detection method and device, electronic device and storage medium
CN111858781B (en) Simulation method and device based on preset communication protocol
CN114363217A (en) RFC2544 throughput performance test method, system, equipment and medium
CN113079522A (en) OTT service quality testing method, OTT service quality testing device, electronic equipment and storage medium
CN113032255A (en) Response noise recognition method, model, electronic device, and computer storage medium
CN114640596A (en) System and method for automatically simulating network damage of all interactive messages between two entities
CN112231157A (en) AI server HCA card performance test method and system based on hardware topology
US20150138990A1 (en) Assistance device, assistance method and program
CN113676373B (en) Session test method, session test device, computer equipment and storage medium

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