Network probing method, apparatus, device, storage medium and program product

By executing network testing tasks in the cloud and analyzing network data in real time, the problem of network testing relying on scripts and environments in existing technologies is solved, and simplified and real-time network quality testing is achieved.

CN119276747BActive Publication Date: 2025-11-21CHINA MOBILE COMM CORP GUANGXI CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411404786.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-11-21
Estimated Expiration
2044-10-09

AI Technical Summary

Technical Problem

In existing technologies, network probing requires pre-configuration of automated test scripts, which increases the complexity of script writing and depends on the usage environment, thus limiting the application of automated scripts.

Method used

By establishing communication between the user terminal and the testing edge node, the testing edge node executes testing tasks in the cloud and obtains and analyzes the execution results in real time, realizing cloud testing, reducing dependence on test scripts and terminal environment, and providing real-time network quality test indicators.

Benefits of technology

It enables real-time network testing without relying on test scripts and terminal environments, simplifying the network testing process and improving convenience and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276747B_ABST
    Figure CN119276747B_ABST
Patent Text Reader

Abstract

The application discloses a network dialing test method and device, equipment, storage medium and program product. It belongs to the technical field of network test. The method comprises the following steps: in response to a communication request of a user terminal, a communication is established with the user terminal according to the communication request, so that the user terminal sends a dialing test task to the dialing test edge node; the dialing test task is received; the dialing test task is executed to obtain an execution result; the execution result is transmitted to the user terminal; in the case that the transmission of the execution result is completed, a transmission data packet is obtained, the transmission data packet is used for representing network data generated in the transmission process of the execution result; and data analysis is performed on the transmission data packet to obtain a network quality test index. According to the embodiment of the application, the network can be conveniently and simply dialing tested.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of network testing, and particularly relates to a network dialing test method, apparatus, device, storage medium, and program product. Background Technology

[0002] With the continuous changes and development of the network environment, users now have increasingly higher requirements for network service quality. In the face of the complexity and diversity of Internet applications and network links, in order to ensure smooth network connections, it is necessary to conduct network testing to evaluate the network and meet users' network needs.

[0003] Currently, network testing is typically performed using automated testing methods. This involves users configuring test parameters on an automated testing platform via a computer, then sending automated scripts to the testing probes for automated data collection. The automated testing platform then collects the test results files from the testing probes, parses and analyzes them, and displays the network quality indicators so that users can view the corresponding network quality metrics.

[0004] However, in the aforementioned technologies, the corresponding automated test scripts need to be pre-configured before network testing, which increases the workload of script writing and configuration. Writing scripts is not only complex, but using automated script testing also depends on the usage environment and is subject to many limitations. Summary of the Invention

[0005] This application provides a network testing method, apparatus, device, computer storage medium, and program product, which can conveniently and easily test the network.

[0006] On one hand, embodiments of this application provide a network dialing test method, the method including:

[0007] In response to a communication request from a user terminal, communication is established with the user terminal according to the communication request, so that the user terminal sends a testing task to the testing edge node;

[0008] Receive the dialing test task;

[0009] Execute the aforementioned test task to obtain the execution result;

[0010] The execution result is transmitted to the user terminal;

[0011] Upon completion of the execution result transmission, a transmission data packet is obtained, which represents network data generated during the transmission of the execution result.

[0012] Data analysis is performed on the transmitted data packets to obtain network quality test indicators.

[0013] Optionally, establishing communication with the user terminal according to the communication request includes:

[0014] Generate a response instruction based on the communication request;

[0015] The response command is sent to the user terminal to enable the probe edge node to establish a WebSocket connection with the user terminal.

[0016] Optionally, the test task includes data-encoded test operation instructions. Before executing the test task to obtain the execution result, the method further includes:

[0017] The data-encoded test operation instructions are decoded to obtain the original test operation instructions;

[0018] The original test operation command is executed to obtain the execution result.

[0019] Optionally, before performing the test task to obtain the result, the method further includes:

[0020] Capture multiple display images, including multiple display screens generated during the execution of the dialing task;

[0021] Store the plurality of display images into a preset image buffer;

[0022] Video encoding is performed on multiple displayed images to obtain video stream data;

[0023] The video stream data is encoded in the preset image buffer to obtain encoded video stream data;

[0024] The execution results include:

[0025] Obtain the encoded video stream data.

[0026] Optionally, the step of performing data analysis on the transmitted data packets to obtain network quality test indicators includes:

[0027] Obtain the application name corresponding to the test task;

[0028] Determine the application process name based on the application name;

