Rapid flow configuration method and system

Through the rapid traffic configuration system and method, the problem of cumbersome traffic configuration on the network equipment production line is solved, and multiple test equipment is quickly and automatically configured, which improves efficiency and supports custom parameter modification.

CN119449592APending Publication Date: 2025-02-14NO 50 RES INST OF CHINA ELECTRONICS TECH GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411460800.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

On the network equipment production line, due to the large number of test equipment models and the unfixed number of network ports, new traffic configurations are required after each line change, which is cumbersome and time-consuming.

Method used

Provides a system and method for fast traffic configuration, including input modules, calculation modules and output modules. By obtaining the basic value and the number of devices being tested, the number of stream ports is calculated and the flow configuration of each device being tested is automatically generated, supporting one-click copying function.

Benefits of technology

It realizes rapid and automatic configuration of multiple test equipment, reduces engineer configuration time, improves efficiency, and supports custom modification of IP, Mac, Vlan, Udp and rate parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449592A_ABST
    Figure CN119449592A_ABST
Patent Text Reader

Abstract

The invention provides a rapid flow configuration system and method, and the system comprises an input module which is used for obtaining a basic value and the number of tested devices; wherein the basic value comprises an IP basic address, an Mac basic address and a UPD starting port; the calculation module is used for determining the number of flow ports according to the number of the tested devices; according to the obtained basic value, the flow configuration of each tested device is automatically generated based on the flow port number and the flow template; and the output module is used for outputting the flow configuration of each tested device. According to the invention, the configuration of one DUT can be copied to other DUTs, and a plurality of variable flow configuration item contents can be automatically filled into a message in a unified manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of testing instruments, and in particular to a method and system for rapid flow configuration. Background Art

[0002] There are many types of devices under test (DUT) on the network equipment production line, the number of network ports is not fixed, and the test environment changes frequently. Engineers need to make new traffic configurations after each line change to meet the test needs. In the actual production process, in order to increase the production capacity and flow, a one-to-sixteen configuration is generally required. Engineers need to configure multiple DUTs, multiple ports, and multiple flows, which is very cumbersome and time-consuming. The present invention provides a fast configuration method that can improve the efficiency of flow configuration. Summary of the invention

[0003] In view of the defects in the prior art, an object of the present invention is to provide a system and method for rapid flow configuration.

[0004] A rapid flow configuration system provided according to the present invention includes:

[0005] An input module is used to obtain basic values ​​and the number of devices under test; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port;

[0006] A calculation module is used to determine the number of flow ports according to the number of devices under test; and automatically generate flow configurations for each device under test based on the number of flow ports and flow templates according to the acquired basic values;

[0007] The output module is used to output the flow configuration of each device under test.

[0008] Preferably, the flow template includes: convergence test, pairwise exchange and loopback test.

[0009] Preferably, the calculation module includes: a port configuration submodule and a flow configuration submodule;

[0010] The port configuration submodule includes:

[0011] Dut n The IP of the Xth port = IP base address + Dut port subscript X + the total number of Dut ports * (n-1);

[0012] Dut n Xth Port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1);

[0013] Dut n Xth port rate = Dut 1 Xth port rate;

[0014] The flow configuration submodule includes:

[0015] Dut n Source IP of Stream X = Dut n Source Port IP of Stream X;

[0016] Dut n Destination IP of Stream X = Dut n Destination Port IP of Stream X;

[0017] Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X;

[0018] Dut n destination Mac of the Xth stream = Dut n destination Port Mac of the Xth stream;

[0019] Dut n Vlan of the Xth stream = Vlan start port + n-1;

[0020] Dut n Udp source port of the Xth stream = source Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0021] Dut n Udp destination port of the Xth stream = destination Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0022] Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream.

[0023] Preferably, the calculation module includes:

[0024] Based on the Xth port or Xth data stream of the nth tested device Dut, the flow configuration of other ports or other data streams of the nth tested device Dut is obtained by copying, increasing, and decreasing.

[0025] Based on the port configuration and flow configuration of the nth device under test Dut, the port configuration and flow configuration of other devices under test Dut are obtained by copying, increasing, and decreasing.

