Running flow test method and system based on combination of LabVIEW optical module and switch

Through the testing method of combining LabVIEW optical modules and switches, the problems of high testing costs, cumbersome operations and difficult to detect switch modules in the prior art are solved, and efficient multi-port state detection and fault location are achieved, which is suitable for a variety of environments.

CN119094015APending Publication Date: 2024-12-06LINKTEL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411193458.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing concurrent run-through testing methods for wireless devices have problems such as high cost, cumbersome operation, can only conduct single-item tests, and are difficult to couple to the solution environment, and it is difficult to realize specific customized testing and data collection of switch modules.

Method used

Using the running flow test method based on the combination of LabVIEW optical module and switch, connect multiple switches through the control system, verify the connection status, judge the port status, collect and analyze the running flow test data, judge the module status, and realize multiple states of the switch port. Test.

Benefits of technology

It realizes simultaneous measurement of the state of multiple optical modules of the switch, reducing the test cycle and cost, and is suitable for multiple environments, clearly displaying the module status of different ports, facilitating fault detection and saving manual screening costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094015A_ABST
    Figure CN119094015A_ABST
Patent Text Reader

Abstract

The invention discloses a running flow test method and system based on combination of a LabVIEW optical module and a switch. The method comprises the following steps: initializing a test system; after the system is initialized, the control system is connected with a plurality of switches, and the connection state is verified; when the switch connection state verification is passed, judging a port state; performing bar code reading on the port in the to-be-tested state, and binding port data; updating a test environment for the bound port; running flow test is carried out to acquire data; carrying out data analysis and verification on the real-time running flow data; and judging whether a test ending condition is met. The LabVIEW optical module is used for replacing a traditional running flow testing instrument to be connected with the switches to conduct switch running flow testing, the switches are connected through the control system at the same time, the optical module states and module data of different ports of the different switches can be clearly displayed, the positions of fault equipment and fault parts can be conveniently detected, and the manual screening cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of optical communication and optical modules, and in particular to a design method for a flow test system based on the combination of a LabVIEW optical module and a switch. Background Art

[0002] The existing concurrent flow test of wireless devices mainly uses a flow meter to send a data packet to the switch, and then checks whether the entire switch loses packets. There are two mainstream test methods in the existing technology:

[0003] (1) Use the open source network testing tools iperf and Netperf to test network throughput and latency. iperf and Netperf support multiple network testing modes and protocols and can perform in-depth network analysis.

[0004] (2) Provide comprehensive network testing solutions, including but not limited to throughput testing, stress testing, protocol consistency testing, etc., through commercial network testers such as Spirent TestCenter and IXIA Hawkeye, and other high-end professional testing equipment.

[0005] The above test method has several defects as follows:

[0006] 1. The test instrument can only use 1 to 2 radio frequencies to simulate multiple users for testing, which is different from the actual user usage scenario;

[0007] 2. The purchase and maintenance costs of the instrument are high; most operations need to be completed manually and the operation is cumbersome and time-consuming, resulting in high labor costs;

[0008] 3. Only single-item testing can be performed, which makes it difficult to couple into the solution environment.

[0009] Using the independent code sending software of the flow meter to observe whether there is packet loss in the switch still cannot directly reflect which module has problems, and it is difficult to implement specific customized tests and data collection functions, so the efficiency is low. Therefore, it is necessary to develop a test with an automated form, which controls the switch to send codes and communicate with each module, and checks the data of different switch ports to judge the function of the module on the switch. The present invention proposes to use an optical module to connect to the user switch to run a flow test on the switch. Under a certain data flow, when the optical module feeds back to the switch without packet loss and the related reported data is normal, it means that the optical module and the switch are adapted and qualified. Summary of the invention

[0010] The present invention proposes a flow-through testing method and system based on the combination of a LabVIEW optical module and a switch, which can at least solve one of the technical problems in the background technology.

[0011] To achieve the above object, the present invention adopts the following technical solutions:

[0012] A flow test method based on the combination of LabVIEW optical module and switch, characterized in that the specific steps are as follows:

[0013] S1, test system initialization;

[0014] S2. After the system is initialized, connect the control system to multiple switches and verify the connection status;