[0029] Based on the application process name, query the process identifier information corresponding to the application process name in the preset process database;

[0030] The network port corresponding to the probe task is determined based on the process identification information.

[0031] Based on the network port, the transmission data packets corresponding to the application name are filtered to obtain the application data packets corresponding to the test task;

[0032] The network quality test metrics are obtained by parsing the application data packets.

[0033] On the other hand, embodiments of this application provide a network dialing test method, the method comprising:

[0034] In response to the user's action of opening the test application, a communication request is sent to the test edge node;

[0035] When the user terminal establishes communication with the test edge node, a test task is generated in response to the user's test operation command.

[0036] Send a test task to the test edge node so that the test edge node executes the test task, obtains the execution result, and transmits the execution result;

[0037] Receive the execution result.

[0038] Optionally, establishing communication with the probe edge node includes:

[0039] Receive the response command sent by the edge node being tested;

[0040] A websocket connection is established with the edge node based on the response command.

[0041] Optionally, generating a test task in response to a user's test operation command includes:

[0042] The test operation instructions are initialized with a data format to obtain test operation data information;

[0043] The test operation data information is encoded to obtain the data-encoded test operation instructions.

[0044] Optionally, the execution result includes encoded video stream data, and receiving the execution result includes:

[0045] The encoded video stream data is decoded to obtain multiple display images;

[0046] The multiple display images are displayed so that the user can operate the user terminal to generate a test task again.

[0047] On the other hand, embodiments of this application provide a network dialing test device for dialing edge nodes, the device comprising:

[0048] A communication module is used to respond to a communication request from a user terminal, establish communication with the user terminal according to the communication request, so that the user terminal sends a testing task to the testing edge node;

[0049] A receiving module is used to receive the dialing test task;

[0050] The execution module is used to execute the test task to obtain the execution result;

[0051] The transmission module is used to transmit the execution result to the user terminal;

[0052] The acquisition module is used to acquire a transmission data packet after the execution result transmission is completed, the transmission data packet being used to represent network data generated during the transmission of the execution result;

[0053] The analysis module is used to perform data analysis on the transmitted data packets to obtain network quality test indicators.

[0054] On the other hand, embodiments of this application provide a network dialing test device, applied to a user terminal, the device comprising:

[0055] The response module is used to respond to the user's operation of opening the test application by sending a communication request to the test edge node;

[0056] The generation module is used to generate a test task in response to the user's test operation command when the user terminal establishes communication with the test edge node;

[0057] The sending module is used to send a testing task to the testing edge node, so that the testing edge node executes the testing task, obtains the execution result, and transmits the execution result;

[0058] A receiving module is used to receive the execution result.

[0059] In another aspect, embodiments of this application provide an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0060] When the processor executes the computer program instructions, it implements the network dialing test method as described in the first aspect.

[0061] In another aspect, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the network dialing test method as described in the first aspect.

[0062] In another aspect, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform the network dialing test method as described in the first aspect.

[0063] The network testing method, apparatus, device, and computer storage medium of this application embodiment can, during network testing, first establish communication between the user terminal and the testing edge node. Then, after receiving the testing task transmitted by the user terminal, the testing edge node executes the testing task in the cloud. During the execution of the testing task, the execution result is obtained in real time and sent to the user terminal, realizing cloud testing of the testing edge node. During the execution of the testing task by the testing edge node, the network data packets generated during the transmission of the execution result are analyzed to obtain real-time network quality test indicators. It no longer relies on external factors such as test scripts, test terminals, and user environments, realizing the real-time performance of cloud testing and making network testing more convenient. Compared with the automated network testing in the prior art, it can perform testing in real time, which is more convenient and simple. Attached Figure Description

[0064] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0065] Figure 1 This is a schematic diagram of the structure of a network dialing test system provided in one embodiment of this application;

[0066] Figure 2 This is a flowchart illustrating a network dialing interaction method provided in one embodiment of this application;

[0067] Figure 3 This is a flowchart illustrating a network dialing test method provided in another embodiment of this application;

[0068] Figure 4 This is a flowchart illustrating a network dialing test method provided in another embodiment of this application;

[0069] Figure 5 This is a schematic diagram of the structure of a network dialing test device provided in another embodiment of this application;

[0070] Figure 6 This is a schematic diagram of the structure of a network dialing test device provided in another embodiment of this application;

[0071] Figure 7 This is a schematic diagram of the structure of an electronic device provided in another embodiment of this application. Detailed Implementation

