Network dial testing method and device, equipment, storage medium and program product

By establishing communication with the dialing edge node at the user terminal, the dialing edge node performs dialing tasks in the cloud, solving the problem of network dialing dependence scripts and environment in the existing technology, real-time and convenient network quality testing is achieved.

CN119276747AActive Publication Date: 2025-01-07CHINA MOBILE COMM CORP GUANGXI CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing network dial-test technology requires pre-configuration of automated test scripts, which increases the workload of script writing and configuration, and depends on the usage environment, limiting the convenience and real-timeness of testing.

Method used

By establishing communication with the dialing edge node at the user terminal, the dialing edge node performs dialing tasks in the cloud, obtains and analyzes execution results in real time, provides real-time network quality testing indicators, and reduces dependence on test scripts and usage environments.

Benefits of technology

It realizes a more convenient and simple network dialing, improves the real-time and convenience of dialing, reduces the dependence on external factors, and improves the efficiency of network dialing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276747A_ABST
    Figure CN119276747A_ABST
Patent Text Reader

Abstract

The invention discloses a network dial testing method and device, equipment, a storage medium and a program product. Belongs to the technical field of network testing, and comprises the following steps: in response to a communication request of a user terminal, establishing communication with the user terminal according to the communication request, so that the user terminal sends a dial testing task to a dial testing edge node; receiving the dial test task; executing the dial test task to obtain an execution result; transmitting the execution result to the user terminal; under the condition that transmission of the execution result is completed, a transmission data packet is obtained, and the transmission data packet is used for representing network data generated in the transmission process of the execution result; and performing data analysis on the transmission data packet to obtain a network quality test index. According to the embodiment of the invention, dial testing can be conveniently and simply carried out on the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of network testing, and in particular, relates to a network dialing testing method, device, equipment, storage medium and program product. Background Art

[0002] With the continuous changes and development of the network environment, users are now placing higher and higher demands on the quality of network services. Faced with the complexity and diversity of Internet applications and network links, in order to ensure smooth network connections, it is necessary to perform network dialing tests to evaluate the network and meet users' needs for network use.

[0003] Currently, network dial-up testing is usually implemented by automated dial-up testing, that is, users configure test parameters on the automated testing platform through computers, and then send them to the dial-up testing probes through automated scripts to achieve automated collection. After that, the automated testing platform collects the result files after the dial-up testing probes are tested, and parses, analyzes and displays the network quality indicators so that users can view the corresponding network quality indicators.

[0004] However, in the above-mentioned related technologies, before conducting network dialing test, the corresponding automated test scripts must be pre-configured, which increases the workload of script writing and configuration. Writing scripts is not only complicated, but also the use of automated script testing depends on the use environment and is subject to many restrictions. Summary of the invention

[0005] The embodiments of the present application provide a network dialing test method, apparatus, device, computer storage medium, and program product, which can conveniently and easily perform network dialing test.

[0006] On the one hand, an embodiment of the present application provides a network dialing method, the method comprising:

[0007] In response to a communication request of a user terminal, establishing communication with the user terminal according to the communication request, so that the user terminal sends a dialing task to the dialing edge node;

[0008] receiving the dialing test task;

[0009] Execute the dialing task to obtain an execution result;

[0010] Transmitting the execution result to the user terminal;

[0011] When the transmission of the execution result is completed, obtaining a transmission data packet, wherein the transmission data packet is used to represent network data generated during the transmission of the execution result;

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

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

[0014] generating a response instruction according to the communication request;

[0015] The response instruction is sent to the user terminal so that the dialing edge node establishes a websocket connection with the user terminal.

[0016] Optionally, the dial test task includes a test operation instruction after data encoding, and before executing the dial test task to obtain an execution result, the method further includes:

[0017] Decoding the test operation instruction after the data encoding to obtain the original test operation instruction;

[0018] Execute the original test operation instruction to obtain the execution result.

[0019] Optionally, before executing the dialing task to obtain an execution result, the method further includes:

[0020] capturing a plurality of display images, wherein the plurality of display images include a plurality of display screens generated during the execution of the dialing task;

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

[0022] Performing video encoding on the plurality of display images to obtain video stream data;

[0023] In the preset image buffer area, encoding the video stream data to obtain encoded video stream data;

[0024] The execution results include:

[0025] Get the encoded video stream data.