[0015] S3. When the switch connection status verification is passed, determine the port status;

[0016] S4, read the barcode of the port to be tested and bind the port data;

[0017] S5. Update the test environment for the bound port;

[0018] S6, perform flow test to collect data;

[0019] S7: Analyze and verify the real-time running flow data;

[0020] S8: Determine whether the test end condition is met.

[0021] Furthermore, the switch connection status verification method in S2 of the present invention is specifically as follows:

[0022] S21, the control system inputs the IP address and Telnet port number of the switch to try to connect to the network;

[0023] S22, the switch requires input of verification information according to the configured verification mode;

[0024] S23, the control system sends verification information to verify the connection status;

[0025] If the verification is successful, the port status is determined. If the verification is successful, the switch is reset and the test is restarted.

[0026] Furthermore, the specific method for determining the port status in S3 of the present invention is as follows:

[0027] S31, the control system traverses all ports of each switch and detects the status of each port

[0028] S32, if it is detected that the port is inserted into an optical module, the port is marked as a waiting state, and if it is not detected that the port is inserted into an optical module, the port is marked as an unstarted state;

[0029] S33, determining whether the number of ports in the unstarted state is greater than 3;

[0030] S34. If the number of ports in the unstarted state is greater than 3, connect additional optical modules to the ports until the number of ports in the unstarted state is 3. If the number of ports in the unstarted state is less than 3, remove excess optical modules until the number of ports in the unstarted state is 3.

[0031] Furthermore, the method for analyzing the real-time outage data in S7 of the present invention is specifically as follows:

[0032] S71, the control system collects real-time flow data;

[0033] S72, extracting the temperature, bias current, packet loss rate information, and DDM reporting information of each port optical module;

[0034] S73, detecting and classifying the optical modules of each port according to a preset standard;

[0035] S74. Enter and display the classification results and test information of the optical modules of each port.

[0036] Furthermore, the optical modules described in the present invention are classified as follows:

[0037] Default: The control system only collects the optical module model information, no other information;

[0038] Operation: The control system can receive optical module signals, temperature, and connection status information;

[0039] Qualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system parsing the real-time flow data all meet the standards;

[0040] Unqualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system through parsing the real-time flow data do not meet the standards.

[0041] On the other hand, a flow testing system based on the combination of LabVIEW optical module and switch is used to execute the flow testing method based on the combination of LabVIEW optical module and switch as described in any one of claims 1 to 5, including a control system, several switches, and several optical modules. The switch is responsible for sending codes to all ports and can control the communication with the LabVIEW optical module; the control system also includes a display unit, and is connected to multiple switches to control the communication between the switches and the optical modules and obtain the data of the corresponding port optical modules through the ports; the optical modules are grouped in two and connected by optical fiber cross-wiring.

[0042] It can be seen from the above technical solution that the present invention is a flow test method and system based on the combination of LabVIEW optical module and switch. The present invention uses LabVIEW optical module to replace the traditional flow test instrument to connect the switch to perform the flow test of the switch. The control system analyzes the flow data of the switch to determine the status of each module, and obtains the flow test result in combination with the module status analysis. Compared with the traditional flow test method, it has the following advantages:

[0043] (1) The switch can measure the status of multiple optical modules at the same time, greatly reducing the test cycle;

[0044] (2) The control system can simultaneously connect several switches, reducing measurement costs and being applicable to a variety of environments;

[0045] (3) The control system can clearly display the status and module data of optical modules at different ports of different switches, making it easier to detect the location of faulty devices and faulty components, thus saving manual screening costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 Test flow chart of the present invention;

[0047] Figure 2 It is a schematic diagram of the test results of the present invention;

[0048] Figure 3 This is a structural diagram of the test system of the present invention. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0050] like Figure 1 As shown, the flow test method based on the combination of LabVIEW optical module and switch described in this embodiment has the following specific steps:

[0051] S1. Test system initialization:

[0052] Set the number of test cycles and specific operating parameters of a single cycle according to the test requirements; control the system to load configuration requirements, which specifically include the switch IP address, port information, and test parameters.

[0053] S2. After the system is initialized, connect the control system to multiple switches and verify the connection status:

[0054] The control system establishes a connection with each switch through the 232-network port, and after the connection is established, it sends a code to verify the switch connection status;

[0055] The switch connection status verification method is as follows:

[0056] S21, the control system inputs the IP address and Telnet port number of the switch to try to connect to the network;

[0057] S22, the switch requires input of verification information according to the configured verification mode;

[0058] S23, the control system sends verification information to verify the connection status;

[0059] If the verification is successful, the port status is determined. If the verification is successful, the switch is reset and the test is restarted.

[0060] S3. When the switch connection status verification is passed, determine the port status;

[0061] The specific method of determining the port status is as follows:

[0062] S31, the control system traverses all ports of each switch and detects the status of each port

[0063] S32, if it is detected that the port is inserted into an optical module, the port is marked as a waiting state, and if it is not detected that the port is inserted into an optical module, the port is marked as an unstarted state;

[0064] S33, determining whether the number of ports in the unstarted state is greater than 3;

[0065] S34, if the number of ports in the unstarted state is greater than 3, connect additional optical modules to the ports until the number of ports in the unstarted state is 3; if the number of ports in the unstarted state is less than 3, remove the redundant optical modules until the number of ports in the unstarted state is 3;

[0066] Ensure that the number of ports in the inactive state of each switch is 3 in preparation for the traffic flow test.

[0067] S4. Read the barcode of the port to be tested and bind the port data:

[0068] For the ports marked as to-be-tested, the internal barcode is read through the switch or directly through the LabVIEW optical module, and the read barcode is bound to the corresponding port number to form a test data record;

[0069] The specific binding process is to connect to the designated port switch, read the switch port number, read the module barcode under this port number, realize the association between the switch and the port number, the port number and the barcode, and then obtain the work order number associated with this barcode on the MES to realize the association between the barcode and the work order, and then read the specific data under the module of this port number, analyze and parse according to the fixed format read out, according to the specified format, extract the required information, and then pair the adjacent port number data of this port number in sequence according to the port number. When there is an unqualified barcode data, this pair of barcodes is marked as unqualified.

[0070] S5. Update the test environment for the bound port:

[0071] Clear the historical data of the bound ports. Before the formal test, clear the statistical data of the previous flow test in the switch to ensure the accuracy of the test results.

[0072] S6. Perform flow test to collect data:

[0073] According to the instructions of the configuration file, a flow test command is sent to the switch to keep the switch in the code sending state; and the switch is controlled by the command to read the status of each port to determine whether there is a module, and then send a command to obtain module data to each port module. The control system continuously monitors and collects the real-time flow data returned by the switch;

[0074] S7: Analyze and verify the real-time running data:

[0075] The real-time flow data analysis method is as follows:

[0076] S71, the control system collects real-time flow data;

[0077] S72, extracting the temperature, bias current, packet loss rate information, DDM reporting information, transmission reporting, barcode, model, and voltage of each port optical module;

[0078] S73, detecting and classifying the optical modules of each port according to a preset standard;

[0079] S74, entering and displaying the classification results and test information of the optical modules of each port;

[0080] The optical modules are classified as follows:

[0081] Default: The control system only collects the optical module model information, no other information;

[0082] Operation: The control system can receive optical module signals, temperature, and connection status information;

[0083] Qualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system parsing the real-time flow data all meet the standards;

[0084] Unqualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system parsing the real-time flow data all fail to meet the standards;

[0085] S8: Determine whether the test end condition is met:

[0086] According to the number of cycles set and the number of cycles currently completed, it is determined whether the predetermined test end condition is reached; if the set number of cycles has been reached, the software stops the test process, summarizes and outputs all test results; if the set number of cycles has not been reached, it returns to S3 or S6 (depending on the specific loop logic) and starts a new test cycle. The switch test results are analyzed by the present invention. Figure 2 shown.

[0087] In summary, the present invention uses LabVIEW optical module to replace the traditional flow test instrument to connect the switch to perform the flow test of the switch, analyzes the flow data of the switch through the control system to determine the status of each module, and obtains the flow test result in combination with the module status analysis. Compared with the traditional flow test method, it has the following advantages:

[0088] (1) The switch can measure the status of multiple optical modules at the same time, greatly reducing the test cycle;

