CN115361320A - 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
CN115361320A
CN115361320A CN202210974913.8A CN202210974913A CN115361320A CN 115361320 A CN115361320 A CN 115361320A CN 202210974913 A CN202210974913 A CN 202210974913A CN 115361320 A CN115361320 A CN 115361320A
Authority
CN
China
Prior art keywords
packet sending
test
packet
sending
tested
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
Application number
CN202210974913.8A
Other languages
Chinese (zh)
Other versions
CN115361320B (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

Images

Classifications

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

Landscapes

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

Abstract

The application discloses a test method and a test system for automatically testing throughput performance of bypass equipment, through a suite set of an automatic test case, the throughput performance of the bypass equipment can be tested by a test method for simulating throughput of forwarding equipment RFC2544, so that the throughput performance value of the bypass equipment is obtained, the pain point that the throughput performance of the bypass equipment cannot be tested is solved, the whole test process is automatically realized through python, the repetition of manual test is reduced, the test method can find the optimal throughput value more quickly than a binary method, after the test, a management PC1 generates a test report according to the recorded test process and test result and sends the test report to an external terminal in a mail form, a user can check the test process and test result through terminals such as an external computer and a mobile phone, the test result can be manually tested, a certain fixed byte is selected for manual test, the throughput performance value is confirmed, and the accuracy of a true test is convenient to verify.

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 throughput performance testing of bypass equipment RFC2544, in particular to a testing method and a testing system for automatically testing throughput performance of bypass equipment.
Background
Usually, a forwarding device such as a switch can test the RFC2544 throughput performance through a professional meter such as a Testcenter, and the meter can issue a test report according to the test result. The principle is as follows: in the networking shown in fig. 1, the Testcenter meter is connected in series with the switch to be tested, and the RFC2544 throughput testing method defines the throughput according to a dichotomy. The meter firstly sends UDP messages 20s with fixed byte size through the meter Port1/1 at the speed of 100%, the receiving statistics of the Port1/2 are compared after the sending is finished, if the receiving statistics are inconsistent with the statistics of the messages sent by the Port1/1, the sending rate is adjusted to be 50% for sending again, if the sending statistics are consistent, the sending rate is adjusted to be 75%, and the maximum throughput value of the current fixed byte sending without packet loss is continuously found through a bisection method. And RFC2544 will typically test a fixed set of bytes of throughput, typically 64, 128, 256, 512, 1024, 1280, and 1518. And testing a throughput performance value aiming at each different byte value, finally, the instrument can issue a RFC2544 performance test report according to other performance indexes such as the statistic and analyzed delay in the test process, and the throughput performance indexes of each test byte of the equipment to be tested can be obtained from the report.
However, the bypass device only receives and processes the message and does not forward the message, so the conventional method for testing the throughput performance of the device RFC2544 by using a professional instrument is not applicable any more. Therefore, a new testing method is needed for testing throughput performance of the bypass-deployed device.
Disclosure of Invention
The test method and the test system for automatically testing throughput performance of the bypass equipment can simulate the test method for throughput of the forwarding equipment RFC2544 to test the throughput performance of the bypass equipment through the suite set of the automatic test case, 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 testing method for automatically testing throughput performance of a bypass device, where the testing 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 pretest byte set, and the testing method includes:
responding to the received test instruction, and executing the test script;
sending a packet sending instruction to a packet sending server, wherein the packet sending instruction comprises a specified packet sending byte, a first packet sending rate and packet sending time, and the specified packet sending byte is any one of the pretest byte aggregation;
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 a packet sent by a packet sending server by a tested bypass device;
and comparing p1 and p2 with p3 respectively, and generating a test result that the specified packet sending byte passes the test when both p1 and p2 are equal to p 3.
In some embodiments, the method further comprises:
if the p1 and the p2 have items which are not equal to the p3, generating a test result that the specified packet sending byte test does not pass;
and at the same time, re-executing the step of sending a packet sending command to the packet sending server, wherein the packet sending command comprises specified packet sending bytes, a second packet sending rate and packet sending time, and the value of the second packet sending rate is different from the value of the first packet sending rate.
In some embodiments, the second packet sending rate is the minimum 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 cached packet sending interface statistics of the packet sending server before sending the packet to the tested bypass device each time;
the packet sending instruction is also configured to control the tested bypass device to clear the hardware packet receiving number and the software processing packet number cached by the tested bypass device before receiving the packet sent by the packet sending server each time.
In some embodiments, the method further comprises:
and testing all the designated packet sending bytes in the pretest byte collection one by one until all the designated packet sending bytes in the pretest byte collection pass the test.
In some embodiments, the method further comprises:
and when all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to the test statistical result, and sending the test report to an external terminal in an email mode.
In a second aspect, the present application provides a test system for automatically testing throughput performance of a bypass device, the test system comprising: the system comprises tested bypass equipment, 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 equipment through the switch SW, and the packet sending server sends packets to the tested bypass equipment;
the management PC is configured to:
responding to the received test instruction, and executing the test script;
sending a packet sending instruction to a packet sending server through a switch SW, wherein the packet sending instruction comprises a specified packet sending byte, a first packet sending rate and packet sending time, and the specified packet sending byte is any one of the pretest byte set;
acquiring a packet sending number p3 sent by the packet sending server to the tested bypass equipment according to the packet sending instruction through a switch SW; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of a packet sent by a packet sending server by a tested bypass device;
and comparing p1 and p2 with p3 respectively, and generating a test result that the specified packet sending byte passes the test when both p1 and p2 are equal to p 3.
In some embodiments, the management PC is further configured to:
if the items unequal to p3 exist in p1 and p2, generating a test result that the specified packet sending byte test does not pass;
meanwhile, the step of sending a packet sending command to the packet sending server is executed again, wherein the packet sending command comprises a specified 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 the value 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 when all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to the test statistical result, and sending the test report to an external terminal in an email 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 method, the throughput performance of the bypass equipment is tested by the test method capable of simulating the throughput of the forwarding equipment RFC2544 through the suite set of the automatic test case, so that the throughput performance value of the bypass equipment is obtained, the problem that the throughput performance of the bypass equipment cannot be tested is solved, a test script is stored in a management PC (personal computer) by networking the tested bypass equipment, the switch SW, the packet sending server, the management PC and other hardware, the whole test process is automatically realized through python, 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 optimal throughput value can be found more quickly compared with the dichotomy; after testing, the management PC generates a test report from the recorded test process and test result, and sends the test report to an external terminal in the form of an email, so that a user can check the test process and test result through terminals such as an external computer and a mobile phone, and can perform manual sampling test on the test result, select a certain fixed byte to perform 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 diagram illustrating the hardware components of the test system of the present application;
FIG. 3 is a flow chart of a testing method of the present application;
fig. 4 is a flowchart of a second packet sending rate calculating method in the present application.
In the figure: 1. management PC,2, switch SW,3, bypass equipment to be tested, 4 and a packet sending server.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
RFC2544 is a standard for testing and measuring the performance of network devices, which was specified in 1999, and 6 tests are defined in RFC 2544: throughput, delay, packet loss rate, back-to-back test, reset test, and system recovery.
Referring to fig. 1, a conventional RFC2544 throughput performance testing method includes: the method comprises the following steps that a professional testing instrument is connected with a switch to be tested in series, the professional testing instrument sends a UDP message B1 with a fixed byte size to the switch to be tested through an instrument interface 1/1 at a speed of 100%, the switch to be tested receives the UDP message B1 and stores the UDP message B2, after sending is finished, the professional testing instrument receives the UDP message B2 sent by the switch to be tested through an interface 1/2, the professional testing instrument compares the sent UDP message B1 with the received UDP message B2, and therefore whether the current sending speed is the optimal value or not is judged;
the bypass device (such as An Botong eagle eye full flow analysis system) tested by the application only receives and processes messages, and does not forward the messages, if the professional test instrument is still adopted to perform the RFC2544 throughput performance test, the professional test instrument cannot obtain UDP messages sent by the bypass device, and further cannot compare the UDP messages, and cannot judge whether the current sending rate is the optimal value, so that the traditional test method for performing the RFC2544 throughput performance of the device by using the professional instrument is not suitable for the bypass device.
Referring to fig. 2, the present application discloses a test system for automatically testing throughput performance of bypass device RFC2544, where the test system includes a tested bypass device 3, a switch SW2, a packet sending server 4, and a management PC1, the management PC1 is connected to the packet sending server 4 and the tested bypass device 3 through the switch SW2, and the packet sending server 4 sends packets to the tested bypass device 3.
The management PC1 stores therein a test script, and when receiving a test instruction, the management PC1 automatically executes a test to find an optimal throughput of the tested bypass device 3, that is, an optimal packet transmission rate for a specified packet transmission byte of the tested bypass device 3.
Before testing, please refer to fig. 2, the tested bypass device 3, the switch SW2, the packet server 4, and the management PC1 are networked by hardware: the management PC1 is connected with and controls the tested bypass equipment 3 through SSH; the management PC1 is connected with the packet sending server 4 through SSH, and controls the dpdktrex software through a python program to generate a UDP data packet with fixed bytes at a certain speed; the packet server 4 sets source IP change and destination IP fixed, and the source port is incremented by 20000 from 1025 and the destination port is incremented by 100 from 1025.
When the test is executed, firstly, configuring bytes needing throughput performance test, testing the throughput performance values of 64, 128, 256, 512, 1024, 1280 and 1518 bytes by default, and a user can also specify packet sending bytes, wherein a plurality of specified packet sending bytes form a pretest byte collection;
referring to fig. 3, the management PC1 executes the 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, where the specified packet sending byte is any one of the pretest byte set;
when a certain specified packet transmission byte is tested, the packet transmission rate of the first test is 100%, taking the specified packet transmission byte as 64 bytes and the packet transmission time as 20s as an example, the steps are as follows: the management PC1 controls the packet server 4 to send UDP packets at a rate of 100% for 20s at 64 bytes (including crc) to the tested bypass device 3.
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; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of a packet transmitted by a packet transmitting server 4 by a tested bypass device 3, comparing the p1 and the p2 with the p3 respectively, and generating a test result that a specified packet transmitting byte passes the test when the p1 and the p2 are equal to the p3;
when the packet sending server 4 sends a packet to the tested bypass device 3, the hardware of the tested bypass device 3 synchronously receives the packet, the software of the tested bypass device 3 synchronously processes the packet, and after the packet sending time 20s is over, the management PC1 obtains the packet sending number p3 in the packet sending server 420s, for example, the packet sending number is 30, that is, p3=30; the management PC1 obtains the hardware packet receiving number p1 and the software processing packet number p2 in the tested bypass device 320s, for example, if the hardware packet receiving number is 30 and the software processing packet number is 30, then p1= p2= p3=30, and the test is considered to be passed, that is, the optimal packet sending rate of the tested bypass device 3 at 64 bytes is 100%.
If the items unequal to p3 exist in p1 and p2, generating a test result that the specified packet sending byte test does not pass;
for example, the management PC1 acquires that the number of distribution packets in the distribution server 420s is 30, i.e., p3=30; the management PC1 obtains that the number of hardware packets received in the bypass device under test 320s is 30 and the number of software processing packets is 29, that is, p1=30, p2=29, and at this time, p2 ≠ p3, that is, there is an entry unequal to p3 in p1 and p2, the test is considered to be failed.
When the test is not passed, the management PC1 adjusts the first packet sending rate to a second packet sending rate and retests;
the management PC1 transmits again a packet transmission instruction including a specified packet transmission byte, a second packet transmission rate having a value different from that of the first packet transmission rate, and a packet transmission time to the packet transmission server 4.
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:
calculating the success rate of hardware packet receiving, wherein the calculation formula is as follows:
η1=(p1/p3)100%
in the formula: eta 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.
Calculating the success rate of software processing by the following formula:
η2=(p2/p3)100%
in the formula: eta 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 as 30, and the number of packets processed as 29 as examples, then:
η1=(30/30)×100%=100%;
η2=(29/30)×100%=96.66%;
η1>η2;
the hardware packet receiving success rate η 1 is 100%, the software processing success rate η 2 is 96.66%, the second packet sending rate is equal to η 1 because η 1 is greater than η 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 device 3 at a rate of 96.66% by 64 bytes (including crc), the UDP messages are continued for 20s, the test is carried out again, and the test steps are repeated until the optimal packet sending rate of 64 bytes is obtained.
In the existing RFC2544 throughput performance test method, the optimal sending rate is continuously tested and searched by a bisection method, which specifically comprises the following steps:
the instrument firstly sends UDP messages 20s with fixed byte size through the instrument Port1/1 at the speed of 100%, the receiving statistics of the Port1/2 are compared after the sending, if the statistics of the messages sent by the Port1/1 are inconsistent, the sending speed is adjusted to be 50% for sending again, if the sending is consistent, the sending speed is adjusted to be 75%, and the maximum throughput value of the current fixed byte which does not lose the packets is continuously found through the dichotomy;
from the above, the dichotomy is a continuous interval internal value selection test, and does not calculate the reduction interval, so as to obtain the optimal packet sending rate of fixed bytes, and the whole test process is complicated, the required time is long, and the efficiency is low.
The test rate of the method is determined according to the hardware packet receiving success rate and the software processing success rate of the test bypass device, the second packet sending rate is the minimum value of the hardware packet receiving success rate and the software processing success rate, the best packet sending rate of the fixed bytes can be determined through two to three times of tests, and compared with a bisection method, the best throughput value can be found more quickly.
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 itself before sending packets to the tested bypass device 3 each time;
the packet sending instruction is further configured to control the tested bypass device 3 to clear the hardware packet receiving number and the software processing packet number cached by the tested bypass device 3 before receiving the packet sent by the packet sending server 4 each time;
management PC1 control package server 4 all clears away the last package statistics of sending out that package server 4 self was cached before sending out the package at every turn promptly to avoid influencing follow-up test, the same thing, management PC1 control by survey bypass equipment 3 before receiving the package at every turn, all clear away the last hardware that is surveyed bypass equipment 3 self and receive the package statistics and last software processing package statistics, thereby guarantee the accuracy of data acquisition, guarantee the accuracy of test.
Testing all designated packet sending bytes in the pretest byte collection one by one until all designated packet sending bytes in the pretest byte collection pass the test;
after the 64-byte optimal packet sending rate test is passed, the test method is adopted to test other untested bytes in the pretest byte collection until all the specified packet sending bytes in the pretest byte collection are tested, if the user does not set the specified test, throughput performance values of 64 bytes, 128 bytes, 256 bytes, 512 bytes, 1024 bytes, 1280 bytes and 1518 bytes are tested in a default mode, the test sequence can be randomly extracted or sequentially tested, and the sequence can be from large to small or from small to large.
When all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to a test statistical result, and sending the test report to an external terminal in a mail form;
when the management PC1 detects that all tests of specified packet sending bytes in the pretest byte aggregate are completed or all tests of default test bytes are completed, the management PC1 records the test process, the test result, the packet sending number of the packet sending server 4, the hardware packet receiving number of the tested bypass equipment 3 and the software processing packet number in each test, generates a test report according to the record and sends the test report to an external terminal in a mail form;
a user can check the test process and the test result through terminals such as an external computer, a mobile phone and the like, can manually test the test result, selects a certain fixed byte to manually test, and confirms the throughput performance value, so that the accuracy of the true test is verified.
The test system for automatically testing the throughput performance of the bypass equipment RFC2544 has the following advantages:
by means of the suite set of the automatic test case, the throughput performance test method of the forwarding device RFC2544 can be simulated to carry out throughput performance test on the bypass device, so that the throughput performance value of the bypass device is obtained, the problem that the throughput performance of the bypass device cannot be tested is solved, the tested bypass device 3, the switch SW2, the packet sending server 4, the management PC1 and other hardware are networked, a test script is stored in the management PC1, the whole test process is automatically realized through python, 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 optimal throughput value can be found more quickly compared with the dichotomy; after testing, the management PC1 generates a test report of the recorded test process and test result, and sends the test report to an external terminal in the form of an email, so that a user can check the test process and the test result through terminals such as an external computer and a mobile phone, can perform manual test aiming at the test result, select a certain fixed byte to perform 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 specified packet sending bytes of the tested bypass equipment, and a plurality of specified packet sending bytes form a pretest byte collection, and the test method comprises the following steps:
responding to the received test instruction, and executing the test script;
sending a packet sending instruction to a packet sending server, wherein the packet sending instruction comprises a specified packet sending byte, a first packet sending rate and packet sending time, and the specified packet sending byte is any one of the pretest byte set;
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 a packet transmitted by a packet transmitting server by a tested bypass device;
comparing p1 and p2 with p3 respectively, and generating a test result that the specified packet sending byte passes the test when both p1 and p2 are equal to p3;
if the items unequal to p3 exist in p1 and p2, generating a test result that the specified packet sending byte test does not pass;
meanwhile, a step of sending a packet sending instruction to the packet sending server is executed again, 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 the value 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 packet sending instruction is configured to control the packet sending server to clear the packet sending interface statistics cached by the packet sending server before sending the packet to the tested bypass equipment each time;
the packet sending instruction is also configured to control the tested bypass device to clear the hardware packet receiving number and the software processing packet number cached by the tested bypass device before receiving the packet sent by the packet sending server each time;
testing all appointed packet sending bytes in the pretest byte collection one by one until all appointed packet sending bytes in the pretest byte collection pass the test;
and when all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to the test statistical result, and sending the test report to an external terminal in an email mode.
The method for guiding the bypass equipment to carry out the throughput performance index test and greatly improving the understanding of research and development on the performance of the bypass equipment to be tested can confirm the version subjected to performance optimization through each group of results of the test, and the method for searching the packet sending rate is optimized, so that the optimal throughput value can be found more quickly compared with a dichotomy.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention 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 specified packet sending bytes of tested bypass equipment, and a plurality of specified packet sending bytes form a pretest byte collection, and the test method comprises the following steps:
responding to the received test instruction, and executing the test script;
sending a packet sending instruction to a packet sending server, wherein the packet sending instruction comprises a specified packet sending byte, a first packet sending rate and packet sending time, and the specified packet sending byte is any one of the pretest byte set;
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 a packet sent by a packet sending server by a tested bypass device;
and comparing p1 and p2 with p3 respectively, and generating a test result that the specified packet sending byte passes the test when both p1 and p2 are equal to p 3.
2. The method of testing of claim 1, further comprising:
if the items unequal to p3 exist in p1 and p2, generating a test result that the specified packet sending byte test does not pass;
and at the same time, re-executing the step of sending a packet sending command to the packet sending server, wherein the packet sending command comprises specified packet sending bytes, a second packet sending rate and packet sending time, and the value of the second packet sending rate is different from the value of the first packet sending rate.
3. The test method of 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. The test method of claim 3, wherein:
the method for calculating the hardware packet receiving success rate comprises the following steps:
η1=(p1/p3)100%
in the formula: eta 1 is the success rate of hardware packet receiving, p1 is the number of hardware packet receiving of the reading interface on the tested bypass equipment, and p3 is the number of packet sending of the packet sending server;
the software processing success rate calculation method comprises the following steps:
η2=(p2/p3)100%
in the formula: eta 2 is the software processing success rate, p2 is the number of software processing packages on the tested bypass equipment, and p3 is the number of packages sent by the package sending server.
5. The test method of claim 4, wherein:
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 before sending the packet to the tested bypass equipment each time;
the packet sending instruction is also configured to control the tested bypass device to clear the hardware packet receiving number and the software processing packet number cached by the tested bypass device before receiving the packet sent by the packet sending server each time.
6. The method of testing of claim 5, further comprising:
and testing all the designated packet sending bytes in the pretest byte collection one by one until all the designated packet sending bytes in the pretest byte collection pass the test.
7. The method of testing of claim 6, further comprising:
and when all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to the test statistical result, and sending the test report to an external terminal in an email mode.
8. A test system for automatically testing throughput performance of bypass equipment is characterized in that: the test system comprises: the system comprises tested bypass equipment, 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 equipment through the switch SW, and the packet sending server sends packets to the tested bypass equipment;
the management PC is configured to:
responding to the received test instruction, and executing the test script;
sending a packet sending instruction to a packet sending server through a switch SW, wherein the packet sending instruction comprises a specified packet sending byte, a first packet sending rate and packet sending time, and the specified packet sending byte is any one of the pretest byte set;
acquiring a packet sending number p3 sent by the packet sending server to the tested bypass equipment according to the packet sending instruction through a switch SW; acquiring the hardware packet receiving number p1 and the software processing packet number p2 of a packet sent by a packet sending server by a tested bypass device;
and comparing p1 and p2 with p3 respectively, and generating a test result that the specified packet sending byte passes the test when both 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 unequal to p3 exist in p1 and p2, generating a test result that the specified packet sending byte test does not pass;
meanwhile, the step of sending a packet sending command to the packet sending server is executed again, wherein the packet sending command comprises a specified 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 the value 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 when all the appointed packet sending bytes in the pretest byte collection are tested to pass, generating a test report according to the test statistical result, and sending the test report to an external terminal in an email 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 true CN115361320A (en) 2022-11-18
CN115361320B 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110170477A1 (en) * 2010-01-08 2011-07-14 Sycamore Networks, Inc. Mobile broadband packet switched traffic optimization
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
US20170163538A1 (en) * 2015-12-02 2017-06-08 Macau University Of Science And Technology PacketUsher: Accelerating Computer-Intensive Packet Processing
US20180270156A1 (en) * 2017-03-17 2018-09-20 Citrix Systems, Inc. Increasing qos throughput and efficiency through lazy byte batching
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
US20220036337A1 (en) * 2020-07-30 2022-02-03 Lisnr Audio-based exit detection and payment confirmation for computing devices
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110170477A1 (en) * 2010-01-08 2011-07-14 Sycamore Networks, Inc. Mobile broadband packet switched traffic optimization
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
US20170163538A1 (en) * 2015-12-02 2017-06-08 Macau University Of Science And Technology PacketUsher: Accelerating Computer-Intensive Packet Processing
US20180270156A1 (en) * 2017-03-17 2018-09-20 Citrix Systems, Inc. Increasing qos throughput and efficiency through lazy byte batching
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
US20220036337A1 (en) * 2020-07-30 2022-02-03 Lisnr Audio-based exit detection and payment confirmation for computing devices
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
S. LEUNG ET.AL.: "Test strategies on functionally partitioned module-based programmable architecture for base-band processing", PROCEEDINGS EUROMICRO SYMPOSIUM ON DIGITAL SYSTEMS DESIGN *
臧其事;谢立帆;李思宇;: "一种基于网络旁路的应用***通用监控与预警***的设计和实现", 网络安全技术与应用, no. 12 *
谢朝海: "IP网络安全产品性能测试技术研究", 中国优秀硕士学位论文全文数据库 *

Also Published As

Publication number Publication date
CN115361320B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN111459794B (en) Communication network testing method, device, computer equipment and storage medium
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN110414242A (en) For detecting the method, apparatus, equipment and medium of service logic loophole
CN112714047B (en) Industrial control protocol flow based test method, device, equipment and storage medium
CN111327471B (en) Network quality analysis method, device, computer equipment and storage medium
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN108174405A (en) Product test method and apparatus
CN107133161B (en) Method and device for generating client performance test script
CN106897219B (en) Method and device for testing stability of mobile terminal system
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN113360376A (en) Buried point testing method and device
CN113542029A (en) Service stability testing method, system and tool of network equipment
CN113765733A (en) Bus network testing method and device
CN110597706A (en) Method and device for testing application program interface data abnormity
CN116719750B (en) Software testing method and device, server equipment and storage medium
CN112787894B (en) Wireless device test system, method, apparatus, medium, and device
CN115361320A (en) Test method and test system for automatically testing throughput performance of bypass equipment
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN116074228A (en) Network card testing method and device, storage medium and electronic equipment
CN115225455A (en) Abnormal device detection method and device, electronic device and storage medium
CN113094272A (en) Application testing method and device, electronic equipment and computer readable medium
CN110297754A (en) A kind of test information feedback method and system
CN114428747A (en) User interface testing method, device, server and storage medium
CN113032341A (en) Log processing method based on visual configuration
CN113079522A (en) OTT service quality testing method, OTT service quality testing device, electronic 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