[0026] Optionally, the performing data analysis on the transmission data packet to obtain a network quality test indicator includes:

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

[0028] Determine the application process name according to the application name;

[0029] Based on the application process name, querying a preset process library for process identification information corresponding to the application process name;

[0030] Determine the network port corresponding to the dialing task according to the process identification information;

[0031] Filter the transmission data packet corresponding to the application name based on the network port to obtain the application data packet corresponding to the dial test task;

[0032] The test index of the application data packet is parsed to obtain a network quality test index.

[0033] On the other hand, an embodiment of the present application provides a network dialing method, the method comprising:

[0034] In response to the user's operation of opening the test application, sending a communication request to the dial-test edge node;

[0035] In the case where the user terminal establishes communication with the dialing edge node, generating a dialing task in response to a test operation instruction of the user;

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

[0037] The execution result is received.

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

[0039] Receiving a response instruction sent by the dial-test edge node;

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

[0041] Optionally, generating a dial test task in response to a user test operation instruction of a user includes:

[0042] Initializing the data format of the test operation instruction to obtain test operation data information;

[0043] The test operation data information is encoded to obtain a test operation instruction after data encoding.

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

[0045] Decoding the encoded video stream data to obtain multiple display images;

[0046] The multiple display images are displayed so that the user operates the user terminal to generate the dialing task again.

[0047] On the other hand, an embodiment of the present application provides a network dialing device, which is applied to dialing an edge node, and the device includes:

[0048] A communication module, configured to respond to a communication request of a user terminal and establish communication with the user terminal according to the communication request, so that the user terminal sends a dialing task to the dialing edge node;

[0049] A receiving module, used for receiving the dialing test task;

[0050] An execution module, used for executing the dialing task to obtain an execution result;

[0051] A transmission module, used for transmitting the execution result to the user terminal;

[0052] An acquisition module, used for acquiring a transmission data packet when the transmission of the execution result is completed, wherein the transmission data packet is used for representing the network data generated during the transmission of the execution result;

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

[0054] On the other hand, an embodiment of the present application provides a network dialing device, which is applied to a user terminal, and the device includes:

[0055] A response module, configured to send a communication request to a dial-test edge node in response to a user's operation of opening a test application;

[0056] A generating module, configured to generate a dialing test task in response to a test operation instruction of a user when the user terminal establishes communication with the dialing test edge node;

[0057] A sending module, used for sending a dialing test task to the dialing test edge node, so that the dialing test edge node executes the dialing test task, obtains an execution result, and transmits the execution result;

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

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

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

[0061] On the other hand, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the network dialing method described in the first aspect is implemented.

[0062] On the other hand, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network dialing method as described in the first aspect.

[0063] The network dialing test method, apparatus, device and computer storage medium of the embodiments of the present application can, when performing network dialing test, first establish communication between the user terminal and the dialing test edge node, and then, after receiving the dialing test task transmitted by the user terminal, the dialing test edge node executes the dialing test task in the cloud, and in the process of executing the dialing test task, obtains the execution result in real time, and sends the execution result to the user terminal, so as to realize cloud testing of the dialing test edge node. In the process of executing the dialing test task by the dialing test edge node, the network data packets generated in the transmission process of the execution result are analyzed to obtain real-time network quality test indicators, and no longer rely on external factors such as test scripts, test terminals, and user environments, so as to realize the real-time nature of cloud dialing test and more convenient network dialing test. Compared with the automatic network dialing in the prior art, it is more convenient and simple to perform dialing test in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0065] Figure 1 It is a structural diagram of a network dial testing system provided by an embodiment of the present application;

[0066] Figure 2 It is a flowchart of a network dialing interaction method provided by an embodiment of the present application;

[0067] Figure 3 is a flowchart of a network dialing method provided by another embodiment of the present application;

[0068] Figure 4 is a flowchart of a network dialing method provided by another embodiment of the present application;

[0069] Figure 5 is a structural diagram of a network dialing device provided by another embodiment of the present application;

[0070] Figure 6 is a structural diagram of a network dialing device provided by another embodiment of the present application;

[0071] Figure 7 It is a structural diagram of an electronic device provided by yet another embodiment of the present application. DETAILED DESCRIPTION