[0026] Preferably, when the first device under test Dut modifies the flow configuration, the modified flow configuration of the first device under test Dut is obtained; based on the modified flow configuration of the first device under test Dut, the flow configurations of other devices under test Dut are obtained by copying;

[0027] The port replication includes:

[0028] Dut n's Xth port's IP = Dut 1's 1st port's IP + Dut's total number of ports * (n-1);

[0029] Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1);

[0030] Dut n Xth port rate = Dut 1 Xth port rate;

[0031] The stream replication includes:

[0032] Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream;

[0033] Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream;

[0034] Dut n Source Mac of Stream X = Mac of source port of Stream X;

[0035] Dut n Destination Mac of Stream X = Mac of destination port of Stream X;

[0036] Dut n Vlan of the Xth stream = Vlan base address + n – 1;

[0037] Dut n Xth Stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1);

[0038] Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1);

[0039] Dut n Xth StreamRate = Rate of Xth Stream source port / total number of streams downstream of Xth Stream source port.

[0040] A method for rapid flow configuration provided by the present invention includes:

[0041] Step S1: Obtaining basic values ​​and the number of devices under test based on an input module; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port;

[0042] Step S2: determining the number of flow ports according to the number of devices under test based on the calculation module; and automatically generating the flow configuration of each device under test based on the acquired basic value, the number of flow ports and the flow template;

[0043] Step S3: Outputting the flow configuration of each device under test based on the output module.

[0044] Preferably, the flow template includes: convergence test, pairwise exchange and loopback test.

[0045] Preferably, the step S2 comprises: a port configuration submodule and a flow configuration submodule;

[0046] The port configuration submodule includes:

[0047] Dut n The IP of the Xth port = IP base address + Dut port subscript X + the total number of Dut ports * (n-1);

[0048] Dut n Xth Port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1);

[0049] Dut n Xth port rate = Dut 1 Xth port rate;

[0050] The flow configuration submodule includes:

[0051] Dut n Source IP of Stream X = Dut n Source Port IP of Stream X;

[0052] Dut n Destination IP of Stream X = Dut n Destination Port IP of Stream X;

[0053] Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X;

[0054] Dut n destination Mac of the Xth stream = Dut n destination Port Mac of the Xth stream;

[0055] Dut n Vlan of the Xth stream = Vlan start port + n-1;

[0056] Dut n Udp source port of the Xth stream = source Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0057] Dut n Udp destination port of the Xth stream = destination Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0058] Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream.

[0059] Preferably, the step S2 comprises:

[0060] Based on the Xth port or Xth data stream of the nth tested device Dut, the flow configuration of other ports or other data streams of the nth tested device Dut is obtained by copying, increasing, and decreasing.

[0061] Based on the port configuration and flow configuration of the nth device under test Dut, the port configuration and flow configuration of other devices under test Dut are obtained by copying, increasing, and decreasing.

[0062] Preferably, when the first device under test Dut modifies the flow configuration, the modified flow configuration of the first device under test Dut is obtained; based on the modified flow configuration of the first device under test Dut, the flow configurations of other devices under test Dut are obtained by copying;

[0063] The port replication includes:

[0064] Dut n's Xth port's IP = Dut 1's 1st port's IP + Dut's total number of ports * (n-1);

[0065] Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1);

[0066] Dut n Xth port rate = Dut 1 Xth port rate;

[0067] The stream replication includes:

[0068] Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream;

[0069] Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream;

[0070] Dut n Source Mac of Stream X = Mac of source port of Stream X;

[0071] Dut n Destination Mac of Stream X = Mac of destination port of Stream X;

[0072] Dut n Vlan of the Xth stream = Vlan base address + n – 1;

[0073] Dut n Xth Stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1);

[0074] Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1);

[0075] Dut n Xth StreamRate = Rate of Xth Stream source port / total number of streams downstream of Xth Stream source port.

[0076] Compared with the prior art, the present invention has the following beneficial effects:

[0077] 1. A fast configuration method and system provided by the present invention supports a one-key "copy" function and can quickly and automatically configure multiple DUTs;

[0078] 2. Configure ports and flow templates with one click, reducing engineers’ configuration time and improving efficiency;

