Network speed measurement method and device, electronic equipment and storage medium

By responding to the speed measurement command and judging whether to perform local speed measurement or speed measurement between gateway devices based on the speed measurement interval parameters, it solves the problem that segmented speed measurement cannot be performed in the all-optical network, realizes segmented speed measurement and fault location of the all-optical network, and meets the requirements Meet user requirements for latency performance.

CN118784535APending Publication Date: 2024-10-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310370185.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing network speed measurement methods cannot measure the speed of every network segment in an all-optical network, and cannot meet users' requirements for delay performance of home all-optical networks.

Method used

By responding to the speed measurement command, it is determined whether to perform local speed measurement or speed measurement between gateway devices based on the speed measurement interval parameters. The network management interface module and speed measurement module are used to parse the command to determine the speed measurement type and connection method between the gateway devices to implement speed measurement for each network segment. .

Benefits of technology

It realizes segmented speed measurement of all-optical networks, obtains more comprehensive speed measurement information, can quickly locate and analyze fault causes, and meets users' requirements for delay performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784535A_ABST
    Figure CN118784535A_ABST
Patent Text Reader

Abstract

The invention discloses a network speed measurement method and device, electronic equipment and a storage medium, belongs to the technical field of network communication, and is used for acquiring speed measurement information of each section of network of an all-optical network. The method comprises the following steps: in response to a speed measurement command, initiating local speed measurement of first gateway equipment under the condition that a speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway equipment; and under the condition that the speed measurement interval parameter indicates the speed measurement between the first gateway equipment and second gateway equipment, determining the second gateway equipment according to the speed measurement command, and initiating the speed measurement between the first gateway equipment and the second gateway equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network communication technology, and specifically relates to a network speed measurement method, device, electronic equipment and storage medium. Background Art

[0002] With the application of home all-optical network equipment and the increasing demand of users for high-bandwidth home access devices, all-optical home networks have gradually been favored by high-end users. After users sign a broadband package with operators, they will require the home all-optical network broadband speed test composed of the main gateway and the slave gateway to meet the package requirements. At the same time, more and more video service applications have higher requirements for network latency performance, and users also require operators to provide latency performance indicators for home all-optical networks.

[0003] However, there are usually multiple gateway devices in an all-optical network. The existing speed measurement service is the network speed measurement of a single gateway device or the network speed measurement between a gateway device and a server. It is impossible to measure the speed of each network segment in the all-optical network. Summary of the invention

[0004] The embodiments of the present application provide a network speed measurement method, device, electronic device and storage medium, which can solve the problem that it is impossible to measure the speed of each network segment in an all-optical network.

[0005] In a first aspect, an embodiment of the present application provides a network speed measurement method, the method comprising: in response to a speed measurement command, when a speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway device, initiating local speed measurement of the first gateway device; when the speed measurement interval parameter indicates speed measurement between the first gateway device and a second gateway device, determining the second gateway device according to the speed measurement command, and initiating speed measurement between the first gateway device and the second gateway device.

[0006] In a second aspect, an embodiment of the present application provides a network speed measurement device, which includes: a first speed measurement module, for responding to a speed measurement command, and initiating local speed measurement of the first gateway device when a speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway device; a second speed measurement module, for determining the second gateway device according to the speed measurement command, and initiating speed measurement between the first gateway device and the second gateway device when the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0009] In an embodiment of the present application, by responding to a speed test command, when the speed test interval parameter in the speed test command indicates local speed test of the first gateway device, local speed test of the first gateway device is initiated; when the speed test interval parameter indicates speed test between the first gateway device and the second gateway device, the second gateway device is determined according to the speed test command, and speed test is initiated between the second gateway device and the second gateway device. Both local speed test of the first gateway device and speed test between the first gateway device and the second gateway device can be performed, and speed test can be performed on each network segment. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a flow chart of a network speed measurement method provided in an embodiment of the present application;

[0011] Figure 2 is a schematic diagram of a home all-optical network system provided by an embodiment of the present application;

[0012] Figure 3 It is a flowchart of another network speed measurement method provided in an embodiment of the present application;

[0013] Figure 4 It is a structural schematic diagram of a network speed measurement device according to an embodiment of the present application;

[0014] Figure 5 It is a schematic structural diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0016] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0017] The network speed measurement method, device, electronic device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0018] Figure 1 A network speed measurement method provided by an embodiment of the present invention is shown, and the method can be executed by a first gateway device. In other words, the method can be executed by software or hardware installed in the first gateway device, and the method includes the following steps:

[0019] Step 102: In response to a speed measurement command, initiating a local speed measurement of the first gateway device when a speed measurement interval parameter in the speed measurement command indicates that the first gateway device should perform a local speed measurement.

[0020] Specifically, in a home all-optical network, it can usually include a master gateway device and a slave gateway device. The master gateway device can connect multiple slave gateway devices through optical fiber or Ethernet to form a home all-optical network. The master gateway device is used to provide broadband and other service access functions to the home all-optical network devices and control the downstream devices. The slave gateway devices are controlled by the master gateway. The cloud platform can manage the master gateway devices and slave gateway devices in the home all-optical network through the network management protocol. Figure 2 In the schematic diagram of the home all-optical network system shown, the main gateway device 201 includes a network management interface module and a speed measurement module. The network management interface module is used to parse the speed measurement command issued by the cloud platform 202, and the speed measurement module is used to execute the speed measurement command parsed by the gateway interface module. Similarly, the slave gateway device 203 also includes a network management interface module and a speed measurement module.