[0072] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0073] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also 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 statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0074] In order to solve the problems of the prior art, the embodiments of the present application provide a network dialing test method, device, equipment, storage medium and program product. When performing network dialing test, firstly establish communication between the user terminal and the dialing test edge node, and then the dialing test edge node executes the dialing test task in the cloud after receiving the dialing test task transmitted by the user terminal. In the process of executing the dialing test task, the execution result is obtained in real time, and the execution result is sent to the user terminal to realize the cloud test of the dialing test edge node. In the process of the dialing test edge node executing the dialing test task, the network data packets generated during the transmission of the execution result are analyzed to obtain real-time network quality test indicators, no longer relying on external factors such as test scripts, test terminals, and user environments, and realizing the real-time nature of cloud dialing test, more convenient network dialing, compared with the automated network dialing in the prior art, it is more convenient and simple to perform dialing test in real time.

[0075] To facilitate understanding of the present application, a network dialing test system is first introduced.

[0076] Reference Figure 1 The embodiment of the present 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 a dialing test task.

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

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

[0079] In a specific embodiment, the user installs a test application on the user terminal 11. In the test application, communication can be established with the dialing test edge node 12. When the dialing test edge node 12 communicates with the user terminal 11, the dialing test cloud management module is first controlled to run the ADB server. At this time, the dialing test cloud management module will bind the ADB server to the local TCP port to listen to the commands of the user terminal 11. Then the user terminal 11 sends the dialing test task to the ADB server. At this time, after the ADB server receives the dialing test task, it sends the dialing test task to the daemon process management module. The daemon process management module controls the environment simulator to execute the dialing test task, obtains the dialing test result, and then transmits the dialing test result to the dialing test cloud management module. After that, the dialing test cloud management module transmits the dialing test result to the user terminal 11, and the user terminal 11 displays the dialing test result so that the user can further process it.

[0080] When the dialing edge node performs the dialing task, 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, and realizes the real-time nature of cloud dialing. It is more convenient to perform network dialing. Compared with the automated network dialing in the existing technology, it is more convenient and simple to perform dialing in real time.

[0081] Reference Figure 2 The embodiment of the present application further provides a network dialing method, which is applied to a network dialing system. The method includes S201-S2010:

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

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

[0084] S203, generating a dialing test task in response to a test operation instruction of the user when the user terminal establishes communication with the dialing test edge node;

[0085] S204, the user terminal sends a dialing test task to the dialing test edge node;

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

[0087] S206, the dialing edge node executes the dialing task to obtain an execution result;

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

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

[0090] S209, when the execution result transmission is completed, the dial-test edge node obtains the transmission data packet;

[0091] S2010, performing data analysis on the transmission 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 dial-up edge node through the TCP protocol, wherein the test application can be any application that can run on the user terminal and on the environment simulator.

[0093] In some embodiments, in S202, a WebSocket port for testing an application is built into the dial-up edge node, and the dial-up edge node may create an instance through the WebSocket port to achieve a communication connection with a user terminal.

[0094] Among them, WebSocket is a protocol for full-duplex communication on a single TCP connection, which can enable the dial-up edge node to push information to the user terminal, and the user terminal can also actively send information to the dial-up edge node.

[0095] In some embodiments, in S203, when the user performs a network dial test through a user terminal, the user will first operate the test application on the user terminal through the screen displayed on the user terminal, such as mouse clicks, keyboard input, or sliding the display screen. At this time, the user terminal will generate a dial test task based on these test operations, and the test application on the user terminal will send these dial test tasks to the dial test edge node through the WebSocket port.

[0096] In some embodiments, in S206, the dial test edge node may include an environment simulator, a dial test cloud processing module and a daemon process management module, wherein the dial test cloud processing module receives the dial test task and sends the dial test task to the daemon process management module, the daemon process management module executes the dial test task, and at the same time, the environment simulator simulates the execution process of the dial test task and generates an execution result.

[0097] In some embodiments, in S207, the dial 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 dial test task.

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

[0099] In the written embodiment, in S2010, the dial-test cloud processing module can perform data analysis on the transmission data packet to obtain the transmission data packet corresponding to the test application, and perform data analysis based on the transmission data packet to obtain the network quality test index.

[0100] When performing network dialing test, first establish communication between the user terminal and the dialing test edge node. Then, after receiving the dialing test task transmitted by the user terminal, the dialing test edge node executes the dialing test task in the cloud. In the process of executing the dialing test task, the execution result is obtained in real time and sent to the user terminal to realize cloud testing of the dialing test edge node. In the process of executing the dialing test task by the dialing test 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, and realizes the real-time nature of cloud dialing test. It is more convenient to perform network dialing test. Compared with the automatic network dialing test in the prior art, it is more convenient and simple to perform dialing test in real time.

