CN117811977A - Throughput testing method and system - Google Patents

Throughput testing method and system Download PDF

Info

Publication number
CN117811977A
CN117811977A CN202311841729.7A CN202311841729A CN117811977A CN 117811977 A CN117811977 A CN 117811977A CN 202311841729 A CN202311841729 A CN 202311841729A CN 117811977 A CN117811977 A CN 117811977A
Authority
CN
China
Prior art keywords
test
video
terminal
throughput
data packet
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.)
Pending
Application number
CN202311841729.7A
Other languages
Chinese (zh)
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202311841729.7A priority Critical patent/CN117811977A/en
Publication of CN117811977A publication Critical patent/CN117811977A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a throughput testing method and system, wherein the method comprises the steps that test equipment responds to a throughput testing instruction and sends a first testing data packet to a first video terminal through an Ethernet transmission channel; the first video terminal converts the received first test data packet into a second test data packet and sends the second test data packet to the second video terminal through a video networking transmission channel; the second video communication terminal converts the received second test data packet into a third test data packet and sends the third test data packet to the test equipment through the Ethernet transmission channel, so that the test equipment determines the throughput of the video communication transmission channel. Through setting up the data transmission loop between test equipment and the video networking terminal, throughput test is carried out, the throughput of the video networking core server can be determined, the requirements of the client market are met, and the throughput test result is more accurate and standard.

Description