[0072] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0073] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0074] To address the problems of existing technologies, embodiments of this application provide a network dial-up testing method, apparatus, device, storage medium, and program product. During network dial-up testing, communication is first established between the user terminal and the dial-up testing edge node. Then, after receiving the dial-up testing task transmitted from the user terminal, the dial-up testing edge node executes the task in the cloud. During the execution of the dial-up testing task, the execution results are acquired in real time and sent to the user terminal, realizing cloud testing of the dial-up testing edge node. Simultaneously, during the execution of the dial-up testing task at the edge node, network data packets generated during the transmission of execution results are analyzed to obtain real-time network quality test indicators. This eliminates reliance on external factors such as test scripts, test terminals, and user environments, achieving real-time cloud dial-up testing and making network dial-up testing more convenient. Compared to existing automated network dial-up testing technologies, this method enables real-time dial-up testing, making it more convenient and simpler.

[0075] To facilitate understanding of this application, a network dialing test system will be introduced first.

[0076] Reference Figure 1 This application provides a network dialing test system 10, which includes a user terminal 11 and a dialing test edge node 12. The dialing test edge node 12 is deployed in the cloud to run dialing test tasks.

[0077] In one specific embodiment, the testing edge node 12 includes an environment simulator, a testing cloud processing module, and a daemon process management module. The environment simulator is used to simulate the operating environment of the user terminal 11 and execute the software applications on the user terminal 11. The testing cloud management module is used to manage the communication between the user terminal 11 and the testing edge node 12, and to transmit the testing tasks sent by the user terminal 11 to the daemon process management module, so that the daemon process management module controls the environment simulator to execute the testing tasks.

[0078] In this embodiment, taking the Android system as an example, the environment simulator can simulate the running environment of the Android system. The test cloud management module communicates with the user terminal 11 through the Android Debug Bridge (ADB). That is, the test cloud management module deploys an ADB server to realize communication with the user terminal 11. At the same time, it can collect and analyze data from the test edge node 12 during the execution of the test task.

[0079] In one specific embodiment, the user installs a test application on the user terminal 11. This test application can establish communication with the testing edge node 12. When the testing edge node 12 communicates with the user terminal 11, it first controls the testing cloud management module to run an ADB server. At this time, the testing cloud management module binds the ADB server to a local TCP port to listen for commands from the user terminal 11. Then, the user terminal 11 sends a testing task to the ADB server. After receiving the testing task, the ADB server sends it to the daemon process management module. The daemon process management module controls the environment simulator to execute the testing task, obtains the testing results, and then transmits the testing results to the testing cloud management module. Afterward, the testing cloud management module transmits the testing results to the user terminal 11, which displays the testing results for further processing by the user.

[0080] During the execution of the testing task at the edge node, the network data packets generated during the transmission of the execution results are analyzed to obtain real-time network quality test indicators. It no longer relies on external factors such as test scripts, test terminals, and user environments, thus achieving real-time cloud testing and making network testing more convenient. Compared with the automated network testing in existing technologies, it can perform real-time testing more conveniently and simply.

[0081] Reference Figure 2 This application also provides a network dialing test method, applied to a network dialing test system, the method including S201-S2010:

[0082] S201, In response to the user's operation of opening the test application, the user terminal sends a communication request to the test edge node;

[0083] S202, the edge node responds to the communication request from the user terminal and establishes communication with the user terminal according to the communication request;

[0084] S203, when communication is established between the user terminal and the test edge node, a test task is generated in response to the user's test operation command;

[0085] S204, The user terminal sends a testing task to the testing edge node;

[0086] S205, the edge node receives the test task;

[0087] S206, Test the edge node to perform the test task and obtain the execution result;

[0088] S207, the edge node transmits the execution result to the user terminal;

[0089] S208, The user terminal receives the execution result;

[0090] S209, the edge node is tested to obtain the transmission data packet after the execution result transmission is completed;

[0091] S2010 analyzes the transmitted data packets to obtain network quality test indicators.

[0092] In some embodiments, in S201, the user installs a test application on the user terminal. When the user opens the test application on the user terminal, the user terminal sends a communication request to the edge node via the TCP protocol. The test application can be any application that can run on the user terminal and can run on the environment simulator.

[0093] In some embodiments, in S202, the test edge node has a built-in WebSocket port for the test application. The test edge node can create an instance through the WebSocket port to achieve a communication connection with the user terminal.

[0094] WebSocket is a protocol that enables full-duplex communication over a single TCP connection, allowing edge nodes to push information to user terminals, and user terminals to actively send information to edge nodes.

