CN111711546B - Device throughput testing method, device, system and computer readable storage medium - Google Patents

Device throughput testing method, device, system and computer readable storage medium Download PDF

Info

Publication number
CN111711546B
CN111711546B CN202010553846.3A CN202010553846A CN111711546B CN 111711546 B CN111711546 B CN 111711546B CN 202010553846 A CN202010553846 A CN 202010553846A CN 111711546 B CN111711546 B CN 111711546B
Authority
CN
China
Prior art keywords
rate
bypass
packet loss
tester
detection
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
CN202010553846.3A
Other languages
Chinese (zh)
Other versions
CN111711546A (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.)
DBAPPSecurity Co Ltd
Original Assignee
DBAPPSecurity 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 DBAPPSecurity Co Ltd filed Critical DBAPPSecurity Co Ltd
Priority to CN202010553846.3A priority Critical patent/CN111711546B/en
Publication of CN111711546A publication Critical patent/CN111711546A/en
Application granted granted Critical
Publication of CN111711546B publication Critical patent/CN111711546B/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

Abstract

The application relates to a method for testing throughput of equipment, wherein the method for testing throughput of equipment comprises the following steps: controlling a tester to send data streams to bypass equipment through a service flow switch at an initial detection rate so that the bypass equipment detects whether packet loss occurs in the data streams and generates a detection result; obtaining and analyzing a detection result of the bypass equipment, if no packet loss occurs, increasing a first threshold value to an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss of the data streams received by the bypass equipment is detected; and taking the rate corresponding to the previous detection when the packet loss is detected as the throughput of the bypass equipment. According to the method and the device, the throughput of the bypass equipment is calculated by automatically adjusting the rate of the data stream generated by the tester, and the throughput of the bypass equipment is automatically detected.

Description