[0079] 3. Ip, Mac, Vlan, Udp, rate, etc. are very convenient to customize and modify;

[0080] 4. When making changes, you only need to modify one DUT, and the other DUTs can be configured quickly and easily.

[0081] 5. The present invention can copy the configuration of one DUT to other DUTs, and automatically fill the contents of multiple changing traffic configuration items into the message in a unified manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0083] Figure 1 Quickly configure a system diagram for traffic flow. DETAILED DESCRIPTION

[0084] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0085] Example 1

[0086] According to a flow rapid configuration system provided by the present invention, Figure 1 As shown, including:

[0087] An input module is used to obtain basic values ​​and the number of devices under test; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port;

[0088] A calculation module is used to determine the number of flow ports according to the number of devices under test; and automatically generate flow configurations for each device under test based on the number of flow ports and flow templates according to the acquired basic values;

[0089] The output module is used to output the flow configuration of each device under test.

[0090] Specifically, the flow template includes: convergence test, pairwise exchange and loopback test.

[0091] Specifically, the calculation module includes: a port configuration submodule and a flow configuration submodule;

[0092] The port configuration submodule includes:

[0093] Dut n The IP of the Xth port = IP base address + Dut port subscript X + the total number of Dut ports * (n-1);

[0094] Dut n Xth Port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1);

[0095] Dut n Xth port rate = Dut 1 Xth port rate;

[0096] The flow configuration submodule includes:

[0097] Dut n Source IP of Stream X = Dut n Source Port IP of Stream X;

[0098] Dut n Destination IP of Stream X = Dut n Destination Port IP of Stream X;

[0099] Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X;

[0100] Dut n destination Mac of the Xth stream = Dut n destination Port Mac of the Xth stream;

[0101] Dut n Vlan of the Xth stream = Vlan start port + n-1;

[0102] Dut n Udp source port of the Xth stream = source Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0103] Dut n Udp destination port of the Xth stream = destination Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1);

[0104] Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream.

[0105] Specifically, the calculation module includes:

[0106] Based on the Xth port or Xth data stream of the nth tested device Dut, the flow configuration of other ports or other data streams of the nth tested device Dut is obtained by copying, increasing, and decreasing.

[0107] Based on the port configuration and flow configuration of the nth device under test Dut, the port configuration and flow configuration of other devices under test Dut are obtained by copying, increasing, and decreasing.

[0108] Specifically, when the first device under test Dut modifies the flow configuration, the modified flow configuration of the first device under test Dut is obtained; based on the modified flow configuration of the first device under test Dut, the flow configurations of other devices under test Dut are obtained by copying;

[0109] The port replication includes:

[0110] Dut n's Xth port's IP = Dut 1's 1st port's IP + Dut's total number of ports * (n-1);

[0111] Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1);

[0112] Dut n Xth port rate = Dut 1 Xth port rate;

[0113] The stream replication includes:

[0114] Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream;

[0115] Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream;

[0116] Dut n Source Mac of Stream X = Mac of source port of Stream X;

[0117] Dut n Destination Mac of Stream X = Mac of destination port of Stream X;

[0118] Dut n Vlan of the Xth stream = Vlan base address + n – 1;

[0119] Dut n Xth Stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1);

[0120] Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1);

[0121] Dut n Xth StreamRate = Rate of Xth Stream source port / total number of streams downstream of Xth Stream source port.

[0122] The present invention also provides a rapid flow configuration system, which can be implemented by executing the process steps of the rapid flow configuration method, that is, those skilled in the art can understand the rapid flow configuration method as a preferred implementation of the rapid flow configuration system.

[0123] Example 2

[0124] Embodiment 2 is a preferred embodiment of Embodiment 1

[0125] A rapid flow configuration system provided according to the present invention includes: an input module, a calculation module and an output module.

[0126] An input module is used to obtain basic values ​​and the number of devices under test; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port;

[0127] A calculation module is used to determine the number of flow ports according to the number of devices under test; and automatically generate flow configurations for each device under test based on the number of flow ports and flow templates according to the acquired basic values;

[0128] The output module is used to output the flow configuration of each device under test.

[0129] 1. In this embodiment,

