Mobile cloud game network efficiency sensing method and device

By using the target automatic test module for active and passive measurement in mobile cloud games, and combining it with machine learning algorithms, comprehensive information measurement of high coverage and expansion rate of mobile cloud game network efficiency is achieved, solving the problems in the existing technology. It solves the problems of insufficient measurement coverage and low scalability and improves real-time perception capabilities and measurement efficiency.

CN118573603APending Publication Date: 2024-08-30TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410493536.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the existing technology, the information measurement coverage of mobile cloud games is insufficient and the scalability is low, making it difficult to achieve comprehensive real-time perception of the impact on experience quality and network resource utilization.

Method used

Obtain waiting time prompts based on pre-built target automatic test modules, conduct active and passive measurements, obtain end-to-end delay, packet loss rate, effective bandwidth, traffic consumption, frame rate, CPU usage and memory usage and other indicators, and use Machine learning algorithms perform modeling analysis, realize data dimension division and hierarchical interval division, and store and analyze results in real time.

Benefits of technology

It achieves comprehensive information measurement of high coverage and expansion rate of mobile cloud gaming network efficiency, provides real-time perception of experience quality and performance bottlenecks, supports data-driven advantage complementary models, and improves the intelligence and efficiency of measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573603A
    Figure CN118573603A
Patent Text Reader

Abstract

The invention provides a mobile cloud game network efficiency sensing method and device. The method comprises the following steps: acquiring a waiting duration prompt of a target cloud game based on a pre-constructed target automatic test module; in response to the end of the waiting duration, performing active measurement and passive measurement on the target cloud game based on the Android system service of the current equipment to obtain an active measurement result and a passive measurement result, and storing the active measurement result and the passive measurement result in a pre-selected data storage server in real time; and performing modeling analysis according to the active measurement result and the passive measurement result to obtain an analysis result. According to the system and the method, comprehensive measurement of information influencing quality of experience (QoE), performance bottleneck and utilization of high-speed network resources is completed by utilizing multiple Android system services and a built target automatic test module, comprehensive information measurement with higher coverage rate and high expansion rate is realized, and further network efficiency perception is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for perceiving network efficiency of a mobile cloud game. Background Art

[0002] In recent years, with the rapid upgrading of electronic devices, the requirements and restrictions of hardware configuration of game software are also increasing. In order to provide users with a richer and more convenient gaming experience, the concept of cloud gaming has gradually become active in the field of cloud computing; and due to the convenience and popularity of mobile devices, mobile cloud gaming is even more popular among mobile users.

[0003] Mobile cloud gaming is a new way to provide multi-platform games to mobile users, that is, to execute computationally complex interactive games on high-performance cloud servers, stream the rendered game scenes to gamers using lightweight application clients on mobile devices via the Internet in the form of video streams, and send control events of input devices back to the cloud server for interaction. Among them, the quality of experience (QoE), performance bottlenecks and the efficiency of using high-speed network resources of mobile cloud gaming have become the focus of close attention and exploration in academia and industry.

[0004] In order to optimize mobile cloud games in a targeted manner, it is necessary to perceive the network efficiency. In the actual implementation process, it is necessary to comprehensively collect information that affects the quality of experience (QoE), performance bottlenecks, and the use of high-speed network resources. Specifically, comprehensive information collection includes key performance indicators (QoE), network environment data, software and hardware environment, etc.

[0005] However, since cloud gaming technology involves complex interactions among multiple entities and is usually closed source, it is not easy to measure the above indicators, especially real-time fine-grained perception (1 second / time). First, since most mobile cloud games are closed source, it is impossible to insert data into the server or application, making the measurement of some indicators very difficult. Taking the video encoding and decoding method as an example, it cannot be directly obtained using the Android debug bridge instructions, and the core technology of cloud gaming is not open source, so it is also difficult to obtain by parsing the application installation package.

[0006] Secondly, since mobile devices have limited resources, measurement tools should not take up too many additional system resources, or even "take away the main focus" and affect the normal use of the application being measured.

[0007] In addition, in order to realize the complementary advantage model based on data, researchers need to conduct large-scale data collection and analysis, so the measurement method needs to be intelligent and efficient enough to respond to changing application environments autonomously. For example, the login scenarios of mobile cloud games are often complex and changeable depending on the number of logins and the login devices; during the test, cloud games will also detect user usage, and a long period of no interaction may cause the game to automatically exit, resulting in measurement failure. Therefore, the measurement tool itself must also be intelligent enough and does not require human control.