[0095] In some embodiments, in S203, when a user performs network dialing tests through a user terminal, the user first performs operations on the test application through the screen displayed on the user terminal, such as mouse clicks, keyboard input, or screen swiping. At this time, the user terminal generates dialing test tasks based on these test operations, and the test application on the user terminal sends these dialing test tasks to the dialing edge node through the WebSocket port.

[0096] In some embodiments, in S206, the edge node for testing may include an environment simulator, a testing cloud processing module, and a daemon process management module. The testing cloud processing module receives the testing task and sends it to the daemon process management module. The daemon process management module executes the testing task. Meanwhile, the environment simulator simulates the execution of the testing task and generates the execution result.

[0097] In some embodiments, in S207, the test cloud processing module obtains the execution result and sends the execution result to the user terminal through the WebSocket port. As an example, the execution result may be a video file package of the environment simulator during the execution of the test task.

[0098] In some embodiments, in S209, after the edge node sends the execution result to the user terminal, the cloud processing module monitors the data of the execution result in real time during the transmission process and obtains the transmission data packet. As an example, the transmission data packet can be used to represent the network data generated during the transmission of the execution result.

[0099] In the already written embodiment, in S2010, the test cloud processing module can perform data analysis on the transmitted data packets to obtain the transmitted data packets corresponding to the test application. Based on the transmitted data packets, data analysis is performed to obtain network quality test indicators.

[0100] During network testing, communication is first established between the user terminal and the testing edge node. After receiving the testing task transmitted by the user terminal, the testing edge node executes the testing task in the cloud. During the execution of the testing task, the execution results are obtained in real time and sent to the user terminal, realizing cloud testing of the testing edge node. During the execution of the testing task by the testing edge node, the network data packets generated during the transmission of the execution results are analyzed to obtain real-time network quality test indicators. It no longer depends on external factors such as test scripts, test terminals, and user environments, realizing the real-time performance of cloud testing and making network testing more convenient. Compared with the automated network testing in existing technologies, it can perform real-time testing more conveniently and simply.

[0101] To better understand the solution, the network dialing test method provided in the embodiments of this application is described below.

[0102] Figure 3 A flowchart illustrating a network dialing test method according to an embodiment of this application is shown. Figure 1 As shown, the network dialing test method is applied to dialing edge nodes, and the network dialing test method may include S301-S306:

[0103] S301, in response to a communication request from a user terminal, establishes communication with the user terminal according to the communication request, so that the user terminal sends a testing task to the testing edge node.

[0104] In this embodiment of the application, when performing network dialing tests, since cloud-based network dialing tests are used, it is necessary to establish communication between the user terminal and the dialing edge node so that the dialing edge node can receive the dialing test task. At this time, in order to ensure full-duplex communication and enable real-time and fast transmission of dialing test tasks, S301 may include:

[0105] Generate response instructions based on communication requests;

[0106] Send a response command to the user terminal to enable the edge node to establish a WebSocket connection with the user terminal.

[0107] In this embodiment, when establishing communication, the testing edge node creates a WebSocket port in the testing cloud processing module. This port can monitor multiple events of the test application on the user terminal in real time, such as when the connection is opened, when a message is received, when an error occurs, and when the connection is closed. Then, the testing cloud processing module generates a response instruction based on the communication request. If the testing cloud processing module agrees to establish communication with the user terminal, it will send the response to the user terminal to realize the handshake between the user terminal and the testing edge node. The response instruction may include a confirmation message of successful connection. When the user terminal and the testing edge node successfully handshake, it means that the user terminal and the testing edge node have established communication.

[0108] It is worth noting that after the user terminal establishes communication with the edge node, either the user terminal or the edge node can initiate the operation of closing the connection. That is, either party sends a close frame, and the other party, after receiving the close frame, can send back a close frame to confirm that the communication connection is closed.

[0109] S302, receive test call task.

[0110] In this embodiment, after the user terminal establishes communication with the edge node for testing, the user will perform a test operation on the user terminal. At this time, the user terminal will generate a testing task based on the test operation. That is, the user terminal will encode the test operation to obtain the data-encoded test operation instruction, i.e., the testing task.

[0111] The edge node can receive test tasks via a communication connection and execute the test tasks on the edge node.

[0112] In one specific embodiment, after receiving the testing task, the testing cloud processing module in the testing edge node forwards the testing task to the daemon process management module so that the daemon process management module can execute the testing task.

[0113] S303, execute the test task to obtain the execution result.

[0114] In this embodiment, after the testing edge node receives the testing task, the daemon process management module in the testing edge node will execute the application process corresponding to the testing task in the testing edge node. At the same time, the environment simulator in the testing edge node will continuously simulate the application environment of the testing task according to the execution process of the daemon process management module, so as to realize the normal operation of the test application in the cloud environment.