[0021] In an embodiment of the present application, the first gateway device can be a master gateway device or a slave gateway device. A user can issue a command to the first gateway device on the cloud platform. After the first gateway device receives the command issued by the cloud platform, it can parse the parameters of the command and determine the type of the command. In the case where the command is a speed measurement command, the first gateway device can respond to the speed measurement command and determine whether the source media access control address (Media Access Control Address, MAC) in the speed measurement command is the MAC address of the first gateway device. In the case where the source MAC address in the speed measurement command is not the MAC address of the first gateway device, the speed measurement process is terminated. In the case where the source MAC address in the speed measurement command is the MAC address of the first gateway device, the first gateway device can obtain the speed measurement interval from the speed measurement interval parameter in the speed measurement command. In the case where the speed measurement interval parameter indicates that the first gateway device is to perform local speed measurement, the speed measurement command will carry the address, port, etc. of the speed measurement server. The first gateway device can initiate a local speed measurement according to the address and port of the speed measurement server, that is, the first gateway device establishes a connection to the speed measurement server to perform speed measurement between the first gateway device and the server.

[0022] Step 104: When the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device, determine the second gateway device according to the speed measurement command, and initiate speed measurement with the second gateway device.

[0023] In the embodiment of the present application, the second gateway device can be a master gateway device or a slave gateway device. It should be noted that in the same speed measurement process, the first gateway device and the second gateway device are not the same gateway device, and there is a communication connection relationship between the first gateway device and the second gateway device, that is, the second gateway device is the uplink / downlink gateway device of the first gateway device.

[0024] As an example, when the first gateway device is a master gateway device, the second gateway device may be a slave gateway device. Similarly, when the first gateway device is a slave gateway device, the second gateway device may be a master gateway device.

[0025] Specifically, when the speed measurement interval parameter indicates that the speed measurement is to be performed between the first gateway device and the second gateway device, the first gateway device can determine the second gateway device according to the speed measurement command, and after determining the second gateway device, initiate the speed measurement with the second gateway device. In addition, the speed measurement command also includes the speed measurement duration. When the speed measurement is performed with the second gateway device, the speed measurement can be performed within the speed measurement duration, and the speed measurement is stopped when the speed measurement duration is reached.

[0026] The network speed measurement method provided by the embodiment of the present invention initiates local speed measurement of the first gateway device in response to a speed measurement command when the speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway device; and determines the second gateway device according to the speed measurement command and initiates speed measurement with the second gateway device when the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device. It can not only perform local speed measurement on the first gateway device, that is, speed measurement between the first gateway device and the speed measurement server, but also perform speed measurement between the first gateway device and the second gateway device, that is, speed measurement between the master gateway device and the slave gateway device. It can accurately determine the rate information of each network segment, realize segmented speed measurement of the all-optical network, and thus obtain more comprehensive all-optical network speed measurement information. In scenarios such as rapid fault location, by performing segmented speed measurement on the user's home all-optical gigabit network, the cause of the fault can be quickly analyzed based on the speed measurement data.

[0027] In one implementation, the initiating speed measurement between the second gateway device and the second gateway device includes:

[0028] According to the speed measurement type parameter in the speed measurement command, the speed measurement type between the second gateway device is determined; and according to the speed measurement type, the speed measurement between the second gateway device is initiated.

[0029] Specifically, when it is determined that the speed measurement interval parameter in the speed measurement command indicates that the speed measurement between the first gateway device and the second gateway device is to be performed, the first gateway device can obtain the speed measurement type parameter in the speed measurement command, and determine the speed measurement type between the first gateway device and the second gateway device according to the speed measurement type parameter. When initiating the speed measurement between the first gateway device and the second gateway device, a speed measurement matching the speed measurement type can be initiated, for example, the speed measurement type can be an uplink speed measurement or a download speed measurement, etc., and the speed measurement type is not specifically limited here.

[0030] In this way, the speed measurement type between the second gateway device is determined according to the speed measurement type parameter in the speed measurement command; according to the speed measurement type, the speed measurement between the second gateway device is initiated, and multiple speed measurement types can be initiated for the second gateway device, thereby ensuring the speed measurement requirements between the first gateway device and the second gateway device.

[0031] In an implementation manner, before initiating a speed test with the second gateway device according to the speed test type, the method further includes:

[0032] A socket connection is established with the second gateway device to perform a Transmission Control Protocol TCP connection or a User Datagram Protocol UDP connection.

[0033] Specifically, when it is determined that the speed measurement interval parameter in the speed measurement command indicates speed measurement between the first gateway device and the second gateway device, and the first gateway device has determined the second gateway device, the first gateway device can establish a socket connection to the second gateway device to establish a Transmission Control Protocol (TCP) protocol connection or a User Datagram Protocol (UDP) protocol connection with the second gateway device.

[0034] In this way, by establishing a socket connection with the second gateway device to perform a Transmission Control Protocol TCP protocol connection or a User Datagram Protocol UDP protocol connection, compatibility between the first gateway device and the second gateway device can be achieved. Speed ​​measurement data can be transmitted between the first gateway device and the second gateway device, thereby achieving speed measurement between the first gateway device and the second gateway device.