[0008] The existing technology includes the following measurement methods: 1) Pay attention to the latency of mobile cloud games. Record the games with a high-speed camera to obtain the end-to-end latency of the game page display. This method requires manual identification and proofreading and cannot be applied on a large scale. 2) Pay attention to the frame rate of mobile cloud games. This method usually requires very high system permissions or occupies a lot of resources.

[0009] In summary, the existing technology has insufficient measurement coverage for comprehensive information and low scalability. Summary of the invention

[0010] The present invention provides a method and device for perceiving network efficiency of a mobile cloud game, so as to solve the defects of insufficient measurement coverage and low scalability in the prior art, realize comprehensive information measurement with higher coverage and high scalability, and further realize network efficiency perception.

[0011] The present invention provides a method for perceiving network efficiency of a mobile cloud game, comprising:

[0012] Get the waiting time prompt of the target cloud game based on the pre-built target automatic testing module;

[0013] In response to the end of the waiting time, performing active measurement and passive measurement on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and storing the active measurement results and passive measurement results in real time to a pre-selected data storage server;

[0014] Perform modeling analysis based on the active measurement results and the passive measurement results to obtain analysis results;

[0015] Among them, the active measurement includes measuring active measurement indicators, and the active measurement indicators at least include end-to-end delay and packet loss rate; the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators at least include effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0016] According to a method for perceiving network efficiency of a mobile cloud game provided by the present invention, in response to the end of the waiting time, active measurement and passive measurement are performed on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, specifically including:

[0017] Acquire an Internet flow, reversely locate a target backend server of the target cloud game based on an Android virtual private network service according to the Internet flow, send a detection packet to the target backend server, and obtain an active measurement result according to the returned information;

[0018] A first passive measurement result is obtained based on the Android debugging bridge; and during the measurement process, a second passive measurement result is collected based on the Android system service at a preset time interval.

[0019] According to a method for perceiving network efficiency of a mobile cloud game provided by the present invention, the method for obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic test module also includes:

[0020] Based on the target automatic test module, the Android framework layer interface is used to obtain the GUI tree corresponding to the current page of the target cloud game, and the key attribute information of the interactive control is extracted;

[0021] Log in according to the key attribute information.

[0022] According to a method for perceiving mobile cloud game network efficiency provided by the present invention, obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic test module specifically includes:

[0023] The waiting time is obtained from the text attribute of the interactive control by means of regular matching to obtain a waiting time prompt.

[0024] According to a method for perceiving mobile cloud gaming network efficiency provided by the present invention, the modeling analysis is performed based on the active measurement results and the passive measurement results to obtain the analysis results, specifically including:

[0025] Dividing the active measurement results and the passive measurement results into data dimensions according to data dimensions, and dividing the active measurement results and the passive measurement results into level intervals according to data distribution ranges;

[0026] Annotate the active measurement results and the passive measurement results according to the division results of the data dimension division and the level interval division to obtain an annotated data set corresponding to each of the data dimensions;

[0027] A pre-selected machine learning algorithm is used to perform modeling analysis on each of the annotated data sets to obtain analysis results corresponding to each of the data dimensions.

[0028] According to a method for perceiving mobile cloud game network efficiency provided by the present invention, the method obtains a waiting time prompt for a target cloud game based on a pre-built target automatic test module, and then further includes:

[0029] During the active measurement and the passive measurement, periodically interacting with the target automatic test module;

[0030] The periodic interaction includes using a target interactive control to interact according to a preset interaction time interval, and the target interactive control is screened from the interactive controls.

[0031] The present invention also provides a mobile cloud gaming network efficiency perception device, comprising:

[0032] A waiting unit, used to obtain a waiting time prompt of a target cloud game based on a pre-built target automatic test module;

[0033] A measuring unit, configured to, in response to the end of the waiting time, perform active measurement and passive measurement on the target cloud game based on the Android system service of the current device, obtain active measurement results and passive measurement results, and store the active measurement results and passive measurement results in a pre-selected data storage server in real time;

[0034] An analysis unit, configured to perform modeling analysis based on the active measurement result and the passive measurement result to obtain an analysis result;

[0035] Among them, the active measurement includes measuring active measurement indicators, and the active measurement indicators at least include end-to-end delay and packet loss rate; the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators at least include effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for perceiving the network efficiency of a mobile cloud game as described above is implemented.

[0037] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the mobile cloud gaming network efficiency perception methods described above.

[0038] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the mobile cloud gaming network efficiency perception methods described above.