[0101] In order to better understand the solution, the network dialing method provided in the embodiment of the present application is introduced below.

[0102] Figure 3 FIG. 1 is a flow chart of a network dialing method provided by an embodiment of the present application. Figure 1 As shown, the network dialing method is applied to dialing edge nodes, and the network dialing method may include S301-S306:

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

[0104] In the embodiment of the present application, when performing network dialing, since cloud network dialing is adopted, it is necessary to establish communication between the user terminal and the dialing edge node so that the dialing edge node receives the dialing task. At this time, in order to ensure full-duplex communication and to realize the transmission of the dialing task in real time and quickly, S301 may include:

[0105] Generate a response instruction according to the communication request;

[0106] Send a response instruction to the user terminal so that the dial-up edge node establishes a websocket connection with the user terminal.

[0107] In this embodiment, when establishing communication, the dial-test edge node will create a websocket port in the dial-test cloud processing module, which can monitor multiple events of the test application in the user terminal in real time, such as triggered when the connection is opened, triggered when a message is received, triggered when an error occurs, and triggered when the connection is closed. Then, the dial-test cloud processing module generates a response instruction according to the communication request. If the dial-test cloud processing module agrees to establish communication with the user terminal at this time, the response execution will be sent to the user terminal to realize the handshake between the user terminal and the dial-test edge node, wherein the response instruction may include confirmation information of the successful connection. When the user terminal shakes hands with the dial-test edge node successfully, it indicates that the user terminal and the dial-test edge node have established communication at this time.

[0108] It is worth noting that after the user terminal establishes communication with the dial-up edge node, either the user terminal or the dial-up edge node can initiate a connection closing operation, 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 the closure of the communication connection.

[0109] S302, receiving a dialing test task.

[0110] In this embodiment, after the user terminal establishes communication with the dialing edge node, the user will perform a test operation on the user terminal. At this time, the user terminal will generate a dialing task according to the test operation, that is, the user terminal will encode the test operation to obtain the encoded test operation instruction, that is, the dialing task.

[0111] The dial-test edge node can receive the dial-test task through the communication connection so as to execute the dial-test task at the dial-test edge node.

[0112] In a specific embodiment, after receiving the dialing task, the dialing cloud processing module in the dialing edge node forwards the dialing task to the daemon process management module, so that the daemon process management module executes the dialing task.

[0113] S303, executing the dialing test task to obtain an execution result.

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

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

[0116] Decoding the data-encoded test operation instruction to obtain the original test operation instruction;

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

[0118] In this embodiment, in order to simplify the data transmission of the dialing task, the user terminal encodes the test operation instructions, that is, converts the test operation instructions 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 test operation instructions after the data encoding to obtain the original test operation instructions, that is, 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, before step 303, the method may further include:

[0120] capturing multiple display images;

[0121] storing a plurality of display images into a preset image buffer;

[0122] Performing video encoding on a plurality of display images to obtain video stream data;

[0123] In a preset image buffer area, encoding the video stream data to obtain encoded video stream data;

[0124] The execution results include:

[0125] Get the encoded video stream data.

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

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

[0128] At this time, after the environment simulator captures multiple display images, the environment simulator stores the multiple display images in a preset image buffer, namely, an image cache module, and then performs video encoding on the multiple display images to obtain video stream data, and then renders the video stream data and caches it in the frame buffer area, so that the dial-test cloud processing module can more conveniently obtain the encoded video stream data.

[0129] S304: Transmit the execution result to the user terminal.

[0130] In the embodiment of the present application, when transmitting the execution results, since the multiple display images have been rendered as video stream data, the data volume of the data execution results can be reduced, and the execution results can be transmitted more conveniently and quickly.

[0131] In a specific embodiment, the encoded video stream data can be transmitted to the user terminal through the websocket port, and 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 the test operation instructions in the environment simulator through the user terminal.

[0132] In some other embodiments, in order to achieve efficient data transmission, optimization means of real-time compression, data buffering and error recovery may be used to ensure the accuracy of data transmission.

[0133] S305, when the execution result transmission is completed, obtaining a transmission data packet.

