Network speed measurement method and application control method
By using the TR069 protocol to perform Iperf3 speed tests on user-side devices within a local area network, the problem of inaccurate network speed measurement under the influence of wide area networks is solved, the speed test efficiency and equipment stability are improved, and the accuracy of the speed test results and the reliability of the equipment are ensured.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HISENSE BROADBAND MULTIMEDIA TECH
- Filing Date
- 2024-12-06
- Publication Date
- 2026-06-09
AI Technical Summary
Existing technologies for measuring the access network speed of user-side devices are easily affected by wide area network factors, leading to inaccurate speed measurements and low speed measurement efficiency due to device response timeouts.
Using the TR069 protocol, the server automatically configures itself based on the optical line terminal information connected to the user-side device. It then locates and controls the first and second user-side devices within the local area network to perform Iperf3 speed tests. By monitoring device responses through speed test request and response messages, it promptly restarts applications with excessive memory usage, thus building an accurate network speed test environment.
It enables accurate network speed measurement within a local area network while shielding it from the influence of wide area network factors, improving speed measurement efficiency and reducing failures caused by device response timeouts and memory leaks.
Smart Images

Figure CN122179346A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a network speed measurement method and application control method. Background Technology
[0002] The TR069 protocol is a communication protocol between Customer Premises Equipment (CPE) and the Auto Configuration Server (ACS). The CPE can be a router, Optical Network Unit (ONU), or gateway, etc. The CPE can perform initialization and operational management actions such as service activation, function configuration, file upload / download, and system testing based on the TR069 protocol. The ACS automatically configures and manages the CPE. Summary of the Invention
[0003] In some embodiments, a network speed test method is provided, the method being used to automatically configure a server, the method comprising: Receive registration information from a second user-side device, the registration information including information about an optical line terminal connected to the second user-side device; The first user-side device is located based on the information of the optical line terminal, and the first user-side device is connected to the optical line terminal. Send a speed test command to the first user-side device and the second user-side device, so that the first user-side device can test the network speed with the second user-side device; Send a speed test result acquisition command to the first user-side device and / or the second user-side device to obtain the network speed between the first user-side device and the second user-side device.
[0004] One of the above technical solutions has the following advantages or beneficial effects: When it is necessary to obtain the network speed of the access network of the second user-side device, the automatic configuration server first obtains the information of the optical line terminal connected to the second user-side device from the registration information of the second user-side device. Based on the optical line terminal information, the automatic configuration server finds the first user-side device. The first user-side device and the second user-side device are connected to the same optical line terminal, that is, the first user-side device and the second user-side device are located in the same local area network (LAN). The automatic configuration server sends speed test commands to the first user-side device and the second user-side device respectively, enabling the first user-side device and the second user-side device to complete network speed tests in the LAN to obtain the network speed of the access network of the second user-side device. Compared with completing the network speed test of the access network of the second user-side device through the wide area network (WAN), it can shield the influence of factors involved in the WAN, making the obtained network speed of the access network of the second user-side device more accurate.
[0005] In some embodiments, a network speed test method is provided, which sends a speed test command to a first user-side device and a second user-side device, causing the first user-side device to test the network speed with the second user-side device, including: Send a first speed test request to the first user-side device, the first speed test request being used to enable the first user-side device to start the Iperf3 speed test application; A second speed test request is sent to the second user-side device. The second speed test request is used to enable the second user-side device to start the Iperf3 speed test application. The second speed test request includes first user device information, which is used to enable the second user-side device to test the network speed with the first user-side device based on the Iperf3 speed test application.
[0006] One of the above technical solutions has the following advantages or beneficial effects: The automatic configuration server sends a first speed test request to a first user-side device, and the first user-side device starts the Iperf3 speed test application based on the first speed test request. The automatic configuration server sends a second speed test request to a second user-side device, and the second user-side device starts the Iperf3 speed test application based on the second speed test request. The second speed test request includes information about the first user-side device, and the second user-side device completes the Iperf3 speed test based on the first user-side device information and the Iperf3 speed test application. The automatic configuration server uses the first and second speed test requests to construct an Iperf3 speed test environment between the first and second user-side devices, enabling the second user-side device to test its network speed with the first user-side device.
[0007] In some embodiments, a network speed test method is provided, which, after the first user-side device tests the network speed between itself and the second user-side device, further includes: enabling the first user-side device to obtain a first speed test result and enabling the second user-side device to obtain a second speed test result; The method further includes: comparing whether the first speed measurement result and the second speed measurement result are the same; If the first speed measurement result is different from the second speed measurement result, a notification will be displayed indicating that the test results are different; If the first speed measurement result is the same as the second speed measurement result, the test result is displayed.
[0008] One of the above technical solutions has the following advantages or beneficial effects: After obtaining the first speed test result and the second speed test result, the automatic configuration server compares the magnitudes of the first and second speed test results. If the first and second speed test results are the same, the speed test result is displayed. If the first and second speed test results are different, a notification is sent indicating that the test results are different. Theoretically, the first test result and the second test result should be the same. However, if the first user-side device or the second user-side device modifies the speed test result, there will be a situation where the first test result and the second test result are different. This facilitates timely notification to technicians in such cases, making it easier to obtain a more accurate network speed of the access network of the second user-side device.
[0009] In some embodiments, a network speed test method is provided, wherein the first speed test request is further used to cause the first user-side device to send a first response message to the auto-configuration server after starting the Iperf3 speed test application; the method further includes: If the first reply message is not received within a first preset time, a third speed test request is sent to a third user-side device. The third user-side device is connected to the optical line terminal, and the third speed test request is used to enable the third user-side device to start the Iperf3 speed test application.
[0010] One of the above technical solutions has the following advantages or beneficial effects: After the first user-side device starts the Iperf3 speed test application, it sends a first response message to the automatic configuration server. The automatic configuration server determines whether it receives the first response message within a first preset time. If it does not receive the first response message within the first preset time, the automatic configuration server determines that the first user-side device's response to the Iperf3 speed test has timed out. The automatic configuration server then sends a third speed test request to the third user-side device to utilize the third user-side device for Iperf3 speed testing. This helps reduce the low network speed test efficiency caused by the first user-side device's response timeout for the Iperf3 speed test, thus ensuring network speed test efficiency.
[0011] In some embodiments, a network speed test method is provided, wherein the second speed test request is further used to cause the second user-side device to launch the Iperf3 speed test application and then send a second response message to the auto-configuration server; the method further includes: Determine whether the second reply message is received within a second preset time; If the second reply message is not received within the second preset time, a fourth speed test request is sent to the fourth user-side device. The fourth speed test request is used to enable the fourth user-side device to start the Iperf3 speed test application.
[0012] One of the above technical solutions has the following advantages or beneficial effects: The second user-side device initiates the Iperf3 speed test application and sends a second response message to the automatic configuration server. The automatic configuration server determines whether it receives the second response message within a second preset time. If it does, the automatic configuration server determines that the second user-side device's response to the Iperf3 speed test has timed out. The automatic configuration server then sends a fourth speed test request to the fourth user-side device to utilize the fourth user-side device for Iperf3 speed testing. This helps reduce the network speed test efficiency caused by the second user-side device's response timeout for the Iperf3 speed test, thus ensuring network speed test efficiency.
[0013] In some embodiments, a network speed test method is provided, wherein the registration information further includes speed test application identification information, and the speed test application identification information is recorded; Locating the first user-side device based on the information from the optical line terminal includes: If the speed measurement application identification information is preset information, then the first user-side device is located based on the information of the optical line terminal, and the speed measurement application identification information of the first user-side device is preset information.
[0014] One of the above technical solutions has the following advantages or beneficial effects: the speed measurement application identification information of the second user-side device is used to identify whether the second user-side device supports Iperf3 speed measurement. Before the automatic configuration server searches for the first user-side device based on the information of the optical line terminal, it confirms whether the first user-side device supports Iperf3 speed measurement by reading the speed measurement application identification information of the first user-side device. When the second user-side device supports Iperf3 speed measurement, the automatic configuration server sends a first speed measurement request to the first user-side device. This facilitates the user-side device to respond to Iperf3 speed measurement in a timely manner, ensuring the efficiency of obtaining the network speed of the second user-side device accessing the network.
[0015] In some embodiments, a network speed measurement method is provided, the method further comprising: Receive the reported information from the first user-side device, the reported information including the target application and the amount of memory occupied by the target application; Determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; wherein, the automatic configuration server stores the target memory threshold and the target preset threshold coefficient, and the target memory threshold is the memory threshold of the target application; If the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, the target application will be added to the memory alarm application table. A return message is sent to the first user-side device, the return message including the memory alarm application table, so that the first user-side device restarts the target application based on the memory alarm application table.
[0016] One of the above technical solutions has the following advantages or beneficial effects: The automatic configuration server receives the reported message from the first user-side device and parses the target application and its memory usage from the message. The automatic configuration server determines whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient to determine whether to restart the target application. When the automatic configuration server determines that the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, it considers the target application's memory usage to be too high and should restart the target application. The automatic configuration server adds the target application to the memory alarm application table. The automatic configuration server returns a message to the first user-side device, which includes the memory alarm application table. The first user-side device receives and parses the message to obtain the memory alarm application table, and restarts the target application according to the table. By detecting the memory usage of applications on the user-side device, the automatic configuration server determines whether to restart the application, thereby reducing the risk of user-side devices becoming unmanaged or crashing due to memory leaks. Using the target memory threshold multiplied by the target preset threshold coefficient to determine whether the target application's memory usage is too high can fully consider different usage scenarios of the target application, thus making the determination of the target application's memory usage more accurate.
[0017] In some embodiments, an application control method is provided for automatically configuring a server, the method comprising: Receive information reported by the first user-side device, the reported information including the target application and the amount of memory occupied by the target application; Determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; wherein, the automatic configuration server stores the target memory threshold and the target preset threshold coefficient, and the target memory threshold is the memory threshold of the target application; If the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, the target application will be added to the memory alarm application table. A return message is sent to the first user-side device, the return message including the memory alarm application table, so that the first user-side device restarts the target application based on the memory alarm application table.
[0018] One of the above technical solutions has the following advantages or beneficial effects: The automatic configuration server receives the reported message from the first user-side device and parses the target application and its memory usage from the message. The automatic configuration server determines whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient to determine whether to restart the target application. When the automatic configuration server determines that the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, it considers the target application's memory usage to be too high and should restart the target application. The automatic configuration server adds the target application to the memory alarm application table. The automatic configuration server returns a message to the first user-side device, which includes the memory alarm application table. The first user-side device receives and parses the message to obtain the memory alarm application table, and restarts the target application according to the table. By detecting the memory usage of applications on the user-side device, the automatic configuration server determines whether to restart the application, thereby reducing the risk of user-side devices becoming unmanaged or crashing due to memory leaks. Using the target memory threshold multiplied by the target preset threshold coefficient to determine whether the target application's memory usage is too high can fully consider different usage scenarios of the target application, thus making the determination of the target application's memory usage more accurate.
[0019] In some embodiments, an application control method is provided, comprising: storing an application list in the automatic configuration server, the application list including applications and memory thresholds corresponding to the applications; determining whether the memory occupied by the target application is greater than a target memory threshold multiplied by a target preset threshold coefficient, including: Determine whether the target application matches the applications in the application list; If the target application matches an application in the application list, then determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; If the target application does not match the applications in the application list, the application list is updated based on a preset memory threshold and a preset threshold coefficient.
[0020] One of the above technical solutions has the following advantages or beneficial effects: After the automatic configuration server parses the target application and its memory usage, it first determines whether the target application matches any application in the application list. When the target application matches, it then compares whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient. This helps reduce the occurrence of comparison failures due to mismatches between the target application and the application list, thus ensuring smooth comparison. When the target application does not match any application in the application list, the application list is updated based on the preset memory threshold and preset threshold coefficient, the target application is added to the new application list, and then the comparison of whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient is performed again. This expands the application list, making it cover a wider range of applications to accommodate different user-side devices.
[0021] In some embodiments, an application control method is provided, wherein the automatic configuration server stores weight coefficients, and the method further includes: The target memory threshold is updated based on the memory usage of the target application and the weighting coefficient.
[0022] One of the above technical solutions has the following advantages or beneficial effects: updating the target memory threshold based on the memory usage and weight coefficient of the target application, so that the target memory threshold can dynamically take into account different usage scenarios. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in some embodiments of this disclosure will be briefly described below. Obviously, the drawings described below are only drawings of some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams and are not intended to limit the actual size of the product, the actual flow of the method, the actual timing of the signals, etc. involved in the embodiments of this disclosure.
[0024] Figure 1 This is a diagram illustrating an application scenario of an auto-configuration server according to some embodiments; Figure 2 This is an ACS network speed measurement topology diagram according to some embodiments; Figure 3 This is another ACS network speed measurement topology diagram according to some embodiments; Figure 4 This is a network speed test timing diagram of an automatic configuration server and user-side device according to some embodiments; Figure 5 This is a flowchart of a network speed measurement method according to some embodiments; Figure 6 Here is a flowchart of yet another network speed measurement method according to some embodiments; Figure 7 This is a flowchart of another network speed measurement method according to some embodiments; Figure 8 Here is a flowchart of another network speed measurement method according to some embodiments; Figure 9 This is an application control timing diagram of an auto-configuration server and a user-side device according to some embodiments; Figure 10 This is a flowchart of an application control method according to some embodiments; Figure 11 This is a flowchart of another application control method according to some embodiments; Figure 12 This is a structural diagram of a list of applications according to some embodiments. Detailed Implementation
[0025] The embodiments of this disclosure will now be described clearly and in detail with reference to the accompanying drawings. However, the described embodiments are merely some, and not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the embodiments provided in this disclosure are within the scope of protection of this disclosure.
[0026] Unless the context otherwise requires, throughout the specification and claims, the term "comprising" is interpreted as open and inclusive, meaning "including, but not limited to"; the terms "first" and "second" should not be construed as indicating or implying relative importance or indicating an upper limit on the number; the term "multiple" means two or more; the term "connection" should be interpreted broadly, for example, "connection" can be a fixed connection, a detachable connection, or an integral part, and can be a direct connection or an indirect connection through an intermediate medium; the use of the terms "applicable to" or "configured to" implies open and inclusive language, which does not exclude applicability to or configuration to devices performing additional tasks or steps; descriptions such as "parallel," "perpendicular," "identical," "consistent," and "aligned" are not limited to absolute mathematical theoretical relationships, but also include acceptable error ranges arising in practice, and differences based on the same design concept but due to manufacturing reasons.
[0027] Figure 1 This is a diagram illustrating an application scenario of an auto-configuration server according to some embodiments. For example... Figure 1As shown, the automatic configuration server 100 connects to a first optical line terminal (OLT) 200a, a second OLT 200b, etc. The first OLT 200a connects to user-side devices 200a-1 and 200a-2, etc., which are located within the same local area network (LAN). The second OLT 200b connects to user-side devices 200b-1 and 200b-2, etc., which are also located within the same LAN. User-side devices 200a-1, 200a-2, 200b-1, and 200b-2 can be routers, ONUs, or gateways, etc.
[0028] Figure 2 This is a diagram of an ACS network speed measurement topology based on some embodiments. For example... Figure 2 As shown, in some embodiments, the TR069 speed test protocol is limited to HTTP ordinary packet transmission and requires the construction of a speed test server. The speed test server and CPE are located under the same Broadband Remote Access Server (BRAS). The speed test process is as follows: The ACS initiates a speed test work order; the ACS searches for the BRAS to which the CPE belongs using the CPE's serial number via the northbound interface; the ACS searches for the speed test node closest to the BRAS via the northbound interface and obtains the Uniform Resource Locator (URL); the ACS sends the speed test URL to the CPE to start the speed test; after the CPE completes the speed test, it returns the result to the ACS.
[0029] To improve the convenience and accuracy of network speed testing, some embodiments also provide a network speed testing method. Figure 3 This is another ACS network speed measurement topology diagram according to some embodiments. For example... Figure 3 As shown, in some embodiments, ACS network speed testing can be performed within a local area network, which can shield the influence of factors such as network congestion in a wide area network, making the speed test results more reflective of the access network speed.
[0030] Figure 4 This is a network speed test timing diagram for an automatic configuration server and user-side devices according to some embodiments. Figure 4As shown, in some embodiments, network speed testing is achieved through the interaction between an automatic configuration server, a first user-side device, and a second user-side device. The first user-side device and the second user-side device can be any two of the user-side devices connected to the first OLT 200a, such as user-side device 200a-1 and user-side device 200a-2. Of course, the first user-side device and the second user-side device can also be any two of the user-side devices connected to the second OLT 200b, etc. The network speed testing method provided in this disclosure will be described in detail below with specific operational examples.
[0031] Figure 5 This is a flowchart of a network speed test method according to some embodiments, wherein the execution entity of the network speed test method is an automatic configuration server. For example... Figure 5 As shown, in some embodiments, the network speed measurement method includes:
[0032] S100: Receive registration information from the second user-side device, the registration information including information about the optical line terminal connected to the second user-side device.
[0033] The user-side device sends registration information to the auto-configuration server to establish a connection between the user-side device and the auto-configuration server. The registration information includes information about the OLT to which the user-side device is connected, such as the OLT's ID. The auto-configuration server receives the registration information from the user-side device and parses it to obtain information about the OLT to which the user-side device is connected. The auto-configuration server also receives registration information from a second user-side device and can obtain information about the OLT to which the second user-side device is connected.
[0034] In some embodiments, when a user of the second user-side device reports that the network speed of the second user-side device is slow or there is a network abnormality, the automatic configuration server can start a network speed test to obtain the network speed of the access network of the second user-side device, thereby determining whether the slow network speed or network abnormality of the second user-side device is caused by an abnormality in the access network of the second user-side device.
[0035] In some embodiments, the registration information may further include speed test application identification information, which is used to identify whether the second user-side device supports network speed testing. For example, the speed test application identification information is used to identify whether the second user-side device supports Iperf3 speed testing. For instance, the registration information includes an Iperf3 field, which is used to identify whether the second user-side device supports Iperf3 speed testing. If the second user-side device does not have an Iperf3 field, it indicates that the second user-side device does not support Iperf3 speed testing.
[0036] In some embodiments, the auto-configuration server includes a CPE information table, which includes an OLT field and an Iperf3 Enable field. Reading the OLT field determines the information of the OLT connected to the user-side device, and reading the Iperf3 Enable field determines whether the user-side device supports Iperf3 speed measurement. If the auto-configuration server parses the registration information to obtain the OLT's ID information, it records the ID information in the OLT field. If the auto-configuration server parses the registration information to obtain the Iperf3 field, it sets the Iperf3 Enable field to 1.
[0037] S200: Based on the information of the optical line terminal, locate the first user-side device, and the first user-side device is connected to the optical line terminal.
[0038] The automatic configuration server selects any user-side device connected to the OLT as the first user-side device based on the OLT information of the second user-side device. The first user-side device supports network speed testing. For example, the first user-side device can be a user-side device with low usage pressure and relatively low idle time.
[0039] In some embodiments, the auto-configuration server may locate a user-side device as the first user-side device based on the OLT field and the Iperf3 Enable field.
[0040] S300: Send a speed test command to the first user-side device and the second user-side device, so that the first user-side device can test the network speed between itself and the second user-side device.
[0041] The automatic configuration server sends speed test commands to both the first user-side device and the second user-side device, enabling the first user-side device to test the network speed between itself and the second user-side device. Both the first and second user-side devices can obtain separate speed test results; for example, the first user-side device may obtain a first speed test result, and the second user-side device may obtain a second speed test result.
[0042] S400: Send a speed test result acquisition command to the first user-side device and / or the second user-side device to obtain the network speed between the first user-side device and the second user-side device.
[0043] The automatic configuration server can send a speed test result retrieval command to the first user-side device to obtain the speed test result from the first user-side device. Alternatively, the automatic configuration server can send a speed test result retrieval command to the second user-side device to obtain the speed test result from the second user-side device. For example, after the automatic configuration server sends speed test commands to the first user-side device and the second user-side device respectively, it waits for a preset time before sending a speed test result retrieval command to either the first user-side device or the second user-side device.
[0044] In some embodiments, the automatic configuration server sends speed test result acquisition instructions to the first user-side device and the second user-side device respectively, so as to obtain speed test results from the first user-side device and the second user-side device respectively.
[0045] In some embodiments, when the automatic configuration server obtains the first speed test result and the second speed test result, it displays the first speed test result and the second speed test result so that technicians can read the network speed test results more intuitively.
[0046] The network speed testing method disclosed herein, when requiring the network speed of the access network of a second user-side device, first obtains the information of the optical line terminal (OLT) connected to the second user-side device from the device's registration information. Based on the OLT information, the automatic configuration server locates the first user-side device. The first and second user-side devices are connected to the same OLT, meaning they are located in the same local area network (LAN). The automatic configuration server sends speed test commands to both the first and second user-side devices, enabling them to complete network speed tests within the LAN to obtain the access network speed of the second user-side device. Compared to testing the access network speed of the second user-side device via a wide area network (WAN), this method shields the influence of factors involved in the WAN, resulting in a more accurate measurement of the access network speed. Furthermore, the network speed testing method provided herein facilitates improved management performance of the automatic configuration server.
[0047] Figure 6 This is a flowchart of yet another network speed measurement method according to some embodiments. For example... Figure 6 As shown, in some embodiments, S300: sending a speed test command to the first user-side device and the second user-side device, causing the first user-side device to test the network speed with the second user-side device, includes:
[0048] S310: Send a first speed test request to the first user-side device, the first speed test request being used to enable the first user-side device to start the Iperf3 speed test application.
[0049] In some embodiments, when there is a need for network speed testing, the autoconfiguration server sends a first speed test request to the first user-side device. The first user-side device receives the first speed test request and, in response, launches the Iperf3 speed test application. For example, the first speed test request may be a data request, such as setting Device.DownloadDiagnosis.Iperg3.Server.Enable to 1 and setting Device.DownloadDiagnosis.Iperg3.Server.Status to the first speed test request.
[0050] In some embodiments, the first user-side device receives a first speed test request, and in response to the first speed test request, the first user-side device may start the Iperf3 Server process.
[0051] In some embodiments, the auto-configuration server receives a network speed test request and, in response, sends a first speed test request to a first user-side device. The network speed test request may be entered into the auto-configuration server by a technician.
[0052] In some embodiments, the first speed test request is further configured to cause the first user-side device to generate a first response message and send the first response message back to the first user-side device after launching the Iperf3 speed test application. The auto-configuration server receives the first response message to confirm that the first user-side device has successfully launched the Iperf3 speed test application. The first response message allows the auto-configuration server to determine whether the first user-side device can respond to the first speed test request in a timely manner.
[0053] S320: Send a second speed test request to the second user-side device. The second speed test request is used to enable the second user-side device to start the Iperf3 speed test application. The second speed test request includes first user device information. The first user device information is used to enable the second user-side device to test the network speed with the first user-side device based on the Iperf3 speed test application.
[0054] In some embodiments, when a network speed test is required, the auto-configuration server sends a second speed test request to the second user-side device. Upon receiving the second speed test request, the second user-side device launches the Iperf3 speed test application. When the second user-side device launches the Iperf3 speed test application, the second user-side device and the first user-side device respectively establish an Iperf3 speed test runtime environment. For example, the second user-side device and the first user-side device perform the Iperf3 speed test, where the second user-side device acts as the Iperf3 speed test client, and the first user-side device acts as the Iperf3 speed test server. After the Iperf3 speed test is completed, the first user-side device and the second user-side device obtain the test results respectively; for example, the first user-side device obtains a first speed test result, and the second user-side device obtains a second speed test result. Iperf3 is a network performance testing tool that can be used to test network bandwidth and quality within a local area network.
[0055] In some embodiments, the second user-side device receives a second speed test request, and in response to the second speed test request, the second user-side device may start the Iperf3 Client process.
[0056] In some embodiments, the second speed test request is further configured to cause the second user-side device to generate a second response message and send the second response message back to the first response after launching the Iperf3 speed test application. The auto-configuration server receives the second response message to confirm that the second user-side device has successfully launched the Iperf3 speed test application. The second response message allows the auto-configuration server to determine whether the second user-side device can respond to the second speed test request in a timely manner.
[0057] Figure 7 This is a flowchart of another network speed measurement method according to some embodiments. Figure 7 As shown, in some embodiments, the network speed measurement method further includes:
[0058] S410: Compare whether the first speed measurement result and the second speed measurement result are the same.
[0059] S420: If the first speed measurement result is different from the second speed measurement result, a notification will be sent indicating that the test results are different.
[0060] S430: If the first speed measurement result is the same as the second speed measurement result, then display the test result.
[0061] In some embodiments, after the automatic configuration server obtains a first speed test result from a first user-side device and a second speed test result from a second user-side device, it compares the magnitudes of the first and second speed test results to determine whether they are the same. If the first and second speed test results are the same, the automatic configuration server displays the speed test results. If the difference between the first and second speed test results is within the error range, the first and second speed test results are considered to be the same. If the first and second speed test results are different, the automatic configuration server alerts the user that the test results are different. If the difference between the first and second speed test results exceeds the error range, the first and second speed test results are considered to be different. Theoretically, the first test result and the second test result should be the same. However, if either the first or second user-side device modifies the speed test results, there may be a situation where the first and second test results are different. This disclosure facilitates timely alerting of technical personnel in such cases, enabling them to promptly identify and address the issue.
[0062] Figure 8 This is a flowchart of another network speed test method according to some embodiments. In some embodiments, the network speed test method further includes:
[0063] S311: If the first reply message is not received within a first preset time, a third speed test request is sent to the third user-side device. The third user-side device is connected to the optical line terminal. The third speed test request is used to enable the third user-side device to start the Iperf3 speed test application.
[0064] In some embodiments, the automatic configuration server determines whether the first user-side device responded to the Iperf3 speed test in a timely manner by determining whether it received the first reply message within a first preset time period. The first preset time period can be 15s, 30s, or 60s, etc.
[0065] If no response message is received within the first preset time, the auto-configuration server will determine that the first user-side device's response to the Iperf3 speed test has timed out. When the auto-configuration server determines that the first user-side device's response to the Iperf3 speed test has timed out, based on the OLT information, the auto-configuration server sends a third speed test request to the third user-side device, causing the third user-side device to start the Iperf3 speed test application. This allows the third user-side device to complete the Iperf3 speed test in a timely manner, replacing the first user-side device. The third user-side device connects to the OLT connected to the second user-side device.
[0066] In some embodiments, if the auto-configuration server receives the first reply message within a first preset time, the auto-configuration server waits for a third preset time to send a Get request to the first user-side device. The third preset time can be 30s, 60s, or 90s, etc.
[0067] In some embodiments, S200: Locating the first user-side device based on the information of the optical line terminal includes: S210: If the speed measurement application identification information is preset information, then the first user-side device is searched based on the information of the optical line terminal, and the speed measurement application identification information of the first user-side device is preset information.
[0068] In some embodiments, before the autoconfiguration server searches for the first user-side device based on OLT information, the autoconfiguration server reads the Iperf3 Enable field of the second user-side device. If the Iperf3 Enable field is 1, the first user-side device is searched based on the OLT information, and the found first user-side device has an Iperf3 Enable field of 1.
[0069] In some embodiments, when the auto-configuration server determines that the first user-side device supports Iperf3 speed testing, the auto-configuration server obtains the IP address of the first user-side device and sends a first speed test request to the first user-side device. The IP address of the first user-side device is used to establish the Iperf3 test environment between the first user-side device and the second user-side device. The user-side device connected to the auto-configuration server may not support Iperf3 speed testing. Therefore, before sending the first speed test request to the first user-side device, the auto-configuration server first determines whether the first user-side device supports Iperf3 through its Iperf3 Enable field. This ensures that the first speed test request sent by the auto-configuration server can be responded to promptly by user-side devices that support Iperf3, ensuring that network speed testing can be performed in a timely manner.
[0070] In some embodiments, the network speed test method further includes: S321: If the second reply message is not received within the second preset time, a fourth speed test request is sent to the fourth user-side device. The fourth user-side device is connected to the optical line terminal. The fourth speed test request is used to enable the fourth user-side device to start the Iperf3 speed test application.
[0071] In some embodiments, the automatic configuration server determines whether the second user-side device's response to the Iperf3 speed test is timely by determining whether a second reply message is received within a second preset time period. The second preset time period can be 15s, 30s, or 60s, etc.
[0072] If no second response message is received within the second preset time, the auto-configuration server will determine that the second user-side device's response to the Iperf3 speed test has timed out. When the auto-configuration server determines that the second user-side device's response to the Iperf3 speed test has timed out, based on the OLT information, the auto-configuration server sends a fourth speed test request to the fourth user-side device, causing the fourth user-side device to start the Iperf3 speed test application. This allows the fourth user-side device to complete the Iperf3 speed test in a timely manner, replacing the second user-side device. The fourth user-side device connects to the OLT connected to the second user-side device.
[0073] In some embodiments, if the autoconfiguration server receives the second reply message within a second preset time, the autoconfiguration server waits for a fourth preset time to send a Get request to the second user-side device. The fourth preset time can be 60s, 90s, or 120s, etc.
[0074] In some embodiments, the automatic configuration server can monitor the memory usage of the user-side device. When a problem such as memory leak is detected in the user-side device, the automatic configuration server will restart the user-side device to prevent it from becoming unmanaged or crashing.
[0075] If the automatic configuration server restarts the user-side device, it may cause the user to lose internet access. To avoid this, some embodiments also provide an application control method. Figure 9 This is an application control timing diagram for an automatic configuration server and user-side devices according to some embodiments. For example... Figure 9 As shown, in some embodiments, the user-side device sends information including the application and its memory usage to the automatic configuration server through interaction between the automatic configuration server and the first user-side device. This allows the automatic configuration server to monitor the memory usage of applications on the user-side device. When the automatic configuration server detects that the application's memory usage is too high, it controls the user-side device to restart the application to reduce the risk of the user-side device becoming unmanaged or crashing due to excessive memory usage. The application control method provided in this disclosure is described in detail below with specific operational examples.
[0076] Figure 10 This is a flowchart of an application control method according to some embodiments, wherein the execution entity of the application control method is an automatic configuration server. For example... Figure 10 As shown, in some embodiments, the application control method includes:
[0077] S500: Receive the reported information from the first user-side device, the reported information including the target application and the amount of memory occupied by the target application.
[0078] In some embodiments, the first user-side device collects information on applications currently running on its local machine and the memory usage of those applications. When the first user-side device sends a reporting message to the auto-configuration server, it encapsulates the applications and their memory usage within the reporting message. The reporting message may include multiple applications and their memory usage; for ease of description, the applications included in the reporting message may be referred to as target applications, and their memory usage may be referred to as the target application's memory usage.
[0079] In some embodiments, the auto-configuration server receives the reporting message, parses the reporting message to obtain the target application and the amount of memory used by the target application.
[0080] In some embodiments, the automatic configuration server is configured with weighting coefficients. The target memory threshold is updated based on the memory usage of the target application and the weighting coefficients. Assume the target application's memory usage is Memory1, the current target memory threshold is Memory0, the number of records counted in the database is N, and the weighting coefficient is K1. The updated target memory threshold is obtained using Memory = (Memory0*N + Memory1*K1) / (N+1), Memory0 is replaced with Memory, and the number of records counted in the database is updated using N = N+1.
[0081] S600: Determine whether the memory usage of the target application is greater than the target memory threshold * target preset threshold coefficient; wherein, the automatic configuration server stores the target memory threshold and the target preset threshold coefficient, and the target memory threshold is the memory threshold of the target application.
[0082] In some embodiments, the automatic configuration server determines whether the memory usage of the target application is too large by comparing whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient. If the automatic configuration server determines that the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, it considers the memory usage of the target application to be too large and proceeds to step S700; if the automatic configuration server determines that the memory usage of the target application is less than or equal to the target memory threshold multiplied by the target preset threshold coefficient, it considers the memory usage of the target application not to be too large and the process ends.
[0083] S700: If the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, add the target application to the memory alarm application table.
[0084] In some embodiments, the memory alarm application table stores applications that the auto-configuration server determines are not consuming excessive memory. When the memory consumption of a target application exceeds a target memory threshold multiplied by a target preset threshold coefficient, the target application is added to the memory alarm application table. For example, one or more applications can be added to the memory alarm application table.
[0085] S800: Send a return message to the first user-side device, the return message including the memory alarm application table, so that the first user-side device restarts the target application based on the memory alarm application table.
[0086] In some embodiments, in response to a received reporting message, the auto-configuration server sends a return message to the first user-side device, adding a memory alarm application table to the return message. The first user-side device receives the return message, parses it to obtain the memory alarm application table, and restarts the target application based on the memory alarm application table.
[0087] In some implementations, the automatic configuration server detects the memory usage of applications on user-side devices to determine whether to restart the applications. Restarting applications reduces the risk of user-side devices becoming unmanaged or crashing due to memory leaks. When determining whether a target application's memory usage is excessive, a target memory threshold multiplied by a preset threshold coefficient is used. This method fully considers different usage scenarios of the target application, making the determination of memory usage more accurate and enabling more precise monitoring of user-side device usage.
[0088] In some implementations, the auto-configuration server stores a list of applications, including each application and its corresponding memory threshold. The auto-configuration server can query this application list to obtain the target memory threshold, which is the memory threshold for the target application.
[0089] Figure 11 This is a flowchart of another application control method according to some embodiments. Figure 11 As shown, in some embodiments, determining whether the memory usage of the target application is greater than a target memory threshold multiplied by a target preset threshold coefficient includes:
[0090] S610: Determine whether the target application matches the applications in the application list.
[0091] In some embodiments, when the automatic configuration server parses and obtains the target application and its memory usage, before determining whether the target application's memory usage is greater than the target memory threshold multiplied by the target preset threshold coefficient, it first determines whether the target application matches an application in the application list. If the target application matches an application in the application list, i.e., the target application exists in the application list, then step S620 is executed. If the target application does not match an application in the application list, i.e., the target application does not exist in the application list, then step S630 is executed.
[0092] S620: If the target application matches an application in the application list, then determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient.
[0093] In some embodiments, if the automatic configuration server determines that the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, then the memory usage of the target application is considered to be too large, and step S700 is executed; if the automatic configuration server determines that the memory usage of the target application is less than or equal to the target memory threshold multiplied by the target preset threshold coefficient, then the memory usage of the target application is considered not too large, and the process ends.
[0094] S630: If the target application does not match the application in the application list, update the application list based on a preset memory threshold and a preset threshold coefficient.
[0095] In some embodiments, if the target application is not present in the application list, it is added to the application list to update the application list. For example, the auto-configuration server has a preset memory threshold and a preset threshold coefficient. The preset memory threshold is used as the initial memory threshold for the target application, and the preset threshold coefficient is used as the initial threshold coefficient for the target application when adding it to the application list.
[0096] Figure 12 This is a structural diagram of a list of applications according to some embodiments. For example... Figure 12 As shown, in the application list: AppID is the ID of AppTable, AppName is the application name, Memory is the memory threshold, COEF1 is the weight coefficient, COEF2 is the preset threshold coefficient, and Counter is the statistics counter, which is used to record the number of statistics.
[0097] In some embodiments, after the automatic configuration server parses the target application and its memory usage, it first determines whether the target application matches an application in the application list. If the target application matches, it then compares whether the target application's memory usage exceeds a target memory threshold multiplied by a target preset threshold coefficient. This helps reduce the likelihood of comparison failures due to mismatches between the target application and applications in the application list, thus ensuring smooth comparison. If the target application does not match an application in the application list, the application list is updated based on the preset memory threshold and preset threshold coefficient, and the target application is added to the new application list. Then, the comparison of the target application's memory usage exceeding the target memory threshold multiplied by the target preset threshold coefficient is performed again. This expands the application list, making it more comprehensive to accommodate different user devices.
[0098] In some embodiments, the network speed test method can be combined with the application control method, and the automatic configuration server can perform the application control method based on the execution of the network speed test method, so as to improve the management performance of the automatic configuration server.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A network speed measurement method, characterized in that, The method is used for automatically configuring a server, and the method includes: Receive registration information from a second user-side device, the registration information including information about an optical line terminal connected to the second user-side device; The first user-side device is located based on the information of the optical line terminal, and the first user-side device is connected to the optical line terminal. Send a speed test command to the first user-side device and the second user-side device, so that the first user-side device can test the network speed with the second user-side device; Send a speed test result acquisition command to the first user-side device and / or the second user-side device to obtain the network speed between the first user-side device and the second user-side device.
2. The network speed measurement method according to claim 1, characterized in that, Sending speed test commands to the first user-side device and the second user-side device, causing the first user-side device to test the network speed with the second user-side device, includes: Send a first speed test request to the first user-side device, the first speed test request being used to enable the first user-side device to start the Iperf3 speed test application; A second speed test request is sent to the second user-side device. The second speed test request is used to enable the second user-side device to start the Iperf3 speed test application. The second speed test request includes first user device information, which is used to enable the second user-side device to test the network speed with the first user-side device based on the Iperf3 speed test application.
3. The network speed measurement method according to claim 1, characterized in that, After the first user-side device tests the network speed with the second user-side device, the method further includes: enabling the first user-side device to obtain a first speed test result and enabling the second user-side device to obtain a second speed test result. The method further includes: comparing whether the first speed measurement result and the second speed measurement result are the same; If the first speed measurement result is different from the second speed measurement result, a notification will be displayed indicating that the test results are different; If the first speed measurement result is the same as the second speed measurement result, the test result is displayed.
4. The network speed measurement method according to claim 2, characterized in that, The first speed test request is further used to cause the first user-side device to send a first response message to the auto-configuration server after starting the Iperf3 speed test application; the method further includes: If the first reply message is not received within a first preset time, a third speed test request is sent to a third user-side device. The third user-side device is connected to the optical line terminal, and the third speed test request is used to enable the third user-side device to start the Iperf3 speed test application.
5. The network speed measurement method according to claim 2, characterized in that, The second speed test request is also used to cause the second user-side device to send a second response message to the auto-configuration server after starting the Iperf3 speed test application; the method further includes: If the second reply message is not received within the second preset time, a fourth speed test request is sent to the fourth user-side device, which is connected to the optical line terminal. The fourth speed test request is used to enable the fourth user-side device to start the Iperf3 speed test application.
6. The network speed measurement method according to claim 2, characterized in that, The registration information also includes speed measurement application identification information, and the speed measurement application identification information is recorded. Locating the first user-side device based on the information from the optical line terminal includes: If the speed measurement application identification information is preset information, then the first user-side device is located based on the information of the optical line terminal, and the speed measurement application identification information of the first user-side device is preset information.
7. The network speed measurement method according to claim 2, characterized in that, The method further includes: Receive the reported information from the first user-side device, the reported information including the target application and the amount of memory occupied by the target application; Determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; wherein, the automatic configuration server stores the target memory threshold and the target preset threshold coefficient, and the target memory threshold is the memory threshold of the target application; If the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, the target application will be added to the memory alarm application table. A return message is sent to the first user-side device, the return message including the memory alarm application table, so that the first user-side device restarts the target application based on the memory alarm application table.
8. An application control method, characterized in that, The method is used for automatically configuring a server, and the method includes: Receive information reported by the first user-side device, the reported information including the target application and the amount of memory occupied by the target application; Determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; wherein, the automatic configuration server stores the target memory threshold and the target preset threshold coefficient, and the target memory threshold is the memory threshold of the target application; If the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient, the target application will be added to the memory alarm application table. A return message is sent to the first user-side device, the return message including the memory alarm application table, so that the first user-side device restarts the target application based on the memory alarm application table.
9. The application control method according to claim 8, characterized in that, The automatic configuration server stores an application list, which includes applications and corresponding memory thresholds for each application. Determining whether the memory usage of the target application exceeds the target memory threshold multiplied by the target preset threshold coefficient includes: Determine whether the target application matches the applications in the application list; If the target application matches an application in the application list, then determine whether the memory usage of the target application is greater than the target memory threshold multiplied by the target preset threshold coefficient; If the target application does not match the applications in the application list, the application list is updated based on a preset memory threshold and a preset threshold coefficient.
10. The application control method according to claim 8, characterized in that, The automatic configuration server stores weight coefficients, and the method further includes: The target memory threshold is updated based on the memory usage of the target application and the weighting coefficient.