[0130] Provide the default IP base address 192.168.199.1, Mac base address 00-22-A2-01-00-01. Start port Vlan101, Udp Src Port 1024, Udp Dst Port 2024, etc. These base addresses and start ports are configurable.

[0131] Assume that the aggregation test is used as the flow template, that is, the traffic sent from Port1 is equally divided to other ports, and the traffic sent from other ports is aggregated to Port1.

[0132] DUT 1

[0133] Port Configuration

[0134] Serial number port Physical Port Ip Mac bandwidth 1 Port1 Port 1 / 1 / 1 192.168.199.2 00-22-A2-01-00-02 100% 2 Port2 Port 1 / 1 / 2 192.168.199.3 00-22-A2-01-00-03 50% 3 Port3 Port 1 / 1 / 3 192.168.199.4 00-22-A2-01-00-04 50%

[0135] Stream Configuration

[0136]

[0137]

[0138] DUT 2

[0139] Port Configuration

[0140] Serial number port Physical Port Ip Mac bandwidth 1 Port1 Port 1 / 1 / 4 192.168.199.5 00-22-A2-01-00-05 100% 2 Port2 Port 1 / 1 / 5 192.168.199.6 00-22-A2-01-00-06 50% 3 Port3 Port 1 / 1 / 6 192.168.199.7 00-22-A2-01-00-07 50%

[0141] Stream Configuration

[0142]

[0143] As shown in the table above, based on the base address and starting port, when the number of flow ports and flow template are confirmed, the flow configuration of each dut can be automatically generated. The generation rules are as follows:

[0144] Dut n Port_X_Ip=Ip_Base+Port_X_Index+Port_Count*(n-1)

[0145] Dut n Port_X_Mac=Mac_Base+Port_X_Index+Port_Count*(n-1)

[0146] Dut n Port_X_Rate=Dut 1Port_X_Rate

[0147] Dut n Stream_X_Src_Ip=X_Src_Port_Ip

[0148] Dut n Stream_X_Dst_Ip=X_Dst_Port_Ip

[0149] Dut n Stream_X_Src_Mac=X_Src_Port_Mac

[0150] Dut n Stream_X_Dst_Mac=X_Dst_Port_Mac

[0151] Dut n Stream_X_Vlan=Vlan_Base+n-1

[0152] Dut n Stream_X_Udp_Src_Port=X_Udp_Src_Base+Stream_X_Index–1+Src_Port_Count*(n-1)

[0153] Dut n Stream_X_Udp_Dst_Port=X_Udp_Dst_Base+Stream_X_Index–1+Src_Port_Count*(n-1)

[0154] Dut n Stream_X_Rate = Dut 1 Stream_X_Rate

[0155] The corresponding order is as follows

[0156] Dut n The IP of the Xth port = IP base address + Dut port subscript X + Dut port total number * (n-1)

[0157] Dut n Xth port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1)

[0158] Dut n Xth port rate = Dut 1 Xth port rate

[0159] Dut n Source IP of Stream X = Dut n Source Port IP of Stream X

[0160] Dut n Destination IP of Stream X = Dut n Destination Port IP of Stream X

[0161] Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X

[0162] Dut n Destination Mac of Stream X = Dut n Destination Port Mac of Stream X

[0163] Dut n Vlan of the Xth stream = Vlan start port + n-1

[0164] Dut n Udp source port of the Xth stream = source Udp starting port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1)

[0165] Dut n The Udp destination port of the Xth stream = the destination Udp starting port + the subscript of the Xth stream – 1 + the total number of Dut ports * (n-1)

[0166] Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream

[0167] In this embodiment, whether to decrement by one depends on whether the base address, the starting port, etc. are used in the configuration.

[0168] like:

[0169] Dut 2Port_1_Ip=192.168.199.1+1+3*(2-1)=192.168.199.5

[0170] Dut 2Port_2_Ip=192.168.199.1+2+3*(2-1)=192.168.199.6

[0171] Dut 2Port_3_Ip=192.168.199.1+3+3*(2-1)=192.168.199.7

[0172] Dut 2Port_1_Mac=00-22-A2-01-00-01+1+3*(2-1)=00-22-A2-01-00-05

