Channel detection method, device and equipment for data link

By acquiring the transmission bandwidth ratio and frame length on the data link, determining the packet gap length and sending test packets, the problem of difficulty in detecting the channel performance of low-speed data links in the prior art is solved, and a kilobit-level performance detection in a high-bandwidth environment is realized.

CN119628766AActive Publication Date: 2025-03-14OPWILL TECH BEIJING +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510147384.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-03-14
Estimated Expiration
2045-02-11

AI Technical Summary

Technical Problem

The prior art is difficult to accurately detect channel performance of low-speed data links, especially in kilobit-level channel performance detection over 100 and gigabit transmission bandwidths.

Method used

By obtaining the ratio of the transmission bandwidth of the measured data link to the target bandwidth, the packet gap length of the test data frame is determined based on the frame length, and a test packet is sent on the data link to obtain the performance test results.

Benefits of technology

It realizes kilobit level channel performance detection on 100 and gigabit transmission bandwidths, and can accurately test performance indicators such as bandwidth, delay, packet loss rate and bit error rate of low-speed data links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119628766A_ABST
    Figure CN119628766A_ABST
Patent Text Reader

Abstract

The invention provides a channel detection method, device and equipment for a data link, and the method comprises the steps: obtaining the ratio of the transmission bandwidth of a detected data link to a target bandwidth, and enabling the transmission bandwidth to be larger than the target bandwidth; acquiring the frame length of a test data frame transmitted by the tested data link; determining the packet gap length of the test data frame according to the ratio and the frame length; according to the packet gap length, sending a test message of n times of tests on the tested data link to obtain a test result; wherein the test message comprises a plurality of test data frames, and n is a positive integer; and determining a performance test result of the tested data link according to the plurality of test results. According to the invention, kilobit-level channel performance detection can be realized in a hundred and kilomega data communication channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a channel detection method, device and equipment for a data link. Background Art

[0002] At present, the Ethernet data interface rates are already above 100M and 1000Mbps. When general network test instruments are used to detect the performance of low-speed data link channels, the minimum bandwidth granularity that can be set is 1% of the Ethernet interface. For a 100M Ethernet interface, the bandwidth is 1Mbps. This bandwidth detection granularity cannot meet the performance detection of low-speed data links at the kbps level.

[0003] In order to detect the channel performance of such a low-speed data link, the Ping tool is usually used to simply detect the connectivity and delay of the channel, but this method cannot accurately test the channel performance such as bandwidth, transmission delay, packet loss rate and bit error rate of the transmission link. Since the principle of the Ping tool is to use the system's CPU (central processing unit) to assemble and test packets, the accuracy of the delay tested will fluctuate due to the influence of the operating system and CPU system tasks, and there is a certain degree of uncertainty. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a data link channel detection method, device and equipment to solve the problem that the detection equipment in the prior art cannot test the performance of low-speed and small-bandwidth channels.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] A channel detection method for a data link, comprising:

[0007] Obtaining a ratio of a transmission bandwidth of the data link under test to a target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth;

[0008] Obtaining the frame length of the test data frame transmitted by the data link under test;

[0009] Determining the packet gap length of the test data frame according to the ratio and the frame length;

[0010] According to the packet gap length, a test message of n tests is sent on the data link under test to obtain a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer;

[0011] A performance test result of the tested data link is determined based on the multiple test results.

[0012] Optionally, a ratio of a transmission bandwidth of a data link under test to a target bandwidth is obtained, including:

[0013] The ratio of the transmission bandwidth of the data link under test to the target bandwidth is obtained according to k=LS / HS, wherein LS is the target bandwidth, HS is the transmission bandwidth, and k is the ratio.

[0014] Optionally, determining the packet gap length of the test data frame according to the proportional relationship and the frame length includes:

[0015] According to (len+m) / (len+gap)=k and gap=((1-k)len) / k+m / k, the packet gap length of the test data frame is obtained;

[0016] Where len is the frame length, gap is the packet gap length, and m is the sum of the lengths of the frame gap, preamble, and start delimiter.