[0039] The mobile cloud game network efficiency perception method and device provided by the present invention obtains the waiting time prompt of the target cloud game based on the pre-built target automatic test module; in response to the end of the waiting time, the target cloud game is actively measured and passively measured based on the Android system service of the current device to obtain the active measurement result and the passive measurement result, and the active measurement result and the passive measurement result are stored in real time to a pre-selected data storage server; modeling analysis is performed according to the active measurement result and the passive measurement result to obtain the analysis result; wherein, the active measurement includes measuring the active measurement index, and the active measurement index at least includes end-to-end delay and packet loss rate, and the passive measurement includes measuring the passive measurement index, and the passive measurement index at least includes effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy. The present invention uses multiple Android system services and the built target automatic test module to complete the comprehensive measurement of information affecting the quality of experience (QoE), performance bottlenecks and their utilization of high-speed network resources, and realizes comprehensive information measurement with higher coverage and high expansion rate, thereby realizing network efficiency perception. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 This is one of the flow charts of the method for perceiving the network efficiency of mobile cloud gaming provided by the present invention;

[0042] Figure 2 This is the second flow chart of the method for perceiving the network efficiency of mobile cloud gaming provided by the present invention;

[0043] Figure 3 It is a structural schematic diagram of the mobile cloud gaming network efficiency perception device provided by the present invention;

[0044] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Combine the following Figure 1-Figure 2 Describe the mobile cloud gaming network efficiency perception method of the present invention, Figure 1 This is one of the flow charts of the method for perceiving the network efficiency of mobile cloud gaming provided by the present invention. Figure 1 As shown, the method includes:

[0047] Step 110: Obtain a waiting time prompt for a target cloud game based on a pre-built target automatic test module;

[0048] It should be emphasized that the mobile cloud game network efficiency perception method provided by the present invention is used to perceive the network efficiency of mobile cloud games. It can be understood that cloud games are a new type of game that provides game resources and computing power through cloud servers, allowing players to play games smoothly in real time through the network. That is, a computationally complex interactive game is executed on a high-performance cloud server, and the rendered game scene is streamed to game players using lightweight application clients on mobile devices through the Internet in the form of a video stream, and the control events of the input device are sent back to the cloud server for interaction.

[0049] Naturally, mobile cloud gaming is a way of rendering mobile games on cloud servers, allowing players to experience them on mobile devices.

[0050] Furthermore, network efficiency perception includes determining the utilization of current network resources by applications by measuring network conditions and key performance indicators of applications.

[0051] In one embodiment, the specific measurement data list is shown in Table 1.

[0052] Table 1 Measurement data list

[0053]

[0054] Furthermore, it should be noted that the target automatic test module is modified based on the automatic test module Monkey in the Android system service. It can be understood that the automatic test module Monkey is an automated stress testing tool on the Android platform, which is used to simulate user input and interaction. Furthermore, the obtained target automatic test module can automatically handle complex scenarios before, during and after mobile cloud game measurement, and can intelligently adjust parameters to adapt to the test process based on the real-time network environment.

[0055] In some embodiments, the above modification includes at least: introducing a page context awareness function and a periodic interaction function. Specifically, the page context awareness function is used to perceive the content of the current page of the target cloud game, and the periodic interaction function is used to ensure that the game is online during the measurement process.

[0056] In some embodiments, the step of obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic testing module may also include:

[0057] Based on the target automatic test module, the Android framework layer interface is used to obtain the GUI tree corresponding to the current page of the target cloud game, and the key attribute information of the interactive control is extracted;

[0058] Log in according to the key attribute information.

[0059] Specifically, after the target automatic test module introduces the page context awareness function, it can autonomously complete complex behaviors such as account and password input, agreement or terms and conditions according to the current scenario. In the actual operation process, the target automatic test module uses the Android framework layer interface to obtain the GUI tree corresponding to the page, extract the key attribute information of all interactive controls on the page (including text, resource ID, etc.), and detect whether the information contains words such as "login" and "agree". If so, click the control; if it contains the words "account" and "password", perform the input operation.

[0060] Furthermore, in the actual operation process, the waiting time prompt of the target cloud game is obtained based on the page context awareness function of the target automatic test module. In some embodiments, the waiting time prompt of the target cloud game is obtained based on the pre-built target automatic test module, specifically including:

[0061] The waiting time is obtained from the text attribute of the interactive control by means of regular matching to obtain a waiting time prompt.

[0062] Specifically, due to the limited resources of cloud games and the large number of players, players usually need to wait in line before entering the game, and the waiting time varies greatly (ranging from <1 minute to 30 minutes). To avoid wasting time or insufficient measurement time due to waiting scenarios, the target automatic test module can dynamically adjust the start time of the formal measurement based on the waiting time prompt, and can carry out measurements efficiently and accurately without human assistance.