[0173] Dut 2Port_2_Mac=00-22-A2-01-00-01+2+3*(2-1)=00-22-A2-01-00-06

[0174] Dut 2Port_3_Mac=00-22-A2-01-00-01+3+3*(2-1)=00-22-A2-01-00-07

[0175] Dut 2Stream_1_Vlan=101+2-1=102

[0176] Dut 2Stream_2_Vlan=101+2-1=102

[0177] Dut 2Stream_1_Udp_Src_Port=1024+1-1+3*(2-1)=1027

[0178] Dut 2Stream_1_Udp_Dst_Port=2024+1-1+3*(2-1)=2027

[0179] Dut 2Stream_2_Udp_Src_Port=1024+2-1+3*(2-1)=1028

[0180] Dut 2Stream_2_Udp_Dst_Port=2024+2-1+3*(2-1)=2028

[0181] The corresponding order is as follows

[0182] Dut 2's first port's IP = IP base address 192.168.199.1 + Dut port index 1 + Dut port total 3 * (second Dut-1) = 192.168.199.5

[0183] Dut 2's second port's IP = IP base address 192.168.199.1 + Dut port subscript 2 + Dut port total 3 * (second Dut-1) = 192.168.199.6

[0184] Dut 2's third port's IP = IP base address 192.168.199.1 + Dut port subscript 3 + Dut port always 3 * (second Dut-1) = 192.168.199.7

[0185] Dut 2 1st Port's Mac = Mac base address 00-22-A2-01-00-01 + Dut port index 1 + Dut port total 3*(2nd Dut-1) = 00-22-A2-01-00-05

[0186] Dut 2 The second port's Mac = Mac base address 00-22-A2-01-00-01 + Dut port index 2 + Dut port total 3 * (second Dut-1) = 00-22-A2-01-00-06

[0187] Dut 2 third port's Mac = Mac base address 00-22-A2-01-00-01 + Dut port index 3 + Dut port total 3 * (second Dut-1) = 00-22-A2-01-00-07

[0188] Dut 2: VLAN of the first stream = VLAN starting port 101 + VLAN of the second stream - 1 = 102

[0189] Dut 2 The VLAN of the second stream = VLAN starting port 101 + the second Dut-1 = 102

[0190] Dut 2 The source Udp of the first stream = Udp source starting port 1024 + the first stream - 1 + the total number of Dut ports 3 * (2-1) = 1027

[0191] Dut 2 Destination Udp of the first stream = Udp destination starting port 2024 + 1st stream - 1 + Dut total number of ports 3 * (2-1) = 2027

[0192] Dut 2 Udp source port of the second stream = Udp source starting port 1024 + second stream-1 + total number of Dut ports 3*(2-1)=1028

[0193] Dut 2 Udp destination port of the second stream = Udp destination starting port 2024 + second stream - 1 + total number of Dut ports 3 * (2-1) = 2028

[0194] In this embodiment, the functions of copying, increasing, decreasing, etc. between ports and flows are provided; the functions of copying, increasing, decreasing, etc. are also applied to all DUTs.

[0195] For example, if the Udp_Src_Port of DUT 1Port 1 is configured as 1024, you can use the copy function to configure the Udp_Src_Port of DUT 1Port 2 as 1024 and the Udp_Src_Port of DUT 1Port 3 as 1024. You can use the increment function to configure the Udp_Src_Port of DUT 1Port 2 as 1025 and the Udp_Src_Port of DUT 1Port 3 as 1026.

[0196] When the customer modifies the configuration of DUT1, it can be copied to other DUTs with one click. The copying rules are as follows:

[0197] Port replication rules:

[0198] Dut n Port_X_Ip=Dut 1Port_1_Ip+Port_Count*(n-1)

[0199] Dut n Port_X_Mac=Dut 1Port_1_Mac+Port_Count*(n-1)

[0200] Dut n Port_X_Rate=Dut 1Port_X_Rate

[0201] The corresponding order is as follows

[0202] Dut n The IP of the Xth port = Dut 1 The IP of the 1st port + Dut Total number of ports * (n-1)

[0203] Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1)