[0089] (2) The control system can simultaneously connect several switches, reducing measurement costs and being applicable to a variety of environments;

[0090] (3) The control system can clearly display the status and module data of optical modules at different ports of different switches, making it easier to detect the location of faulty devices and faulty components, thus saving manual screening costs.

[0091] On the other hand, Figure 3 As shown, the present invention also discloses a flow test system based on the combination of LabVIEW optical module and switch, including a control system, a plurality of switches, and a plurality of optical modules. The switch is responsible for sending codes to all ports and can control the communication with the LabVIEW optical module; the control system also includes a display unit, and is connected to a plurality of switches to control the communication between the switches and the optical modules, and obtain the data of the optical modules of the corresponding ports through the ports; the optical modules are grouped in two and are connected by an optical fiber cross-wiring method.

[0092] In another embodiment provided in the present application, a computer program product including instructions is also provided. When the computer is run on a computer, the computer executes any of the flow testing methods based on the combination of LabVIEW optical module and switch in the above embodiments.

[0093] It is understandable that the system, device and storage medium provided in the embodiments of the present invention correspond to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above methods.

[0094] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0095] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0096] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0097] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A flow test method based on the combination of LabVIEW optical module and switch, characterized in that: The specific steps are as follows: S1, test system initialization; S2. After the system is initialized, connect the control system to multiple switches and verify the connection status; S3. When the switch connection status verification is passed, determine the port status; S4, read the barcode of the port to be tested and bind the port data; S5. Update the test environment for the bound port; S6, perform flow test to collect data; S7: Analyze and verify the real-time running flow data; S8: Determine whether the test end condition is met.

2. The flow test method based on the combination of LabVIEW optical module and switch according to claim 1 is characterized in that: The switch connection status verification method in S2 is specifically as follows: S21, the control system inputs the IP address and Telnet port number of the switch to try to connect to the network; S22, the switch requires input of verification information according to the configured verification mode; S23, the control system sends verification information to verify the connection status; If the verification is successful, the port status is determined. If the verification is successful, the switch is reset and the test is restarted.

3. The flow test method based on the combination of LabVIEW optical module and switch according to claim 1 is characterized in that: The specific method for judging the port status in S3 is as follows: S31, the control system traverses all ports of each switch and detects the status of each port S32, if it is detected that the port is inserted into an optical module, the port is marked as a waiting state, and if it is not detected that the port is inserted into an optical module, the port is marked as an unstarted state; S33, determining whether the number of ports in the unstarted state is greater than 3; S34. If the number of ports in the unstarted state is greater than 3, connect additional optical modules to the ports until the number of ports in the unstarted state is 3. If the number of ports in the unstarted state is less than 3, remove excess optical modules until the number of ports in the unstarted state is 3.

4. The flow test method based on the combination of LabVIEW optical module and switch according to claim 3 is characterized in that: The specific method for analyzing the real-time flow data in S7 is as follows: S71, the control system collects real-time flow data; S72, extracting the temperature, bias current, packet loss rate information, and DDM reporting information of each port optical module; S73, detecting and classifying the optical modules of each port according to a preset standard; S74. Enter and display the classification results and test information of the optical modules of each port.

5. The flow test method based on the combination of LabVIEW optical module and switch according to claim 4 is characterized in that: The optical modules are classified as follows: Default: The control system only collects the optical module model information, no other information; Operation: The control system can receive optical module signals, temperature, and connection status information; Qualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system parsing the real-time flow data all meet the standards; Unqualified: The module bias flow, packet loss rate, and DDM reporting information obtained by the control system through parsing the real-time flow data do not meet the standards.

6. A flow test system based on the combination of LabVIEW optical module and switch, used to execute the flow test method based on the combination of LabVIEW optical module and switch as described in any one of claims 1 to 5, characterized in that: The system includes a control system, several switches, and several optical modules. The switches are responsible for sending codes to all ports and controlling the communication with the LabVIEW optical module. The control system also includes a display unit, which is connected to multiple switches, controls the switches to communicate with the optical modules, and obtains data of the optical modules of the corresponding ports through the ports. The optical modules are grouped in two and are connected by optical fiber cross-wiring.