[0115] In some other embodiments, prior to S303, the method may further include:

[0116] Decode the encoded test operation instructions to obtain the original test operation instructions;

[0117] Execute the original test operation command and obtain the execution result.

[0118] In this embodiment, when the user terminal transmits the test task, in order to simplify the data transmission of the test task, the test operation instructions are encoded, that is, the test operation instructions are converted into binary encoded data to reduce the size of the transmitted data packet and facilitate better data transmission. Therefore, in order to accurately obtain the test operation, it is necessary to decode the data-encoded test operation instructions to obtain the original test operation instructions, that is, to restore the test operation instructions, so that the daemon process management module can better execute the test operation instructions and obtain more accurate execution results.

[0119] In some other embodiments, prior to step 303, the method may further include:

[0120] Capture multiple display images;

[0121] Store multiple display images into a preset image buffer;

[0122] Multiple displayed images are video encoded to obtain video stream data;

[0123] The video stream data is encoded in a preset image buffer to obtain the encoded video stream data;

[0124] The execution results include:

[0125] Obtain the encoded video stream data.

[0126] In this embodiment, before obtaining the execution result, since the test application runs on the edge node of the network test and does not run locally on the user terminal, in order to facilitate the user to continue to issue the next test operation command according to the input test operation command, it is also necessary to send multiple display images generated in the environment simulator during the execution of the test operation command to the user terminal so that the user can continue to perform network testing through the user terminal.

[0127] In some embodiments, when sending multiple display images to a user terminal, the environment simulator first captures multiple display images. These multiple display images may include multiple display screens generated by the environment simulator during the execution of the test task by the daemon process management module. Then, the test cloud management module can provide an image caching module and a frame caching module in the hardware abstraction layer of the local server to cache images and videos.

[0128] At this point, after the environment simulator captures multiple display images, it stores these images in a preset image buffer, i.e., the image cache module. Then, it performs video encoding on the multiple display images to obtain video stream data. Finally, it renders the video stream data and caches it in the frame buffer area so that the dial-up cloud processing module can more easily obtain the encoded video stream data.

[0129] S304 transmits the execution result to the user terminal.

[0130] In this embodiment of the application, when transmitting the execution result, since multiple display images have been rendered into video stream data, the amount of data in the execution result can be reduced, making it more convenient and faster to transmit the execution result.

[0131] In one specific embodiment, the encoded video stream data can be transmitted to the user terminal via a WebSocket port. On the user terminal, the encoded video stream data can be decoded so that the user can see the process of simulating the execution of test operation commands in the environment simulator.

[0132] In other embodiments, in order to achieve efficient data transmission, optimization techniques such as real-time compression, data buffering, and error recovery can be employed to ensure the accuracy of data transmission.

[0133] S305: If the execution result transmission is complete, obtain the transmission data packet.

[0134] In this embodiment, since the test task is executed in the cloud, the WebSocket port generates other data besides the network data of the test application in the environment simulator, such as data packets for communication or signal transmission. It is not simply the data packets corresponding to the execution results of the test application in the environment simulator. Therefore, when conducting test service testing, since there are multiple test applications on the environment simulator, and multiple test applications may transmit data through a single WebSocket port, in order to accurately analyze the test task corresponding to the test application, it is necessary to obtain the application name corresponding to the test task, then determine the application process name based on the application name, determine the network port of the test application based on the application process name, and then filter the application data packets corresponding to the test application through the network port to obtain network quality test indicators.

[0135] As an example, a data packet is used to represent network data generated during the transmission of execution results;

[0136] S306 performs data analysis on transmitted data packets to obtain network quality test indicators.

[0137] In some embodiments, S306 may include:

[0138] Get the application name corresponding to the test task;

[0139] Determine the application process name based on the application name;

[0140] Based on the application process name, query the process identifier information corresponding to the application process name in the preset process database;

[0141] Determine the network port corresponding to the test task based on the process identifier information;

[0142] Based on the network port, the transmission data packets corresponding to the application name are filtered to obtain the application data packets corresponding to the test task;

[0143] The network quality test metrics are obtained by parsing the application data packets.

[0144] In some embodiments, determining the application process name based on the application name can be achieved by using the winreg library in Python to query the application registration information by the application name.

[0145] In some embodiments, the process identification information can be determined by the application process name using the psutil library in Python, and then the network port can be determined by traversing the process identification information.