[0204] Dut n Rate of the Xth port = Dut 1 Rate of the Xth port

[0205] Rules for streaming replication:

[0206] Dut n Stream_X_Src_Ip=X_Src_Port_Ip

[0207] Dut n Stream_X_Dst_Ip=X_Dst_Port_Ip

[0208] Dut n Stream_X_Src_Mac=X_Src_Port_Mac

[0209] Dut n Stream_X_Dst_Mac=X_Dst_Port_Mac

[0210] Dut n Stream_X_Vlan=X_Vlan_Base+n–1

[0211] Dut n Stream_X_Udp_Src_Port=X_Udp_Src_Base+Stream_X_Index–1+Src_Port_Count*(n-1)

[0212] Dut n Stream_X_Udp_Dst_Port=X_Udp_Dst_Base+Stream_X_Index–1+Src_Port_Count*(n-1)

[0213] Dut n Stream_X_Rate=X_Src_Port_Rate / X_Src_Port_Stream_Count

[0214] The corresponding order is as follows

[0215] Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream

[0216] Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream

[0217] Dut n Source Mac of Stream X = Mac of Source Port of Stream X

[0218] Dut n Destination Mac of the Xth stream = Mac of the destination port of the Xth stream

[0219] Dut n Vlan of the Xth stream = Vlan base address + n – 1

[0220] Dutn Xth stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1)

[0221] Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1)

[0222] Dut n Xth StreamRate = Rate of Xth Stream source port / Total number of streams under Xth Stream source port

[0223] like:

[0224] Dut 2Port_1_Ip=192.168.199.2+3*(2-1)=192.168.199.5

[0225] Dut 2Port_2_Ip=192.168.199.3+3*(2-1)=192.168.199.6

[0226] Dut 2Port_3_Ip=192.168.199.4+3*(2-1)=192.168.199.7

[0227] Dut 3Port_1_Ip=192.168.199.2+3*(3-1)=192.168.199.8

[0228] Dut 3Port_2_Ip=192.168.199.3+3*(3-1)=192.168.199.9

[0229] Dut 3Port_3_Ip=192.168.199.4+3*(3-1)=192.168.199.10

[0230] Dut 2Port_1_Mac=00-22-A2-01-00-02+3*(2-1)=00-22-A2-01-00-05

[0231] Dut 2Port_2_Mac=00-22-A2-01-00-03+3*(2-1)=00-22-A2-01-00-06

[0232] Dut 2Port_3_Mac=00-22-A2-01-00-04+3*(2-1)=00-22-A2-01-00-07

[0233] Dut 2Port_1_Rate=100

[0234] Dut 2Port_2_Rate=50

[0235] Dut 2Port_3_Rate=50

[0236] Dut 2Stream_1_Vlan=101+2 -1=102

[0237] Dut 2Stream_2_Vlan=101+2 -1=102

[0238] Dut 2Stream_3_Vlan=101+2 -1=102

[0239] Dut 2Stream_1_Udp_Src_Port=1024+1-1+3*(2-1)=1027

[0240] Dut 2Stream_1_Udp_Dst_Port=2024+1-1+3*(2-1)=2027

[0241] Dut 2Stream_2_Udp_Src_Port=1024+2-1+3*(2-1)=1028

[0242] Dut 2Stream_2_Udp_Dst_Port=2024+2-1+3*(2-1)=2028

[0243] The corresponding order is as follows

[0244] Dut 2 port 1 IP = Dut1 port 1 IP 192.168.199.2 + Dut port number 3 * (the second Dut-1) = 192.168.199.5

[0245] Dut 2 port 2 IP = Dut1 port 2 IP 192.168.199.3 + Dut port number 3 * (the second Dut-1) = 192.168.199.6

[0246] Dut 2 port 3 IP = Dut 1 port 3 IP 192.168.199.4 + Dut port number 3 * (the second Dut-1) = 192.168.199.7

[0247] Dut 3 port 1 IP = Dut1 port 1 IP 192.168.199.2 + 3 * (the third Dut-1) = 192.168.199.8

[0248] Dut 3 port 2 IP = Dut1 port 2 IP 192.168.199.3 + 3 * (the third Dut-1) = 192.168.199.9