[0063] In the specific operation process, based on the above embodiment, it is determined whether there is a control containing the word "wait" in the current test object in the login process. If so, the waiting time is obtained from the text attributes of the control by means of regular matching, and the timing of the test tool to execute the next operation is dynamically adjusted.

[0064] Furthermore, since cloud games also detect user usage during the test, a long period of no interaction may cause the game to automatically exit, resulting in measurement failure. Therefore, the use of the periodic interaction function makes the measurement smart enough so that no human intervention is required during the measurement process.

[0065] In some embodiments, the step of obtaining a waiting time prompt of a target cloud game based on a pre-built target automatic testing module further includes:

[0066] During the active measurement and the passive measurement, periodically interacting with the target automatic test module;

[0067] The periodic interaction includes using a target interactive control to interact according to a preset interaction time interval, and the target interactive control is screened from the interactive controls.

[0068] Specifically, during the testing process, a regular interaction function was added for cloud gaming scenarios. The test module can intelligently select the interaction method based on the distribution of controls on the current page, ensuring that the game is running smoothly while avoiding accidental touches of key controls that affect measurement.

[0069] In the specific operation process, the Android framework layer interface is used to obtain the key attributes and position information of various interactive controls on the current page. In order to avoid accidental touches, the target interactive controls are selected for interaction according to the pre-set interaction time interval.

[0070] Furthermore, in terms of selecting the target interactive controls, the selection is made with the goal of not affecting the measurement. In some embodiments, controls such as "menu" are screened out, and controls such as "skills" and "movement" that are more relevant to character interaction are preferentially selected as target interactive controls for interaction. If there are no controls that are more relevant to character interaction, a random click is performed in the area other than the "menu" control as the target interactive control for interaction.

[0071] The embodiment of the present invention realizes full automation of the measurement process by customizing and modifying the automatic test module Monkey in the Android system service. It can automatically handle complex scenarios before, during and after the mobile cloud game measurement, and can intelligently adjust parameters to adapt to the test process based on the real-time network environment.

[0072] Step 120: in response to the end of the waiting time, actively measure and passively measure the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and store the active measurement results and passive measurement results in a pre-selected data storage server in real time;

[0073] After the waiting time included in the waiting time prompt ends, the measurement starts automatically. The measurement includes active measurement and passive measurement. The embodiment of the present invention uses active measurement to measure active measurement indicators and passive measurement to measure passive measurement indicators, such as Figure 2As shown. Both the active measurement indicators and the passive measurement indicators are pre-defined. In some embodiments, the active measurement indicators include at least end-to-end delay and packet loss rate, and the passive measurement indicators include at least effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0074] It should be noted that the Android system service is a system-level component that runs in the background of Android and is used to manage and execute basic operations and functions shared between applications.

[0075] In some embodiments, in response to the end of the waiting time, active measurement and passive measurement are performed on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, specifically including:

[0076] Acquire an Internet flow, reversely locate a target backend server of the target cloud game based on an Android virtual private network service according to the Internet flow, send a detection packet to the target backend server, and obtain an active measurement result according to the returned information;

[0077] A first passive measurement result is obtained based on the Android debugging bridge; and during the measurement process, a second passive measurement result is collected based on the Android system service at a preset time interval.

[0078] Specifically, the end-to-end delay and packet loss rate within the application are obtained through active measurement. It should be noted that although mobile cloud games will establish connections with multiple servers, after officially entering the game, only one server will frequently send UDP packets to the client. Combined with the characteristics of the UDP protocol, which has a fast transmission speed and is often used for video transmission, it is inferred that this server is mainly responsible for transmitting rendered game scenes and is a core business server. Therefore, in the measurement, the core server address is first reversely located based on the Internet flow received by the client, and then packets are actively sent to detect the end-to-end delay and packet loss rate.

[0079] In addition, the passive measurement data is collected with the help of Android system services. Before the test begins, this embodiment uses Android Debug Bridge (ADB) to obtain the first passive measurement result. In some embodiments, the first passive measurement result includes the device's operating system version, CPU frequency, memory size, current network connection type, and resolution setting of the application.

[0080] The remaining passive measurement indicators, such as effective bandwidth, traffic consumption, frame rate, CPU usage, memory usage, etc., need to be collected and recorded once per second during the measurement process, and the results obtained are recorded as the second passive measurement results.