Throughput testing method and system
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and a system for throughput testing.
Background
The video networking is a real-time national high-definition video network constructed based on the video networking technology. In view networking construction, in order to meet market and customer demands, a view router and a traditional router often need to be tested and compared, so that a test method uniformly approved in the industry is needed, throughput performance test demands are met, and test accuracy is guaranteed.
Disclosure of Invention
In view of this, the present application aims to provide a throughput testing method and system, so as to meet the throughput performance testing requirement and ensure the testing accuracy.
In a first aspect, the present application provides a method of throughput testing, the method comprising: the test equipment responds to the throughput test instruction and sends a first test data packet to the first video link terminal through the Ethernet transmission channel; the first video terminal converts the received first test data packet into a second test data packet and sends the second test data packet to the second video terminal through a video networking transmission channel; the second video communication terminal converts the received second test data packet into a third test data packet and sends the third test data packet to the test equipment through the Ethernet transmission channel, so that the test equipment determines the throughput of the video communication transmission channel.
Preferably, the throughput test instruction is used for indicating test rounds, single-round test time, data packet sizes and data packet numbers, and in the single-round test time, the test equipment sends first test data packets of a first preset number to the first video terminal based on a preset rate so as to obtain third test data packets of a second preset number fed back by the second video terminal, and the preset rate in the next round of test is adjusted according to the deviation between the first preset number and the second preset number.
Preferably, the testing device adjusts the preset rate at the next round of testing by: comparing the first preset number with the second preset number in the single-round test time; when the first preset number is equal to the second preset number, increasing the preset speed in the next round of test; and when the first preset number is larger than the second preset number, reducing the preset speed in the next round of test.
Preferably, the throughput test instruction is further configured to instruct the test accuracy, and the test device determines the throughput of the video networking transmission channel by: determining a rate difference value between a first preset rate and a second preset rate corresponding to two adjacent rounds of testing; determining whether the rate difference is less than the product between the test accuracy and the initial rate; if yes, recording the current preset rate and taking the current preset rate as the throughput of the video networking transmission channel.
Preferably, if not, the next round of testing is performed, and the step of determining the rate difference is performed back.
Preferably, the method further comprises calculating an average rate based on all recorded preset rates; the average rate is taken as the throughput of the transmission channel of the video network.
In a second aspect, the present application provides a throughput testing system, where the testing system includes an optocoupler terminal and an optocoupler server, and the optocoupler terminal at least includes an ethernet interface, a protocol conversion module, and an optocoupler interface that are sequentially connected, where the ethernet interface of the first optocoupler terminal is used to connect with a first network interface of a testing device, and the ethernet interface of the second optocoupler terminal is used to connect with a second network interface of the testing device; the video networking interface of the first video networking terminal is used for being connected with the first network interface of the video networking server, and the video networking interface of the second video networking terminal is used for being connected with the second network interface of the video networking server.
Preferably, the protocol conversion module is used for converting between Ethernet data and video networking data.
Preferably, the ethernet interface of the first video terminal is connected with the first ethernet interface of the test device through a network cable, and the ethernet interface of the second video terminal is connected with the second ethernet interface of the test device through a network cable.
Preferably, the video networking interface of the first video networking terminal is connected with the first network interface of the video networking server through an optical module, and the video networking interface of the second video networking terminal is connected with the second network interface of the video networking server through an optical module.
The method and the system for testing throughput provided by the application, wherein the method comprises the steps that test equipment responds to a throughput test instruction and sends a first test data packet to a first video terminal through an Ethernet transmission channel; the first video terminal converts the received first test data packet into a second test data packet and sends the second test data packet to the second video terminal through a video networking transmission channel; the second video communication terminal converts the received second test data packet into a third test data packet and sends the third test data packet to the test equipment through the Ethernet transmission channel, so that the test equipment determines the throughput of the video communication transmission channel. And through constructing a data transmission loop between the test equipment and the video networking terminal and carrying out throughput test, the throughput of the video networking core server can be determined. Compared with the prior art that the PC is adopted to run the test software, the requirements of the client market are met, and the throughput test result is more accurate and standard.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for throughput testing provided by embodiments of the present application;
FIG. 2 is a schematic diagram of a throughput testing system according to an embodiment of the present application;
fig. 3 is a flowchart of a throughput output procedure according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, every other embodiment that a person skilled in the art would obtain without making any inventive effort is within the scope of protection of the present application.
First, application scenarios applicable to the present application will be described. The method and the device can be applied to throughput testing of the Ethernet data carried by the video networking.
Based on the above, the embodiment of the application provides a method and a system for throughput testing.
Referring to fig. 1 and fig. 2, fig. 1 is a flowchart of a throughput testing method according to an embodiment of the present application, and fig. 2 is a schematic structural diagram of a throughput testing system according to an embodiment of the present application. As shown in fig. 1 and fig. 2, the throughput testing system provided in the embodiments of the present application includes a view networking terminal and a view networking server, where the view networking terminal at least includes an ethernet interface, a protocol conversion module and a view networking interface that are sequentially connected, the ethernet interface of the first view networking terminal is used for being connected with a first network interface of a testing device, and the ethernet interface of the second view networking terminal is used for being connected with a second network interface of the testing device. The video networking interface of the first video networking terminal is used for being connected with the first network interface of the video networking server, and the video networking interface of the second video networking terminal is used for being connected with the second network interface of the video networking server.
The view port terminal may be a view router. The video router has at least an Ethernet interface Ge0/1 and a video network interface Ge0/8. The video router is also provided with a protocol conversion module used for converting Ethernet data and video networking data.
The test device is a portable, visual, intelligent detection device that can detect the physical layer, data link layer, network layer operating conditions defined by the OSI model. The method is used for performing performance test on the network equipment and checking parameters such as throughput, delay and bandwidth of the equipment. The test equipment has at least ethernet interfaces Ge1/1 and Ge1/2 for transmitting or receiving ethernet data.
The architecture of throughput test can be as shown in fig. 2, where a first video terminal and a second video terminal are deployed in a video networking environment respectively, and are connected with test equipment to form a data transmission loop. The Ethernet interface of the first video terminal is connected with the first Ethernet interface of the test equipment through a network cable, and the Ethernet interface of the second video terminal is connected with the second Ethernet interface of the test equipment through a network cable. The video networking interface of the first video networking terminal is connected with the first network interface of the video networking server through an optical module, and the video networking interface of the second video networking terminal is connected with the second network interface of the video networking server through an optical module.
Before testing, the first video terminal and the second video terminal are required to be respectively registered into the video network, and the video network number is opened and configured to access the network. And automatically establishing a visual networking VPN tunnel between the first visual networking terminal and the second visual networking terminal. And carrying out data transmission in the VPN tunnel through the VPN server.
Then, logging in the test equipment, connecting the Ethernet interfaces Ge1/1 and Ge1/2 corresponding to the test equipment, selecting the corresponding test templates, setting the corresponding parameters, and confirming the start of the test. Next, the testing step includes:
s101, the test equipment responds to a throughput test instruction and sends a first test data packet to the first video terminal through an Ethernet transmission channel.
The throughput test instruction is used for indicating parameters such as test rounds, single-round test time, test precision, data packet size, data packet quantity and the like.
S102, the first video terminal converts the received first test data packet into a second test data packet and sends the second test data packet to the second video terminal through a video networking transmission channel.
S103, the second video networking terminal converts the received second test data packet into a third test data packet and sends the third test data packet to the test equipment through the Ethernet transmission channel, so that the test equipment determines the throughput of the video networking transmission channel.
According to the throughput testing system provided by the embodiment of the application, the throughput of the visual network core server can be determined by constructing the testing equipment and the data transmission loop between the visual network terminals and performing throughput testing. Compared with the prior art that the PC is adopted to run the test software, the requirements of the client market are met, and the throughput test result is more accurate and standard.
In particular, the test run may be one or more times. In order to obtain more accurate test results, multiple rounds of testing are typically performed.
And in the single-round test time, the test equipment sends a first test data packet with a first preset number to the first video terminal based on the preset rate so as to acquire a third test data packet with a second preset number fed back by the second video terminal, and the preset rate in the next round of test is adjusted according to the deviation between the first preset number and the second preset number.
The test equipment can adjust the preset rate in the next round of test in the following way: and comparing the magnitudes of the first preset number and the second preset number in the single-round test time. When the first preset number is equal to the second preset number, the preset speed of the next round of testing is increased. And when the first preset number is larger than the second preset number, reducing the preset speed in the next round of test.
Taking the first round of testing as an example, parameters such as the preset rate, the single round of testing time, the size of the data packets, the number of the data packets and the like are preset by a technician before testing, and the testing equipment sends the data packets to the first video terminal through the Ge1/1 interface according to a certain time interval and an initial rate. The packet size may be 64 bytes, 128 bytes, 256 bytes, 512 bytes, 1024 bytes, 1446 bytes, 1518 bytes, etc.
The first video networking terminal receives a first test data packet in an Ethernet format through a Ge0/1 interface and converts the first test data packet into a second test data packet in a video networking format through a protocol conversion model. The first video terminal uploads the second test data packet to the video networking server through the Ge0/8 interface, and the video networking server forwards the second test data packet to the Ge0/8 interface of the second video terminal.
And the second video terminal converts the received second test data packet in the video networking format into a third test data packet in the Ethernet format, and sends the third test data packet back to the Ge1/2 interface of the test equipment through the Ge0/1 interface.
The test device can count the second preset number of the received test data packets in the first round of test time, compare the second preset number with the first preset number actually sent, and determine whether to drop the packets.
If the first preset number is equal to the second preset number, no packet is lost, and at this time, the preset rate in the next round of test can be increased. If the first preset number is greater than the second preset number, packet loss is indicated, and the preset rate of the next round of test is required to be reduced. Taking the initial rate (1000M) as 50% for example, the second round of testing requires an increase in rate, then adjust to 75%, the third round of testing requires a decrease in rate, then adjust to 62.5%, and so on.
As shown in fig. 3, the test device may then determine the throughput of the internet of view transmission channel by:
s201, determining a speed difference value between a first preset speed and a second preset speed corresponding to two adjacent rounds of testing.
S202, determining whether the rate difference value is smaller than the product between the test precision and the initial rate.
And S203, if yes, recording the current preset rate and taking the current preset rate as the throughput of the video networking transmission channel.
S204, if not, carrying out the next round of test, and returning to the step S201.
For example, the rate difference between the preset rates in the first test round and the second test round is calculated, and if the rate difference is smaller than 1000m×1%, the current preset rate can be recorded and used as the throughput of the video network transmission channel. If the test precision requirement is not met, the next round of test is carried out after the preset speed is adjusted until the test precision requirement is met, and the test can be stopped. Or after the number of tests is satisfied, the test may be stopped.
In a specific embodiment, the test may be stopped and the result output when a throughput is determined, thus saving time. The throughput here is determined based on the RFC2544 protocol, measured in terms of the maximum number of packets per second passed (PPS/FPS) or bits (bits/s, KBbit/s, mbit/s, gbit/s, etc.).
The test may also be stopped after the number of tests is met, where multiple throughput results may be determined, and the average rate may be calculated based on all recorded preset rates. And taking the average rate as the throughput of the video networking transmission channel. The accuracy of the results obtained in this way is higher.
In the foregoing embodiment, the provided testing method adopts unidirectional testing, that is, the test data packet is sequentially sent to the first view router, the view server, and the second view router and then returns to the testing device. In one embodiment of the present application, a bidirectional test manner may also be adopted, that is, the test device sends the test data packet to the first view router and the second view router at the same time. At the moment, the first visual connection router sends the received test data packet to the second visual connection router through the visual connection server, the second visual connection router sends the test data packet back to the test equipment, meanwhile, the second visual connection router also sends the test data packet sent by the test equipment to the first visual connection router through the visual connection server, and the first visual connection router feeds back the received test data packet to the test equipment.
In this case, the process and principle of the test device outputting the test result are similar to those of the foregoing embodiment, and will not be described again. The bidirectional test mode has higher performance requirement on the video networking, the obtained data is more convincing, and the test time is faster.
In one embodiment of the application, the view networking terminal may be a view networking router, so as to balance the memory resource allocation and reduce the resource occupation, whether the view networking transmission channel between the first view networking router and the second view networking router is successfully established or not may be determined, if yes, the protocol conversion module is invoked, otherwise, the corresponding thread is set to an ending or suspension state, so as to reduce the thread occupation.
It will be clear to 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, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication 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 achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several 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 the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of throughput testing, the method comprising:
the test equipment responds to the throughput test instruction and sends a first test data packet to the first video link terminal through the Ethernet transmission channel;
the first video terminal converts the received first test data packet into a second test data packet and sends the second test data packet to the second video terminal through a video networking transmission channel;
the second video communication terminal converts the received second test data packet into a third test data packet and sends the third test data packet to the test equipment through the Ethernet transmission channel, so that the test equipment determines the throughput of the video communication transmission channel.
2. The method of claim 1, wherein the throughput test instruction is configured to instruct a test round, a single round test time, a packet size, and a packet number,
and in the single-round test time, the test equipment sends a first test data packet with a first preset number to the first video terminal based on the preset rate so as to acquire a third test data packet with a second preset number fed back by the second video terminal, and the preset rate in the next round of test is adjusted according to the deviation between the first preset number and the second preset number.
3. The method of claim 2, wherein the test equipment adjusts the preset rate at the next round of testing by:
comparing the magnitudes of the first preset number and the second preset number in single-round test time;
when the first preset number is equal to the second preset number, increasing the preset speed in the next round of test;
and when the first preset number is larger than the second preset number, reducing the preset speed in the next round of test.
4. The method of claim 1, wherein the throughput test instructions are further for indicating a test accuracy, the test device determining throughput of the internet of view transmission channel by:
determining a rate difference value between a first preset rate and a second preset rate corresponding to two adjacent rounds of testing;
determining whether the rate difference is less than a product between a test accuracy and an initial rate;
if yes, recording the current preset rate and taking the current preset rate as the throughput of the video networking transmission channel.
5. The method of claim 4, wherein if not, a next round of testing is performed and the step of determining the rate difference is performed back.
6. The method as recited in claim 5, further comprising:
calculating an average rate based on all recorded preset rates;
and taking the average rate as the throughput of the video networking transmission channel.
7. A throughput test system is characterized in that the test system comprises a video terminal and a video server, the video terminal at least comprises an Ethernet interface, a protocol conversion module and a video network interface which are connected in sequence, wherein,
the Ethernet interface of the first video terminal is used for being connected with the first network interface of the test equipment, and the Ethernet interface of the second video terminal is used for being connected with the second network interface of the test equipment;
the video networking interface of the first video networking terminal is used for being connected with the first network interface of the video networking server, and the video networking interface of the second video networking terminal is used for being connected with the second network interface of the video networking server.
8. The system of claim 7, wherein the protocol conversion module is configured to convert between ethernet data and internet of view data.
9. The system of claim 7, wherein the ethernet interface of the first video camera terminal is connected to the first ethernet interface of the test device by a network cable, and wherein the ethernet interface of the second video camera terminal is connected to the second ethernet interface of the test device by a network cable.
10. The system of claim 7, wherein the view networking interface of the first view networking terminal is connected to the first network interface of the view networking server through an optical module, and wherein the view networking interface of the second view networking terminal is connected to the second network interface of the view networking server through an optical module.
CN202311841729.7A 2023-12-28 2023-12-28 Throughput testing method and system Pending CN117811977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311841729.7A CN117811977A (en) 2023-12-28 2023-12-28 Throughput testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311841729.7A CN117811977A (en) 2023-12-28 2023-12-28 Throughput testing method and system