[0146] In some embodiments, when filtering transmitted data packets, a packet capture tool can be used to capture the transmitted data packets and then filter them by application process name to obtain the application data packets.

[0147] In some embodiments, network quality test metrics may include interaction latency. During the parsing of test metrics, the protocol in the application data packet can be parsed to obtain the transmission protocol of the application data packet. At the same time, there are sending and receiving times in the application data packet. The interaction latency can be calculated by the sending and receiving times to complete the network dialing test.

[0148] In some other embodiments, after obtaining the network quality test indicators, the network test indicators can also be sent to the user terminal through the WebSocket port so that the user terminal can display the test results, thereby enabling the user to understand the test results more intuitively and conveniently.

[0149] During network testing, communication is first established between the user terminal and the testing edge node. After receiving the testing task transmitted by the user terminal, the testing edge node executes the testing task in the cloud. During the execution of the testing task, the execution results are obtained in real time and sent to the user terminal, realizing cloud testing of the testing edge node. During the execution of the testing task by the testing edge node, the network data packets generated during the transmission of the execution results are analyzed to obtain real-time network quality test indicators. It no longer depends on external factors such as test scripts, test terminals, and user environments, realizing the real-time performance of cloud testing and making network testing more convenient. Compared with the automated network testing in existing technologies, it can perform real-time testing more conveniently and simply.

[0150] See Figure 4 This application also provides a network dialing test method, applied to a user terminal, which may include S401-S404:

[0151] S401, in response to the user's operation of opening the test application, sends a communication request to the test edge node.

[0152] In this embodiment, when a user performs a dial-up test through a user terminal, a test application can be pre-installed on the user terminal. When the user opens the test application, the user terminal first sends a communication request to the dial-up edge node according to the TCP protocol to establish communication and complete the subsequent dial-up test.

[0153] S402, when communication is established between the user terminal and the test edge node, generates a test task in response to the user's test operation command.

[0154] In this embodiment, establishing communication with the edge node can include:

[0155] Receive response commands sent by the edge nodes;

[0156] A websocket connection is established with the edge node based on the response command.

[0157] In this embodiment, during the process of establishing communication between the user terminal and the edge node, a handshake can be completed by receiving the corresponding instructions sent by the edge node, and then a WebSocket connection can be established with the edge node based on the response instructions to complete full-duplex communication and realize full-duplex communication between the user terminal and the edge node.

[0158] After the user terminal establishes communication with the edge node, the user can perform test operations by clicking the test button on the test application to generate a test task for convenient test execution.

[0159] In some embodiments, S402 may further include:

[0160] Initialize the data format of the test operation instructions to obtain the test operation data information;

[0161] The test operation data is encoded to obtain the encoded test operation instructions.

[0162] In this embodiment, after the user terminal detects the user's test operation, the user summary sheet initializes the test operation instruction with data, that is, it encodes the input time into a specific format so that it can be transmitted to the test edge node through the network.

[0163] As an example, test operation commands can be mouse clicks or keyboard input.

[0164] S403, send a test task to the test edge node so that the test edge node can execute the test task, obtain the execution result, and transmit the execution result.

[0165] In this embodiment, after receiving the test operation instruction, in order to better simulate the environment in the simulator, a test task needs to be sent to the test edge node. Then, the test edge node can perform environment simulation in the cloud, realize cloud test, and complete network test.

[0166] S404, Receive execution result.

[0167] In this embodiment, the execution result may include encoded video stream data, and S404 may include:

[0168] The encoded video stream data is decoded to obtain multiple display images;

[0169] Multiple images are displayed so that the user can operate the user terminal to generate a test task again.

[0170] In some embodiments, after the testing edge node performs a testing task, in order to facilitate continuous real-time testing by the user, the testing edge node can perform video encoding on the process of performing the testing task and the final simulation result, resulting in encoded video stream data. Then, the user terminal decodes the encoded video stream data to obtain multiple display images, which are then displayed on the user terminal's display screen to facilitate subsequent testing operations by the user and to generate testing tasks again.

[0171] In other embodiments, the edge node can send the measured network quality indicators and execution results to the user terminal for display.

[0172] Reference Figure 5 This application embodiment also provides a network dialing test device 500 applied to dialing test edge nodes, the device 500 including:

[0173] The communication module 501 is used to respond to the communication request of the user terminal, establish communication with the user terminal according to the communication request, so that the user terminal sends the testing task to the testing edge node.

[0174] Receiver module 502 is used to receive test tasks;

[0175] Execution module 503 is used to execute the test task to obtain the execution result;

[0176] Transmission module 504 is used to transmit execution results to the user terminal;