[0081] Specifically, effective bandwidth and traffic consumption are collected on the mobile device using the extended Berkeley packet filter of the system kernel, while frame rate, CPU usage, and memory usage are collected using the corresponding Android system services. It should be noted that the extended Berkeley packet filter is an open source network packet filter and operating system tool for capturing, filtering, and analyzing network packets.

[0082] Furthermore, the second passive measurement result also includes the measurement results of power consumption and video encoding and decoding methods. Among them, the power consumption is collected after the measurement is completed with the help of ADB instructions. Considering that the application will call Android's MediaCodec method when encoding and decoding the video, the dot log is added to the Android source code, and the context information of the application calling the encoding and decoding method is intercepted, and then the video encoding and decoding method of the cloud game application is obtained.

[0083] Furthermore, after obtaining the measurement results, they are stored in a pre-selected data storage server. It is understandable that, considering the limited resources of mobile devices, if data is directly stored on the device side, it is easy to occupy a large amount of computing and storage resources, and directly sending it back to the server for recording may also occupy certain network resources and CPU resources. In order to avoid occupying too much computing and storage space of the mobile device, this embodiment sends the collected data to the data storage server for recording in real time during the measurement.

[0084] In a specific embodiment, in the specific implementation process, based on the current mobile device, the Unix domain socket communication mechanism is used to complete the communication connection with the data storage server in the kernel state, and then the data is transmitted to the data storage server with zero copy and ultra-low overhead by means of the Android Binder process communication mechanism. Among them, it should be explained that the Unix domain socket is a mechanism for process communication on a single host, and inter-process communication can be achieved through special files provided by the operating system. The Binder communication mechanism is a mechanism for inter-process communication in the Android system, which can achieve efficient cross-process communication and support the transfer of complex objects between different processes.

[0085] The embodiment of the present invention realizes ultra-low overhead instant storage of measurement data based on Unix domain socket and Android Binder process communication mechanism, that is, real-time measurement data is transmitted from the mobile device to the measurement server with ultra-low overhead, avoiding additional data recording overhead on the mobile device.

[0086] Step 130: Perform modeling analysis based on the active measurement result and the passive measurement result to obtain an analysis result;

[0087] After the test is completed, the large amount of collected data is pipelined for post-processing and analysis, and the data collection situation is recorded.

[0088] In some embodiments, performing modeling analysis based on the active measurement results and the passive measurement results to obtain analysis results specifically includes:

[0089] Dividing the active measurement results and the passive measurement results into data dimensions according to data dimensions, and dividing the active measurement results and the passive measurement results into level intervals according to data distribution ranges;

[0090] Annotate the active measurement results and the passive measurement results according to the division results of the data dimension division and the level interval division to obtain an annotated data set corresponding to each of the data dimensions;

[0091] A pre-selected machine learning algorithm is used to perform modeling analysis on each of the annotated data sets to obtain analysis results corresponding to each of the data dimensions.

[0092] Specifically, based on active and passive measurement results, the advantages and disadvantages of the target cloud game design in terms of network efficiency are further analyzed through data-driven complementary advantage modeling. In the specific operation process, the data dimensions collected by the measurement are first divided, and then the divided QoE indicators are further divided into levels as data set annotations, and a "condition-QoE level" annotation data set is constructed; based on the annotated data set, the pre-selected machine learning algorithm is used to model and analyze the measurement results of each QoE indicator.

[0093] Furthermore, machine learning algorithms include logistic regression, ridge regression, random forest, and multi-layer perceptron, etc. It should be emphasized that different machine learning algorithms can be used for modeling and analysis for indicators involved in different data dimensions.

[0094] This embodiment uses machine learning to perform data-driven complementary advantage modeling on the network efficiency of mobile cloud games. The model fits the relationship between the key performance indicators of mobile cloud games and the network environment and the hardware and software environment to derive the design advantages and disadvantages of current mobile cloud gaming technology in terms of network efficiency.

[0095] In a specific embodiment, random forest is used to model the effective bandwidth, end-to-end delay and packet loss rate, and ridge regression is used to model the power consumption.

[0096] Specifically, each dimension related to the QoE indicator (a total of four dimensions, effective bandwidth, end-to-end delay, packet loss rate and energy consumption) is divided into three intervals of equal length according to the range of actual data distribution, and mapped to the three levels of the QoE indicator dimension (low, medium and high). According to the levels divided by these four dimensions, other measurement condition dimensions are annotated and four "condition-QoE level" annotation data sets are constructed.