[0017] Optionally, sending test messages for n tests on the data link under test to obtain a test result includes:

[0018] On the data link under test, according to the sending rate R n Send N Tn test messages, each test message including a plurality of test data frames, wherein the test data frames carry a private tag test frame and a timestamp;

[0019] Get the test message received by the receiving port;

[0020] A test result is obtained according to the test messages received and the test messages sent in n tests, and the test result includes throughput, packet loss rate and / or delay.

[0021] Optionally, determining the packet loss rate according to the number of received test packets and the number of sent test packets includes:

[0022] according to , determine the packet loss rate;

[0023] Among them, N Rn N is the number of test packets arriving at the tester's receiving port. Tn The number of test packets sent.

[0024] Optionally, adjust the sending rate, including:

[0025] according to as well as , reduce the sending rate;

[0026] Among them, R n is the sending rate this time, is the next sending rate, are the left and right boundaries of the sending rate; when n=1, = , is the maximum transfer rate.

[0027] Optionally, adjust the sending rate, including:

[0028] according to as well as , increase the sending rate.

[0029] Optionally, a performance test result of the data link under test is determined based on multiple test results, including:

[0030] The average value of M test results is A=(T1+T2+…+T M ) / M, determined as the performance test result of the data link under test; where A is the performance test result, T1, T2, T M They are the first test result, the second test result, and the Mth test result respectively, where M is a positive integer.

[0031] The present invention also provides a data link channel detection device, comprising:

[0032] An acquisition module is used to acquire a ratio of a transmission bandwidth of a data link under test to a target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth; and to acquire a frame length of a test data frame transmitted by the data link under test;

[0033] A processing module is used to determine the packet gap length of the test data frame according to the ratio and the frame length; send a test message for n tests on the data link under test according to the packet gap length to obtain a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer; and determine a performance test result of the data link under test according to the plurality of test results.

[0034] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0035] The above solution of the present invention includes at least the following beneficial effects:

[0036] The above scheme of the present invention obtains the ratio of the transmission bandwidth of the data link under test to the target bandwidth, determines the packet gap length of the test data frame according to the ratio and the frame length; sends a test message for n tests on the data link under test according to the packet gap length, and obtains a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer; and determines the performance test result of the data link under test according to the plurality of test results. In this way, channel performance detection at the kilobit (i.e., target bandwidth) level can be realized in a data communication channel at a transmission bandwidth of 100 or 1000 megabits. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of a channel detection method for a data link of the present invention;

[0038] Figure 2 It is a schematic diagram of the composition of a data frame of the channel detection method of a data link of the present invention;

[0039] Figure 3 is a performance test flow chart of a channel detection method for a data link of the present invention;

[0040] Figure 4 It is a connection diagram of a test scheme of a channel detection method for a data link of the present invention;

[0041] Figure 5 It is a module schematic diagram of a channel detection device for a data link of the present invention. DETAILED DESCRIPTION

[0042] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0043] like Figure 1 As shown, an embodiment of the present invention provides a channel detection method for a data link, comprising:

[0044] Step 11, obtaining a ratio of a transmission bandwidth of the data link under test to a target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth;

[0045] Step 12, obtaining the frame length of the test data frame transmitted by the data link under test;

[0046] Step 13, determining the packet gap length of the test data frame according to the ratio and the frame length;

[0047] Step 14, sending a test message for n tests on the data link under test according to the packet gap length, and obtaining a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer;

[0048] Step 15: Determine the performance test result of the data link under test based on the multiple test results.

[0049] In this embodiment, the transmission bandwidth of the data link under test can be 100Mbps or 1000Mbps, and the target bandwidth is a granular bandwidth of 10kbps. Here, the transmission bandwidth of the data link under test is at the level of hundreds of megabits or gigabits, and the target bandwidth is at the level of kilobits, and the transmission bandwidth is much larger than the target bandwidth; the scheme of this embodiment obtains the ratio of the transmission bandwidth of the data link under test to the target bandwidth, and determines the packet gap length of the test data frame according to the ratio and the frame length; according to the packet gap length, a test message of n tests is sent on the data link under test to obtain a test result; wherein, the test message includes multiple test data frames, and n is a positive integer; according to multiple test results, the performance test result of the data link under test is determined. In this way, channel performance detection at the level of kilobits (i.e., target bandwidth) can be achieved in data communication channels with hundreds or gigabits of transmission bandwidth.