[0035] In one implementation, determining the second gateway device according to the speed measurement command includes:

[0036] Determine the target Internet Protocol IP address of the second gateway device according to the target Media Access Control Address MAC parameter in the speed measurement command; and determine the second gateway device according to the target IP address.

[0037] Specifically, the speed test command may include the target MAC parameter of the second gateway device. After receiving the speed test command, the first gateway device may parse the speed test command, obtain the target MAC parameter of the second gateway device from the speed test command, and query the target Internet Protocol (Internet Protocol Address, IP) address of the second gateway device based on the target MAC parameter, determine the second gateway device based on the target IP address, and then initiate a speed test to the second gateway device.

[0038] In this way, the target Internet Protocol IP address of the second gateway device is determined according to the target media access control address MAC parameter in the speed test command; the second gateway device is determined according to the target IP address, and then the second gateway device can be accurately determined to achieve speed measurement between the second gateway device.

[0039] In one implementation, the speed measurement type parameter includes an upload speed measurement parameter, a download speed measurement parameter, an uplink delay speed measurement parameter, and a downlink delay speed measurement parameter, and determining the speed measurement type between the second gateway device and the second gateway device according to the speed measurement type parameter includes:

[0040] When the upload speed measurement parameter is turned on, it is determined that the speed measurement type includes upload speed measurement; when the download speed measurement parameter is turned on, it is determined that the speed measurement type includes download speed measurement; when the uplink delay speed measurement parameter is turned on, it is determined that the speed measurement type includes uplink delay speed measurement; when the downlink delay speed measurement parameter is turned on, it is determined that the speed measurement type includes downlink delay speed measurement.

[0041] Specifically, the speed measurement type parameter may include an upload speed measurement parameter, a download speed measurement parameter, an uplink delay speed measurement parameter, and a downlink delay speed measurement parameter, etc., and the speed measurement type parameter is not specifically limited here. In an embodiment of the present application, after receiving the speed measurement command, the first gateway device may determine the speed measurement type according to whether the upload speed measurement parameter, the download speed measurement parameter, the uplink delay speed measurement parameter, and the downlink delay speed measurement parameter are turned on, that is, when the upload speed measurement parameter is turned on, the speed measurement type is determined to include the upload speed measurement, and the first gateway device can perform data upload speed measurement between the second gateway device. When the download speed measurement parameter is turned on, the speed measurement type is determined to include the download speed measurement, and the first gateway device can perform data download speed measurement between the second gateway device. When the uplink delay speed measurement parameter is turned on, the speed measurement type is determined to include the uplink delay speed measurement, and the first gateway device can perform uplink data delay speed measurement between the second gateway device. When the downlink delay speed measurement parameter is turned on, the speed measurement type is determined to include the downlink delay speed measurement, and the first gateway device can perform downlink data delay speed measurement between the second gateway device.

[0042] It should be understood that when two or more of the upload speed measurement parameters, download speed measurement parameters, uplink delay speed measurement parameters, and downlink delay speed measurement parameters are simultaneously turned on, the speed measurement between the first gateway device and the second gateway device can be performed one by one in the order of the preset speed measurement types. As an example, when the upload speed measurement parameters and the downlink delay speed measurement parameters are simultaneously turned on, the first gateway device can first perform the upload speed measurement between the first gateway device and the second gateway device, and then perform the downlink delay speed measurement between the first gateway device and the second gateway device after completing the upload speed measurement between the first gateway device and the second gateway device.

[0043] In this way, by determining that the speed measurement type includes upload speed measurement when the upload speed measurement parameter is turned on; determining that the speed measurement type includes download speed measurement when the download speed measurement parameter is turned on; determining that the speed measurement type includes uplink delay speed measurement when the uplink delay speed measurement parameter is turned on; and determining that the speed measurement type includes downlink delay speed measurement when the downlink delay speed measurement parameter is turned on, the speed measurement type between the second gateway device can be determined, and then the speed measurement between the first gateway device and the second network device can be performed according to the speed measurement type.

[0044] In one implementation, after responding to the speed measurement command, the method further includes:

[0045] In a case where the speed measurement interval parameter in the speed measurement command is an enumeration value of the speed measurement between the first gateway device and the second gateway device, it is determined that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

[0046] Specifically, before the cloud platform sends the speed measurement command to the first gateway device, it can set the speed measurement interval parameter in the speed measurement command to the speed measurement enumeration value between the first gateway device and the second gateway device. After receiving the speed measurement command, the first gateway device can parse the speed measurement command, and when it is determined that the speed measurement interval parameter in the speed measurement command is the speed measurement enumeration value between the first gateway device and the second gateway device, it can be determined that the speed measurement interval parameter indicates the speed measurement between the first gateway device and the second gateway device, and then the speed measurement between the first gateway device and the second gateway device can be performed according to the speed measurement type.

[0047] In this way, by determining that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device when the speed measurement interval parameter in the speed measurement command is an enumeration value of the speed measurement between the first gateway device and the second gateway device, it can be determined that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device, and then the speed measurement between the first gateway device and the second gateway device can be performed.

[0048] In one implementation, after initiating the speed measurement between the second gateway device, the method further includes:

[0049] The speed test result between the second gateway device is stored; and when an instruction to upload the speed test result is received, the speed test result is uploaded.