[0097] Based on the labeled data set, the effects of various classification modeling algorithms are compared, including logistic regression, ridge regression, random forest and multilayer perceptron, and the accuracy is shown in Table 2. Among them, logistic regression is based on L2 penalty, the regularization coefficient of ridge regression is set to 1, the number of decision trees of random forest is 50, the Gini coefficient of the attribute is calculated, and the multilayer perceptron has two hidden layers, each with 50 neurons, using Relu activation function and Adam weight optimizer, and the maximum number of iterations is 100. The data set is split into training set and test set in a ratio of 4:1.

[0098] Table 2 Comparison of the accuracy of classification modeling algorithms on four differently labeled datasets

[0099]

[0100]

[0101] As can be seen from Table 2, the random forest model has a good fitting effect in terms of effective bandwidth labeling, end-to-end delay labeling, and packet loss rate labeling (accuracy rates of 85%, 84%, and 95%, respectively), while the ridge regression model has a better fitting effect in terms of energy consumption labeling (accuracy rate of 100%), but the ridge regression model has the worst performance in the effective bandwidth labeling dataset (accuracy rate of 80%). Therefore, the random forest modeling is selected for the effective bandwidth labeling, end-to-end delay labeling, and packet loss rate labeling, and the ridge regression modeling is selected for the energy consumption labeling.

[0102] According to the classification modeling, it can be found that in terms of effective bandwidth, the effective bandwidth QoE level of cloud gaming applications using 4G networks or WiFi devices is generally higher than that of devices using 5G networks. To some extent, this is because the stability and reliability of 5G network connections are not as good as 4G and WiFi. Mobile cloud gaming application developers should carry out targeted optimization of connections and game screen settings in 5G network environments. In terms of end-to-end latency, the QoE level of 5G and WiFi is significantly better than that of 4G, because the network performance and data transmission speed of 5G and WiFi are better than 4G. In terms of packet loss rate, it can be found that mobile phones with lower hardware configurations and operating system versions face poor packet loss rate QoE levels (i.e., relatively high packet loss rates), while the packet loss rate QoE levels under the three network types are similar. It can be suggested that cloud gaming application developers should customize the connection and game screen settings for low-end mobile devices. In terms of energy consumption, the QoE level of device energy consumption under WiFi connection is relatively poor, that is, the energy consumption per unit time is high. In addition, some mobile phones with specific configurations also have obvious high energy consumption. It is recommended that cloud game application developers customize the application function calls based on WiFi connection and consider the device hardware configuration to limit energy consumption. In addition, the device's geographical location has no obvious correlation with the four QoE-related indicators.

[0103] The present invention comprehensively utilizes multiple Android system services, Android communication mechanisms and Unix communication mechanisms, combined with a customized Android automated testing module, to achieve low-overhead, high-precision real-time intelligent perception of mobile cloud game network efficiency, and based on the measurement results, performs data-driven complementary advantage modeling of the network efficiency of mobile cloud games.

[0104] Furthermore, in some embodiments, after step 130, the method further includes: intelligently determining whether re-measurement is required according to a preset rule.

[0105] Specifically, the pre-set rules include data validity and data collection volume. During the specific operation process, the data validity and data collection volume of the active measurement results and the passive measurement results are obtained from the analysis results and compared with the preset thresholds. If the data validity and the data collection volume are lower than the preset thresholds, jump to step 110 and re-measure.

[0106] The mobile cloud game network efficiency perception method provided by the present invention obtains the waiting time prompt of the target cloud game based on the pre-built target automatic test module; in response to the end of the waiting time, the target cloud game is actively measured and passively measured based on the Android system service of the current device to obtain the active measurement result and the passive measurement result, and the active measurement result and the passive measurement result are stored in real time to a pre-selected data storage server; modeling analysis is performed according to the active measurement result and the passive measurement result to obtain the analysis result; wherein, the active measurement includes measuring the active measurement index, and the active measurement index at least includes end-to-end delay and packet loss rate, and the passive measurement includes measuring the passive measurement index, and the passive measurement index at least includes effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy. The present invention uses multiple Android system services and the built target automatic test module to complete the comprehensive measurement of information affecting the quality of experience (QoE), performance bottlenecks and their utilization of high-speed network resources, and realizes comprehensive information measurement with higher coverage and high expansion rate, thereby realizing network efficiency perception.

[0107] The mobile cloud gaming network efficiency perception device provided by the present invention is described below. The mobile cloud gaming network efficiency perception device described below and the mobile cloud gaming network efficiency perception method described above can be referred to each other. Figure 3 As shown, the device comprises:

[0108] A waiting unit 310 is used to obtain a waiting time prompt of a target cloud game based on a pre-built target automatic test module;