[0050] In an optional embodiment of the present invention, in step 11, obtaining the ratio of the transmission bandwidth of the data link under test to the target bandwidth includes:

[0051] Step 111, obtaining the ratio of the transmission bandwidth of the data link under test to the target bandwidth according to k=LS / HS; wherein LS is the target bandwidth, HS is the transmission bandwidth, and k is the ratio.

[0052] Here, the target bandwidth is a preset value, which can be determined according to the actual test accuracy, for example, it can be the above-mentioned 10 kbps, or it can be 20 kbps, etc.

[0053] In an optional embodiment of the present invention, in step 13, determining the packet gap length of the test data frame according to the proportional relationship and the frame length includes:

[0054] Step 131, according to (len+m) / (len+gap)=k and gap=((1-k)len) / k+m / k, obtain the packet gap length of the test data frame;

[0055] Where len is the frame length, gap is the packet gap length, and m is the sum of the lengths of the frame gap, preamble, and start delimiter.

[0056] Specifically, the frame length len is the sum of the source / destination MAC address byte length, the type / length byte length, and the length of the frame check sequence. The transmission mode of the test data frame in the data link is as follows: Figure 2 As shown, the data frame includes an Ethernet frame pkt and a packet gap gap.

[0057] Take a Gigabit interface as an example: the full rate is 1000Mbps. To achieve a granular bandwidth of 10kbps, the following formula must be met: 10kbps / 1000Mbps = (len+20) / (len+gap); gap=99999*len+2000000

[0058] That is, if the frame length len is 64 bytes, then the packet gap is 8,399,936 bytes;

[0059] If the frame length len is 128 bytes, then the packet gap is 14,799,872 bytes;

[0060] In this way, the corresponding packet gap (gap) can be accurately calculated in real time based on each Ethernet frame of a specific frame length (len) sent, so that the line rate of the data link is always precisely controlled at a small particle bandwidth of 10kbps.

[0061] The relationship between the packet gap and the small particle bandwidth satisfies: (L+8+12) bytes / frame×8bit / byte×N frames / s=100Mbit / s;

[0062] L is the Ethernet frame length; N is the number of data frames sent by the device per second;

[0063] The 8 in the brackets is the 7 preambles + 1 start delimiter in front of each Ethernet frame;

[0064] The 12 in the brackets is the required interframe gap for each Ethernet frame.

[0065] In this embodiment, a corresponding packet gap is calculated and designed according to the frame length of each Ethernet frame sent, so as to implement channel performance detection at the kilobit level in a data communication channel at 100 or 1000 Mbps.

[0066] In an optional embodiment of the present invention, in step 14, the test flow of the performance test of the data link of the present invention is as follows: Figure 3 As shown, n test messages are sent on the tested data link to obtain a test result, including:

[0067] Step 141: on the data link under test, send data at a rate R n Send N Tntest messages, each test message including a plurality of test data frames, wherein the test data frames carry a private tag test frame and a timestamp;

[0068] Step 142, obtaining the test message received by the receiving port;

[0069] Step 143: Obtain a test result according to the test messages received and the test messages sent in the n tests, wherein the test result includes throughput, packet loss rate and / or delay.

[0070] Wherein, in step 143, the throughput in the test result is obtained according to the test messages received and the test messages sent in the n tests, including:

[0071] Step 1431, determine the accuracy based on the data content of the received test message and the data content of the sent test message; here, accuracy refers to the ratio of correctly received message data to total message data, and this ratio is used as an indicator of accuracy. Assuming that 950 out of 1000 test message data are correctly received, the accuracy can be preliminarily calculated as 950 / 1000=95%;