Publications (1)

Publication Number Publication Date
CN117811977A true CN117811977A (en) 2024-04-02

Family

ID=90429307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311841729.7A Pending CN117811977A (en) 2023-12-28 2023-12-28 Throughput testing method and system

Country Status (1)

Country Link
CN (1) CN117811977A (en)

Similar Documents

Publication Publication Date Title
US6973125B2 (en) Apparatus for detecting data transmission rate and change thereof, and method therefor
CN111327471B (en) Network quality analysis method, device, computer equipment and storage medium
US9967186B2 (en) Selective deep packet inspection
US20090113069A1 (en) Apparatus and method for providing a congestion measurement in a network
EP0254047A2 (en) Packet length traffic control in a local area network
EP3082285B1 (en) Ethernet data rate selection based on cable parameters
US20100265833A1 (en) Network bandwidth determination
CN111385163A (en) Flow analysis and detection method and device
CN110601919A (en) Loopback detection method and system
CN114390578A (en) Network performance testing method and device, electronic equipment and medium
CN112134750B (en) Network time protocol pressure test method and device
CN117811977A (en) Throughput testing method and system
CN109120479B (en) Network throughput testing method based on network message format
JP6904600B2 (en) Data acquisition device, client-server system, data acquisition method, and program
CN115396529A (en) Multichannel communication method, device, terminal equipment and storage medium
CN109644409A (en) Control method, terminal device and the computer storage medium of terminal transmission data
JP2008236217A (en) Flexray network connecting method, flexray network and electronic control unit for flexray network
JP3146928B2 (en) Data transmission device and data transmission control device
CN113542215A (en) Method for improving streaming media transmission performance and related device
CN111901206A (en) Network card testing method, device and related equipment
CN116232442B (en) Communication method, device and storage medium based on TCP/IP protocol and CCSDS protocol
JP2015032985A (en) Communication control device, communication control method, and communication control system
US9304847B2 (en) Automatic prompt detection for universal device support
CN113923108A (en) Method, system, equipment and storage medium for automatically configuring time delay parameters
CN116192755B (en) Congestion processing method and system based on virtual switch establishment

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