[0109] The measuring unit 320 is used for performing active measurement and passive measurement on the target cloud game based on the Android system service of the current device in response to the end of the waiting time, obtaining the active measurement result and the passive measurement result, and storing the active measurement result and the passive measurement result in a pre-selected data storage server in real time;

[0110] An analysis unit 330 is used to perform modeling analysis according to the active measurement result and the passive measurement result to obtain an analysis result;

[0111] Among them, the active measurement includes measuring active measurement indicators, and the active measurement indicators at least include end-to-end delay and packet loss rate; the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators at least include effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0112] According to a mobile cloud game network efficiency perception device provided by the present invention, in response to the end of the waiting time, active measurement and passive measurement are performed on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, specifically including:

[0113] Acquire an Internet flow, reversely locate a target backend server of the target cloud game based on an Android virtual private network service according to the Internet flow, send a detection packet to the target backend server, and obtain an active measurement result according to the returned information;

[0114] A first passive measurement result is obtained based on the Android debugging bridge; and during the measurement process, a second passive measurement result is collected based on the Android system service at a preset time interval.

[0115] According to a mobile cloud game network efficiency perception device provided by the present invention, the waiting time prompt of the target cloud game is obtained based on the pre-built target automatic test module, and the method also includes:

[0116] Based on the target automatic test module, the Android framework layer interface is used to obtain the GUI tree corresponding to the current page of the target cloud game, and the key attribute information of the interactive control is extracted;

[0117] Log in according to the key attribute information.

[0118] According to a mobile cloud game network efficiency perception device provided by the present invention, the step of obtaining a waiting time prompt of a target cloud game based on a pre-built target automatic test module specifically includes:

[0119] The waiting time is obtained from the text attribute of the interactive control by means of regular matching to obtain a waiting time prompt.

[0120] According to a mobile cloud gaming network efficiency perception device provided by the present invention, the modeling analysis is performed according to the active measurement result and the passive measurement result to obtain the analysis result, specifically including:

[0121] Dividing the active measurement results and the passive measurement results into data dimensions according to data dimensions, and dividing the active measurement results and the passive measurement results into level intervals according to data distribution ranges;

[0122] Annotate the active measurement results and the passive measurement results according to the division results of the data dimension division and the level interval division to obtain an annotated data set corresponding to each of the data dimensions;

[0123] A pre-selected machine learning algorithm is used to perform modeling analysis on each of the annotated data sets to obtain analysis results corresponding to each of the data dimensions.

[0124] According to a mobile cloud game network efficiency perception device provided by the present invention, the waiting time prompt of the target cloud game is obtained based on the pre-built target automatic test module, and then further includes:

[0125] During the active measurement and the passive measurement, periodically interacting with the target automatic test module;

[0126] The periodic interaction includes using a target interactive control to interact according to a preset interaction time interval, and the target interactive control is screened from the interactive controls.

[0127] The mobile cloud game network efficiency perception device provided by the present invention obtains the waiting time prompt of the target cloud game based on the pre-built target automatic test module; in response to the end of the waiting time, the target cloud game is actively measured and passively measured based on the Android system service of the current device to obtain the active measurement result and the passive measurement result, and the active measurement result and the passive measurement result are stored in real time to a pre-selected data storage server; modeling analysis is performed according to the active measurement result and the passive measurement result to obtain the analysis result; wherein, the active measurement includes measuring the active measurement index, and the active measurement index at least includes end-to-end delay and packet loss rate, and the passive measurement includes measuring the passive measurement index, and the passive measurement index at least includes effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy. The present invention uses multiple Android system services and the built target automatic test module to complete the comprehensive measurement of information affecting the quality of experience (QoE), performance bottlenecks and their utilization of high-speed network resources, and realizes comprehensive information measurement with higher coverage and high expansion rate, thereby realizing network efficiency perception.

[0128] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 430 to execute the mobile cloud game network efficiency perception method, which includes: obtaining a waiting time prompt for the target cloud game based on a pre-built target automatic testing module; in response to the end of the waiting time, actively measuring and passively measuring the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and storing the active measurement results and the passive measurement results in real time to a pre-selected data storage server; modeling and analysis are performed based on the active measurement results and the passive measurement results to obtain analysis results; wherein, the active measurement includes measuring active measurement indicators, and the active measurement indicators include at least end-to-end delay and packet loss rate, and the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators include at least effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0129] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0130] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the mobile cloud game network efficiency perception method provided by the above methods, which method includes: obtaining a waiting time prompt for the target cloud game based on a pre-built target automatic testing module; in response to the end of the waiting time, actively measuring and passively measuring the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and storing the active measurement results and the passive measurement results in real time to a pre-selected data storage server; modeling and analysis are performed based on the active measurement results and the passive measurement results to obtain analysis results; wherein, the active measurement includes measuring active measurement indicators, and the active measurement indicators include at least end-to-end delay and packet loss rate, and the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators include at least effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0131] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the mobile cloud gaming network efficiency perception method provided by the above-mentioned methods, the method comprising: obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic testing module; in response to the end of the waiting time, performing active measurement and passive measurement on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and storing the active measurement results and the passive measurement results in real time to a pre-selected data storage server; performing modeling analysis based on the active measurement results and the passive measurement results to obtain analysis results; wherein, the active measurement includes measuring active measurement indicators, and the active measurement indicators include at least end-to-end delay and packet loss rate, and the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators include at least effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