[0072] Step 1432, adjusting the sending rate according to whether the test data frame carries a private tag test frame, the accuracy, and a preset accuracy threshold, and performing the test again until the test number n is reached, and outputting the test rate of the last test as the throughput of the data link;

[0073] Wherein, in step 143, according to the test messages received and the test messages sent in the n tests, the packet loss rate in the test result is obtained, including:

[0074] Step 1433, determining a packet loss rate according to the number of received test messages and the number of sent test messages;

[0075] Step 1434: adjust the sending rate according to the packet loss rate and the preset packet loss threshold, and test again until the test number n is reached.

[0076] Step 1435: output the average value of the packet loss rates of each test as the packet loss rate of the data link.

[0077] Wherein, in step 143, the delay in the test result is obtained according to the test messages received and the test messages sent in the n tests, including:

[0078] Step 1436, determining the difference between the receiving time and the sending timestamp as the delay;

[0079] Step 1437 outputs the average value of the delays of each test as the average delay of the data link. A test result includes the throughput of the data link, the packet loss rate of the data link and / or the average delay of the data link of the above n tests.

[0080] Specifically, the performance test of the data link includes throughput, packet loss rate, and average delay test. In step 141, the test environment is first initialized, and a test data frame is constructed with an initial transmission rate R n Send N Tn A test message is sent, each test message includes a plurality of test data frames, and the test data frame has a private tag test frame and a timestamp.

[0081] In this embodiment, the test environment is initialized: each time a test is performed, the register values ​​in the FPGA need to be restored to the state before the test, and each component needs to be in the initial working state. If not restored, the results of subsequent tests will be affected or the test will fail.

[0082] In the process of channel communication, various packets such as TCP, UDP, etc. often appear. By constructing private label test frames, other types of data frames will not affect the test results. The construction of private label test frames and the private label test frames can be realized through the sending logic module in the FPGA (field programmable gate array). Specifically, the private label test frames are constructed by encapsulating data, setting flag fields, introducing bit errors, load generation, delay and packet loss simulation, QoS testing, and using traffic generators.

[0083] In step 1432, the sending rate is adjusted according to whether the test data frame carries a private tag test frame, the accuracy and the preset accuracy threshold. The priority of judging whether the test data frame carries a private tag test frame is higher than the accuracy and the preset accuracy threshold. If the test data frame does not carry a private tag test frame, the sending rate is directly reduced. If the test data frame carries a private tag test frame, it is determined whether the accuracy meets the preset accuracy threshold. If it does, the sending rate is increased; if it does not, the sending rate is reduced. The test is performed again until the number of tests is reached, and the test rate of the last test is output as the throughput of the data link.

[0084] In step 1434, the sending rate is adjusted according to the packet loss rate and the preset packet loss threshold. If the packet rate meets the preset packet loss threshold, the sending rate is increased; if not, the sending rate is reduced. The test is performed again until the test number is reached, and the average values ​​of the packet loss rate and delay of each test are output as the packet loss rate and average delay of the data link.

[0085] In an optional embodiment of the present invention, in step 145, determining the packet loss rate according to the number of received test messages and the number of sent test messages includes:

[0086] according to , determine the packet loss rate;

[0087] Among them, N Rn N is the number of test packets arriving at the tester's receiving port. Tn The number of test packets sent.

[0088] In an optional embodiment of the present invention, in steps 144 and 147, adjusting the sending rate includes:

[0089] according to as well as , reduce the sending rate;

[0090] according to as well as , improve the sending rate;

[0091] Among them, R n is the sending rate this time, is the next sending rate, are the left and right boundaries of the sending rate; when n=1, = , is the maximum transfer rate.

[0092] In an optional embodiment of the present invention, in step 15, determining the performance test result of the tested data link according to the plurality of test results includes:

[0093] The average value of M test results is A=(T1+T2+…+T M ) / M, determined as the performance test result of the data link under test; where A is the performance test result, T1, T2, T M They are the first test result, the second test result, and the Mth test result respectively, where M is a positive integer.