[0249] Dut 3 port 3 IP = Dut1 port 3 IP 192.168.199.4 + 3 * (the third Dut-1) = 192.168.199.10

[0250] Dut 2 port 1 Mac = Dut 1 port 1 Mac 00-22-A2-01-00-02 + Dut port number 3 * (the second Dut-1) = 00-22-A2-01-00-05

[0251] Dut 2 port 2 Mac = Dut1 port 2 Mac 00-22-A2-01-00-03 + Dut port number 3 * (the second Dut-1) = 00-22-A2-01-00-06

[0252] Dut 2 port 3 Mac = Dut 1 port 3 Mac 00-22-A2-01-00-04 + Dut port number 3 * (the second Dut-1) = 00-22-A2-01-00-07

[0253] Dut 2 port 1 Rate = 100

[0254] Dut 2 port 2 Rate = 50

[0255] Dut 2 port 3 Rate=50

[0256] Dut 2: VLAN of the first stream = VLAN base address 101 + VLAN of the second stream - 1 = 102

[0257] Dut 2 The VLAN of the second stream = VLAN base address 101 + the second Dut-1 = 102

[0258] Dut 2 The VLAN of the third stream = VLAN base address 101 + the second Dut-1 = 102

[0259] Dut 2 1st Stream source Udp = Udp source starting port 1024 + 1st stream - 1 + Dut port number 3 * (2nd Dut - 1) = 1027

[0260] Dut 2 1st Stream Destination Udp = Udp Destination Starting Port 2024 + 1st Stream - 1 + Dut Port Number 3 * (2nd Dut - 1) = 2027

[0261] Dut 2 The second stream source Udp = Udp source starting port 1024 + the second stream - 1 + Dut port number 3 * (the second Dut - 1) = 1028

[0262] Dut 2 The second stream destination Udp = Udp destination start port 2024 + the second stream - 1 + Dut port number 3 * (the second Dut - 1) = 2028

[0263] The above configuration is an example. In the actual replication process, different replication schemes will be used according to the actual flow template used.

[0264] For example, when VLAN or UDP is not enabled, there is no need to copy these two parameters.

[0265] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0266] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A rapid flow configuration system, characterized in that: include: An input module is used to obtain basic values ​​and the number of devices under test; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port; A calculation module is used to determine the number of flow ports according to the number of devices under test; and automatically generate flow configurations for each device under test based on the number of flow ports and flow templates according to the acquired basic values; The output module is used to output the flow configuration of each device under test.

2. The rapid flow configuration system according to claim 1, characterized in that: The flow template includes: convergence test, pairwise exchange and loopback test.

3. The rapid flow configuration system according to claim 1, characterized in that: The calculation module includes: a port configuration submodule and a flow configuration submodule; The port configuration submodule includes: Dut n The IP of the Xth port = IP base address + Dut port subscript X + the total number of Dut ports * (n-1); Dut n Xth Port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1); Dut n Xth port rate = Dut 1 Xth port rate; The flow configuration submodule includes: Dut n Source IP of Stream X = Dut n Source Port IP of Stream X; Dut n Destination IP of Stream No. X = Dut n Destination Port IP of Stream No. X; Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X; Dut n destination Mac of the Xth stream = Dut n destination Port Mac of the Xth stream; Dut n Vlan of the Xth stream = Vlan start port + n-1; Dut n Udp source port of the Xth stream = source Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1); Dut n Udp destination port of the Xth stream = destination Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1); Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream.

4. The rapid flow configuration system according to claim 3, characterized in that: The calculation module comprises: Based on the Xth port or Xth data stream of the nth tested device Dut, the flow configuration of other ports or other data streams of the nth tested device Dut is obtained by copying, increasing, and decreasing. Based on the port configuration and flow configuration of the nth device under test Dut, the port configuration and flow configuration of other devices under test Dut are obtained by copying, increasing, and decreasing.