[0177] The acquisition module 505 is used to acquire the transmission data packet after the execution result transmission is completed. The transmission data packet is used to represent the network data generated during the transmission of the execution result.

[0178] Analysis module 506 is used to perform data analysis on transmitted data packets to obtain network quality test indicators.

[0179] As an optional implementation, the communication module 501 can also be used for:

[0180] Generate response instructions based on communication requests;

[0181] Send a response command to the user terminal to enable the edge node to establish a WebSocket connection with the user terminal.

[0182] As an optional implementation, the probing task includes data-encoded test operation instructions, and the execution module 503 can also be used for:

[0183] Decode the encoded test operation instructions to obtain the original test operation instructions;

[0184] Execute the original test operation command and obtain the execution result.

[0185] As an optional implementation, the execution module 503 can also be used for:

[0186] Capture multiple display images, including multiple display screens generated during the execution of the probing task;

[0187] Store multiple display images into a preset image buffer;

[0188] Multiple displayed images are video encoded to obtain video stream data;

[0189] The video stream data is encoded in a preset image buffer to obtain the encoded video stream data;

[0190] The execution results include:

[0191] Obtain the encoded video stream data.

[0192] As an optional implementation, the analysis module 506 can also be used for:

[0193] Get the application name corresponding to the test task;

[0194] Determine the application process name based on the application name;

[0195] Based on the application process name, query the process identifier information corresponding to the application process name in the preset process database;

[0196] Determine the network port corresponding to the test task based on the process identifier information;

[0197] Based on the network port, the transmission data packets corresponding to the application name are filtered to obtain the application data packets corresponding to the test task;

[0198] The network quality test metrics are obtained by parsing the application data packets.

[0199] Reference Figure 6 This application also provides a network dialing test device 600 for a user terminal. The device 600 may include:

[0200] The response module 601 is used to send a communication request to the test edge node in response to the user's operation of opening the test application;

[0201] The generation module 602 is used to generate a test task in response to the user's test operation command when communication is established between the user terminal and the test edge node.

[0202] The sending module 603 is used to send a testing task to the testing edge node so that the testing edge node can execute the testing task, obtain the execution result, and transmit the execution result;

[0203] The receiving module 604 is used to receive the execution result.

[0204] As an optional implementation, the generation module 602 can also be used for:

[0205] Receive response commands sent by the edge nodes;

[0206] A websocket connection is established with the edge node based on the response command.

[0207] As an optional implementation, the generation module 602 can also be used for:

[0208] Initialize the data format of the test operation instructions to obtain the test operation data information;

[0209] The test operation data is encoded to obtain the encoded test operation instructions.

[0210] As an optional implementation, the receiving module 604 can also be used for:

[0211] The encoded video stream data is decoded to obtain multiple display images;

[0212] Multiple images are displayed so that the user can operate the user terminal to generate a test task again.

[0213] Figure 7 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.

[0214] An electronic device may include a processor 701 and a memory 702 storing computer program instructions.

[0215] Specifically, the processor 701 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0216] Memory 702 may include mass storage for data or instructions. For example, and not limitingly, memory 702 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. In one instance, memory 702 may include removable or non-removable (or fixed) media, or memory 702 may be non-volatile solid-state memory. Memory 702 may be internal or external to the integrated gateway disaster recovery device.

[0217] In one instance, memory 702 may be read-only memory (ROM). In one instance, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0218] Memory 702 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the network dialing method according to the first aspect of this disclosure.

[0219] The processor 701 reads and executes computer program instructions stored in the memory 702 to achieve... Figure 1 A network dialing test method is shown in the embodiment.

[0220] In one example, the electronic device may also include a communication interface 703 and a bus 704. Wherein, as... Figure 7 As shown, the processor 701, memory 702, and communication interface 703 are connected through bus 704 and complete communication with each other.

[0221] The communication interface 703 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0222] Bus 704 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 704 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0223] The electronic device can execute the network dialing test method in the embodiments of this application, thereby achieving a combination Figures 1-6 The network dialing test method and apparatus are described.

[0224] Furthermore, in conjunction with the network dialing method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the video query methods in the above embodiments.

[0225] In an optional embodiment, in conjunction with the network dialing test method in the above embodiments, this application embodiment can provide a computer program product to implement it. The instructions in the computer program product are executed by the processor of the electronic device, enabling the electronic device to implement any of the video query methods in the above embodiments.