[0134] In the embodiment of the present application, since the cloud is used to execute the dialing test task, during the data transmission process, the websocket port will generate other data in addition to the network data of the test application in the environment simulator, such as data packets used for communication or signal transmission, rather than simply transmission data packets corresponding to the execution results of the test application in the environment simulator. Therefore, when performing the dialing test service test, since there are multiple test applications on the environment simulator, and multiple test applications may transmit data through one websocket port, in order to accurately perform data analysis on the dialing test task corresponding to the test application, it is necessary to obtain the application name corresponding to the dialing test task, and then determine the application process name based on the application name, determine the network port of the test application through the application process name, and then filter the application data packet corresponding to the test application through the network port to obtain the network quality test indicator.

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

[0136] S306, performing data analysis on the transmission data packets to obtain network quality test indicators.

[0137] In some embodiments, S306 may include:

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

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

[0140] Based on the application process name, query the preset process library for process identification information corresponding to the application process name;

[0141] Determine the network port corresponding to the dial-up task according to the process identification 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 dial test task;

[0143] The test indicators of the application data packets are analyzed to obtain the network quality test indicators.

[0144] In some embodiments, the application process name can be determined according to the application name by using the winreg library in the Python language to query the application registration information through the application name to determine the application process name.

[0145] In some embodiments, the process identification information can be determined by applying the process name according to the psutil library in the python language, and then the process representation information is traversed to determine the network port.

[0146] In some embodiments, when filtering the transmission data packets, the transmission data packets may be captured by a packet capture tool and then filtered by the application process name to obtain the application data packets.

[0147] In some embodiments, the network quality test indicator may include interaction delay. In the process of analyzing the test indicators, the protocol in the application data packet can be analyzed to obtain the transmission protocol of the application data packet. At the same time, there will be a sending time and a receiving time in the application data packet. The interaction delay can be calculated through the sending time and the receiving time to complete the network dialing test.

[0148] In some other embodiments, after obtaining the network quality test indicator, the network test indicator can also be sent to the user terminal through the websocket port, so that the user terminal can present the dial test result, thereby allowing the user to understand the dial test result more intuitively and conveniently.

[0149] When performing network dialing test, first establish communication between the user terminal and the dialing test edge node. Then, after receiving the dialing test task transmitted by the user terminal, the dialing test edge node executes the dialing test task in the cloud. In the process of executing the dialing test task, the execution result is obtained in real time and sent to the user terminal to realize cloud testing of the dialing test edge node. In the process of executing the dialing test task by the dialing test 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, and realizes the real-time nature of cloud dialing test. It is more convenient to perform network dialing test. Compared with the automatic network dialing test in the prior art, it is more convenient and simple to perform dialing test in real time.

[0150] See also Figure 4 The embodiment of the present application further provides a network dialing method, which is applied to a user terminal. The network dialing method may include S401-S404:

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

[0152] In this embodiment, when the user performs a dial test through the user terminal, a test application may 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 test edge node according to the TCP protocol to establish communication and complete the subsequent dial test.

[0153] S402 : When the user terminal establishes communication with the dialing edge node, a dialing task is generated in response to a test operation instruction of the user.

[0154] In this embodiment, establishing communication with the dial-test edge node may include:

[0155] Receive a response instruction sent by the dial-test edge node;

[0156] Establish a websocket connection with the dial-up edge node based on the response instruction.

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

[0158] After the user terminal establishes communication with the dial test edge node, the user can perform a test operation according to the test button on the test application to generate a dial test task, which facilitates the dial test.

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

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

[0161] The test operation data information is encoded to obtain the test operation instruction after data encoding.

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

[0163] As an example, the test operation instruction may be a mouse click or a keyboard input.

[0164] S403: Send the dialing test task to the dialing test edge node, so that the dialing test edge node executes the dialing test task, obtains the execution result, and transmits the execution result.

[0165] In this embodiment, after obtaining the test operation instruction, in order to better simulate in the environment simulator, it is necessary to send a dialing test task to the dialing test edge node, and then the dialing test edge node can perform environmental simulation in the cloud, realize cloud dialing test, and complete network dialing test.

[0166] S404, receiving the execution result.

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

[0168] Decoding the encoded video stream data to obtain multiple display images;

[0169] A plurality of display images are displayed so that the user can operate the user terminal to generate the dialing task again.