5. The rapid flow configuration system according to claim 1, characterized in that: When the first device under test Dut modifies its flow configuration, the modified flow configuration of the first device under test Dut is obtained; based on the modified flow configuration of the first device under test Dut, the flow configurations of other devices under test Dut are obtained by copying; The port replication includes: Dut n's Xth port's IP = Dut 1's 1st port's IP + Dut's total number of ports * (n-1); Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1); Dut n Xth port rate = Dut 1 Xth port rate; The stream replication includes: Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream; Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream; Dut n Source Mac of Stream X = Mac of source port of Stream X; Dut n Destination Mac of Stream X = Mac of destination port of Stream X; Dut n Vlan of the Xth stream = Vlan base address + n – 1; Dut n Xth Stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1); Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1); Dut n Xth StreamRate = Rate of Xth Stream source port / total number of streams downstream of Xth Stream source port.

6. A method for rapid flow configuration, characterized in that: include: Step S1: Obtaining basic values ​​and the number of devices under test based on an input module; wherein the basic values ​​include: IP basic address, Mac basic address and UPD starting port; Step S2: determining the number of flow ports according to the number of devices under test based on the calculation module; and automatically generating the flow configuration of each device under test based on the acquired basic value, the number of flow ports and the flow template; Step S3: Outputting the flow configuration of each device under test based on the output module.

7. The method for rapid flow configuration according to claim 6, characterized in that: The flow template includes: convergence test, pairwise exchange and loopback test.

8. The method for rapid flow matching according to claim 6, characterized in that: The step S2 includes: a port configuration submodule and a flow configuration submodule; The port configuration submodule includes: Dut n The IP of the Xth port = IP base address + Dut port subscript X + the total number of Dut ports * (n-1); Dut n Xth Port's Mac = Mac base address + Dut port subscript X + Dut port total number * (n-1); Dut n Xth port rate = Dut 1 Xth port rate; The flow configuration submodule includes: Dut n Source IP of Stream X = Dut n Source Port IP of Stream X; Dut n Destination IP of Stream No. X = Dut n Destination Port IP of Stream No. X; Dut n Source Mac of Stream X = Dut n Source Port Mac of Stream X; Dut n destination Mac of the Xth stream = Dut n destination Port Mac of the Xth stream; Dut n Vlan of the Xth stream = Vlan start port + n-1; Dut n Udp source port of the Xth stream = source Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1); Dut n Udp destination port of the Xth stream = destination Udp start port + subscript of the Xth stream – 1 + total number of Dut ports * (n-1); Dut n Rate of the Xth stream = Dut 1 Rate of the Xth stream.

9. The method for rapid flow configuration according to claim 8, characterized in that: The step S2 comprises: Based on the Xth port or Xth data stream of the nth tested device Dut, the flow configuration of other ports or other data streams of the nth tested device Dut is obtained by copying, increasing, and decreasing. Based on the port configuration and flow configuration of the nth device under test Dut, the port configuration and flow configuration of other devices under test Dut are obtained by copying, increasing, and decreasing.

10. The method for rapid flow configuration according to claim 6, characterized in that: When the first device under test Dut modifies its flow configuration, the modified flow configuration of the first device under test Dut is obtained; based on the modified flow configuration of the first device under test Dut, the flow configurations of other devices under test Dut are obtained by copying; The port replication includes: Dut n's Xth port's IP = Dut 1's 1st port's IP + Dut's total number of ports * (n-1); Dut n Xth port's Mac = Dut 1 1st port's Mac + Dut total number of ports * (n-1); Dut n Xth port rate = Dut 1 Xth port rate; The stream replication includes: Dut nThe source IP of the Xth stream = the IP of the source port of the Xth stream; Dut n The destination IP of the Xth stream = the IP of the destination port of the Xth stream; Dut n Source Mac of Stream X = Mac of source port of Stream X; Dut n Destination Mac of Stream X = Mac of destination port of Stream X; Dut n Vlan of the Xth stream = Vlan base address + n – 1; Dut n Xth Stream source Udp = Udp source start port + Xth stream subscript – 1 + Dut total number of ports * (n-1); Dut n Xth Stream Destination Udp = Udp Destination Starting Port + Xth Stream Subscript – 1 + Dut Total Ports * (n-1); Dut n Xth StreamRate = Rate of Xth Stream source port / total number of streams downstream of Xth Stream source port.