[0050] Specifically, after the first gateway device completes the speed test between the first gateway device and the second gateway device, the speed test result can be stored, and can be written into a storage file in the JSON format, wherein the speed test result may include the speed test task identification number, speed test time, uplink speed test status, average upload rate, uplink delay speed test status, uplink delay, uplink jitter, downlink speed test status, average download rate, downlink delay speed test status, downlink delay, downlink jitter, etc. In addition, the speed test command includes the identification number of this speed test task, and the cloud platform may send an instruction to upload the speed test result to the first gateway device, and the instruction to upload the speed test result may include the identification number of the speed test task. After receiving the instruction to upload the speed test result, if the first gateway device determines that the corresponding speed test task is not completed according to the identification number in the instruction to upload the speed test result, the speed test status (not started, speed test in progress, or speed test failure) is uploaded to the cloud platform. If the speed test task has been completed, the speed test result can be returned to the network management interface module and forwarded to the cloud platform through the network management interface module.

[0051] In this way, by storing the speed test results between the second gateway device and uploading the speed test results upon receiving an instruction to upload the speed test results, the cloud platform can obtain more comprehensive speed test information.

[0052] Figure 3 is a flow chart of another network speed measurement method provided by an embodiment of the present application, such as Figure 3 As shown, the network speed measurement method includes the following steps:

[0053] Step 302: The cloud platform issues a speed measurement command.

[0054] Specifically, the cloud platform can send a speed test command to the first gateway device, which may include a command segment identifier, a command index, a speed test interval parameter, a source MAC address, a target MAC address, an upload speed test parameter, a download speed test parameter, an uplink delay speed test parameter, a downlink delay speed test parameter, an uplink speed test server address, a downlink speed test server address, an address of a speed test server, a port of a speed test server, a speed test duration, a speed test task identification number, etc.

[0055] Step 304: Parse the speed measurement command.

[0056] Specifically, after receiving the command sent by the cloud platform, the first gateway device can parse the speed measurement command to determine the type of the command.

[0057] Step 306: Start speed measurement.

[0058] When the first gateway device parses the command sent by the cloud platform and determines that the command is not a speed measurement command, the speed measurement between the first gateway device and the second gateway device can be initiated.

[0059] Step 308: Whether the source MAC address is the MAC address of the first gateway device.

[0060] Specifically, the first gateway device can respond to the speed test command and determine whether the source MAC address in the speed test command is the MAC address of the first gateway device. If the source MAC address in the speed test command is not the MAC address of the first gateway device, execute step 318; if the source MAC address in the speed test command is the MAC address of the first gateway device, execute step 310.

[0061] Step 310: Whether the speed is measured between the first gateway device and the second gateway device.

[0062] The first gateway device can obtain the speed measurement interval from the speed measurement interval parameter in the speed measurement command. In the case where the speed measurement interval parameter does not indicate speed measurement between the first gateway device and the second gateway device, the first gateway device can initiate local speed measurement and execute step 312. In the case where the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device, the first gateway device can determine the second gateway device according to the speed measurement command, and after determining the second gateway device, initiate speed measurement with the second gateway device, i.e. execute step 314.

[0063] Step 312: Initiate local speed measurement.

[0064] Specifically, the first gateway device establishes a connection to the speed test server to perform a local speed test of the first gateway device.

[0065] Step 314: Initiate a speed test to the second gateway device.

[0066] Specifically, the first gateway device obtains the target MAC parameter of the second gateway device from the speed test command, queries the target Internet Protocol (IP) address of the second gateway device according to the target MAC parameter, and determines the second gateway device according to the target IP address.

[0067] After determining the second gateway device, the first gateway device can establish a socket connection with the second gateway device to establish a Transmission Control Protocol TCP protocol connection or a User Datagram Protocol UDP protocol connection. The first gateway device can obtain the speed measurement type parameter in the speed measurement command, and determine the speed measurement type between the first gateway device and the second gateway device according to the speed measurement type parameter, wherein the speed measurement type parameter may include upload speed measurement parameters, download speed measurement parameters, uplink delay speed measurement parameters, downlink delay speed measurement parameters, etc., and the speed measurement type parameter is not specifically limited here.

[0068] In an embodiment of the present application, after receiving the speed measurement command, the first gateway device can determine the speed measurement type according to whether the upload speed measurement parameter, the download speed measurement parameter, the uplink delay speed measurement parameter, and the downlink delay speed measurement parameter are turned on, that is, when the upload speed measurement parameter is turned on, the speed measurement type is determined to include the upload speed measurement, and the first gateway device can perform data upload speed measurement between the second gateway device. When the download speed measurement parameter is turned on, the speed measurement type is determined to include the download speed measurement, and the first gateway device can perform data download speed measurement between the second gateway device. When the uplink delay speed measurement parameter is turned on, the speed measurement type is determined to include the uplink delay speed measurement, and the first gateway device can perform the uplink data delay speed measurement between the second gateway device. When the downlink delay speed measurement parameter is turned on, the speed measurement type is determined to include the downlink delay speed measurement, and the first gateway device can perform the downlink data delay speed measurement between the second gateway device. When initiating the speed measurement with the second gateway device, a speed measurement matching the speed measurement type can be initiated.

[0069] Step 316: Record the speed measurement result.