[0132] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0133] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for perceiving network efficiency of mobile cloud games, characterized in that: include: Get the waiting time prompt of the target cloud game based on the pre-built target automatic testing module; In response to the end of the waiting time, performing active measurement and passive measurement on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, and storing the active measurement results and passive measurement results in real time to a pre-selected data storage server; Perform modeling analysis based on the active measurement results and the passive measurement results to obtain analysis results; Among them, the active measurement includes measuring active measurement indicators, and the active measurement indicators at least include end-to-end delay and packet loss rate; the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators at least include effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

2. The method for perceiving mobile cloud gaming network efficiency according to claim 1, characterized in that: In response to the end of the waiting time, active measurement and passive measurement are performed on the target cloud game based on the Android system service of the current device to obtain active measurement results and passive measurement results, specifically including: Acquire an Internet flow, reversely locate a target backend server of the target cloud game based on an Android virtual private network service according to the Internet flow, send a detection packet to the target backend server, and obtain an active measurement result according to the returned information; A first passive measurement result is obtained based on the Android debugging bridge; and during the measurement process, a second passive measurement result is collected based on the Android system service at a preset time interval.

3. The method for perceiving the network efficiency of mobile cloud gaming according to claim 1, characterized in that: The method of obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic test module also includes: Based on the target automatic test module, the Android framework layer interface is used to obtain the GUI tree corresponding to the current page of the target cloud game, and the key attribute information of the interactive control is extracted; Log in according to the key attribute information.

4. The method for perceiving the network efficiency of mobile cloud gaming according to claim 3, characterized in that: The method of obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic test module specifically includes: The waiting time is obtained from the text attribute of the interactive control by means of regular matching to obtain a waiting time prompt.

5. The method for perceiving mobile cloud gaming network efficiency according to claim 1, characterized in that: The performing modeling analysis according to the active measurement result and the passive measurement result to obtain the analysis result specifically includes: Dividing the active measurement results and the passive measurement results into data dimensions according to data dimensions, and dividing the active measurement results and the passive measurement results into level intervals according to data distribution ranges; The active measurement results and the passive measurement results are labeled according to the division results of the data dimension division and the level interval division to obtain a labeled data set corresponding to each of the data dimensions; A pre-selected machine learning algorithm is used to perform modeling analysis on each of the annotated data sets to obtain analysis results corresponding to each of the data dimensions.

6. The method for perceiving the network efficiency of mobile cloud gaming according to claim 3, characterized in that: The step of obtaining a waiting time prompt for a target cloud game based on a pre-built target automatic test module further includes: During the active measurement and the passive measurement, periodically interacting with the target automatic test module; The periodic interaction includes using a target interactive control to interact according to a preset interaction time interval, and the target interactive control is screened from the interactive controls.

7. A mobile cloud gaming network efficiency perception device, characterized in that: include: A waiting unit, used to obtain a waiting time prompt of a target cloud game based on a pre-built target automatic test module; A measuring unit, configured to, in response to the end of the waiting time, perform active measurement and passive measurement on the target cloud game based on the Android system service of the current device, obtain active measurement results and passive measurement results, and store the active measurement results and passive measurement results in a pre-selected data storage server in real time; An analysis unit, configured to perform modeling analysis based on the active measurement result and the passive measurement result to obtain an analysis result; Among them, the active measurement includes measuring active measurement indicators, and the active measurement indicators at least include end-to-end delay and packet loss rate; the passive measurement includes measuring passive measurement indicators, and the passive measurement indicators at least include effective bandwidth, traffic consumption, frame rate, CPU occupancy and memory occupancy.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the mobile cloud gaming network efficiency perception method as described in any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the mobile cloud gaming network efficiency perception method as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the mobile cloud gaming network efficiency perception method as described in any one of claims 1 to 6.