[0226] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0227] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0228] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0229] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0230] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A network dialing test method, characterized in that, The method, applied to edge node probing, includes: In response to a communication request from a user terminal, communication is established with the user terminal according to the communication request, so that the user terminal sends a testing task to the testing edge node; Receive the dialing test task; Execute the aforementioned test task to obtain the execution result; The execution result is transmitted to the user terminal; Upon completion of the execution result transmission, a transmission data packet is obtained, which represents network data generated during the transmission of the execution result. Data analysis is performed on the transmitted data packets to obtain network quality test indicators.

2. The method according to claim 1, characterized in that, Establishing communication with the user terminal according to the communication request includes: Generate a response instruction based on the communication request; The response command is sent to the user terminal to enable the probe edge node to establish a WebSocket connection with the user terminal.

3. The method according to claim 1, characterized in that, The test task includes data-encoded test operation instructions. Before executing the test task to obtain the execution result, the method further includes: The data-encoded test operation instructions are decoded to obtain the original test operation instructions; The original test operation command is executed to obtain the execution result.

4. The method according to claim 1, characterized in that, Before performing the test task to obtain the result, the method further includes: Capture multiple display images, including multiple display screens generated during the execution of the dialing task; Store the plurality of display images into a preset image buffer; Video encoding is performed on multiple displayed images to obtain video stream data; The video stream data is encoded in the preset image buffer to obtain encoded video stream data; The execution results include: Obtain the encoded video stream data.

5. The method according to claim 1, characterized in that, The process of analyzing the transmitted data packets to obtain network quality test indicators includes: Obtain the application name corresponding to the test task; Determine the application process name based on the application name; Based on the application process name, query the process identifier information corresponding to the application process name in the preset process database; The network port corresponding to the probe task is determined based on the process identification information. Based on the network port, the transmission data packets corresponding to the application name are filtered to obtain the application data packets corresponding to the test task; The network quality test metrics are obtained by parsing the application data packets.

6. A network dialing test method, characterized in that, Applied to a user terminal, the method includes: In response to the user's action of opening the test application, a communication request is sent to the test edge node; When the user terminal establishes communication with the test edge node, a test task is generated in response to the user's test operation command. Send a test task to the test edge node so that the test edge node executes the test task, obtains the execution result, and transmits the execution result; Receive the execution result.

7. The method according to claim 6, characterized in that, Establishing communication with the probe edge node includes: Receive the response command sent by the edge node being tested; A websocket connection is established with the edge node based on the response command.

8. The method according to claim 6, characterized in that, The process of generating a test task in response to a user's test operation command includes: The test operation instructions are initialized with a data format to obtain test operation data information; The test operation data information is encoded to obtain the data-encoded test operation instructions.

9. The method according to claim 6, characterized in that, The execution result includes encoded video stream data, and receiving the execution result includes: The encoded video stream data is decoded to obtain multiple display images; The multiple display images are displayed so that the user can operate the user terminal to generate a test task again.

10. A network dialing test device, characterized in that, The device, used for probing edge nodes, includes: A communication module is used to respond to a communication request from a user terminal, establish communication with the user terminal according to the communication request, so that the user terminal sends a testing task to the testing edge node; A receiving module is used to receive the dialing test task; The execution module is used to execute the test task to obtain the execution result; The transmission module is used to transmit the execution result to the user terminal; The acquisition module is used to acquire a transmission data packet after the execution result transmission is completed, the transmission data packet being used to represent network data generated during the transmission of the execution result; The analysis module is used to perform data analysis on the transmitted data packets to obtain network quality test indicators.

11. A network dialing test device, characterized in that, The device, applied to a user terminal, includes: The response module is used to respond to the user's operation of opening the test application by sending a communication request to the test edge node; The generation module is used to generate a test task in response to the user's test operation command when the user terminal establishes communication with the test edge node; The sending module is used to send a testing task to the testing edge node, so that the testing edge node executes the testing task, obtains the execution result, and transmits the execution result; A receiving module is used to receive the execution result.

12. A network dialing test system, characterized in that, The system includes a probe edge node and a user terminal that is communicatively connected to the probe edge node; The probe edge node is used to perform the network probe method as described in any one of claims 1-5; The user terminal is used to perform the network dialing test method as described in any one of claims 6-9.

13. The system according to claim 12, characterized in that, The user terminal establishes a communication connection with the edge node via WebSocket.

14. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program, it implements the network dialing test method as described in any one of claims 1-9.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the network dialing test method as described in any one of claims 1-9.

16. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the network dialing test method as described in any one of claims 1-9.

Citation Information

Patent Citations

  • Network detection method and device, test host and storage medium

    CN112202643A

  • Business quality measurement method and device, equipment and storage medium

    CN112383447A