[0070] Specifically, after completing the speed test between the first gateway device and the second gateway device, the speed test result can be recorded and stored, and can be written into a storage file in JSON format. The speed test result may include the speed test task identification number, speed test time, uplink speed test status, average upload rate, uplink delay speed test status, uplink delay, uplink jitter, downlink speed test status, average download rate, downlink delay speed test status, downlink delay, downlink jitter, etc. When the upload speed test result sent by the cloud platform is received, the speed test result is uploaded to the cloud platform.

[0071] Step 318: End the speed measurement.

[0072] In the embodiments of the present application, not only can the first gateway device be locally speed-measured, that is, the speed measurement between the first gateway device and the speed measurement server, but also the speed measurement between the first gateway device and the second gateway device, that is, the speed measurement between the master gateway device and the slave gateway device, can be performed, thereby realizing the segmented speed measurement of the all-optical network, thereby being able to obtain more comprehensive all-optical network speed measurement information. In scenarios such as rapid fault location, by performing segmented speed measurement on the user's home all-optical gigabit network, the cause of the fault can be quickly analyzed based on the speed measurement data.

[0073] The network speed measurement method provided by the embodiment of the present application is described in detail below through specific embodiments.

[0074] Embodiment 1: Upload speed measurement between a master gateway device and a slave gateway device.

[0075] Step 1: The cloud platform sends an upload speed test command to the master gateway device. The source MAC parameter is filled with the MAC address of the master gateway device, the target MAC parameter is filled with the MAC address of the slave gateway device, the speed test interval parameter is set to the speed test enumeration value between the master gateway device and the slave gateway device, the upload speed test parameter is set to on, the speed test duration parameter is filled with 10 seconds, and the speed test task identification number parameter is filled with the number of this speed test.

[0076] Step 2: The master gateway device receives the upload speed test command from the cloud platform. The speed test module determines that it is the MAC address of this gateway based on the source MAC parameter in the command, and determines that it is the speed test between the master gateway device and the slave gateway device based on the speed test interval parameter in the command. The corresponding slave gateway device is selected according to the target MAC address, and the upload speed test is started based on the parameter of whether the upload speed test is turned on in the command.

[0077] Step 3: The master gateway device initiates a SOCKET connection to the corresponding slave gateway device. After the connection is established, the master gateway device speed measurement module and the slave gateway device speed measurement module negotiate the information related to the interactive speed measurement (bandwidth, communication protocol, number of threads, speed measurement type), and notify the slave gateway device speed measurement module to receive data packets.

[0078] Step 4: The speed measurement module of the master gateway device sends data packets of a specific duration to the slave gateway device according to the information in the interactive protocol and the speed measurement duration parameter in the speed measurement command issued by the cloud platform, and records the number, number of bytes and rate of the sent data packets.

[0079] Step 5: Receive data packets from the speed measurement module of the gateway device, and record the number, number of bytes and rate of received data packets.

[0080] Step 6: The speed measurement module of the master gateway device finishes sending the data message, and sends the number of bytes sent, the number of data packets, and the rate information to the slave gateway device.

[0081] Step 7: The speed measurement module of the slave gateway device checks and analyzes the number of received bytes, the number of data packets, and the rate recorded by the slave gateway device according to the information sent by the master gateway device. The average upload rate is obtained according to the number of received bytes and the speed measurement duration, and the number of packet losses is obtained according to the number of packets sent by the master gateway device and the number of packets received by the slave gateway device. The slave gateway device sends the calculated information back to the master gateway device.

[0082] Step 8: The speed measurement module of the main gateway device writes the information sent from the gateway device and the identification number of this speed measurement task into a file in JSON format.

[0083] Step 9: The cloud platform sends a command to the main gateway device to upload the speed test results, in which the speed test task identification number is filled in with the number of this speed test task.

[0084] Step 10: After the main gateway device receives the speed test result acquisition command from the cloud platform, the speed test module obtains the corresponding speed test information (average upload rate, number of uploaded bytes, total number of uploaded packets, number of uploaded packet losses, etc.) from the speed test file according to the speed test task identification number parameter in the command, and sends it to the cloud platform.

[0085] Embodiment 2: Download speed measurement between a slave gateway device and a master gateway device.

[0086] Step 1: The cloud platform sends a download speed test command to the slave gateway device, where the source MAC parameter is filled with the MAC address of the slave gateway device, the target MAC parameter is filled with the MAC address of the master gateway device, the speed test interval parameter is set to the speed test enumeration value between the slave gateway device and the master gateway device, the parameter for whether the download speed test parameter is turned on is set to on, the speed test duration parameter is filled with 10 seconds, and the speed test task identification number parameter is filled with the number of this speed test.

[0087] Step 2: Receive the download speed test command from the cloud platform from the gateway device. The speed test module determines that it is the MAC address of this gateway based on the source MAC parameter in the command, and determines that it is the speed test between the slave gateway device and the main gateway device based on the speed test interval parameter in the command. The corresponding main gateway device is selected according to the target MAC address, and the download speed test is started based on whether the download speed test parameter in the command is turned on.

[0088] Step 3: Initiate a SOCKET connection from the gateway device to the corresponding main gateway device. After the connection is established, the speed measurement module of the gateway device and the speed measurement module of the main gateway device negotiate the information related to the interactive speed measurement (bandwidth, communication protocol, number of threads, speed measurement type), and notify the speed measurement module of the main gateway device to send a data message.

[0089] Step 4: The speed measurement module of the master gateway device sends data packets of a specific duration to the slave gateway device according to the information in the interactive protocol and the speed measurement duration parameter in the speed measurement command issued by the cloud platform, and records the number, number of bytes and rate of the sent data packets.

