Automatic testing method for switching of multiple networking modes of FTTR
Through automated testing methods, the stability problem of FTTR products in the switching of various networking methods has been solved, and quantitative analysis and verification of networking methods are realized, and the user experience is improved.
Patent Information
- Application Number
- CN202411598752.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-01-24
Smart Images

Figure CN119363221A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical communication technology, and in particular to an automated testing method for switching between multiple FTTR networking modes. Background Art
[0002] FTTR networking methods include fiber optic networking, wired networking, and wireless networking, as well as one-to-one and one-to-many master-slave gateway configurations. Products have many networking and distribution methods, so the switching stability requirements for these networking methods of FTTR products are relatively high.
[0003] FTTR products in actual networks still have certain issues with flexible usage scenarios and networking stability, which will bring a poor user experience. Therefore, it is even more important to strengthen the robustness and reliability of FTTR products. The existing manual testing method is very labor-intensive and labor-intensive, and cannot be quantitatively analyzed. In addition, there is no flexible selection and control method for switching between multiple FTTR networking modes. Therefore, we propose an automated testing method for switching between multiple FTTR networking modes. Summary of the Invention
[0004] Purpose of the invention: To provide an automated testing method for switching between multiple FTTR networking modes, which can meet the networking needs of different usage scenarios of existing network users, ensure the stability of the network, and improve the user's Internet experience.
[0005] In order to achieve the above object, the present invention adopts the following technical solution: an automated testing method for switching between multiple FTTR networking modes, comprising the following steps:
[0006] Step 1: Ensure the reproducibility of the networking test and record the environment and configuration variables when the problem occurs;
[0007] Verify one of the networking modes of FTTR products, including optical fiber networking, wired networking and wireless networking;
[0008] Step 2: Based on the test requirements and objectives, determine the environment required for this automated test, including hardware equipment and software configuration, and build the test topology required for this automated test;
[0009] Step 3: Select appropriate automated testing tools based on test requirements and objectives;
[0010] Step 4: Adapt and meet the test requirements and test objectives, configure the automated test script, and select the specific test configuration of the networking mode, connection mode, and test time to be verified;
[0011] Step 5: After completing the automated configuration, ensure that the test environment has been set up and all necessary devices and components are in the correct state. Start executing the automated script to ensure that the script can be executed normally.
[0012] Step 6. After the automated program script is executed, the test results are analyzed based on the generated automated test report, including the final test results, the execution time and results of each step, the connection form of the FTTR master and slave gateways in each process, and the business status of the FTTR master and slave gateways in each process to check whether there are any robustness or stability issues with the product network. The report can also be viewed and downloaded online.
[0013] Furthermore, in step 1, the new connection method or verification method of the test target FTTR product is:
[0014] This includes one-to-one or one-to-many master-slave connection methods, or one or both verifications of network robustness and stability.
[0015] Furthermore, in step 2, the hardware and software configurations are as follows:
[0016] Hardware equipment includes FTTR master-slave gateways, power relays, switches, optical splitters, variable optical attenuators, terminal equipment, optical fiber cables, network cables, and power cables;
[0017] Software configuration includes the operating system of the hardware device, the callable programming interface API program and network configuration.
[0018] Furthermore, the specific connection of the environmental topology of FTTR network automation test is as follows:
[0019] The FTTR master gateway and FTTR slave gateway of the hardware device are connected to the power relay through a power cord. A switch is connected between the FTTR master gateway and the FTTR slave gateway through a network cable. The FTTR master gateway is connected to the optical splitter and the adjustable optical attenuator to the FTTR master gateway through an optical fiber line, and the FTTR slave gateway is connected to the terminal device wirelessly / network cable.
[0020] Furthermore, in step three, the selection and application of automated testing tools require the following specific requirements:
[0021] The choice of testing tools includes Python or Robot Framework;
[0022] The selection requirements of the test tool include the ease of use, flexibility and scalability of the test tool, as well as whether it can include controllable methods for the test environment hardware equipment.
[0023] Furthermore, in step five, the specific steps of executing the automation script are:
[0024] Automation scripts can automatically configure networking methods, including controlling the optical parameter adjustment of variable optical attenuators, turning switch ports on and off, and powering on and off test products.
[0025] Furthermore, in step six: the automated program can control the on and off of the power relay in the topology, the optical attenuation of the adjustable optical attenuator, the on and off of the switch port, and the service inspection of the FTTR master and slave gateways.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] The above-mentioned automated testing method can verify the robustness or stability of the switching of various networking modes supported by FTTR products according to the automation requirements of the user's FTTR product networking test; thereby being able to meet the networking methods of different usage scenarios of existing network users, and also ensure the stability of the network, thereby improving the user's Internet experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 Flowchart for the implementation of the present invention;
[0029] Figure 2 This is a schematic diagram of the automated testing environment of the present invention.
[0030] Legend: 1. FTTR master gateway; 2. FTTR slave gateway; 3. Power relay; 4. Switch; 5. Optical splitter; 6. Variable optical attenuator; 7. Terminal equipment; 8. Optical fiber cable; 9. Network cable; 10. Power cord. DETAILED DESCRIPTION
[0031] The technical solution of the present invention is described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the embodiments.
[0032] Example 1
[0033] like Figure 1 As shown, the automated testing method for switching between multiple FTTR networking modes disclosed in the present invention includes the following steps:
[0034] Step 1: Determine the test requirements and test objectives. The test requirement is to ensure the reproducibility of the networking test and to clearly record the environment and configuration variables when the problem occurs to facilitate problem location and analysis.
[0035] The test goal is to verify the networking mode of this embodiment in the fiber optic networking, wired networking and wireless networking of FTTR products;
[0036] Step 2: Determine and build the test environment. Based on the test requirements and objectives, determine the environment required for the automated test, including hardware equipment and software configuration, to ensure that the test topology required for the automated test can be built to achieve the test requirements and objectives.
[0037] Step 3: Select an automated testing tool. Choose the appropriate automated testing tool based on the test requirements and objectives.
[0038] Step 4: Configure the automated script to adapt to the test requirements and objectives. To adapt and meet the test requirements and test objectives, configure the automated test script and select the specific test configurations such as the networking mode, connection mode, and test time to be verified.
[0039] Step 5: Execute the automation script. After completing the automation configuration, ensure that the test environment has been set up and all necessary devices and components are in the correct state. Then start executing the automation script to ensure that the script can be executed normally.
[0040] Step 6: Analyze the automated test results. After the automated program script is executed, analyze the test results based on the generated automated test report, including the final test results, the execution time and results of each step, the connection form of the FTTR master-slave gateway in each process, and the business status of the FTTR master-slave gateway in each process to check whether there are any robustness or stability issues with the product network. It also provides convenient functions such as online viewing and downloading of reports.
[0041] In step 1, the new connection method or verification method of the test target FTTR product is:
[0042] This includes one-to-one or one-to-many master-slave connection modes, or one or both verifications of this embodiment of network robustness and stability.
[0043] like Figure 2 As shown, in step 2, the hardware and software configurations are as follows:
[0044] The hardware equipment includes but is not limited to the FTTR master gateway 1, the FTTR slave gateway 2, the power relay 3, the switch 4, the optical splitter 5, the variable optical attenuator 6, the terminal device 7 (computer), the optical fiber cable 8, the network cable 9 and the power cable 10;
[0045] Software configuration includes but is not limited to the operating system of the hardware device, the callable programming interface API program and network configuration, etc.
[0046] Based on the above hardware equipment, the following is the specific connection of the environmental topology for FTTR network automation testing:
[0047] The FTTR master gateway 1 and the FTTR slave gateway 2 of the hardware device are connected to the power relay 3 through a power cord 10, and a switch 4 is connected between the FTTR master gateway 1 and the FTTR slave gateway 2 through a network cable 9. The FTTR master gateway 1 is connected to the optical splitter 5 and the adjustable optical attenuator 6 to the FTTR master gateway 1 through an optical fiber line 8, and the FTTR slave gateway 2 is connected to the terminal device 7 (wireless terminal device and wired terminal device) through a wireless / network cable 9.
[0048] It should be noted that there is no limit on the number of hardware types in the above environment topology, and the number of gateways can be adjusted accordingly based on the topology.
[0049] In step three, the selection and selection of automated testing tools are as follows:
[0050] The testing tools used include but are not limited to Python or Robot Framework;
[0051] When choosing a tool, you need to consider the ease of use, flexibility, and scalability of the test tool, as well as whether it can include a controllable way of testing the hardware equipment of the test environment.
[0052] In step 5, the specific steps for executing the automation script are:
[0053] Automation scripts can automatically configure networking methods, including controlling the optical parameter adjustment of variable optical attenuators, turning switch ports on and off, and powering on and off test products.
[0054] In step 6: the automated program can control the on and off of the power relay in the topology, the optical attenuation of the adjustable optical attenuator, the on and off of the switch port, and the service check of the FTTR master and slave gateways.
[0055] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. An automated testing method for switching between multiple FTTR networking modes, characterized in that: The steps include: Step 1: Ensure the reproducibility of the networking test and record the environment and configuration variables when the problem occurs; Verify one of the networking modes of FTTR products, including optical fiber networking, wired networking and wireless networking; Step 2: According to the test requirements and objectives, determine the environment that needs to be built for this automated test, including hardware equipment and software configuration, and build the test topology required for this automated test; Step 3: Select appropriate automated testing tools based on test requirements and objectives; Step 4: Adapt and meet the test requirements and test objectives, configure the automated test script, and select the specific test configuration of the networking mode, connection mode, and test time to be verified; Step 5: After completing the automated configuration, ensure that the test environment has been set up and all necessary devices and components are in the correct state, and start executing the automated script to ensure that the script can be executed normally; Step 6. After the automated program script is executed, analyze the test results based on the generated automated test report, including the final test results, the execution time and results of each step, the connection form of the FTTR master-slave gateways in each process, and the business status of the FTTR master-slave gateways in each process to check whether there are any robustness or stability issues with the product networking, and provide the report for online viewing and downloading.
2. The automated testing method for switching between multiple FTTR networking modes according to claim 1, characterized in that: In step 1, the new connection method or verification method of the test target FTTR product is: It includes one-to-one or one-to-many master-slave connection methods, or one or two verifications of network robustness and stability.
3. The automated testing method for switching between multiple FTTR networking modes according to claim 1, characterized in that: In step 2, the hardware and software configurations are as follows: Hardware equipment includes FTTR master-slave gateways, power relays, switches, optical splitters, variable optical attenuators, terminal equipment, optical fiber cables, network cables, and power cables; Software configuration includes the operating system of the hardware device, the callable programming interface API program and network configuration.
4. The automated testing method for switching between multiple FTTR networking modes according to claim 3 is characterized in that: Specific connections for the environmental topology of FTTR network automation test: The FTTR master gateway and the FTTR slave gateway of the hardware device are connected to the power relay through a power cord, and a switch is connected between the FTTR master gateway and the FTTR slave gateway through a network cable. The FTTR master gateway is connected to the FTTR master gateway through an optical fiber line through an optical splitter and an adjustable optical attenuator, and the FTTR slave gateway is connected to the terminal device wirelessly / network cable.
5. The automated testing method for switching between multiple FTTR networking modes according to claim 1, characterized in that: In step three, the selection and selection of automated testing tools have the following specific requirements: The choice of testing tools includes Python or Robot Framework; The selection requirements of the test tool include the ease of use, flexibility and scalability of the test tool, and whether it can include controllable methods of the test environment hardware equipment.
6. The automated testing method for switching between multiple FTTR networking modes according to claim 1, characterized in that: In step 5, the specific steps to execute the automation script are: Automation scripts can automatically configure the networking mode, including controlling the optical parameter adjustment of the variable optical attenuator, the on / off of the switch port, and the power on / off of the test product.
7. The automated testing method for switching FTTR multiple networking modes according to claim 1 is characterized in that: In step six: the automation program can control the on and off of the power relay in the topology, the optical attenuation of the adjustable optical attenuator, the on and off of the switch port, and the service check of the FTTR master and slave gateways.