Device throughput testing method, device, system and computer readable storage medium
Technical Field
The present application relates to the field of automated testing, and more particularly, to a method, apparatus, system, and computer-readable storage medium for testing throughput of a device.
Background
The bypass equipment is equipment which only audits the message, only receives the message and does not forward the message.
A tandem device is a device that can receive and forward messages.
The throughput of the series devices can directly obtain the detailed result through the output report of the tester, but the throughput test of the bypass devices cannot directly obtain the test report through the tester. Because whether the bypass device loses the packet or not cannot be sensed by the tester, the throughput test of the bypass device needs to be completed manually every time, and a test report is generated manually.
At present, an effective solution is not provided aiming at the problem that the bypass equipment in the related technology cannot automatically detect the throughput.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for testing the throughput of equipment and a computer readable storage medium, so as to at least solve the problem that the throughput cannot be automatically detected by bypass equipment in the related art.
In a first aspect, an embodiment of the present application provides a method for testing throughput of a device, including:
controlling a tester to send data streams to bypass equipment through a service flow switch at an initial detection rate so that the bypass equipment detects whether packet loss occurs in the data streams and generates a detection result;
obtaining and analyzing a detection result of the bypass equipment, if no packet loss occurs, increasing a first threshold value to an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss of the data streams received by the bypass equipment is detected;
and taking the rate corresponding to the previous detection when the packet loss is detected as the throughput of the bypass equipment.
In some of these embodiments, the controlling the tester to send the data stream to the bypass device via the traffic switch at the initial detection rate comprises:
and acquiring the detection result of the bypass equipment and the rate of the data stream sent by the tester.
In some embodiments, the obtaining and analyzing the detection result of the bypass device comprises:
obtaining and analyzing a detection result of the bypass equipment, if packet loss occurs, reducing a second threshold value for an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing the detection result generated after the bypass equipment adjusts the rate, and if packet loss occurs, continuing to reduce the second threshold value for the adjusted rate until the packet loss does not occur in the data streams received by the bypass equipment, namely the rate is the first rate;
increasing a first threshold value for the first rate until packet loss of the data stream received by the bypass equipment is detected; and taking the rate corresponding to the previous detection when the packet loss is detected as the throughput of the bypass equipment.
In some of these embodiments, the method further comprises:
recording operation records of increasing a first threshold value, increasing the first threshold value and decreasing a second threshold value of the initial detection rate;
and generating a test report according to the operation record and the throughput of the test equipment.
In some of these embodiments, the first threshold is less than the second threshold.
In some of these embodiments, the controlling the tester to send the data stream to the bypass device via the traffic switch at the initial detection rate further comprises:
and controlling the tester to send the data stream to the bypass equipment through the service flow switch at the initial detection rate according to a preset time threshold value.
In a second aspect, an embodiment of the present application provides an apparatus throughput testing system, including: the system comprises a tester, a service flow switch, bypass equipment and a detection terminal; the tester and the service flow switch are sequentially connected with the bypass equipment, and the detection terminal is respectively connected with the tester and the bypass equipment;
the tester is used for sending data flow to the service flow switch according to the initial detection rate;
the service flow switch is used for receiving the data flow and mapping the data flow to the bypass equipment;
the bypass equipment is used for detecting whether packet loss occurs in the received data stream or not and generating a detection result;
the detection terminal is used for executing the equipment throughput testing method.
In a third aspect, an embodiment of the present application provides an apparatus throughput testing device, including:
the device comprises an initial module, a bypass device and a detection module, wherein the initial module is used for controlling a tester to send data streams to the bypass device through a service flow switch at an initial detection rate so that the bypass device detects whether packet loss occurs in the data streams and generates a detection result;
the detection module is used for acquiring and analyzing a detection result of the bypass equipment, if no packet loss occurs, increasing a first threshold value to an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss of the data streams received by the bypass equipment is detected;
and the recording module is used for taking the rate corresponding to the previous detection of the packet loss as the throughput of the bypass equipment.
In a fourth aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the device throughput testing method according to the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the device throughput testing method according to the first aspect.
Compared with the related art, the throughput testing method for the equipment provided by the embodiment of the application calculates the throughput of the bypass equipment by automatically adjusting the rate of the data stream generated by the tester, and realizes the automatic detection of the throughput of the bypass equipment.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a device throughput testing system according to an embodiment of the present application;
FIG. 2 is a block schematic diagram of a test meter according to an embodiment of the present application;
fig. 3 is a flow chart of a method for device throughput testing according to an embodiment of the present application;
fig. 4 is a flow chart of another method for device throughput testing according to an embodiment of the present application;
FIG. 5 is a block diagram of an apparatus throughput testing device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of a device throughput testing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The device throughput testing method provided by the application can be applied to a device throughput testing system shown in fig. 1.
The equipment throughput testing system comprises: the tester 120, the service flow switch 140, the bypass device 150, and the detection terminal 110; the tester 120 and the service traffic switch 140 are sequentially connected to the bypass device 150, and the detection terminal 110 is connected to the tester 120 and the bypass device 150, respectively.
Specifically, the tester 120 is configured to send a data stream to the traffic switch 140 according to the initial detection rate. The traffic switch 140 is configured to receive the data flow and map the data flow to the bypass device 150. The bypass device 150 is configured to detect whether a packet loss occurs in the received data stream, and generate a detection result. The detection terminal 110 is configured to control the tester 120 to send a data stream to the bypass device 150 through the traffic switch 140 at an initial detection rate; obtaining and analyzing the detection result of the bypass device 150, if no packet loss occurs, increasing a first threshold to the initial detection rate, controlling the tester 120 to send the data stream to the bypass device 150 at the adjusted rate, analyzing the detection result generated after the bypass device 150 adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold to the adjusted rate until the packet loss occurs in the data stream received by the bypass device 150; the rate corresponding to the previous detection that the packet loss occurs is used as the throughput of the bypass device 150. In this embodiment, the robotframe script is set in the detection terminal 110, and the device throughput testing method is executed according to the robotframe script. The tester 120 is a BPS tester (BreakingPoint Systems tester).
As shown in fig. 2, the tester 120 includes a login module 210, a throughput test setup module 220, a tester throughput input module 230, a start streaming module 240, and a stop streaming module 250. Specifically, the detection terminal 110 is connected to the tester 120 through the device management switch 130, logs in and controls the tester 120 through the login module 210, fills in the initial detection rate by calling the throughput input module 230, establishes a test data stream using the throughput test flow establishing module 220, and starts the tester 120 to start sending data streams to the bypass device 150 through the traffic switch 140 using the start flow establishing module 240. When the test is to be stopped, the flow stopping module 250 turns off the tester 120 to stop sending data flow.
Optionally, the device throughput testing system further comprises a device management switch 130. The test terminal 110 is connected to the tester 120 and the bypass device 150 through the device management switch 130. In one embodiment, the detection terminal 110 controls the operation of the bypass device 150 and the tester 120 by communicating management ports of the bypass device 150 and the tester 120 through the device management switch 130.
The embodiment also provides a device throughput testing method. Fig. 3 is a flowchart of a device throughput testing method according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
step S301, controlling the tester to send the data stream to the bypass device through the service traffic switch at the initial detection rate, so that the bypass device detects whether the data stream has a packet loss and generates a detection result.
Specifically, the detection terminal controls the tester to send the data stream to the bypass device through the service traffic switch at an initial detection rate, so that the bypass device detects whether the data stream is lost and generates a detection result. Further, the detection result of the bypass device and the rate of the data stream sent by the tester are obtained.
The controlling the tester to send the data stream to the bypass device via the traffic switch at the initial detection rate further comprises: and controlling the tester to send the data stream to the bypass equipment through the service flow switch at the initial detection rate according to a preset time threshold value.
Specifically, the detection terminal controls the tester to send the data stream to the bypass device through the service flow switch at an initial detection rate according to a preset time threshold, and when the time length for sending the data stream reaches the preset time threshold, the data stream is stopped being sent, and the detection result produced by the bypass device is obtained. In this embodiment, the preset time threshold is 15 minutes. It is understood that the time threshold may be 5, 10, 20, or other values.
Step S302, obtaining and analyzing the detection result of the bypass device, if no packet loss occurs, increasing a first threshold value to the initial detection rate, controlling the tester to send the data stream to the bypass device at the adjusted rate, analyzing the detection result generated after the bypass device adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss occurs to the data stream received by the bypass device.
Specifically, the detection terminal obtains and analyzes the detection result of the bypass device, and learns whether the data stream received by the bypass device generates packet loss or not by analyzing the detection result. If no packet loss occurs, a first threshold value is added to the initial detection rate, the tester is controlled to send the data stream to the bypass equipment at the adjusted rate, the detection result generated after the bypass equipment adjusts the rate is analyzed, and if no packet loss occurs, the first threshold value is continuously added to the adjusted rate until the packet loss of the data stream received by the bypass equipment is detected.
In one embodiment, the initial detection rate is 800M/s and the first threshold is 10M/s. The detection terminal controls the tester to send data streams to the bypass equipment for 15 minutes according to 800M/s, obtains and analyzes the detection result of the bypass equipment, and learns whether packet loss occurs in the data streams received by the bypass equipment or not by analyzing the detection result. If no packet loss occurs, increasing a first threshold value for the initial detection rate, transmitting the data stream to the bypass device at the rate of 810M/s, analyzing a detection result generated at the rate of 810M/s by the bypass device, if no packet loss occurs, continuing to increase the rate of 810M/s by 10M/s, transmitting the data stream to the bypass device at the rate of 820M/s, and repeating the steps until packet loss occurs. And if the rate of 840M/s is increased to the rate of 850M/s and packet loss occurs, recording the throughput of the bypass equipment to be in the range of 840M/s-850M/s. It is understood that the initial detection rate and the first threshold may be other values.
Further, the detection terminal obtains and analyzes the detection result of the bypass device, and learns whether the data stream received by the bypass device generates packet loss or not by analyzing the detection result. If packet loss occurs, reducing a second threshold value for the initial detection rate, controlling the tester to send the data stream to the bypass equipment at the adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if packet loss occurs, continuing to reduce the second threshold value for the adjusted rate until the packet loss of the data stream received by the bypass equipment is detected, namely the rate is the first rate; increasing a first threshold value for the first rate until packet loss of the data stream received by the bypass equipment is detected; and taking the rate corresponding to the previous detection when the packet loss is detected as the throughput of the bypass equipment. Wherein the first threshold is smaller than the second threshold, because the increased first threshold is smaller than the second threshold, the throughput can be detected more accurately.
In one embodiment, the initial detection rate is 800M/s and the first threshold is 10M/s. The detection terminal controls the tester to send the data stream to the bypass equipment for 15 minutes according to 800M/s, obtains and analyzes the detection result of the bypass equipment, and learns whether the data stream received by the bypass equipment generates packet loss or not by analyzing the detection result. If the packet loss occurs, reducing the initial detection rate by a second threshold value, transmitting the data stream to the bypass equipment at the rate of 750M/s, analyzing the detection result generated at the rate of 750M/s by the bypass equipment, if the packet loss occurs, continuously reducing the rate of 50M/s, transmitting the data stream to the bypass equipment at the rate of 700M/s, circulating the steps until the packet loss does not occur in the data stream received by the bypass equipment, and then accelerating the rate at which the packet loss does not occur. When the packet loss does not occur at the rate of 700M/s, increasing a first threshold value for the rate of 700M/s, transmitting the data stream to the bypass device at the rate of 710M/s, analyzing a detection result generated at the rate of 710M/s by the bypass device, if the packet loss does not occur, continuing to increase the rate of 710M/s by 10M/s, transmitting the data stream to the bypass device at the rate of 720M/s, and circulating the steps until the packet loss occurs. And if the 740M/s rate is increased to 750M/s rate and packet loss occurs, recording the throughput of the bypass equipment to be in the range of 740M/s-750M/s. It is understood that the initial detection rate and the first threshold may be other values.
It is understood that the initial detection rate, the first threshold value, and the second threshold value may be other values.
Step S303, using the rate corresponding to the previous detection that the packet loss occurs as the throughput of the bypass device.
Specifically, the detection terminal obtains a detection result of the bypass device, and a rate corresponding to a previous detection of a packet loss is used as a throughput of the bypass device.
The method further comprises the following steps: recording operation records of increasing the initial detection rate by a first threshold value, increasing the first threshold value and decreasing a second threshold value; and generating a test report according to the operation record and the throughput of the test equipment.
And recording a log file of a first threshold value which is increased every time or a second threshold value which is reduced every time in the test report, and a rate corresponding to the previous detection of the packet loss of the test equipment.
In one embodiment, the detection terminal records an operation record of starting the increase of the detection rate by a first threshold; and generating a test report according to the operation record and the throughput of the test equipment. In another embodiment, the detection terminal records operation records of increasing the initial detection rate by a first threshold and decreasing a second threshold, and generates a test report according to the operation records and the throughput of the test equipment.
Through the steps, the throughput of the bypass equipment is calculated by automatically adjusting the rate of the data stream generated by the tester, and the automatic detection of the throughput of the bypass equipment is realized.
The embodiment also provides a device throughput testing method. Fig. 4 is a flowchart of another device throughput testing method according to an embodiment of the present application, and as shown in fig. 4, the flowchart includes the following steps:
step S401, writing an RF test library by using an external API of the BPS.
Wherein, BPS is BPS tester, and the RF test library is RobotFramework test library.
Step S402, establishing a stream on the BPS by using the packaged RF test library.
Specifically, a data stream is established on the BPS tester using a packaged RF test library.
At step S403, the original stream is started at the original rate.
Specifically, the tester sends a data stream to the bypass device at an initial detection rate.
Step S404, observe on the device under test for 15 minutes.
Specifically, the observation was performed for 15 minutes on the bypass device, and the detection result was generated.
Step S405, detects whether packet loss occurs.
Specifically, if the packet is lost, the process goes to step S406, and if the packet is not lost, the process goes to step S409.
In step S406, the rate is decreased.
Specifically, the previous rate is decreased by the second threshold.
Step S407, the flow is continued at the new rate.
Step S408, detecting whether packet loss occurs.
Specifically, if the packet is lost, the process goes to step S406, and if the packet is not lost, the process goes to step S409.
Step S409, the rate is increased.
Specifically, the previous rate is increased by a first threshold.
Step S410, the flow is continued at the new rate.
Step S411, detecting whether packet loss occurs.
Specifically, if the packet is lost, the process goes to step S412, and if the packet is not lost, the process goes to step S409.
In step S412, the previous throughput is recorded.
In step S413, the throughput rate of the device is the recorded value.
Specifically, the rate corresponding to the previous detection that the packet loss occurs is determined as the throughput of the bypass device.
Step S414, checking the RF generated test report.
Through the steps, the throughput of the bypass equipment is calculated by automatically adjusting the rate of the data stream generated by the tester, and the automatic detection of the throughput of the bypass equipment is realized. The throughput test of the bypass equipment is automatically completed by a machine, the whole test process does not need manual intervention, and the labor cost is greatly saved.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides an apparatus throughput testing apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the apparatus throughput testing apparatus is omitted for brevity. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a device throughput testing apparatus according to an embodiment of the present application, and as shown in fig. 5, the apparatus includes: an initiation module 510, a detection module 520, and a recording module 530.
The start module 510 is configured to control the tester to send the data stream to the bypass device through the service traffic switch at a start detection rate, so that the bypass device detects whether the data stream is lost and generates a detection result.
The detection module 520 is configured to obtain and analyze a detection result of the bypass device, increase a first threshold to an initial detection rate if no packet loss occurs, control the tester to send a data stream to the bypass device at an adjusted rate, analyze a detection result generated after the bypass device adjusts the rate, and continue to increase the first threshold to the adjusted rate if no packet loss occurs until it is detected that the data stream received by the bypass device has a packet loss.
The recording module 530 is configured to use a rate corresponding to a previous detection that a packet loss is detected as a throughput of the bypass device.
The start module 510 is further configured to obtain a detection result of the bypass device and a rate at which the tester sends a data stream.
The detection module 520 is further configured to obtain and analyze a detection result of the bypass device, if packet loss occurs, decrease a second threshold for the initial detection rate, control the tester to send a data stream to the bypass device at the adjusted rate, analyze a detection result generated after the bypass device adjusts the rate, and if packet loss occurs, continue to decrease the second threshold for the adjusted rate until packet loss does not occur in the data stream received by the bypass device, that is, the rate is the first rate;
increasing a first threshold value to the first rate until packet loss of the data stream received by the bypass equipment is detected; and taking the rate corresponding to the previous detection when the packet loss is detected as the throughput of the bypass equipment.
The recording module 530 is further configured to record operation records of increasing the initial detection rate by a first threshold, increasing the first threshold, and decreasing the second threshold; and generating a test report according to the operation record and the throughput of the test equipment.
The start module 510 is further configured to control the tester to send the data stream to the bypass device through the traffic switch at a start detection rate according to a preset time threshold.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In addition, the device throughput testing method described in the embodiment of the present application and described in conjunction with fig. 3 may be implemented by a device throughput testing device. Fig. 6 is a schematic diagram of a hardware structure of a device throughput testing apparatus according to an embodiment of the present application.
The device throughput testing device may include a processor 81 and a memory 82 having stored computer program instructions.
Specifically, the processor 81 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 82 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, the memory 82 may include a Hard Disk Drive (Hard Disk Drive, abbreviated HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 82 may include removable or non-removable (or fixed) media, where appropriate. The memory 82 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 82 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 82 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (earrom), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 82 may be used to store or cache various data files for processing and/or communication use, as well as possible computer program instructions executed by the processor 81.
The processor 81 reads and executes the computer program instructions stored in the memory 82 to implement the device throughput testing method in any of the above embodiments.
In some of these embodiments, the device throughput testing device may also include a communication interface 83 and a bus 80. As shown in fig. 6, the processor 81, the memory 82, and the communication interface 83 are connected via the bus 80 to complete communication therebetween.
The communication interface 83 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication interface 83 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 80 includes hardware, software, or both to couple the components of the device throughput testing device to one another. Bus 80 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 80 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 80 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The device throughput testing device may execute the device throughput testing method in the embodiment of the present application based on the obtained detection result, thereby implementing the device throughput testing method described in conjunction with fig. 3.
In addition, in combination with the method for testing throughput of devices in the foregoing embodiments, embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above-described embodiments of the method for device throughput testing.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method for device throughput testing, comprising:
controlling a tester to send data streams to bypass equipment through a service flow switch at an initial detection rate so that the bypass equipment detects whether packet loss occurs in the data streams and generates a detection result;
obtaining and analyzing a detection result of the bypass equipment, if no packet loss occurs, increasing a first threshold value to an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss of the data streams received by the bypass equipment is detected;
taking the rate corresponding to the previous detection of packet loss as the throughput of the bypass equipment;
the obtaining and analyzing the detection result of the bypass device comprises:
obtaining and analyzing a detection result of the bypass equipment, if packet loss occurs, reducing a second threshold value for an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing the detection result generated after the bypass equipment adjusts the rate, and if packet loss occurs, continuing to reduce the second threshold value for the adjusted rate until the packet loss does not occur in the data streams received by the bypass equipment, namely the rate is the first rate;
increasing a first threshold value to the first rate until packet loss of the data stream received by the bypass equipment is detected; taking the rate corresponding to the previous detection of packet loss as the throughput of the bypass equipment;
the control tester sends the data stream to the bypass equipment through the service flow switch at the initial detection rate, so that the bypass equipment detects whether the data stream has packet loss and generates a detection result, wherein the control tester comprises:
and controlling a tester based on a RobotFramework test library to send data streams to bypass equipment at an initial detection rate through a service flow switch and generate a test report, and detecting whether packet loss occurs in the data streams or not based on the test report and generating a detection result.
2. The device throughput testing method of claim 1, wherein said controlling the tester to send the data stream to the bypass device via the traffic switch at the initial detection rate comprises:
and acquiring the detection result of the bypass equipment and the rate of the data stream sent by the tester.
3. The device throughput testing method of claim 1, further comprising:
recording operation records of increasing the initial detection rate by a first threshold value, increasing the first threshold value and decreasing a second threshold value;
and generating a test report according to the operation record and the throughput of the test equipment.
4. The device throughput testing method of any of claims 1 or 3, wherein said first threshold is less than said second threshold.
5. The device throughput testing method of claim 1, wherein said controlling the tester to send the data flow at the initial detection rate to the bypass device via the traffic switch further comprises:
and controlling the tester to send the data stream to the bypass equipment through the service flow switch at the initial detection rate according to a preset time threshold value.
6. A system for device throughput testing, comprising: the system comprises a tester, a service flow switch, bypass equipment and a detection terminal; the tester and the service flow switch are sequentially connected with the bypass equipment, and the detection terminal is respectively connected with the tester and the bypass equipment;
the tester is used for sending data flow to the service flow switch according to the initial detection rate;
the service flow switch is used for receiving the data flow and mapping the data flow to the bypass equipment;
the bypass equipment is used for detecting whether packet loss occurs in the received data stream or not and generating a detection result;
the detection terminal is used for executing the equipment throughput testing method of any one of claims 1 to 5.
7. An apparatus for testing device throughput, comprising:
the device comprises an initial module, a bypass device and a detection module, wherein the initial module is used for controlling a tester to send data streams to the bypass device through a service flow switch at an initial detection rate so that the bypass device detects whether packet loss occurs in the data streams and generates a detection result;
the detection module is used for acquiring and analyzing a detection result of the bypass equipment, if no packet loss occurs, increasing a first threshold value to an initial detection rate, controlling the tester to send data streams to the bypass equipment at an adjusted rate, analyzing a detection result generated after the bypass equipment adjusts the rate, and if no packet loss occurs, continuing to increase the first threshold value to the adjusted rate until the packet loss of the data streams received by the bypass equipment is detected;
the recording module is used for taking the rate corresponding to the previous detection of the packet loss as the throughput of the bypass equipment;
the detection module is further configured to obtain and analyze a detection result of the bypass device, reduce a second threshold for an initial detection rate if packet loss occurs, control the tester to send a data stream to the bypass device at the adjusted rate, analyze a detection result generated after the bypass device adjusts the rate, and continue to reduce the second threshold for the adjusted rate if packet loss occurs until packet loss of the data stream received by the bypass device is detected, that is, the rate is the first rate;
increasing a first threshold value for the first rate until packet loss of the data stream received by the bypass equipment is detected; taking the rate corresponding to the previous detection of packet loss as the throughput of the bypass equipment;
the starting module is further configured to control the tester to send the data stream to the bypass device through the service traffic switch at a starting detection rate based on the RobotFramework test library and generate a test report, and detect whether packet loss occurs in the data stream based on the test report and generate a detection result.
8. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the device throughput testing method of any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for device throughput testing according to any one of claims 1 to 5.
CN202010553846.3A 2020-06-17 2020-06-17 Device throughput testing method, device, system and computer readable storage medium Active CN111711546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010553846.3A CN111711546B (en) 2020-06-17 2020-06-17 Device throughput testing method, device, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010553846.3A CN111711546B (en) 2020-06-17 2020-06-17 Device throughput testing method, device, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111711546A CN111711546A (en) 2020-09-25
CN111711546B true CN111711546B (en) 2022-08-16

Family

ID=72540891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010553846.3A Active CN111711546B (en) 2020-06-17 2020-06-17 Device throughput testing method, device, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111711546B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112217741A (en) * 2020-09-30 2021-01-12 上海商米科技集团股份有限公司 Dynamic bandwidth adjusting method
CN112714041B (en) * 2020-12-21 2022-05-31 北京信而泰科技股份有限公司 TTE switch capacity test method, device and computer readable medium
CN113542066B (en) * 2021-07-13 2022-06-07 杭州安恒信息技术股份有限公司 Equipment performance testing method and device and related equipment
CN114157592A (en) * 2021-11-09 2022-03-08 北京天融信网络安全技术有限公司 Test system and method for network equipment flow management
CN114172848B (en) * 2021-11-18 2024-02-09 新华三技术有限公司合肥分公司 Communication method and device
CN114844806B (en) * 2022-04-15 2023-08-25 中国信息通信研究院 Throughput measuring method and device for network equipment, testing system and storage medium
CN115361320B (en) * 2022-08-15 2023-11-17 武汉思普崚技术有限公司 Test method and test system for automatically testing throughput performance of bypass equipment
CN117082556A (en) * 2023-08-22 2023-11-17 深圳市中承科技有限公司 Throughput test method, detection device and system of wireless communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794670A (en) * 2005-12-21 2006-06-28 中国移动通信集团公司 Test method for throughput capacity of IP equipment
CN102843273A (en) * 2012-08-14 2012-12-26 瑞斯康达科技发展股份有限公司 Method and device for testing throughput of network device
CN103236956A (en) * 2013-04-18 2013-08-07 神州数码网络(北京)有限公司 Method and switch for testing throughput of communication equipment
CN104618183A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 RFC2544 throughput capacity test method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI122209B (en) * 2007-08-10 2011-10-14 7Signal Oy End-to-end quality of service monitoring system and system in radio network
CN108667693B (en) * 2018-07-24 2020-10-09 成都西加云杉科技有限公司 Throughput testing system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794670A (en) * 2005-12-21 2006-06-28 中国移动通信集团公司 Test method for throughput capacity of IP equipment
CN102843273A (en) * 2012-08-14 2012-12-26 瑞斯康达科技发展股份有限公司 Method and device for testing throughput of network device
CN103236956A (en) * 2013-04-18 2013-08-07 神州数码网络(北京)有限公司 Method and switch for testing throughput of communication equipment
CN104618183A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 RFC2544 throughput capacity test method

Also Published As

Publication number Publication date
CN111711546A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN111711546B (en) Device throughput testing method, device, system and computer readable storage medium
US20190273749A1 (en) Unauthorized Communication Detection Apparatus and Recording Medium
CN110830986B (en) Method, device, equipment and storage medium for detecting abnormal behavior of Internet of things card
CN108023829B (en) Message processing method and device, storage medium and electronic equipment
CN109660422B (en) Network card bandwidth testing method, device, terminal and storage medium based on multiple processes
US11841942B2 (en) Anomaly detection device and anomaly detection method
CN104954431A (en) Network selection method, device and system
CN108231132B (en) NAND flash memory verification device and verification system
KR20140122964A (en) Apparatus and system for detecting malware based on cloud and method thereof
CN109194706B (en) Network resource dial testing method and terminal
KR101473658B1 (en) Apparatus and system for detecting malicious code using filter and method thereof
CN111198855B (en) Log data processing method and device
CN111628902B (en) Rate testing method and apparatus, electronic device, and computer-readable storage medium
KR20150102866A (en) Apparatus and system for detecting malware based on cloud and method thereof
CN113660260B (en) Message detection method, system, computer equipment and readable storage medium
CN111026579B (en) Verification method and device for data error detection capability, terminal equipment and medium
CN112769500A (en) Signal testing method, system, electronic device and storage medium
CN113645236A (en) Message processing method, device and storage medium
CN112888037A (en) Machine vision information sending method and machine vision remote identification system
CN111190701A (en) Method and device for detecting data migration integrity of virtualization platform
CN117857382A (en) Service board detection method, storage medium and electronic equipment
CN111443683B (en) Electronic control unit testing method and device based on vehicle CAN bus structure
US20110246827A1 (en) Testing Device and Testing Method
EP3640830B1 (en) Method and system for determining risk in automotive ecu components
CN110046120B (en) Data processing method, device and system based on IIC protocol 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