[0090] Step 5: Receive data packets from the speed measurement module of the gateway device, and record the number, number of bytes and rate of received data packets.

[0091] Step 6: After receiving the data message from the speed measurement module of the slave gateway device, the number of bytes received, the number of data packets, and the rate information are sent to the master gateway device.

[0092] Step 7: The speed measurement module of the main gateway device compares and analyzes the information sent by the slave gateway device with the number of bytes sent, the number of data packets, and the rate recorded by the main gateway device, obtains the average download rate based on the number of bytes received by the slave gateway device and the speed measurement duration, and obtains the number of packet losses based on the number of packets sent by the main gateway device and the number of packets received by the slave gateway device; the main gateway device sends the calculated information back to the slave gateway device.

[0093] Step 8: The speed measurement module of the slave gateway device writes the information sent by the master gateway device and the identification number of this speed measurement task into a file in JSON format.

[0094] Step 9: The cloud platform sends a command to the gateway device to upload the speed test results, where the speed test task identification number is filled in with the number of this speed test task.

[0095] Step 10: After receiving the upload speed test result command from the cloud platform from the gateway device, the speed test module obtains the corresponding speed test information (average download rate, number of downloaded bytes, total number of downloaded packets, number of downloaded packet losses, etc.) from the speed test file according to the speed test task identification number parameter in the command, and sends it to the cloud platform.

[0096] Embodiment 3: Bidirectional uplink and downlink speed measurement between master and slave gateway devices.

[0097] Embodiment 1 and embodiment 2 are performed serially: the bidirectional speed test between the master and slave gateway devices is performed separately and serially, after the upload speed test is completed, the result is read, and then the download speed test is started.

[0098] Embodiment 4: Uplink delay speed measurement between a master gateway device and a slave gateway device.

[0099] Step 1: The cloud platform sends an uplink delay speed measurement command to the master gateway device, where the source MAC parameter is filled with the MAC address of the master gateway device, the target MAC parameter is filled with the MAC address of the slave gateway device, the speed measurement interval parameter is set to the speed measurement enumeration value between the master gateway device and the slave gateway device, the parameter for whether the uplink delay speed measurement is turned on is set to the on flag, the speed measurement duration parameter is filled with 10 seconds, and the speed measurement task identification number parameter is filled with the number of this speed measurement.

[0100] Step 2: The master gateway device receives the speed measurement command from the cloud platform. The speed measurement module determines that it is the MAC address of the gateway based on the source MAC parameter in the command, determines that it is the speed measurement between the master gateway device and the slave gateway device based on the speed measurement interval parameter in the command, selects the corresponding slave gateway device based on the target MAC address, and determines whether the uplink delay speed measurement parameter in the command is turned on to start the uplink delay speed measurement.

[0101] Step 3: The master gateway device initiates a SOCKET connection to the corresponding slave gateway device. After the connection is established, the master gateway device speed measurement module and the slave gateway device speed measurement module negotiate and exchange information related to uplink delay speed measurement (communication protocol, speed measurement type), and notify the slave gateway device speed measurement module to receive data packets.

[0102] Step 4: The speed measurement module of the master gateway device sends an Internet Control Message Protocol (ICMP) message to the slave gateway device according to the information in the interactive protocol. The message includes the sending time and waits for the ICMP confirmation character (ACK) message.

[0103] Step 5: Receive ICMP message from the speed measurement module of the gateway device and return ACK message.

[0104] Step 6: The speed measurement module of the main gateway device obtains the arrival time of the ICMP ACK message, and subtracts the sending time of the ICMP message from the ACK time of the ICMP message to obtain the uplink delay speed measurement data.

[0105] Step 7: The main gateway device repeats steps 4, 5, and 6 above within the time range according to the speed test duration parameter in the speed test command sent by the cloud platform.

[0106] Step 8: When the speed test is finished, the main gateway device averages the multiple uplink delay speed test data within the time period to obtain the final uplink delay speed test value, and writes the speed test value and the identification number of this speed test task into a file in JSON format.

[0107] Step 9: The cloud platform sends a command to the main gateway device to upload the latency speed test result, where the speed test task identification number is filled in with the number of this speed test task.

[0108] Step 10: After the main gateway device receives the upload delay result command from the cloud platform, the speed measurement module obtains the corresponding uplink delay speed measurement information from the speed measurement file according to the speed measurement task identification number parameter in the command, and sends it to the cloud platform.

[0109] Embodiment 5: Downlink delay speed measurement between a master gateway device and a slave gateway device.

[0110] Step 1: The cloud platform sends a latency speed measurement command to the master gateway device, where the source MAC parameter is filled with the MAC address of the master gateway device, the target MAC parameter is filled with the MAC address of the slave gateway device, the speed measurement interval parameter is set to the speed measurement enumeration value between the master gateway device and the slave gateway device, the parameter for whether the downlink latency speed measurement is turned on is set to the on flag, the speed measurement duration parameter is filled with 10 seconds, and the speed measurement task identification number parameter is filled with the number of this speed measurement.

[0111] Step 2: The master gateway device receives the speed measurement command from the cloud platform. The speed measurement module determines that it is the MAC address of the gateway based on the source MAC parameter in the command, determines that it is the speed measurement between the master gateway device and the slave gateway device based on the speed measurement interval parameter in the command, selects the corresponding slave gateway device based on the target MAC address, and determines whether the downlink delay speed measurement parameter in the command is enabled to start the downlink delay speed measurement.

