CN114844806B - Throughput measuring method and device for network equipment, testing system and storage medium - Google Patents

Throughput measuring method and device for network equipment, testing system and storage medium Download PDF

Info

Publication number
CN114844806B
CN114844806B CN202210393475.6A CN202210393475A CN114844806B CN 114844806 B CN114844806 B CN 114844806B CN 202210393475 A CN202210393475 A CN 202210393475A CN 114844806 B CN114844806 B CN 114844806B
Authority
CN
China
Prior art keywords
flow
forwarding
test
ratio
network equipment
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
CN202210393475.6A
Other languages
Chinese (zh)
Other versions
CN114844806A (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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202210393475.6A priority Critical patent/CN114844806B/en
Publication of CN114844806A publication Critical patent/CN114844806A/en
Application granted granted Critical
Publication of CN114844806B publication Critical patent/CN114844806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0888Throughput
    • 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/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss

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 relates to the technical field of data transmission, and discloses a throughput measuring method of network equipment, which comprises the following steps: transmitting 100% of line speed flow to the tested network equipment port, and acquiring a first flow forwarding ratio of the tested network equipment port under the condition of packet loss; transmitting a first test flow to the tested network equipment port, and acquiring a third flow forwarding ratio under the condition of no packet loss; transmitting a third test flow to obtain a fourth flow forwarding ratio; when the packet is lost and the difference of the forwarding ratios is greater than or equal to a preset threshold value, a fourth test flow is sent, and a fifth flow forwarding ratio is obtained; and determining the fifth flow forwarding ratio as throughput in the case of no packet loss, or determining the third flow forwarding ratio as throughput in the case of packet loss and the difference between the forwarding ratios is smaller than a preset threshold. The application also discloses a throughput measuring device, a testing system and a storage medium of the network equipment.

Description

Throughput measuring method and device for network equipment, testing system and storage medium
Technical Field
The present application relates to the field of data transmission technologies, and for example, to a throughput measurement method and apparatus for a network device, a test system, and a storage medium.
Background
Currently, throughput, an important network performance index, has become one of the most interesting test items for network operators in various data communication networks. The method for testing the throughput of the network equipment, which is the standard in the industry at home and abroad, is to test the network equipment by being equal to the IETF RFC2544 protocol. The main principle is that throughput test is successively carried out by a dichotomy, and the actual throughput of the network equipment is finally obtained.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
when the throughput of the network device to be tested cannot reach 100%, the process of testing by adopting the protocol equal to IETF RFC2544 needs to use a dichotomy to perform multiple throughput tests, for example, in the case of granularity of 1%, the process at least needs to be repeated for 7-8 times, and the smaller granularity can geometrically multiply and increase the iterative test times, so that the efficiency of testing the network device is seriously affected.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a throughput measuring method and device of network equipment, a testing system and a storage medium, so that throughput testing efficiency of the network equipment is improved under the condition of ensuring testing accuracy.
In some embodiments, the throughput measurement method of the network device includes:
transmitting 100% of line speed flow to the tested network equipment port, and acquiring a first flow forwarding ratio of the tested network equipment port under the condition that packet loss exists in the forwarding process of 100% of line speed flow;
transmitting a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port, and acquiring a third flow forwarding ratio of the tested network equipment port under the condition that no packet is lost in the forwarding process of the first test flow;
transmitting a third test flow which is m times the third flow forwarding ratio to the tested network equipment port, and obtaining a fourth flow forwarding ratio of the tested network equipment port, wherein m is a positive number which is greater than 1;
when packet loss occurs in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, sending a fourth test flow which is equal to the fourth flow forwarding ratio to the tested network equipment port, and obtaining a fifth flow forwarding ratio of the tested network equipment port;
And under the condition that no packet is lost in the forwarding process of the fourth test flow, determining the fifth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
Optionally, after sending 100% of the line speed traffic to the tested network device port, the method further includes:
and under the condition that no packet is lost in the forwarding process of 100% of the line speed traffic, determining the first traffic forwarding ratio as the throughput of the tested network equipment port.
Optionally, after sending the first test traffic equal to the first traffic forwarding ratio to the tested network device port, the method further includes:
under the condition that the packet is lost in the forwarding process of the first test flow, acquiring a second flow forwarding ratio of the tested network equipment port;
iteratively transmitting a second test flow which is equal to n times of the second flow forwarding ratio to the tested network equipment port, and obtaining a third flow forwarding ratio corresponding to the tested network equipment port in each generation, wherein n is a positive number smaller than 1;
And under the condition that no packet is lost in the forwarding process of the second test flow of the current generation, acquiring a third flow forwarding ratio corresponding to the tested network equipment port of the current generation.
Optionally, after sending a third test traffic equal to m times the third traffic forwarding ratio to the network device under test port, further comprising:
and when the packet loss exists in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
Optionally, after sending a third test traffic equal to m times the third traffic forwarding ratio to the network device under test port, further comprising:
under the condition that no packet is lost in the forwarding process of the third test flow, iteratively sending the third test flow which is m times of the fourth flow forwarding ratio to the tested network equipment port, and obtaining the fourth flow forwarding ratio of the tested network equipment port corresponding to each generation, wherein m is a positive number which is larger than 1;
and under the condition that the packet loss exists in the forwarding process of the third test flow of the current generation, acquiring a fourth flow forwarding ratio corresponding to the tested network equipment port of the current generation.
Optionally, the throughput measurement method further includes:
when no packet is lost in the forwarding process of the second test flow of the current generation and 1-n times of the third flow forwarding ratio is smaller than 1%, determining the third flow forwarding ratio as the throughput of the tested network equipment port; or alternatively, the process may be performed,
and when no packet is lost in the forwarding process of the current generation of the third test flow, and the 1-n times of the fourth flow forwarding ratio is smaller than 1% or the m times of the fourth flow forwarding ratio is larger than or equal to 100%, determining the fourth flow forwarding ratio as the throughput of the tested network equipment port.
Optionally, after sending a fourth test traffic to the tested network device port, the method further comprises:
when packet loss occurs in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, iteratively sending a fifth test flow which is equal to the measured sixth flow forwarding ratio to the tested network equipment port, and obtaining a sixth flow forwarding ratio corresponding to each generation of the tested network equipment port;
And under the condition that no packet is lost in the forwarding process of the fifth test flow, determining the sixth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fifth test flow and the difference between the sixth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
In some embodiments, the throughput measurement apparatus of the network device includes:
the first measurement module is configured to send 100% of line speed traffic to the tested network equipment port, and acquire a first traffic forwarding ratio of the tested network equipment port under the condition that packet loss exists in the forwarding process of the 100% of line speed traffic;
the second measurement module is configured to send a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port, and acquire a third flow forwarding ratio of the tested network equipment port under the condition that no packet is lost in the forwarding process of the first test flow;
a third measurement module configured to send a third test flow equal to m times the third flow forwarding ratio to the tested network device port, and obtain a fourth flow forwarding ratio of the tested network device port, where m is a positive number greater than 1;
A fourth measurement module, configured to send a fourth test flow equal to the fourth flow forwarding ratio to the tested network device port to obtain a fifth flow forwarding ratio of the tested network device port when there is a packet loss in the forwarding process of the third test flow, and a difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold;
a fifth measurement module, configured to determine the fifth traffic forwarding ratio as the throughput of the tested network device port if there is no packet loss during the forwarding of the fourth test traffic, or determine the third traffic forwarding ratio as the throughput of the tested network device port if there is packet loss during the forwarding of the fourth test traffic and a difference between the fifth traffic forwarding ratio and the third traffic forwarding ratio is less than a preset threshold.
In some embodiments, the test system includes a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor is configured to execute the computer program to implement the throughput measurement method of the network device according to the present application.
In some embodiments, the storage medium stores program instructions that, when executed, perform a throughput measurement method of a network device according to the present application.
The throughput measuring method and device, the testing system and the storage medium of the network equipment provided by the embodiment of the disclosure can realize the following technical effects:
the application dynamically adjusts the set value of the throughput test flow by acquiring the real-time flow forwarding ratio of the port of the network equipment to be tested, and combines the flow forwarding ratio corresponding to the dynamically adjusted test flow and the packet loss condition under the current test flow, thereby rapidly and accurately testing the actual throughput value of the network equipment to be tested and effectively solving the problem of low throughput test efficiency of the network equipment.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
Fig. 1 is a schematic diagram of a throughput measurement method of a network device in the related art;
fig. 2 is a schematic diagram of a throughput measurement method of a network device according to the present application;
fig. 3 is a schematic diagram of a throughput measurement method of another network device provided by the present application;
fig. 4 is a schematic diagram of a throughput measurement method of another network device provided by the present application;
fig. 5 is a schematic diagram of a throughput measurement method of another network device provided by the present application;
fig. 6 is a schematic diagram of a throughput measurement method of another network device provided by the present application;
fig. 7 is a schematic diagram of a throughput measurement apparatus of a network device provided by the present application;
fig. 8 is a schematic diagram of a throughput measurement apparatus of another network device provided by the present application.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
First, the technical terms related to the present application will be explained:
IETF RFC2544: the method is a universal test standard for the current network interconnection equipment, and mainly comprises 4 indexes of throughput, time delay, packet loss rate and back-to-back frame number. In addition, the system recovery and system reset test is also included.
Traffic forwarding ratio: refers to the ratio of the forwardable traffic to the line speed traffic of the network device.
Throughput: refers to the maximum transmission rate of transmitted and received frames by the network device without losing any one frame. It is one of the most important indicators reflecting the performance of the network device. Throughput is generally expressed in two ways, namely, one is expressed in terms of percentage (TP%) and the other is expressed in terms of frames per second (TPpps), and the step of testing the throughput of the network device to be tested by using the method of bipartite approximation in the related art may be shown in conjunction with fig. 1, and includes:
step 101: the test equipment creates an ethernet data frame stream F whose size is initialized to the line speed traffic of the network equipment, i.e. the corresponding TP% equals 100%.
Step 102: the test equipment starts transmitting the ethernet data frame stream F from the transmit port a to the receive port B of the network equipment.
Step 103: after receiving the stream F from the receiving port B, the network device sends the stream F from the transmitting port C to the receiving port D of the test device.
Step 104: the test equipment receives a stream F of ethernet data frames from a receiving port D.
Step 105: after the preset time, the test equipment stops sending the Ethernet data frame stream F and analyzes the receiving and transmitting frames.
Wherein if no frame loss occurs when TP% = 100%, the throughput test is completed and the throughput of the network device is 100%; if there is a frame loss when TP% = 100%, the traffic TP% is turned down from 100% to 50%, and then the process goes to step 102 to retest; if no frame loss occurs when TP% = 50%, the traffic TP% is turned from 50% up to 75%, and then goes to step 102 to retest; if frame loss still occurs when TP% = 50%, the traffic TP% is turned down from 50% to 25% and then goes to step 102 to retest.
Step 106: and repeating the test for a plurality of times, and finally determining the throughput of the network equipment.
Therefore, when the throughput test is performed by using the dichotomy in the related art, the throughput preset value is selected to be relatively traditional and mechanical, so that the iteration test times are excessive, and the geometric multiple is increased by the smaller granularity, so that the efficiency of testing the network equipment is seriously affected.
To this end, as shown in connection with fig. 2, an embodiment of the present disclosure provides a throughput measurement method of a network device, including:
step 201: and sending 100% of line speed traffic to the tested network equipment port, and acquiring a first traffic forwarding ratio of the tested network equipment port under the condition that packet loss exists in the forwarding process of 100% of line speed traffic.
In the embodiment of the application, the test system firstly sends 100% of line speed traffic to the tested network equipment port for throughput test, for example, 1G or 500mb, and judges whether the tested network equipment port has packet loss in the forwarding process of 100% of line speed traffic, at this time, if the tested network equipment port has packet loss in the forwarding process of 100% of line speed traffic, the first traffic forwarding ratio A%, for example, 60%, of the tested network equipment port is obtained; if no packet is lost in the forwarding process of 100% of the line speed traffic, it indicates that the tested network equipment port supports the maximum forwarding rate, and at this time, the first traffic forwarding ratio may be directly determined as the throughput of the tested network equipment port, that is, 100%.
Step 202: and sending a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port, and acquiring a third flow forwarding ratio of the tested network equipment port under the condition that no packet is lost in the forwarding process of the first test flow.
In the embodiment of the present application, when there is a packet loss in the forwarding process of 100% of the line speed traffic, the test system of the present application sends a first test traffic a% equal to the first traffic forwarding ratio a% to the tested network device port to perform a throughput test, for example, 60%, and determines whether the tested network device port has a packet loss in the forwarding process of the first test traffic a%, where if there is no packet loss in the forwarding process of the first test traffic, a third traffic forwarding ratio C%, for example, 60%, of the tested network device port is obtained (because there is no packet loss, the first test traffic a% is equal to the third traffic forwarding ratio C%).
Step 203: and sending a third test flow which is m times the third flow forwarding ratio to the tested network equipment port, and obtaining a fourth flow forwarding ratio of the tested network equipment port, wherein m is a positive number which is larger than 1.
In the embodiment of the present application, under the condition that no packet is lost in the forwarding process of the first test traffic, the test system of the present application further sends a third test traffic m×c% equal to m times of the third traffic forwarding ratio c% to the tested network device port to perform a throughput test, where m is a positive number greater than 1, for example, 1.04, 1.05 or 1.06, and the third test traffic may be 62.4%, 63% or 63.6%, so as to obtain a fourth traffic forwarding ratio d% of the tested network device port.
Step 204: and when packet loss occurs in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, sending the fourth test flow which is equal to the fourth flow forwarding ratio to the tested network equipment port, and obtaining a fifth flow forwarding ratio of the tested network equipment port.
In the embodiment of the present application, if the tested network device port still has packet loss during the forwarding process of the third test traffic m×c%, and the difference between the fourth traffic forwarding ratio D% and the third traffic forwarding ratio C% is greater than or equal to a preset threshold, for example, the third test traffic C% is 60%, the fourth traffic forwarding ratio D% is 62% and the preset threshold is 1%, that is (62% -60%). Gtoreq.1%, the test system of the present application further sends a fourth test traffic D% equal to the fourth traffic forwarding ratio D% to the tested network device port for throughput test, for example, 62%, and obtains a fifth traffic forwarding ratio E% of the tested network device port.
Step 205: and under the condition that no packet is lost in the forwarding process of the fourth test flow, determining the fifth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
In the embodiment of the present application, the test system further determines whether the tested network device port has a packet loss in the forwarding process of the fourth test flow d%, if the flow forwarding has no packet loss, the fifth flow forwarding ratio E% may be determined as the throughput of the tested network device port, for example, in the fourth test flow d% is 62%, and if the flow forwarding has no packet loss, the fifth flow forwarding ratio E% and the throughput of the tested network device port are both 62%; if the packet loss occurs in the traffic forwarding, and the difference between the fifth traffic forwarding ratio and the third traffic forwarding ratio is smaller than a preset threshold, for example, the fifth traffic forwarding ratio E% is 60.99%, the third traffic forwarding ratio C% is 60% and the preset threshold is 1%, that is (60.99% -60%) < 1%, it indicates that the real throughput of the tested network device port is accurately positioned between the fifth traffic forwarding ratio E% and the third traffic forwarding ratio C%, and at this time, the third traffic forwarding ratio C% in the case of no packet loss is determined as the throughput of the tested network device port, that is, 60%.
By adopting the throughput measuring method of the network equipment, which is provided by the embodiment of the disclosure, the real-time flow forwarding ratio of the port of the network equipment to be measured is obtained, so that the set value of the test flow of the throughput is dynamically adjusted, and the flow forwarding ratio corresponding to the dynamically adjusted test flow and the packet loss condition under the current test flow are combined, so that the actual throughput value of the network equipment to be measured is rapidly and accurately tested, and the problem of low throughput test efficiency of the network equipment is effectively solved.
Optionally, as shown in connection with fig. 3, after sending the first test traffic equal to the first traffic forwarding ratio to the tested network device port, the method further includes:
step 301: and under the condition that the packet is lost in the forwarding process of the first test flow, acquiring a second flow forwarding ratio of the tested network equipment port.
In the embodiment of the present application, in step 202, the test system of the present application sends a first test traffic a% equal to the first traffic forwarding ratio a% to the tested network device port to perform a throughput test, for example, 60%, and determines whether the tested network device port has a packet loss during the forwarding of the first test traffic a%, where, if there is a packet loss during the forwarding of the first test traffic, a second traffic forwarding ratio B%, for example, 55%, of the tested network device port is obtained.
Step 302: and iteratively transmitting second test flow which is equal to n times of the second flow forwarding ratio to the tested network equipment port, and obtaining a third flow forwarding ratio corresponding to each generation of the tested network equipment port, wherein n is a positive number smaller than 1.
In the embodiment of the application, the test system of the application is characterized in that the packet loss existsFurther iteratively transmitting a second test traffic n x B% equal to n times the second traffic forwarding ratio B% to the tested network device port for continuous throughput testing, wherein n is a positive number smaller than 1, for example 0.94, 0.95 or 0.96, the second test traffic of the first generation may be 51.7%, 52.25% or 52.8%, and the second test traffic of the second generation may be n 2 * And B, sequentially decreasing the second test flow by exponential times to gradually reduce the second test flow, and acquiring a third flow forwarding ratio C% corresponding to each generation of the tested network equipment port by the test system.
Step 303: and under the condition that no packet is lost in the forwarding process of the second test flow of the current generation, acquiring a third flow forwarding ratio corresponding to the tested network equipment port of the current generation.
In the embodiment of the present application, the test system of the present application decreases exponentially to gradually decrease the second test traffic for continuous throughput test until the tested network device port has no packet loss in the forwarding process of the second test traffic of the current generation, and obtains the third traffic forwarding ratio C% corresponding to the tested network device port in the current generation, for example, only iterates once, where the third traffic forwarding ratio C% may be 52.25%, and then proceeds to execute step 203 according to the obtained third traffic forwarding ratio C%.
Optionally, in the case that no packet is lost in the forwarding process of the second test traffic and 1-n times of the third traffic forwarding ratio is smaller than 1%, determining the third traffic forwarding ratio as the throughput of the tested network device port.
In an embodiment of the present application, in a specific case, if there is no packet loss during forwarding of the second test traffic of the current generation, and 1-n times of the third traffic forwarding ratio C% is less than 1%, where n is a positive number less than 1, for example, 0.94, 0.95, or 0.96, i.e., C% > (1-n) < 1%, it is indicated that the third traffic forwarding ratio C% in the case of no packet loss at this time has satisfied the test accuracy (1%) required for the test, and the third traffic forwarding ratio C% may be directly determined as the throughput of the tested network device port.
In this way, under the condition that the packet is lost in the forwarding process of the first test flow, the test flow is dynamically adjusted according to the second flow forwarding ratio of the tested network equipment port, so that the lower limit of the real-time flow forwarding ratio of the tested network equipment port without packet loss can be rapidly determined, and the improvement of the efficiency and the accuracy of the throughput test is facilitated.
Optionally, the embodiment of the present disclosure provides a throughput measurement method of a network device, after sending a third test traffic equal to m times of the third traffic forwarding ratio to the tested network device port, further including:
and when the packet loss exists in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
In the embodiment of the present application, in step 203, the test system of the present application further sends, to the tested network device port, a third test traffic m×c% equal to m times the third traffic forwarding ratio C% for performing a throughput test when no packet is lost during forwarding of the first test traffic, and if there is a packet loss during forwarding of the third test traffic m×c% and the difference between the fourth traffic forwarding ratio D% and the third traffic forwarding ratio C% is less than a preset threshold, for example, the third test traffic C% is 60%, the fourth traffic forwarding ratio D% is 60.99% and the preset threshold is 1%, that is, (60.99% -60%) < 1%, then it is indicated that the real throughput of the tested network device port is accurately located between the fourth traffic forwarding ratio D% and the third traffic forwarding ratio C%, and at this time, the third traffic forwarding ratio C% under the condition of no packet loss is determined as the throughput of the tested network device port, that is 60%.
In this way, the throughput can be quickly and accurately determined by the real-time traffic forwarding ratio without performing repeated trial-and-error tests multiple times.
Optionally, as shown in connection with fig. 4, an embodiment of the disclosure provides a throughput measurement method of a network device, after sending a third test traffic equal to m times the third traffic forwarding ratio to the tested network device port, further including:
step 401: and under the condition that no packet is lost in the forwarding process of the third test flow, iteratively sending the third test flow which is m times of the fourth flow forwarding ratio to the tested network equipment port, and acquiring the fourth flow forwarding ratio of the tested network equipment port corresponding to each generation, wherein m is a positive number which is larger than 1.
In the embodiment of the present application, in step 203, the test system of the present application further sends, to the tested network device port, a third test traffic m×c% equal to m times the third traffic forwarding ratio C% to perform throughput test under the condition that no packet is lost in the forwarding process of the first test traffic, where if no packet is lost in the forwarding process of the third test traffic m×c%, the third test traffic m×c% is equal to the fourth traffic forwarding ratio D%, for example, 63%, and the test system further iteratively sends, to the tested network device port, a third test traffic m times the fourth traffic forwarding ratio, where m is a positive number greater than 1, for example, 1.04, 1.05, or 1.06, the third test traffic of the first generation may be 65.25%, 66.15% or 66.78%, and the third test traffic of the second generation may be m 2 * And C, sequentially increasing the third test flow in an exponential manner to gradually increase the third test flow, and obtaining a fourth flow forwarding ratio D% corresponding to each generation of the tested network equipment port by the test system.
Step 402: and under the condition that the packet loss exists in the forwarding process of the third test flow of the current generation, acquiring a fourth flow forwarding ratio corresponding to the tested network equipment port of the current generation.
In the embodiment of the present application, the test system of the present application increases the third test traffic by exponential multiple to gradually increase the third test traffic for continuous throughput test until the tested network device port has packet loss in the forwarding process of the third test traffic of the current generation, and obtains the fourth traffic forwarding ratio D% corresponding to the tested network device port in the current generation, for example, only iterates once, where the fourth traffic forwarding ratio D% may be 66.15%, and then continues to execute step 204 according to the obtained fourth traffic forwarding ratio D%.
Optionally, in the case that no packet is lost in the forwarding process of the third test traffic and 1-n times of the fourth traffic forwarding ratio is less than 1% or m times is greater than or equal to 100%, determining the fourth traffic forwarding ratio as the throughput of the tested network device port.
In an embodiment of the present application, in a specific case, if there is no packet loss during forwarding of the third test traffic in the current generation, and 1-n times of the fourth traffic forwarding ratio D% is less than 1% or m times is greater than or equal to 100%, where n is a positive number less than 1, for example 0.94, 0.95 or 0.96, and m is a positive number greater than 1, for example 1.04, 1.05 or 1.06, that is, D% < 1% or D%. M is greater than or equal to 100%, it indicates that at this time, the fourth traffic forwarding ratio D% in the case of no packet loss has already satisfied the test accuracy (1%) required for the test or reached the line speed traffic (100%), and the fourth traffic forwarding ratio D% may be directly determined as the throughput of the tested network device port.
In this way, under the condition that the packet is lost in the forwarding process of the third test flow, the test flow is dynamically adjusted according to the fourth flow forwarding ratio of the tested network equipment port, so that the upper limit of the real-time flow forwarding ratio of the tested network equipment port without packet loss can be rapidly determined, and the efficiency and the accuracy of the throughput test can be improved.
Optionally, as shown in connection with fig. 5, an embodiment of the present disclosure provides a throughput measurement method of a network device, after sending a fourth test traffic equal to the fourth traffic forwarding ratio to the tested network device port, further including:
Step 501: and under the condition that the packet loss exists in the forwarding process of the fourth test flow and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is larger than or equal to a preset threshold value, iteratively sending the fifth test flow which is equal to the measured sixth flow forwarding ratio to the tested network equipment port, and obtaining the sixth flow forwarding ratio of the tested network equipment port corresponding to each generation.
In the embodiment of the present application, the test system of the present application performs a throughput test, for example, 62%, when sending a fourth test traffic D% equal to the fourth traffic forwarding ratio D% to the tested network device port, determines whether the tested network device port has a packet loss during forwarding of the fourth test traffic D%, if the traffic is forwarded with a packet loss, and if the difference between the fifth traffic forwarding ratio E% and the third traffic forwarding ratio C% is smaller than a preset threshold, for example, the fifth traffic forwarding ratio E% is 61%, the third traffic forwarding ratio C% is 60% and the preset threshold is 1%, that is (61% -60%) > or more, then iteratively sending a fifth test traffic E% equal to the measured sixth traffic forwarding ratio F% to the tested network device port to continuously perform the throughput test, and obtaining a sixth traffic forwarding ratio F% of the tested network device port corresponding to each generation.
Step 502: and under the condition that no packet is lost in the forwarding process of the fifth test flow, determining the sixth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fifth test flow and the difference between the sixth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
In the embodiment of the application, the test system continuously performs throughput test according to a fifth test flow E% with the same sixth flow forwarding ratio F% obtained by each iteration, and determines the obtained sixth flow forwarding ratio F% as the throughput of the tested network equipment port under the condition that no packet is lost in the forwarding process of the fifth test flow; or in the case that there is a packet loss in the forwarding process of the fifth test traffic of the current generation, and the difference between the sixth traffic forwarding ratio and the third traffic forwarding ratio is smaller than a preset threshold, for example, the sixth traffic forwarding ratio f% is 60.99%, the third traffic forwarding ratio c% is 60% and the preset threshold is 1%, that is (60.99% -60%) < 1%, it is indicated that the real throughput of the tested network device port is accurately positioned between the sixth traffic forwarding ratio f% and the third traffic forwarding ratio c%, at this time, the third traffic forwarding ratio c% in the case of no packet loss is determined as the throughput of the tested network device port, that is 60%.
Therefore, the test accuracy (the error accuracy can be guaranteed to be 1%) can be guaranteed, the test efficiency of the network equipment can be improved, the throughput can be obtained only by about 3-4 times of iterative tests, and compared with the prior art, the efficiency can be doubled.
In practical application, as shown in fig. 6, an embodiment of the present disclosure provides a throughput measurement method of a network device, including:
step 601: transmitting 100% of line speed flow to the tested network equipment port to carry out throughput test, and judging whether packet loss exists or not; if not, go to step 602; if yes, go to step 603.
Step 602: a first traffic forwarding ratio of the network device port under test is determined as a throughput of the network device port under test.
Step 603: transmitting a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port to carry out throughput test, and judging whether packet loss exists or not; if not, go to step 604; if yes, go to step 605.
Step 604: obtaining a second flow forwarding ratio of the tested network equipment port, iteratively transmitting a second test flow which is n times of the second flow forwarding ratio to the tested network equipment port, and obtaining a third flow forwarding ratio of the tested network equipment port corresponding to the current generation under the condition that no packet is lost in the forwarding process of the second test flow of the current generation, wherein n is a positive number smaller than 1.
Step 605: and obtaining a third flow forwarding ratio of the tested network equipment port.
Step 606: transmitting a third test flow which is m times of the third flow forwarding ratio to the tested network equipment port to perform throughput test, and judging whether packet loss exists or not; if not, go to step 607; if yes, go to step 608 or step 609.
Step 607: and iteratively transmitting a third test flow which is m times as high as the fourth flow forwarding ratio to the tested network equipment port, acquiring the fourth flow forwarding ratio corresponding to the tested network equipment port in each generation, wherein m is a positive number which is greater than 1, acquiring the fourth flow forwarding ratio corresponding to the tested network equipment port in the current generation under the condition that packet loss exists in the forwarding process of the third test flow in the current generation, and executing step 608 or step 609.
Step 608: and determining the third flow forwarding ratio as the throughput of the tested network equipment port under the condition that the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value.
Step 609: transmitting a fourth test flow equal to the fourth flow forwarding ratio to the tested network equipment port to perform throughput test under the condition that the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is larger than or equal to a preset threshold value, and judging whether packet loss exists or not; if not, go to step 610; if yes, go to step 611 or step 612.
Step 610: and determining a fifth traffic forwarding ratio of the tested network equipment port as the throughput of the tested network equipment port.
Step 611: and determining the third flow forwarding ratio as the throughput of the tested network equipment port under the condition that the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value.
Step 612: iteratively transmitting a fifth test flow equal to the measured sixth flow forwarding ratio to the tested network equipment port to perform throughput test under the condition that the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is larger than or equal to a preset threshold value, and judging whether packet loss exists or not; if not, go to step 613; if yes, go to step 614.
Step 613: and determining a sixth traffic forwarding ratio of the tested network equipment port as the throughput of the tested network equipment port.
Step 614: and determining the third flow forwarding ratio as the throughput of the tested network equipment port under the condition that the difference between the sixth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value.
As shown in fig. 7, an embodiment of the present disclosure provides a throughput measurement apparatus of a network device, including:
A first measurement module 701, configured to send 100% of line speed traffic to the tested network device port, and obtain a first traffic forwarding ratio of the tested network device port when there is a packet loss in a forwarding process of the 100% of line speed traffic;
a second measurement module 702, configured to send a first test traffic equal to the first traffic forwarding ratio to the tested network device port, and obtain a third traffic forwarding ratio of the tested network device port when no packet is lost in the forwarding process of the first test traffic;
a third measurement module 703 configured to send a third test flow equal to m times the third flow forwarding ratio to the tested network device port, and obtain a fourth flow forwarding ratio of the tested network device port, where m is a positive number greater than 1;
a fourth measurement module 704, configured to send, to the tested network device port, a fourth test flow equal to the fourth flow forwarding ratio to obtain a fifth flow forwarding ratio of the tested network device port when there is a packet loss in the forwarding process of the third test flow, and a difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold;
A fifth measurement module 705, configured to determine, when there is no packet loss during forwarding of the fourth test traffic, the fifth traffic forwarding ratio as the throughput of the tested network device port, or determine, when there is a packet loss during forwarding of the fourth test traffic, the third traffic forwarding ratio as the throughput of the tested network device port, and a difference between the fifth traffic forwarding ratio and the third traffic forwarding ratio is smaller than a preset threshold.
Optionally, the first measurement module 701 is further configured to:
and under the condition that no packet is lost in the forwarding process of 100% of the line speed traffic, determining the first traffic forwarding ratio as the throughput of the tested network equipment port.
Optionally, the second measurement module 702 is further configured to:
under the condition that the packet is lost in the forwarding process of the first test flow, acquiring a second flow forwarding ratio of the tested network equipment port;
iteratively transmitting a second test flow which is equal to n times of the second flow forwarding ratio to the tested network equipment port, and obtaining a third flow forwarding ratio corresponding to the tested network equipment port in each generation, wherein n is a positive number smaller than 1;
And under the condition that no packet is lost in the forwarding process of the second test flow of the current generation, acquiring a third flow forwarding ratio corresponding to the tested network equipment port of the current generation.
Optionally, the third measurement module 703 is further configured to:
and when the packet loss exists in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
Optionally, the fourth measurement module 704 is further configured to:
under the condition that no packet is lost in the forwarding process of the third test flow, iteratively sending the third test flow which is m times of the fourth flow forwarding ratio to the tested network equipment port, and obtaining the fourth flow forwarding ratio of the tested network equipment port corresponding to each generation, wherein m is a positive number which is larger than 1;
and under the condition that the packet loss exists in the forwarding process of the third test flow of the current generation, acquiring a fourth flow forwarding ratio corresponding to the tested network equipment port of the current generation.
Optionally, the fifth measurement module 705 is further configured to:
When packet loss occurs in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, iteratively sending a fifth test flow which is equal to the measured sixth flow forwarding ratio to the tested network equipment port, and obtaining a sixth flow forwarding ratio corresponding to each generation of the tested network equipment port;
and under the condition that no packet is lost in the forwarding process of the fifth test flow, determining the sixth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fifth test flow and the difference between the sixth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
By adopting the throughput measuring device of the network equipment, which is provided by the embodiment of the disclosure, the real-time flow forwarding ratio of the port of the network equipment to be measured is obtained, so that the set value of the test flow of the throughput is dynamically adjusted, and the flow forwarding ratio corresponding to the dynamically adjusted test flow and the packet loss condition under the current test flow are combined, so that the actual throughput value of the network equipment to be measured is rapidly and accurately tested, and the problem of low throughput test efficiency of the network equipment is effectively solved.
As shown in connection with fig. 8, an embodiment of the present disclosure provides a test system including a processor (processor) 800 and a memory (memory) 801. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 802 and a bus 803. The processor 800, the communication interface 802, and the memory 801 may communicate with each other via the bus 803. The communication interface 802 may be used for information transfer. The processor 800 may invoke logic instructions in the memory 801 to perform the throughput measurement methods of the network devices of the above-described embodiments.
Further, the logic instructions in the memory 801 described above may be implemented in the form of software functional units and sold or used as a separate product, and may be stored in a computer readable storage medium.
The memory 801 is a computer readable storage medium that may be used to store a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 800 executes the program instructions/modules stored in the memory 801 to perform functional applications and data processing, i.e., to implement the throughput measuring method of the network device in the above-described embodiment.
The memory 801 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 801 may include a high-speed random access memory, and may also include a nonvolatile memory.
The disclosed embodiments provide a storage medium storing computer executable instructions configured to perform the throughput measurement method of a network device described above.
The storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in the present disclosure, the terms "comprises," "comprising," and/or variations thereof, mean that the recited features, integers, steps, operations, elements, and/or components are present, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for throughput measurement of a network device, comprising:
transmitting 100% of line speed flow to a tested network equipment port, and acquiring a first flow forwarding ratio of the tested network equipment port under the condition that packet loss exists in the forwarding process of 100% of line speed flow;
transmitting a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port, and acquiring a third flow forwarding ratio of the tested network equipment port under the condition that no packet is lost in the forwarding process of the first test flow;
transmitting a third test flow which is m times the third flow forwarding ratio to the tested network equipment port, and obtaining a fourth flow forwarding ratio of the tested network equipment port, wherein m is a positive number which is greater than 1;
when packet loss occurs in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, sending a fourth test flow which is equal to the fourth flow forwarding ratio to the tested network equipment port, and obtaining a fifth flow forwarding ratio of the tested network equipment port;
And under the condition that no packet is lost in the forwarding process of the fourth test flow, determining the fifth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
2. The throughput measurement method of claim 1, further comprising, after transmitting 100% of line speed traffic to the network device port under test:
and under the condition that no packet is lost in the forwarding process of 100% of the line speed traffic, determining the first traffic forwarding ratio as the throughput of the tested network equipment port.
3. The throughput measurement method of claim 1, further comprising, after transmitting a first test traffic to the network device under test port that is equal to the first traffic forwarding ratio:
under the condition that the packet is lost in the forwarding process of the first test flow, acquiring a second flow forwarding ratio of the tested network equipment port;
Iteratively transmitting a second test flow which is equal to n times of the second flow forwarding ratio to the tested network equipment port, and obtaining a third flow forwarding ratio corresponding to the tested network equipment port in each generation, wherein n is a positive number smaller than 1;
and under the condition that no packet is lost in the forwarding process of the second test flow of the current generation, acquiring a third flow forwarding ratio corresponding to the tested network equipment port of the current generation.
4. The throughput measurement method of claim 3, further comprising, after transmitting a third test traffic to the network device under test port equal to m times the third traffic forwarding ratio:
and when the packet loss exists in the forwarding process of the third test flow, and the difference between the fourth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold value, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
5. The throughput measurement method of claim 3, further comprising, after transmitting a third test traffic to the network device under test port equal to m times the third traffic forwarding ratio:
Under the condition that no packet is lost in the forwarding process of the third test flow, iteratively sending the third test flow which is m times of the fourth flow forwarding ratio to the tested network equipment port, and obtaining the fourth flow forwarding ratio of the tested network equipment port corresponding to each generation, wherein m is a positive number which is larger than 1;
and under the condition that the packet loss exists in the forwarding process of the third test flow of the current generation, acquiring a fourth flow forwarding ratio corresponding to the tested network equipment port of the current generation.
6. The throughput measurement method of claim 5, further comprising:
when no packet is lost in the forwarding process of the second test flow of the current generation and 1-n times of the third flow forwarding ratio is smaller than 1%, determining the third flow forwarding ratio as the throughput of the tested network equipment port; or alternatively, the process may be performed,
and when no packet is lost in the forwarding process of the current generation of the third test flow, and the 1-n times of the fourth flow forwarding ratio is smaller than 1% or the m times of the fourth flow forwarding ratio is larger than or equal to 100%, determining the fourth flow forwarding ratio as the throughput of the tested network equipment port.
7. The throughput measurement method according to any one of claims 1 to 6, further comprising, after transmitting a fourth test traffic equal to the fourth traffic forwarding ratio to the network device port under test:
when packet loss occurs in the forwarding process of the fourth test flow, and the difference between the fifth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold, iteratively sending a fifth test flow which is equal to the measured sixth flow forwarding ratio to the tested network equipment port, and obtaining a sixth flow forwarding ratio corresponding to each generation of the tested network equipment port;
and under the condition that no packet is lost in the forwarding process of the fifth test flow, determining the sixth flow forwarding ratio as the throughput of the tested network equipment port, or under the condition that the packet is lost in the forwarding process of the fifth test flow and the difference between the sixth flow forwarding ratio and the third flow forwarding ratio is smaller than a preset threshold, determining the third flow forwarding ratio as the throughput of the tested network equipment port.
8. A throughput measurement apparatus of a network device, comprising:
The first measurement module is configured to send 100% of line speed traffic to a tested network equipment port, and acquire a first traffic forwarding ratio of the tested network equipment port under the condition that packet loss exists in the forwarding process of the 100% of line speed traffic;
the second measurement module is configured to send a first test flow which is equal to the first flow forwarding ratio to the tested network equipment port, and acquire a third flow forwarding ratio of the tested network equipment port under the condition that no packet is lost in the forwarding process of the first test flow;
a third measurement module configured to send a third test flow equal to m times the third flow forwarding ratio to the tested network device port, and obtain a fourth flow forwarding ratio of the tested network device port, where m is a positive number greater than 1;
a fourth measurement module, configured to send a fourth test flow equal to the fourth flow forwarding ratio to the tested network device port to obtain a fifth flow forwarding ratio of the tested network device port when there is a packet loss in the forwarding process of the third test flow, and a difference between the fourth flow forwarding ratio and the third flow forwarding ratio is greater than or equal to a preset threshold;
A fifth measurement module, configured to determine the fifth traffic forwarding ratio as the throughput of the tested network device port if there is no packet loss during the forwarding of the fourth test traffic, or determine the third traffic forwarding ratio as the throughput of the tested network device port if there is packet loss during the forwarding of the fourth test traffic and a difference between the fifth traffic forwarding ratio and the third traffic forwarding ratio is less than a preset threshold.
9. A test system comprising a memory and a processor, wherein:
the memory is used for storing a computer program;
the processor for executing the computer program to implement the throughput measurement method of a network device according to any one of claims 1 to 7.
10. A storage medium storing program instructions which, when executed, perform the throughput measurement method of a network device according to any one of claims 1 to 7.
CN202210393475.6A 2022-04-15 2022-04-15 Throughput measuring method and device for network equipment, testing system and storage medium Active CN114844806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210393475.6A CN114844806B (en) 2022-04-15 2022-04-15 Throughput measuring method and device for network equipment, testing system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210393475.6A CN114844806B (en) 2022-04-15 2022-04-15 Throughput measuring method and device for network equipment, testing system and storage medium

Publications (2)

Publication Number Publication Date
CN114844806A CN114844806A (en) 2022-08-02
CN114844806B true CN114844806B (en) 2023-08-25

Family

ID=82565679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210393475.6A Active CN114844806B (en) 2022-04-15 2022-04-15 Throughput measuring method and device for network equipment, testing system and storage medium

Country Status (1)

Country Link
CN (1) CN114844806B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120134252A (en) * 2011-06-01 2012-12-12 삼성에스디에스 주식회사 Method and apparatus of fairness based on hop count
CN102904772A (en) * 2012-09-26 2013-01-30 中兴通讯股份有限公司 Method and device for realizing throughput test of network equipment
CN103078767A (en) * 2012-12-31 2013-05-01 中国电子科技集团公司第四十一研究所 Method and device for testing throughput of WAN (Wide Area Network) at single port and at full wire speed
CN103560928A (en) * 2013-10-22 2014-02-05 东软集团股份有限公司 Method and system for testing forwarding performance of network equipment
CN103746884A (en) * 2014-01-15 2014-04-23 加弘科技咨询(上海)有限公司 Method and system for testing flow through switchboard
CN104618183A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 RFC2544 throughput capacity test method
CN105764024A (en) * 2016-05-09 2016-07-13 广东欧珀移动通信有限公司 Method and device for testing handling capacity of wireless device
CN109743744A (en) * 2018-12-19 2019-05-10 深圳创维数字技术有限公司 Wireless performance test method, device, equipment and readable storage medium storing program for executing
CN110120894A (en) * 2019-03-25 2019-08-13 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus of testing throughput
CN111200541A (en) * 2019-12-31 2020-05-26 山石网科通信技术股份有限公司 Network data processing method and device
CN111711546A (en) * 2020-06-17 2020-09-25 杭州安恒信息技术股份有限公司 Device throughput testing method, device, system and computer readable storage medium
CN113923132A (en) * 2021-09-23 2022-01-11 深信服科技股份有限公司 Data reminding method and device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3270012B2 (en) * 1998-09-08 2002-04-02 富士通株式会社 Network server load detecting device, allocating device and method
US8644154B2 (en) * 2009-02-20 2014-02-04 Clearwire Ip Holdings Llc Predictive throughput management
CN102201947B (en) * 2010-03-24 2015-08-12 中兴通讯股份有限公司 Throughput method of measurement and safeguard end node
JP2018061141A (en) * 2016-10-05 2018-04-12 富士通株式会社 Communication apparatus and communication method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120134252A (en) * 2011-06-01 2012-12-12 삼성에스디에스 주식회사 Method and apparatus of fairness based on hop count
CN102904772A (en) * 2012-09-26 2013-01-30 中兴通讯股份有限公司 Method and device for realizing throughput test of network equipment
CN103078767A (en) * 2012-12-31 2013-05-01 中国电子科技集团公司第四十一研究所 Method and device for testing throughput of WAN (Wide Area Network) at single port and at full wire speed
CN103560928A (en) * 2013-10-22 2014-02-05 东软集团股份有限公司 Method and system for testing forwarding performance of network equipment
CN103746884A (en) * 2014-01-15 2014-04-23 加弘科技咨询(上海)有限公司 Method and system for testing flow through switchboard
CN104618183A (en) * 2015-01-22 2015-05-13 北京奥普维尔科技有限公司 RFC2544 throughput capacity test method
CN105764024A (en) * 2016-05-09 2016-07-13 广东欧珀移动通信有限公司 Method and device for testing handling capacity of wireless device
CN109743744A (en) * 2018-12-19 2019-05-10 深圳创维数字技术有限公司 Wireless performance test method, device, equipment and readable storage medium storing program for executing
CN110120894A (en) * 2019-03-25 2019-08-13 视联动力信息技术股份有限公司 A kind for the treatment of method and apparatus of testing throughput
CN111200541A (en) * 2019-12-31 2020-05-26 山石网科通信技术股份有限公司 Network data processing method and device
CN111711546A (en) * 2020-06-17 2020-09-25 杭州安恒信息技术股份有限公司 Device throughput testing method, device, system and computer readable storage medium
CN113923132A (en) * 2021-09-23 2022-01-11 深信服科技股份有限公司 Data reminding method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IXP2400的高速二层交换设备性能测试技术;安克;赵荣彩;邰铭;陈静;;小型微型计算机系统(第03期);全文 *

Also Published As

Publication number Publication date
CN114844806A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
EP2849384B1 (en) Approximate matching method and related device, and communication system
CN105517668A (en) Method and apparatus for identifying network transmission congestion
EP2684323B1 (en) Microcontroller with can bus module and auto speed detect
US8848582B2 (en) Method for measuring throughput and maintenance end point
CN100366005C (en) Test method for throughput capacity of IP equipment
JP2001352350A (en) Measurement system and method by statistic eye-diagram of continuous bit stream
US20190044760A1 (en) Technologies for optimizing transmitter equalization with high-speed retimer
US20100265833A1 (en) Network bandwidth determination
CN114143107A (en) Low-speed DDoS attack detection method, system and related equipment
CN114844806B (en) Throughput measuring method and device for network equipment, testing system and storage medium
CN104471888B (en) Processing method, equipment and the system of free block IDLE in block of burst data
CN104113467A (en) Virtual desktop system and message data transmitting method thereof
US10230615B2 (en) System and method for optimizing network performance based on profiling
CN103338131A (en) Method and equipment for testing log transmitting loss rate
Jena et al. A novel bit stuffing technique for Controller Area Network (CAN) protocol
CN108880914B (en) Interconnection network fault detection and positioning method based on network bandwidth test
US20170099192A1 (en) Network status measuring system and a method for measuring status of a network
US10707896B2 (en) Forward and backward smooth decoding method, device, and system
CN114375055A (en) Bandwidth processing method, device, equipment and storage medium
CN106713035B (en) Congestion link positioning method based on grouping test
CN104836754A (en) Method and device for achieving backboard auto-negotiation function by means of high speed Serdes
KR101643552B1 (en) Method and apparatus for estimating available bandwidth and capacity of network paths in communication systems
TWI427942B (en) Communication apparatus with transmission rate detecting function and method thereof
CN111106977A (en) Data stream detection method, device and storage medium
CN114363209B (en) Performance detection method, device, equipment and storage medium based on TCP (Transmission control protocol) network

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