[0170] In some embodiments, after the dialing test edge node executes the dialing test task, in order to facilitate the user to perform dialing tests continuously in real time, the dialing test edge node can perform video encoding on the process of executing the dialing test task and the final simulation result when the dialing test edge node executes the dialing test task. The encoded video stream data is then decoded on the user terminal to obtain multiple display images, which are then displayed and displayed on the display screen of the user terminal to facilitate the user to perform subsequent test operations and continue to generate the dialing test task again.

[0171] In other embodiments, the dial-up edge node may send the measured network quality indicator and the execution result to the user terminal, and display them on the user terminal.

[0172] Reference Figure 5 The embodiment of the present application further provides a network dialing device 500 for dialing an edge node, and the device 500 includes:

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

[0174] A receiving module 502 is used to receive a dialing task;

[0175] An execution module 503 is used to execute the dialing task to obtain an execution result;

[0176] A transmission module 504, used for transmitting the execution result to the user terminal;

[0177] An acquisition module 505 is used to acquire a transmission data packet when the transmission of the execution result is completed, and the transmission data packet is used to represent the network data generated during the transmission of the execution result;

[0178] The analysis module 506 is used to perform data analysis on the transmission data packets to obtain network quality test indicators.

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

[0180] Generate a response instruction according to the communication request;

[0181] Send a response instruction to the user terminal so that the dial-up edge node establishes a websocket connection with the user terminal.

[0182] As an optional implementation manner, the dialing test task includes a test operation instruction after data encoding, and the execution module 503 can also be used to:

[0183] Decoding the data-encoded test operation instruction to obtain the original test operation instruction;

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

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

[0186] Capturing a plurality of display images, wherein the plurality of display images include a plurality of display screens generated during the execution of the dialing task;

[0187] storing a plurality of display images into a preset image buffer;

[0188] Performing video encoding on a plurality of display images to obtain video stream data;

[0189] In a preset image buffer area, encoding the video stream data to obtain encoded video stream data;

[0190] The execution results include:

[0191] Get the encoded video stream data.

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

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

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

[0195] Based on the application process name, query the preset process library for process identification information corresponding to the application process name;

[0196] Determine the network port corresponding to the dial-up task according to the process identification 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 dial test task;

[0198] The test indicators of the application data packets are analyzed to obtain the network quality test indicators.

[0199] Reference Figure 6 The present application also provides a network dialing device 600, which is used in a user terminal. The device 600 may include:

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

[0201] A generating module 602 is used to generate a dialing test task in response to a test operation instruction of a user when the user terminal establishes communication with the dialing test edge node;

[0202] The sending module 603 is used to send the dialing test task to the dialing test edge node, so that the dialing test edge node executes the dialing test task, obtains the execution result, and transmits the execution result;

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

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

[0205] Receive a response instruction sent by the dial-test edge node;

[0206] Establish a websocket connection with the dial-up edge node based on the response instruction.

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

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

[0209] The test operation data information is encoded to obtain the test operation instruction after data encoding.

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

[0211] Decoding the encoded video stream data to obtain multiple display images;

[0212] A plurality of display images are displayed so that the user can operate the user terminal to generate the dialing task again.

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

[0214] The 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), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0216] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 702 may include a removable or non-removable (or fixed) medium, or the memory 702 is a non-volatile solid-state memory. The memory 702 may be inside or outside the integrated gateway disaster recovery device.

[0217] In one example, the memory 702 may be a read-only memory (ROM). In one example, 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 a flash memory, or a combination of two or more of these.

[0218] The memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) 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 the present disclosure.

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

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

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

[0222] Bus 704 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), hypertransmission (Hyper Transport, HT) interconnection, industry standard architecture (IndustryStandard Architecture, ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 704 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0223] The electronic device can execute the network dialing method in the embodiment of the present application, thereby realizing the combination Figure 1-Figure 6 The network dialing test method and device described.

[0224] In addition, in combination with the network dialing method in the above embodiment, the embodiment of the present application can provide a computer storage medium to implement. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the video query methods in the above embodiment is implemented.

[0225] In an optional embodiment, in combination with the network dialing method in the above embodiment, the embodiment of the present application can provide a computer program product for implementation, and the instructions in the computer program product are executed by a processor of an electronic device, so that the electronic device can implement any one of the video query methods in the above embodiment.