[0112] Step 3: The master gateway device initiates a SOCKET connection to the corresponding slave gateway device. After the connection is established, the master gateway device speed measurement module and the slave gateway device speed measurement module negotiate and exchange information related to downlink delay speed measurement (communication protocol, speed measurement type), and notify the slave gateway device speed measurement module to send data packets.

[0113] Step 4: The speed measurement module of the slave gateway device sends an ICMP message to the master gateway device according to the information in the interactive protocol. The message includes the sending time and waits for the ICMP ACK message.

[0114] Step 5: The speed measurement module of the main gateway device receives the ICMP message and returns an ACK message.

[0115] Step 6: Obtain the arrival time of the ICMP ACK message from the speed measurement module of the gateway device, and subtract the sending time of the ICMP message from the ACK time of the ICMP message to obtain the downlink delay speed measurement data of this time.

[0116] Step 7: From the gateway device, repeat steps 4, 5, and 6 above within this time range according to the speed test duration parameter in the speed test command sent by the cloud platform.

[0117] Step 8: When the speed test is finished, the slave gateway device averages the multiple downlink delay speed test data within the time period to obtain the final downlink delay speed test value, and sends the speed test value to the master gateway device.

[0118] Step 9: The master gateway device receives the downlink delay speed measurement value sent by the slave gateway device, and writes it into a file in JSON format together with the identification number of this speed measurement task.

[0119] Step 10: The cloud platform sends a command to the main gateway device to obtain the latency speed measurement result, in which the speed measurement task identification number is filled in with the number of this speed measurement task.

[0120] Step 11: After the main gateway device receives the upload delay result command from the cloud platform, the speed measurement module obtains the corresponding downlink delay speed measurement information from the speed measurement file according to the speed measurement task identification number parameter in the command, and sends it to the cloud platform.

[0121] In one implementation, the application scenarios of the embodiments of the present application mainly include two, one is the scenario of service activation of home all-optical gigabit network equipment. After the user purchases the operator's home all-optical gigabit network service package, the operator will be required to provide speed test data of related equipment when the service is activated to prove that it complies with their service package. Another scenario is the operation and maintenance scenario of home all-optical gigabit network equipment. When the operator handles the broadband service failure reported by the user, in order to quickly locate the failure, it is necessary to remotely perform segmented speed measurement on the user's home all-optical gigabit network equipment and analyze the cause of the failure based on the speed measurement data. The network speed measurement method provided by the embodiments of the present application can provide speed measurement data of related equipment at the time of service activation to prove that it complies with its own service package, and in the scenario of rapid fault location, by performing segmented speed measurement on the user's home all-optical gigabit network, the cause of the failure can be quickly analyzed based on the speed measurement data.

[0122] It should be noted that the network speed measurement method provided in the embodiment of the present application can be executed by a network speed measurement device or a control module in the network speed measurement device for executing the network speed measurement method. In the embodiment of the present application, the network speed measurement device provided in the embodiment of the present application is described by taking the network speed measurement device executing the network speed measurement method as an example.

[0123] Figure 4 Schematic diagram of the structure of a network speed measurement device according to an embodiment of the present invention. Figure 4 As shown, the network speed measuring device 400 includes: a first speed measuring module 410 and a second speed measuring module 420 .

[0124] The first speed measurement module 410 is used to respond to a speed measurement command and initiate local speed measurement of the first gateway device when the speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway device; the second speed measurement module 420 is used to determine the second gateway device according to the speed measurement command and initiate speed measurement between the second gateway device and the second gateway device when the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

[0125] In one implementation, the second speed measurement module 420 is used to determine the speed measurement type with the second gateway device according to the speed measurement type parameter in the speed measurement command; and initiate the speed measurement with the second gateway device according to the speed measurement type.

[0126] In one implementation, the second speed measurement module 420 is further configured to establish a socket connection with the second gateway device to perform a Transmission Control Protocol TCP connection or a User Datagram Protocol UDP connection.

[0127] In one implementation, the second speed measurement module 420 is used to determine the target Internet Protocol IP address of the second gateway device according to the target Media Access Control Address MAC parameter in the speed measurement command; and determine the second gateway device according to the target IP address.

[0128] In one implementation, the speed measurement type parameters include upload speed measurement parameters, download speed measurement parameters, uplink delay speed measurement parameters and downlink delay speed measurement parameters. The second speed measurement module 420 is used to determine that the speed measurement type includes upload speed measurement when the upload speed measurement parameter is turned on; determine that the speed measurement type includes download speed measurement when the download speed measurement parameter is turned on; determine that the speed measurement type includes uplink delay speed measurement when the uplink delay speed measurement parameter is turned on; and determine that the speed measurement type includes downlink delay speed measurement when the downlink delay speed measurement parameter is turned on.

[0129] In one implementation, the second speed measurement module 420 is further used to determine that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device when the speed measurement interval parameter in the speed measurement command is an enumeration value of the speed measurement between the first gateway device and the second gateway device.

[0130] In one implementation, the second speed measurement module 420 is further configured to store the speed measurement result between the second gateway device and upload the speed measurement result upon receiving an instruction to upload the speed measurement result.