[0094] Specifically, T1, T2, ..., T M It can be the test results of throughput, packet loss rate, and average delay of each test of the data link, and the average value is taken as the performance test result of the tested data link, which improves the accuracy and reliability of the test results.

[0095] In specific work, the present invention is based on Figure 4 The test scheme shown is connected, and the test steps are:

[0096] Step 1: Test equipment A and test equipment B are as follows Figure 4Internet connection;

[0097] Step 2: Select RFC2544 for detection device A and the corresponding loopback function for detection device B, and configure network parameters;

[0098] Step 3: Detect device A's configuration of throughput, frame loss, and delay parameters, such as packet length, sending rate, and test duration parameters;

[0099] Step 4: Test device B runs the test first, and then test device A runs the test. After a period of time, the RFC2544 test ends and the RFC2544 test results are checked.

[0100] The detection equipment can support 10kbps bandwidth granular channel throughput, frame loss and delay test functions, solving the problem that previous detection equipment cannot test low-speed and small-bandwidth channel performance.

[0101] The above embodiment of the present invention obtains the ratio of the transmission bandwidth of the data link under test to the target bandwidth, determines the packet gap length of the test data frame according to the ratio and the frame length; sends a test message for n tests on the data link under test according to the packet gap length, and obtains a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer; and determines the performance test result of the data link under test according to the plurality of test results. In this way, channel performance detection at the kilobit (i.e., target bandwidth) level can be realized in a data communication channel at a transmission bandwidth of 100 or 1000 megabits.

[0102] like Figure 5 As shown, a data link channel detection device 50 in an embodiment of the present invention includes:

[0103] The acquisition module 51 is used to acquire the ratio of the transmission bandwidth of the data link under test to the target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth; and acquire the frame length of the test data frame transmitted by the data link under test;

[0104] The processing module 52 is used to determine the packet gap length of the test data frame according to the ratio and the frame length; send n test messages on the data link under test according to the packet gap length to obtain a test result; wherein the test message includes multiple test data frames, and n is a positive integer; and determine the performance test result of the data link under test according to the multiple test results.

[0105] Optionally, a ratio of a transmission bandwidth of a data link under test to a target bandwidth is obtained, including:

[0106] The ratio of the transmission bandwidth of the data link under test to the target bandwidth is obtained according to k=LS / HS, wherein LS is the target bandwidth, HS is the transmission bandwidth, and k is the ratio.

[0107] Optionally, determining the packet gap length of the test data frame according to the proportional relationship and the frame length includes:

[0108] According to (len+m) / (len+gap)=k and gap=((1-k)len) / k+m / k, the packet gap length of the test data frame is obtained;

[0109] Where len is the frame length, gap is the packet gap length, and m is the sum of the lengths of the frame gap, preamble, and start delimiter.

[0110] Optionally, sending test messages for n tests on the data link under test to obtain a test result includes:

[0111] On the data link under test, according to the sending rate R n Send N Tn test messages, each test message including a plurality of test data frames, wherein the test data frames carry a private tag test frame and a timestamp;

[0112] Get the test message received by the receiving port;

[0113] A test result is obtained according to the test messages received and the test messages sent in n tests, and the test result includes throughput, packet loss rate and / or delay.

[0114] Optionally, determining the packet loss rate according to the number of received test packets and the number of sent test packets includes:

[0115] according to , determine the packet loss rate;

[0116] Among them, N Rn N is the number of test packets arriving at the tester's receiving port. Tn The number of test packets sent.

[0117] Optionally, adjust the sending rate, including:

[0118] according to as well as , reduce the sending rate;

[0119] Among them, R n is the sending rate this time, is the next sending rate, are the left and right boundaries of the sending rate; when n=1, = , is the maximum transfer rate.

[0120] Optionally, adjust the sending rate, including:

[0121] according to as well as , improve the sending rate.

[0122] Optionally, a performance test result of the data link under test is determined based on multiple test results, including:

[0123] The average value of M test results is A=(T1+T2+…+T M ) / M, determined as the performance test result of the data link under test; where A is the performance test result, T1, T2, T M They are the first test result, the second test result, and the Mth test result respectively, where M is a positive integer.

[0124] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0125] In an embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the above embodiment. All implementations in the above method embodiment are applicable to this embodiment, and can also achieve the same technical effect.

[0126] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0128] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0130] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0131] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0132] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0133] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0134] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data link channel detection method, characterized in that: include: Obtaining a ratio of a transmission bandwidth of the data link under test to a target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth; Obtaining the frame length of the test data frame transmitted by the data link under test; Determining the packet gap length of the test data frame according to the ratio and the frame length; According to the packet gap length, a test message of n tests is sent on the data link under test to obtain a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer; A performance test result of the tested data link is determined based on the multiple test results.

2. The data link channel detection method according to claim 1, characterized in that: Obtain the ratio of the transmission bandwidth of the data link under test to the target bandwidth, including: The ratio of the transmission bandwidth of the data link under test to the target bandwidth is obtained according to k=LS / HS, wherein LS is the target bandwidth, HS is the transmission bandwidth, and k is the ratio.

3. The data link channel detection method according to claim 2, characterized in that: Determining the packet gap length of the test data frame according to the proportional relationship and the frame length includes: According to (len+m) / (len+gap)=k and gap=((1-k)len) / k+m / k, the packet gap length of the test data frame is obtained; Where len is the frame length, gap is the packet gap length, and m is the sum of the lengths of the frame gap, preamble, and start delimiter.

4. The data link channel detection method according to claim 1, characterized in that: Sending n test messages on the data link under test to obtain a test result includes: On the data link under test, according to the sending rate R n Send N Tn test messages, each test message including a plurality of test data frames, wherein the test data frames carry a private tag test frame and a timestamp; Get the test message received by the receiving port; A test result is obtained according to the test messages received and the test messages sent in n tests, and the test result includes throughput, packet loss rate and / or delay.

5. The data link channel detection method according to claim 4, characterized in that: Determine the packet loss rate based on the number of test packets received and the number of test packets sent, including: according to , determine the packet loss rate; Among them, N Rn N is the number of test packets arriving at the tester's receiving port. Tn The number of test packets sent.

6. The data link channel detection method according to claim 4, characterized in that: Adjust the sending rate, including: according to as well as , reduce the sending rate; Among them, R n is the sending rate this time, is the next sending rate, are the left and right boundaries of the sending rate; when n=1, = , is the maximum transfer rate.

7. The data link channel detection method according to claim 6, characterized in that: Adjust the sending rate, including: according to as well as , increase the sending rate.

8. The data link channel detection method according to claim 1, characterized in that: Determine the performance test results of the data link under test based on multiple test results, including: The average value of M test results is A=(T1+T2+…+T M ) / M, determined as the performance test result of the data link under test; where A is the performance test result, T1, T2, T M They are the first test result, the second test result, and the Mth test result respectively, where M is a positive integer.

9. A data link channel detection device, characterized in that: include: An acquisition module, used to acquire a ratio of a transmission bandwidth of a data link under test to a target bandwidth, wherein the transmission bandwidth is greater than the target bandwidth; Obtaining the frame length of the test data frame transmitted by the data link under test; A processing module is used to determine the packet gap length of the test data frame according to the ratio and the frame length; send a test message for n tests on the data link under test according to the packet gap length to obtain a test result; wherein the test message includes a plurality of the test data frames, and n is a positive integer; and determine a performance test result of the data link under test according to the plurality of test results.

10. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, device and system for detecting performance of service channel

    CN109067625A

  • Message delay test method and device, storage device and program product

    CN110380927A

  • Bandwidth detection method based on real-time video stream transmission

    CN113163233A

  • Data transmission method and device, nonvolatile storage medium and computer equipment

    CN115632751A

  • Method and apparatus for generating test packets in a data network

    EP1443703A1