[0226] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present 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, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in 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, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0228] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. 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 embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0229] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram 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 device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. 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 can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0230] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A network dialing method, characterized in that: Applied to dialing edge nodes, the method includes: In response to a communication request of a user terminal, establishing communication with the user terminal according to the communication request, so that the user terminal sends a dialing task to the dialing edge node; receiving the dialing test task; Execute the dialing task to obtain an execution result; Transmitting the execution result to the user terminal; When the transmission of the execution result is completed, obtaining a transmission data packet, wherein the transmission data packet is used to represent network data generated during the transmission of the execution result; Data analysis is performed on the transmission 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, comprising: generating a response instruction according to the communication request; The response instruction is sent to the user terminal so that the dialing edge node establishes a websocket connection with the user terminal.

3. The method according to claim 1, characterized in that The dial test task includes a test operation instruction after data encoding. Before executing the dial test task to obtain an execution result, the method further includes: Decoding the test operation instruction after the data encoding to obtain the original test operation instruction; Execute the original test operation instruction to obtain the execution result.

4. The method according to claim 1, characterized in that Before executing the dialing task to obtain the execution result, the method further includes: capturing a plurality of display images, wherein the plurality of display images include a plurality of display screens generated during the execution of the dialing task; storing the plurality of display images into a preset image buffer; Performing video encoding on the plurality of display images to obtain video stream data; In the preset image buffer area, encoding the video stream data to obtain encoded video stream data; The execution results include: Get the encoded video stream data.

5. The method according to claim 1, characterized in that The data analysis of the transmission data packet to obtain the network quality test index includes: Obtain the application name corresponding to the dial test task; Determine an application process name according to the application name; Based on the application process name, querying a preset process library for process identification information corresponding to the application process name; Determine the network port corresponding to the dialing task according to the process identification information; Filter the transmission data packet corresponding to the application name based on the network port to obtain the application data packet corresponding to the dial test task; The test index of the application data packet is parsed to obtain a network quality test index.

6. A network dialing method, characterized in that: Applied to a user terminal, the method comprises: In response to the user's operation of opening the test application, sending a communication request to the dial-test edge node; In the case where the user terminal establishes communication with the dialing test edge node, generating a dialing test task in response to a test operation instruction of the user; Sending a dialing test task to the dialing test edge node, so that the dialing test edge node executes the dialing test task, obtains an execution result, and transmits the execution result; The execution result is received.

7. The method according to claim 6, characterized in that The establishing communication with the dialing edge node comprises: Receiving a response instruction sent by the dial-test edge node; A websocket connection is established with the dialing edge node based on the response instruction.

8. The method according to claim 6, characterized in that The generating of the dialing test task in response to the user test operation instruction of the user includes: Initializing the data format of the test operation instruction to obtain test operation data information; The test operation data information is encoded to obtain a test operation instruction after data encoding.

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

10. A network dialing device, characterized in that: Applied to dialing edge nodes, the device includes: A communication module, configured to respond to a communication request of a user terminal and establish communication with the user terminal according to the communication request, so that the user terminal sends a dialing task to the dialing edge node; A receiving module, used for receiving the dialing test task; An execution module, used for executing the dialing task to obtain an execution result; A transmission module, used for transmitting the execution result to the user terminal; An acquisition module, used for acquiring a transmission data packet when the transmission of the execution result is completed, wherein the transmission data packet is used for representing the network data generated during the transmission of the execution result; The analysis module is used to perform data analysis on the transmission data packets to obtain network quality test indicators.

11. A network dialing device, characterized in that: Applied to a user terminal, the device comprises: A response module, configured to send a communication request to a dial-test edge node in response to a user's operation of opening a test application; A generating module, configured to generate a dialing test task in response to a test operation instruction of a user when the user terminal establishes communication with the dialing test edge node; A sending module, used for sending a dialing test task to the dialing test edge node, so that the dialing test edge node executes the dialing test task, obtains an 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 dial-test edge node and a user terminal in communication connection with the dial-test edge node; The dialing edge node is used to execute the network dialing method according to any one of claims 1 to 5; The user terminal is used to execute the network dialing 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 dial-up edge node via websocket.

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

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the network dialing method according to any one of claims 1 to 9 is implemented.

16. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network dialing method as described in any one of claims 1 to 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

  • Method and device for testing network quality

    CN114585011A

  • Business poor quality fault diagnosis method, device and equipment, terminal and storage medium

    CN116915577A

  • Large-Scale Real-Time Multimedia Communications

    US20200067828A1