A network testing method, device, system and equipment for FTTR system
By using virtual servers and virtual clients in the FTTR system for network testing, the high bandwidth and stability testing problems of the FTTR system on the user side are solved, and the stability of the system and data comprehensiveness are improved.
Patent Information
- Application Number
- CN202410919599.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The existing test solutions for FTTB or FTTB networking systems are difficult to integrate, the test data is incomplete, the test system is unstable, and cannot meet the high bandwidth and stability requirements of the FTTR system at the user end.
Using the network testing method of the FTTR system, using the virtual server and virtual client pre-built in the test host, the performance test of the wired network between the sub-gateway and the main gateway is carried out through the test script, and the optical line terminal, sub-gateway The network connectivity with the main gateway is tested, and the wired network stability test results of the FTTR system are obtained based on these data.
Realized the network stability test of the FTTR system, reduced the test cost, improved the stability of the test system, obtained key network performance and connectivity data, and solved the problems of difficult integration, incomplete data and unstable system in the existing technology. question.
Smart Images

Figure CN118473523B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a network testing method, device, system and equipment for an FTTR system. Background Art
[0002] At present, the optical communication industry has transitioned from the FTTB era to the FTTR era. FTTR can provide users with higher bandwidth and more stable home networks at the edge of the network, but users have higher requirements for the stability of the networking network. Therefore, FTTR products need more rigorous testing before they are launched to ensure that they can meet user requirements. Most of the existing solutions for testing the stability of FTTB or FTTB networking systems use chariot or Spirent Test Center instruments installed on multiple hosts to implement stability testing operations on the networking system. These test solutions have problems such as difficulty in integration, incomplete test data, and unstable test systems. Summary of the invention
[0003] The main purpose of this application is to provide a network testing method, device, system and equipment for an FTTR system, aiming to solve technical problems such as difficulty in integration, incomplete test data, and unstable test system in existing testing solutions.
[0004] To achieve the above-mentioned purpose, the present application provides a network testing method for an FTTR system, the FTTR system comprising a main gateway, a sub-gateway connected to the main gateway, and an optical line terminal connected to the main gateway, the testing method comprising: using a first virtual server pre-constructed in a test host, a virtual client corresponding to the first virtual server, and a first test script to perform a performance test on a wired network between the sub-gateway and the main gateway to obtain wired network performance data; using a second virtual server pre-constructed in the test host and a second test script to test the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway to obtain network connectivity data; based on the wired network performance data and the network connectivity data, obtaining a wired network stability test result of the FTTR system.
[0005] Optionally, the first virtual server and the corresponding virtual client are built based on a network testing tool; the second virtual server is built based on a python built-in module http.server.
[0006] Optionally, the virtual client is connected to the first virtual server through the main gateway and the sub-gateway, and the wired network performance data between the sub-gateway and the main gateway is tested by using the first virtual server and the corresponding virtual client and the first test script pre-built in the test host, including: using the first test script to send a test message between the virtual client and the first virtual server, and using the virtual client and the first virtual server to obtain the wired network performance data.
[0007] Optionally, the second virtual server is respectively connected to the optical line terminal, the sub-gateway and the main gateway, and the network connectivity data between the optical line terminal, the sub-gateway and the main gateway is tested by using the second virtual server and the second test script pre-built in the test host, including: using the second test script to access the page of the main gateway or the page of the sub-gateway, or using the second test script to access the page of the second virtual server connected to the optical line terminal through the main gateway, so as to obtain the connectivity of the sub-gateway, the main gateway and the optical line terminal.
[0008] Optionally, the network testing method of the FTTR system also includes: using the first virtual server and the corresponding virtual client and a third test script to test the wireless network performance data of the sub-gateway or the main gateway; determining the network stability test result of the FTTR system based on the wireless network performance data, the wired network performance data and the network connectivity data.
[0009] Optionally, the use of the first virtual server and the corresponding virtual client and the third test script to test the wireless network performance data of the sub-gateway or the main gateway includes: using the third test script to drive the virtual client to upload a test data packet to the first virtual server through the main gateway or the sub-gateway, and using the third test script to drive the virtual client to download a test data packet from the first virtual server through the main gateway or the sub-gateway, and obtaining the wireless network performance data of the main gateway or the sub-gateway during the upload and / or download process.
[0010] In order to achieve the above-mentioned purpose, the present application also provides a network testing device of an FTTR system, the FTTR system comprising a main gateway, a sub-gateway connected to the main gateway, and an optical line terminal connected to the main gateway, the network testing device of the FTTR system comprising: a first testing module, used to perform a performance test on the wired network between the sub-gateway and the main gateway using a first virtual server pre-built in a testing host, a virtual client corresponding to the first virtual server, and a first testing script, to obtain wired network performance data; a second testing module, used to test the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway using a second virtual server pre-built in the testing host and a second testing script, to obtain network connectivity data; an output module, used to obtain a wired network stability test result of the FTTR system based on the wired network performance data and the network connectivity data.
[0011] In order to achieve the above-mentioned purpose, the present application also provides a network testing system of an FTTR system, characterized in that it includes: a main gateway; having a wireless access point and a physical network card; a sub-gateway, having a wireless access point and a physical network card, the sub-gateway being communicatively connected to the main gateway through a splitter; an optical line terminal, having a physical network card, the optical line terminal being communicatively connected to the main gateway; a test host, having a wireless network card and multiple physical network cards, the wireless network card of the test host being communicatively connected to the wireless access points of the main gateway and the sub-gateway respectively, the multiple physical network cards of the test host being communicatively connected to the physical network cards of the sub-gateway, the main gateway and the optical line terminal respectively, and the test host being used to execute the network testing method of the FTTR system.
[0012] In order to achieve the above-mentioned object, the present application also provides a computer-readable storage medium, which includes instructions, and when the instructions are executed on a computer, the computer executes a network testing method for an FTTR system.
[0013] In order to achieve the above-mentioned purpose, the present application also provides a test device, including: the test device includes: at least one processor, a memory and an input and output unit; wherein the memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute a network testing method of the FTTR system.
[0014] The embodiments of the present application propose a network testing method, device, system and equipment for an FTTR system. The method tests the wired network performance data between the sub-gateway and the main gateway by using a first virtual server and a corresponding virtual client pre-built in a test host and a first test script; the network connectivity data between the optical line terminal, the sub-gateway and the main gateway is tested by using a second virtual server and a second test script pre-built in the test host; based on the wired network performance data and the network connectivity data, the wired network stability test result of the FTTR system is obtained. Only the first virtual server and the corresponding virtual client and the second virtual server in one test host can be used to simulate the scenario of multiple hosts communicating with the server, thereby reducing the testing cost and improving the stability of the testing system. The network performance data obtained by using the testing scheme can obtain key network information such as the delay bandwidth of the FTTR edge gateway. The network connectivity data obtained by using the technical scheme can obtain key data on the stability of the FTTR network connection, thereby solving the technical problems in the prior art of being difficult to integrate, incomplete test data and unstable test system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of a flow chart of a network testing method for an FTTR system according to an embodiment of the present application;
[0016] Figure 2 A network topology diagram of a network test system for an FTTR system provided in an embodiment of the present application;
[0017] Figure 3 A structural block diagram of a network test device for an FTTR system provided in one embodiment of the present application;
[0018] Figure 4 A schematic diagram of a storage medium structure according to an embodiment of the present application;
[0019] Figure 5 This is a schematic diagram of the structure of a testing device according to an embodiment of the present application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0022] Figure 1 This is a flow chart of a network testing method for an FTTR system according to an embodiment of the present application. The network testing method for the FTTR system can be executed by a testing host 104, which can be a Windows host, a Linux host, or a macOS host. Figure 2The network topology diagram of the network test system of the FTTR system provided in one embodiment of the present application is shown in FIG. Figure 2 The FTTR system may include a main gateway 101, a sub-gateway 102 connected to the main gateway 101, and an optical line terminal 103 connected to the main gateway 101. The network testing method of the FTTR system includes:
[0023] S10, using the first virtual server pre-built in the test host, the virtual client corresponding to the first virtual server, and the first test script, to perform a performance test on the wired network between the sub-gateway and the main gateway to obtain wired network performance data;
[0024] Wherein, the first virtual server and the corresponding virtual client are built based on a network testing tool.
[0025] Specifically, the first virtual server may be an iPerf server, and the virtual client may be an iPerf client; iPerf is a widely used network performance testing tool, which can be used to measure TCP and UDP bandwidth performance, and can report network performance indicators such as bandwidth, delay jitter, and packet loss. The iPerf server may be used to monitor incoming test requests, and the iPerf client may be used to initiate a test session. The first test script may be a python script, and the test host 104 may start the iPerf server and the iPerf client through the python script.
[0026] Exemplarily, the test host 104 may be a Linux host with an Ubuntu system installed. The Linux host is configured with multiple wired physical network cards. The static IP of the Linux host may be pre-set as the subnet IP of the main gateway 101, and a static route may be added to the Linux host. The command line for adding a static route may be as follows:
[0027] sudo ip rule add from 192.168.1.2 / 32 table 1
[0028] sudo ip route add default via 192.168.1.1 dev eth0 table 1
[0029] The two command lines mean to send the test data packet to the specified physical network card eh0 according to the source IP address 192.168.1.2. The physical network card eh0 can be the physical network card of the sub-gateway 102, the physical network card of the main gateway 101, or the physical network card of the optical line terminal 103.
[0030] In an embodiment of the present application, the virtual client connects to the first virtual server through the main gateway 101 and the sub-gateway 102, and step S10 may include the following specific implementation steps:
[0031] S11, using the first test script to send a test message between the virtual client and the first virtual server, and using the virtual client and the first virtual server to obtain network performance data;
[0032] Specifically, before starting the iPerf server and the iPerf client, the iPerf server and the iPerf client can be connected to the main gateway 101 and the sub-gateway 102 respectively in advance, so that the test host 104 can test the network delay from the main gateway 101 to the sub-gateway 102. After the test host 104 uses the python script to start the iPerf server and the iPerf client, the test host 104 can use the python script to start the traffic capture tool wireshark to capture traffic. The test host 104 uses the traffic capture tool wireshark to obtain traffic data from the iPerf server and the iPerf client respectively and automatically calculate the packet loss rate and average traffic in the traffic data. If the average traffic is 0 or the packet loss rate is 100%, the python script will judge the test result of this cycle as a failure and output the test log, and stop traffic capture at the same time. If the average traffic is not 0 or the packet loss rate is not 100%, the python script is used to parse the data packets filtered by the iPerf client and the iPerf server, and the average delay between the main gateway 101 and the sub-gateway 102 is calculated based on the timestamp. At the same time, the throughput, packet loss rate and other information between the main gateway 101 and the sub-gateway 102 during the test cycle are calculated. Finally, the python script writes the throughput, packet loss rate, average delay and other information as network performance data into the test log and outputs it.
[0033] S20, using the second virtual server and the second test script pre-built in the test host, testing the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway to obtain network connectivity data;
[0034] In an embodiment of the present application, the second virtual server is respectively connected to the optical line terminal 103, the sub-gateway 102 and the main gateway 101, and the specific implementation steps of step S20 include:
[0035] S21. Use the second test script to access the page of the main gateway 101 or the page of the sub-gateway 102, or use the second test script to access the page of the second virtual server connected to the optical line terminal 103 through the main gateway 101, so as to obtain the connectivity among the sub-gateway 102, the main gateway 101 and the optical line terminal 103.
[0036] Among them, the second virtual server can be built based on the python built-in module http.server, and the http server port is mapped to a physical network card of the test host 104 connected to the physical network card of the optical line terminal 103, and the route from the http server to the optical line terminal 103 is set as a static route so that the flow of data packets can be accurately controlled. The second test script can be an automated script written based on Selenium, WebDriver and Python programs. Selenium is a tool for automated Web application testing, which supports multiple programming languages, such as Java, C#, Python, Ruby and JavaScript. WebDriver is a component of Selenium, which provides a simple way to control the browser and simulate user behavior, such as clicking, entering text, navigating, etc.
[0037] Specifically, the test host 104 can create a Python script, and use Selenium's WebDriver to create a WebDriver instance, for example, the instance can be used to simulate login and navigation operations. The test host 104 can simulate login and navigation operations on the management pages of each sub-gateway 102 from the main gateway 101 side in turn, and record the number of successful simulated login and navigation operations; the test host 104 can simulate login and navigation operations on the http server connected to the optical line terminal 103 through the main gateway 101 on each sub-gateway 102 side, check whether the path connected to the main gateway 101 is unobstructed, and record the number of successful simulated login and navigation operations; the test host 104 can also simulate login and navigation operations on the gateway management page of the main gateway 101 on each sub-gateway 102 side, and record the number of successful simulated login and navigation operations. The test host 104 records the total number of successful simulated login and navigation operations of the three types, and divides it by the total number of simulated login and navigation operations to obtain network connectivity data between the optical line terminal 103, the sub-gateway 102 and the main gateway 101.
[0038] S30. Based on the wired network performance data and the network connectivity data, obtain the wired network stability test result of the FTTR system.
[0039] The test host 104 may obtain a network stability test result of the wired network based on the network connectivity data and the network performance data.
[0040] In an embodiment of the present application, the network testing method of the FTTR system may further include the following specific implementation steps:
[0041] S41, using the first virtual server and the corresponding virtual client and the third test script to test the wireless network performance data of the sub-gateway 102 or the main gateway 101;
[0042] S42. Determine the FTTR system network stability test result based on the wireless network performance data, the wired network performance data and the network connectivity data.
[0043] Specifically, when performing a wireless network performance data test, the iPerf server is started on the test host 104 connected to the main gateway 101 for wireless client testing. The iPerf server configuration is the same as the wired configuration, using UDP mode. The test host 104 uses the iPerf client to specify the wireless network interface as the interface of the iPerf client and performs the test on the wireless network card. The test host 104 uses Python to write an automated test script that integrates the iPerf test function and uses the network packet capture tool Wireshark to analyze Wi-Fi latency. It should be noted that the same test can also be used to obtain the wireless network performance data of each sub-gateway 102, which will not be repeated here. The test host 104 can obtain the network stability test results of the FTTR system using the obtained wireless network performance data, wired network performance data, and network stability data.
[0044] Based on the above embodiments, the present application also provides a network test system for an FTTR system, which is used to solve the technical problems of the existing test solutions, such as difficulty in integration, incomplete test data, and unstable test system. Figure 2 A network topology diagram of a network test system for an FTTR system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the test system 100 may include: a main gateway 101, a sub-gateway 102, an optical line terminal 103 and a test host 104, wherein the main gateway 101 has a wireless access point and a physical network card; the sub-gateway 102 has a wireless access point and a physical network card, and the sub-gateway 102 is communicatively connected to the main gateway 101 through a splitter; the optical line terminal 103 has a physical network card, and the optical line terminal 103 is communicatively connected to the main gateway 101; the test host 104 has a wireless network card and multiple physical network cards, the wireless network card of the test host 104 is communicatively connected to the wireless access points of the main gateway 101 and the sub-gateway 102, respectively, the multiple physical network cards of the test host 104 are communicatively connected to the physical network cards of the sub-gateway 102, the main gateway 101 and the optical line terminal 103, respectively, and the test host 104 is used to execute the network test method of the FTTR system in the above embodiment.
[0045] Based on the above embodiments, the present application also provides a network testing device for an FTTR system, which is used to solve the technical problems of the existing testing schemes such as difficulty in integration, incomplete test data, and unstable test system. Figure 3 A structural block diagram of a network test device for an FTTR system provided in an embodiment of the present application is shown in FIG. Figure 2 and Figure 3 As shown, the FTTR system includes a main gateway 101, a sub-gateway 102 connected to the main gateway 101, and an optical line terminal 103 connected to the main gateway 101. The network test device 200 of the FTTR system is used to test the network stability of the FTTR system. The network test device 200 of the FTTR system includes a first test module 201, a second test module 202 and an output module 203, wherein the first test module 201 can be used to perform a performance test on a wired network between the sub-gateway 102 and the main gateway 101 using a first virtual server pre-built in a test host 104, a virtual client corresponding to the first virtual server, and a first test script to obtain wired network performance data; the second test module 202 can be used to test the network connectivity performance between the optical line terminal 103, the sub-gateway 102 and the main gateway 101 using a second virtual server pre-built in the test host 104 and a second test script to obtain network connectivity data; the output module 203 can be used to obtain a wired network stability test result of the FTTR system based on the wired network performance data and the network connectivity data.
[0046] In an embodiment of the present application, the first virtual server and the corresponding virtual client of the first test module 201 can be built based on a network testing tool; the second virtual server of the second test module 202 can be built based on the python built-in module http.server.
[0047] In an embodiment of the present application, the virtual client of the test host 104 of the test system 100 is connected to the first virtual server through the main gateway 101 and the sub-gateway 102, and the first test module 201 can be specifically used to use the first test script to send test messages between the virtual client and the first virtual server, and use the virtual client and the first virtual server to obtain wired network performance data.
[0048] In an embodiment of the present application, the second virtual server end of the test host 104 of the test system 100 is respectively connected to the optical line terminal 103, the sub-gateway 102 and the main gateway 101, and the second test module 202 can use the second test script to access the page of the main gateway 101 or the page of the sub-gateway 102, or use the second test script to access the page of the second virtual server end connected to the optical line terminal 103 through the main gateway 101, thereby obtaining the connectivity of the sub-gateway 102, the main gateway 101 and the optical line terminal 103.
[0049] In an embodiment of the present application, the network testing device 200 of the FTTR system may further include a third testing module 204, which may be used to test the wireless network performance data of the sub-gateway 102 or the main gateway 101 using the first virtual server and the corresponding virtual client and a third testing script; and determine the network stability test result of the FTTR system based on the wireless network performance data, the wired network performance data and the network connectivity data.
[0050] In an embodiment of the present application, the third test module 204 can be specifically used to use the third test script to drive the virtual client to upload a test data packet to the first virtual server through the main gateway 101 or the sub-gateway 102, and use the third test script to drive the virtual client to download the test data packet from the first virtual server through the main gateway 101 or the sub-gateway 102, and obtain the wireless network performance data of the main gateway 101 or the sub-gateway 102 during the upload and / or download process.
[0051] Based on the above embodiments, the present application also provides a computer-readable storage medium, referring to Figure 4 , the computer-readable storage medium shown is a CD 50, on which a computer algorithm (i.e., an algorithm product) is stored. When the computer algorithm is executed by the processor, each step recorded in the above method implementation method is implemented, for example, a performance test is performed on the wired network between the sub-gateway and the main gateway using a first virtual server pre-built in the test host, a virtual client corresponding to the first virtual server, and a first test script to obtain wired network performance data; a second virtual server pre-built in the test host and a second test script are used to test the network connectivity performance between the optical line terminal, the sub-gateway, and the main gateway to obtain network connectivity data; based on the wired network performance data and the network connectivity data, a test result of the wired network stability of the FTTR system is obtained. The specific implementation method of each step will not be repeated here.
[0052] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0053] In addition, based on the above embodiment, the embodiment of the present application also provides a testing device, Figure 5 A block diagram of an exemplary test device 60 suitable for implementing the embodiments of the present application is shown. The test device 60 may be a computer system or a server. Figure 5The testing device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0054] refer to Figure 5 , the components of the test device 60 may include, but are not limited to: one or more processors or processing units 601 , a system memory 602 , and a bus 603 connecting different system components (including the system memory 602 and the processing unit 601 ).
[0055] The test device 60 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the test device 60, including volatile and non-volatile media, removable and non-removable media.
[0056] The system memory 602 may include computer system readable media in the form of volatile memory, such as random access memory RAM 6021 and / or cache memory 6022. The test device 60 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the ROM 6023 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 is not shown in the Figure 5 As shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to a bus 603 connecting different system components through one or more data medium interfaces. The system memory 602 may include at least one algorithm product, which has a set (such as at least one) algorithm module, which is configured to perform the functions of each embodiment of the present application.
[0057] An algorithm / utility 6025 having a set (at least one) of algorithm modules 6024 may be stored, for example, in system memory 602, and such algorithm modules 6024 include, but are not limited to: an operating system, one or more application algorithms, other algorithm modules, and algorithm data, each of which or some combination may include an implementation of a network environment. Algorithm modules 6024 generally perform the functions and / or methods of the embodiments described herein.
[0058] The test device 60 may also communicate with one or more external devices 604 (e.g., a keyboard, a pointing device, a display, etc.). Such communication may be performed via an input / output I / O interface 605. Furthermore, the test device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 606. Figure 5 As shown, the network adapter 606 communicates with other modules (such as the processing unit 601, etc.) of the test device 60 via the bus 603 that connects different system components. It should be understood that although Figure 5 Not shown, other hardware and / or software program modules may be used in conjunction with the testing device 60 .
[0059] The processing unit 601 executes various functional applications and data processing by running the algorithm stored in the system memory 602. For example, the performance test of the wired network between the sub-gateway and the main gateway is performed using the first virtual server pre-built in the test host, the virtual client corresponding to the first virtual server, and the first test script to obtain the wired network performance data; the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway is tested using the second virtual server pre-built in the test host and the second test script to obtain the network connectivity data; based on the wired network performance data and the network connectivity data, the stability test result of the wired network of the FTTR system is obtained. The specific implementation method of each step is not repeated here. The specific implementation method of each step is not repeated here. It should be noted that although several units / modules or sub-units / sub-modules of the robot's motion trajectory processing device are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to the embodiment of the present application, the features and functions of two or more units / modules described above can be concretized in one unit / module. On the contrary, the features and functions of one unit / module described above may be further divided into multiple units / modules to be embodied.
[0060] In the description of the present application, it should be noted that the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0061] 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.
[0062] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0063] 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.
[0064] In addition, each functional unit in each embodiment of the present application 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.
[0065] If the function is implemented in the form of a software program functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, 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 program product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store algorithm codes.
[0066] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
[0067] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
[0068] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A network testing method for an FTTR system, It is characterized in that The FTTR system includes a main gateway, a sub-gateway connected to the main gateway, and an optical line terminal connected to the main gateway. The test method includes: Using a first virtual server pre-built in a test host, a virtual client corresponding to the first virtual server, and a first test script, a performance test is performed on a wired network between the sub-gateway and the main gateway to obtain wired network performance data; Using a second virtual server and a second test script pre-constructed in the test host, the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway is tested to obtain network connectivity data; Based on the wired network performance data and the network connectivity data, obtaining a wired network stability test result of the FTTR system; The virtual client is connected to the first virtual server through the main gateway and the sub-gateway; the network testing method also includes sending a test message between the virtual client and the first virtual server using a first test script, and obtaining wired network performance data using the virtual client and the first virtual server; The second virtual server is respectively connected to the optical line terminal, the sub-gateway and the main gateway; the network testing method also includes using a second test script to access the page of the main gateway or the page of the sub-gateway, or using a second test script to access the page of the second virtual server connected to the optical line terminal through the main gateway to obtain network connectivity data of the sub-gateway, the main gateway and the optical line terminal.
2. The network testing method of the FTTR system according to claim 1, It is characterized in that The first virtual server and the corresponding virtual client are built based on a network testing tool; The second virtual server is built based on the python built-in module http.server.
3. The network testing method of the FTTR system according to claim 1, It is characterized in that The network testing method of the FTTR system further includes: Using the first virtual server, the corresponding virtual client and the third test script, the wireless network performance data of the sub-gateway or the main gateway is tested to obtain the wireless network performance data; The FTTR system network stability test result is determined based on the wireless network performance data, the wired network performance data and the network connectivity data.
4. The network testing method of the FTTR system according to claim 3, It is characterized in that Using the first virtual server, the corresponding virtual client and the third test script, the wireless network performance data of the sub-gateway or the main gateway is tested to obtain the wireless network performance data, including: The third test script is used to drive the virtual client to upload a test data packet to the first virtual server through the main gateway or the sub-gateway, and the third test script is used to drive the virtual client to download a test data packet from the first virtual server through the main gateway or the sub-gateway, and the wireless network performance data of the main gateway or the sub-gateway is obtained during the upload and / or download process.
5. A network test system for an FTTR system, It is characterized in that include: The main gateway, which has a wireless access point and a physical network card; A sub-gateway, having a wireless access point and a physical network card, wherein the sub-gateway is communicatively connected to the main gateway via an optical splitter; An optical line terminal having a physical network card, wherein the optical line terminal is communicatively connected with the main gateway; A test host having a wireless network card and multiple physical network cards, wherein the wireless network card of the test host is respectively communicatively connected to the wireless access points of the main gateway and the sub-gateway, and the multiple physical network cards of the test host are respectively communicatively connected to the physical network cards of the sub-gateway, the main gateway and the optical line terminal, and the test host is used to execute the network testing method of the FTTR system as described in any one of claims 1 to 4.
6. A network test device for an FTTR system, It is characterized in that The FTTR system includes a main gateway, a sub-gateway connected to the main gateway, and an optical line terminal connected to the main gateway. The network test device of the FTTR system includes: A first test module is used to perform a performance test on the wired network between the sub-gateway and the main gateway by using a first virtual server pre-built in the test host, a virtual client corresponding to the first virtual server, and a first test script to obtain wired network performance data; A second test module tests the network connectivity performance between the optical line terminal, the sub-gateway and the main gateway by using a second virtual server and a second test script pre-built in the test host to obtain network connectivity data; An output module, configured to obtain a test result of a wired network stability of a FTTR system based on the wired network performance data and the network connectivity data; The virtual client is connected to the first virtual server through the main gateway and the sub-gateway; the first test module is also used to send a test message between the virtual client and the first virtual server using a first test script, and obtain wired network performance data using the virtual client and the first virtual server; The second virtual server is respectively connected to the optical line terminal, the sub-gateway and the main gateway; the second test module is also used to use a second test script to access the page of the main gateway or the page of the sub-gateway, or to use a second test script to access the page of the second virtual server connected to the optical line terminal through the main gateway to obtain network connectivity data of the sub-gateway, the main gateway and the optical line terminal.
7. A computer-readable storage medium, It is characterized in that The method comprises instructions, which, when executed on a computer, enable the computer to execute the network testing method for the FTTR system according to any one of claims 1 to 4.
8. A test device, It is characterized in that include: The test equipment includes: at least one processor, memory, and input-output unit; The memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute the network testing method for the FTTR system according to any one of claims 1 to 4.
Citation Information
Patent Citations
Application program test method, test control terminal and test terminal
CN111159019A
Network card testing method and device, equipment and storage medium
CN117354190A