[0131] The network speed measuring device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0132] The network speed measuring device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0133] The network speed measurement device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0134] Alternatively, if Figure 5 As shown, an embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, wherein the memory 502 stores a program or instruction that can be executed on the processor 501, and the program or instruction is implemented when executed by the processor 501: in response to a speed measurement command, when a speed measurement interval parameter in the speed measurement command indicates local speed measurement of the first gateway device, initiating local speed measurement of the first gateway device; when the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device, determining the second gateway device according to the speed measurement command, and initiating speed measurement between the first gateway device and the second gateway device.

[0135] In one implementation, the speed measurement type between the second gateway device is determined according to the speed measurement type parameter in the speed measurement command; and the speed measurement between the second gateway device is initiated according to the speed measurement type.

[0136] In one implementation, before initiating the speed test with the second gateway device according to the speed test type, a socket connection is established with the second gateway device to perform a Transmission Control Protocol TCP connection or a User Datagram Protocol UDP connection.

[0137] In one implementation, the target Internet Protocol IP address of the second gateway device is determined according to the target Media Access Control Address MAC parameter in the speed measurement command; and the second gateway device is determined according to the target IP address.

[0138] In one implementation, the speed measurement type parameters include an upload speed measurement parameter, a download speed measurement parameter, an uplink delay speed measurement parameter, and a downlink delay speed measurement parameter. When the upload speed measurement parameter is turned on, it is determined that the speed measurement type includes upload speed measurement; when the download speed measurement parameter is turned on, it is determined that the speed measurement type includes download speed measurement; when the uplink delay speed measurement parameter is turned on, it is determined that the speed measurement type includes uplink delay speed measurement; when the downlink delay speed measurement parameter is turned on, it is determined that the speed measurement type includes downlink delay speed measurement.

[0139] In one implementation, after responding to the speed measurement command, when the speed measurement interval parameter in the speed measurement command is an enumeration value of the speed measurement between the first gateway device and the second gateway device, it is determined that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

[0140] In one implementation, after initiating the speed measurement with the second gateway device, the speed measurement result with the second gateway device is stored; and upon receiving an instruction to upload the speed measurement result, the speed measurement result is uploaded.

[0141] The specific execution steps can refer to the various steps of the above-mentioned network speed measurement method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0142] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0143] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0144] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0145] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0146] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned network speed measurement method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0147] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as ROM, RAM, magnetic disk or optical disk.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A network speed measurement method, characterized in that: Applied to a first gateway device, comprising: In response to the speed measurement command, when the speed measurement interval parameter in the speed measurement command indicates that the first gateway device measures the speed locally, initiating the local speed measurement of the first gateway device; In a case where the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device, the second gateway device is determined according to the speed measurement command, and a speed measurement is initiated with the second gateway device.

2. The method according to claim 1, characterized in that: The initiating speed measurement between the second gateway device and the second gateway device includes: Determine the speed measurement type between the second gateway device and the speed measurement command according to the speed measurement type parameter in the speed measurement command; According to the speed measurement type, a speed measurement is initiated with the second gateway device.

3. The method according to claim 2, characterized in that Before initiating a speed test with the second gateway device according to the speed test type, the method further includes: A socket connection is established with the second gateway device to perform a Transmission Control Protocol TCP connection or a User Datagram Protocol UDP connection.

4. The method according to claim 1, characterized in that: The determining the second gateway device according to the speed measurement command includes: Determine a target Internet Protocol IP address of the second gateway device according to a target Media Access Control Address MAC parameter in the speed measurement command; The second gateway device is determined according to the target IP address.

5. The method according to claim 2, characterized in that: The speed measurement type parameter includes an upload speed measurement parameter, a download speed measurement parameter, an uplink delay speed measurement parameter, and a downlink delay speed measurement parameter, and determining the speed measurement type between the second gateway device and the second gateway device according to the speed measurement type parameter includes: When the upload speed measurement parameter is turned on, determining that the speed measurement type includes the upload speed measurement; When the download speed measurement parameter is turned on, determining that the speed measurement type includes download speed measurement; When the uplink delay speed measurement parameter is turned on, determining that the speed measurement type includes uplink delay speed measurement; When the downlink delay speed measurement parameter is turned on, it is determined that the speed measurement type includes downlink delay speed measurement.

6. The method according to claim 1, characterized in that After responding to the speed measurement command, the method further includes: In a case where the speed measurement interval parameter in the speed measurement command is an enumeration value of the speed measurement between the first gateway device and the second gateway device, it is determined that the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

7. The method according to claim 1, characterized in that After the initiating of the speed measurement between the second gateway device and the second gateway device, the method further includes: Storing the speed test result between the second gateway device and the second gateway device; When receiving an instruction to upload the speed measurement result, upload the speed measurement result.

8. A network speed measurement device, characterized in that: Applied to the first gateway device, comprising: A first speed measurement module, configured to, in response to a speed measurement command, initiate a local speed measurement of the first gateway device when a speed measurement interval parameter in the speed measurement command indicates that the first gateway device is to perform a local speed measurement; The second speed measurement module is used to determine the second gateway device according to the speed measurement command and initiate speed measurement between the first gateway device and the second gateway device when the speed measurement interval parameter indicates speed measurement between the first gateway device and the second gateway device.

9. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the network speed measurement method as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the network speed measurement method as described in any one of claims 1-7 are implemented.