CN117041101A - Cloud game time delay measurement method, device, cloud game server and system - Google Patents

Cloud game time delay measurement method, device, cloud game server and system Download PDF

Info

Publication number
CN117041101A
CN117041101A CN202310952607.9A CN202310952607A CN117041101A CN 117041101 A CN117041101 A CN 117041101A CN 202310952607 A CN202310952607 A CN 202310952607A CN 117041101 A CN117041101 A CN 117041101A
Authority
CN
China
Prior art keywords
cloud game
data
time delay
frame
rtt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310952607.9A
Other languages
Chinese (zh)
Inventor
王林涛
李科
胡波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Culture Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202310952607.9A priority Critical patent/CN117041101A/en
Publication of CN117041101A publication Critical patent/CN117041101A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a time delay measuring method, a time delay measuring device, a cloud game server and a time delay measuring system for cloud games, wherein the method comprises the following steps: in the cloud game running process, when a time delay measurement request sent by a cloud game client is received, first frame identification data of a latest frame of game picture generated in a local video stream is obtained; analyzing and acquiring RTT time delay data in a preset time period maintained by a cloud game client carried in a time delay measurement request and second frame identification data of a latest frame of game picture in a current video stream of the cloud game client; acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data; and acquiring delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameters of the cloud game. By adopting the technical scheme of the invention, the time delay measurement scheme can be simplified, the time delay measurement efficiency can be improved, and the accuracy of the time delay measurement result can be improved.

Description

Cloud game time delay measurement method, device, cloud game server and system
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method and apparatus for measuring time delay of a cloud game, a computer readable storage medium, a cloud game server, and a system.
Background
The cloud game operation mode is that a user performs game operation on a cloud game client, the game operation is transmitted to a cloud game server through a network, game picture changes caused by the game operation are converted into video streams after the rendering of the server is completed, and the video streams are transmitted to the cloud game client through the network. In the prior art, the measurement scheme of the time delay of the cloud game client and the server is mainly based on time synchronization, firstly, a picture presented on the cloud game client and a picture presented on a virtual machine of the server are respectively obtained through a screenshot or high-speed camera shooting mode, and then the time difference between the two ends is calculated through comparing the time stamp information of the intercepted pictures at the two ends, namely the cloud game time delay at the measurement moment.
In the measurement scheme, when cloud game Time delay measurement is required, the operations on two sides of a client side and a server side are based on relatively high-precision Time synchronization, however, in actual production, it is difficult to ensure that a large number of client side devices and servers can realize high-precision Time synchronization through a simple Time service mechanism, and in addition, in a mode of calculating cloud game Time delay through picture interception and comparison in a screenshot or high-speed shooting mode, the operation is complex, the measurement efficiency is low, the method is generally only suitable for low-frequency sampling measurement, and the conventional monitoring of cloud game Time delay indexes is difficult to support, so in the current cloud game Time delay monitoring in the industry, RTT (Round-Trip Time) Time delay indexes in a network are mainly adopted to describe cloud game Time delay conditions.
However, when the cloud game runs at the server, the server usually introduces a part of video processing links such as local rendering, video conversion of game pictures, video compression coding and the like, and these links also generate certain time delay, which affects the user experience of the cloud game.
Disclosure of Invention
An embodiment of the invention aims to provide a time delay measurement method, a time delay measurement device, a computer readable storage medium, a cloud game server and a cloud game system for a cloud game, which can simplify a time delay measurement scheme, improve time delay measurement efficiency and improve accuracy of time delay measurement results.
In order to achieve the above object, an embodiment of the present invention provides a method for measuring a time delay of a cloud game, where the method is executed by a cloud game server, and the method includes:
in the cloud game running process, when a time delay measurement request sent by a cloud game client is received, first frame identification data of a latest frame of game picture generated in a local video stream is obtained; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
analyzing and acquiring RTT time delay data in a preset time period maintained by the cloud game client and second frame identification data of a latest frame of game picture in a current video stream of the cloud game client, wherein the RTT time delay data is carried in the time delay measurement request;
acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data;
and acquiring delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameters of the cloud game.
Further, the frame identification data is a numerical identification, the numerical identification monotonically increases along with the sequence of the game picture frames in the local video stream, and the increasing step length is k, wherein k is more than 0;
and acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data, wherein the frame difference data specifically comprises:
according to the formulaCalculating and obtaining frame difference data delta F between a cloud game server side and a cloud game client side; wherein F is sid Representing the first frame identification data, F cid Representing the second frame identification data.
Further, the acquiring the delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameter of the cloud game specifically includes:
calculating frame delay data between a cloud game server side and a cloud game client side according to the frame difference data and FPS parameters of the cloud game;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data.
Further, according to the frame difference data and the FPS parameter of the cloud game, calculating frame delay data between the cloud game server and the cloud game client specifically includes:
according to the formulaCalculating and obtaining frame delay data T between cloud game server side and cloud game client side f The method comprises the steps of carrying out a first treatment on the surface of the Wherein Δf represents the frame difference data, N represents the FPS parameter, and N > 0.
Further, the RTT delay data includes at least two groups of network delay data within the preset period of time;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data, wherein the time delay data specifically comprises the following steps:
calculating and obtaining an RTT delay mean value according to at least two groups of network delay data in the RTT delay data;
according to the formulaCalculating and obtaining time delay data T of cloud game cg The method comprises the steps of carrying out a first treatment on the surface of the Wherein (1)>And representing the RTT delay average value.
Further, the cloud game client initiates RTT detection requests to a cloud game server side periodically, and for each initiated RTT detection request, calculates and obtains a group of network delay data corresponding to one RTT detection request according to the initiation time of the RTT detection request and the receiving time of an RTT request response returned by the cloud game server side for the RTT detection request, and maintains RTT delay data in the preset time period according to the total times of the RTT detection requests initiated in the preset time period; wherein, the RTT delay data includes at least two groups of network delay data.
In order to achieve the above object, an embodiment of the present invention further provides a delay measurement device for a cloud game, where the device is disposed at a cloud game server, and is configured to implement the delay measurement method for a cloud game according to any one of the above embodiments, where the device includes:
the local data acquisition module is used for acquiring first frame identification data of a latest frame game picture generated in a local video stream when a delay measurement request sent by a cloud game client is received in the cloud game running process; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
the client data acquisition module is used for analyzing and acquiring RTT time delay data in a preset time period maintained by the cloud game client and second frame identification data of the latest frame of game picture in the current video stream of the cloud game client, wherein the RTT time delay data is carried in the time delay measurement request;
the frame difference data acquisition module is used for acquiring frame difference data between the cloud game server side and the cloud game client side according to the first frame identification data and the second frame identification data;
and the cloud game time delay acquisition module is used for acquiring time delay data of the cloud game according to the RTT time delay data, the frame difference data and the FPS parameters of the cloud game.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program; wherein the computer program, when running, controls the device in which the computer readable storage medium is located to execute the method for measuring the time delay of the cloud game according to any one of the above.
The embodiment of the invention also provides a cloud game server, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the time delay measuring method of the cloud game when executing the computer program.
The embodiment of the invention also provides a time delay measurement system of the cloud game, which comprises a cloud game client and a cloud game server; wherein,
the cloud game client is used for initiating a time delay measurement request to the cloud game server in the cloud game operation process;
the cloud game server side is used for realizing the time delay measurement method of any one of the cloud games according to the time delay measurement request when the time delay measurement request is received.
Compared with the prior art, the embodiment of the invention provides a cloud game time delay measurement method, a device, a computer readable storage medium, a cloud game server and a system, wherein the cloud game server firstly acquires first frame identification data of a latest frame game picture generated in a local video stream when receiving a time delay measurement request sent by a cloud game client in the cloud game operation process, wherein each frame game picture in the local video stream is configured with corresponding frame identification data, and analyzes RTT time delay data in a preset time period maintained by the cloud game client and second frame identification data of the latest frame game picture in the current video stream of the cloud game client carried in the time delay measurement request; acquiring frame difference data between the cloud game server and the cloud game client according to the first frame identification data and the second frame identification data; and acquiring the delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameters of the cloud game. According to the embodiment of the invention, the frame identification data is utilized to obtain the frame difference data between the cloud game server and the cloud game client, and the measurement of the cloud game time delay data is completed through the RTT time delay data and the frame difference data on the basis of the cloud game RTT time delay data, so that the time delay measurement scheme can be simplified, the time delay measurement efficiency is improved, and the accuracy of the time delay measurement result is improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a method for measuring time delay of a cloud game provided by the present invention;
FIG. 2 is a block diagram of a preferred embodiment of a delay measurement device for a cloud game provided by the present invention;
fig. 3 is a block diagram of a preferred embodiment of a cloud game server provided by the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, are intended to fall within the scope of the present invention.
The embodiment of the invention provides a method for measuring time delay of a cloud game, and referring to fig. 1, the method is a flowchart of a preferred embodiment of the method for measuring time delay of a cloud game, the method is executed by a cloud game server, and the method comprises steps S11 to S14:
step S11, when a time delay measurement request sent by a cloud game client is received in the cloud game running process, first frame identification data of a latest frame of game picture generated in a local video stream is obtained; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
step S12, analyzing and acquiring RTT time delay data in a preset time period maintained by the cloud game client carried in the time delay measurement request and second frame identification data of the latest frame game picture in the current video stream of the cloud game client;
step S13, acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data;
and S14, acquiring the delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameters of the cloud game.
The cloud game operation mode is that a user performs game operation on a cloud game client, the game operation is transmitted to a cloud game server through a network, game picture changes caused by the game operation are converted into video streams after the cloud game server is rendered, and then the video streams are transmitted to the cloud game client through the network; in the embodiment of the invention, the cloud game server adds a unique frame identification data (for example, adds an identification bit of a frame ID) to each frame of game picture in the output video stream, and transmits the video stream with the frame identification data to the cloud game client; furthermore, a frame ID reporting mechanism is added to the cloud game client, so that the cloud game server can obtain corresponding frame identification data of the game picture frames in the video stream of the cloud game client.
Specifically, in the cloud game running process, a cloud game client periodically initiates an RTT detection request to a cloud game server, and RTT delay data in a preset time period is acquired and maintained through an RTT request response returned by the cloud game server; the cloud game client also periodically initiates a time delay measurement request to the cloud game server, and when each time of time delay measurement request is initiated, the cloud game client acquires second frame identification data corresponding to the latest frame of game picture in the current video stream and RTT time delay data in a preset time period currently maintained, and reports the two items of data to the cloud game server through the time delay measurement request; when a cloud game server receives a time delay measurement request sent by a cloud game client, on one hand, first frame identification data corresponding to a latest frame of game picture generated in a local video stream of the cloud game server is obtained, wherein each frame of game picture in the local video stream is configured with corresponding unique frame identification data, and on the other hand, RTT time delay data in a preset time period currently maintained by the cloud game client and second frame identification data corresponding to the latest frame of game picture in a current video stream of the cloud game client carried in the time delay measurement request are obtained by analyzing the time delay measurement request sent by the received cloud game client; and then, the cloud game server side can correspondingly calculate and acquire frame difference data between the game picture frame of the cloud game server side and the game picture frame of the cloud game client side according to the acquired first frame identification data and the acquired second frame identification data, and correspondingly calculate and acquire the time delay data of the cloud game according to the acquired RTT time delay data, the frame difference data and the FPS parameters of the cloud game.
It should be noted that, the RTT probe request is periodically initiated, when the cloud game is started, the RTT probe request is initiated periodically, and the delay measurement request of the cloud game is initiated periodically, and occurs after the RTT probe request is initiated; further, in order to ensure that the embodiment of the invention can be implemented smoothly, the initiation period corresponding to the RTT detection request is smaller than the initiation period corresponding to the delay measurement request, and the shorter the initiation period corresponding to the RTT detection request is, the higher the accuracy of the delay measurement result is, however, in practical application, the influence of frequent RTT detection on performance overheads of the cloud game client and the cloud game server needs to be considered.
It should be noted that, the FPS parameter of the cloud game represents the number of frames of game frames transmitted per second, and a specific value of the FPS parameter may be set by the user when the cloud game is started, or a default value may be directly used, so that the FPS parameter may be set and adjusted during the running process of the cloud game; in the embodiment of the invention, in the same time delay measurement period, the FPS parameter set by the user is generally kept unchanged, if the FPS parameter is found to change, the time delay measurement in the current period is abandoned, and in the next time delay measurement period, the FPS parameter is acquired again; further, because the FPS parameters are set by the user and are stored in the cloud game server, the cloud game client can periodically obtain the FPS parameters through RTT request response returned by the cloud game server when periodically initiating RTT detection requests to the cloud game server.
According to the cloud game time delay measurement method provided by the embodiment of the invention, the frame identification data is utilized to obtain the frame difference data between the cloud game server side and the cloud game client side, and the measurement of the cloud game time delay data is completed through the RTT time delay data and the frame difference data on the basis of the cloud game RTT time delay data.
In another preferred embodiment, the frame identification data is a numerical identification that monotonically increases with the order of game frame frames in the local video stream, and the step of increasing is k, k > 0;
and acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data, wherein the frame difference data specifically comprises:
according to the formulaCalculating and obtaining frame difference data delta F between a cloud game server side and a cloud game client side; wherein F is sid Representing the firstFrame identification data, F cid Representing the second frame identification data.
Specifically, in combination with the above embodiment, the cloud game server side is a numerical value identifier for the frame identifier data added in each frame of game picture in the local video stream, the numerical value identifier corresponding to each frame of game picture is in a monotonically increasing rule along with the sequence of the game picture frames in the local video stream, and the increasing step length is k, wherein k is greater than 0; correspondingly, the cloud game server side identifies the data F according to the acquired first frame sid And second frame identification data F cid When acquiring the frame difference data delta F, the method can directly be based on the formulaAnd calculating and obtaining frame difference data delta F between the game picture frame of the cloud game server side and the game picture frame of the cloud game client side.
Exemplary, assuming that the frame identification data is a positive integer and k=1, if the first frame identification data F sid =3, second frame identification data F cid =1, then frame difference data between the game frame of the cloud game server and the game frame of the cloud game clientNamely, the cloud game server side and the cloud game client side are separated by 2 frames of game pictures.
In another preferred embodiment, the acquiring delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameter of the cloud game specifically includes:
calculating frame delay data between a cloud game server side and a cloud game client side according to the frame difference data and FPS parameters of the cloud game;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data.
Specifically, in combination with the above embodiment, when the cloud game server obtains the delay data of the cloud game according to the obtained RTT delay data, the frame difference data and the FPS parameter of the cloud game, the frame delay data between the game picture frame of the cloud game server and the game picture frame of the cloud game client may be obtained by corresponding calculation according to the obtained frame difference data Δf between the game picture frame of the cloud game server and the game picture frame of the cloud game client and the FPS parameter of the cloud game; and then according to the acquired RTT time delay data and frame time delay data, correspondingly calculating to acquire the time delay data of the cloud game.
As an optional embodiment, the calculating frame delay data between the cloud game server and the cloud game client according to the frame difference data and the FPS parameter of the cloud game specifically includes:
according to the formulaCalculating and obtaining frame delay data T between cloud game server side and cloud game client side f The method comprises the steps of carrying out a first treatment on the surface of the Wherein Δf represents the frame difference data, N represents the FPS parameter, and N > 0.
Specifically, in combination with the above embodiment, the cloud game server calculates the frame delay data T between the cloud game server and the cloud game client based on the obtained frame difference data Δf and the FPS parameter of the cloud game (denoted as N, which indicates that N game frame frames are transmitted per second, N > 0) f In this case, the formula can be directly usedCalculating and obtaining frame time delay data T between game picture frames of cloud game server side and game picture frames of cloud game client side f In milliseconds.
As an optional embodiment, the RTT delay data includes at least two groups of network delay data within the preset period of time;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data, wherein the time delay data specifically comprises the following steps:
calculating and obtaining an RTT delay mean value according to at least two groups of network delay data in the RTT delay data;
according to the formulaCalculating and obtaining time delay data T of cloud game cg The method comprises the steps of carrying out a first treatment on the surface of the Wherein (1)>And representing the RTT delay average value.
Specifically, in combination with the above embodiment, RTT delay data in a preset period of time maintained by the cloud game client includes at least two sets of network delay data; correspondingly, the cloud game server side is based on the acquired RTT time delay data and frame time delay data T f Calculating and obtaining time delay data T of cloud game cg When in use, the average value of RTT time delay can be obtained by corresponding calculation according to at least two groups of network time delay data contained in the obtained RTT time delay dataAnd then according to the formulaCalculating and obtaining time delay data T of cloud game cg In milliseconds.
Note that, the RTT delay data is denoted as T net At least two groups of network delay data contained in RTT delay data are recorded as T rtt1 、T rtt2 、…、T rttm Then RTT time delay average valueWherein m represents the group number of network delay data contained in the RTT delay data, and m is more than or equal to 2.
It should be noted that, considering the network delay between the cloud game client and the cloud game server, when the delay data of the cloud game is measured, the RTT delay average value of the RTT delay data may be calculatedFor the game picture of cloud game server obtained in the above embodimentFrame delay data T between face frame and game picture frame of cloud game client f The correction is carried out, and because the RTT time delay represents the round trip network time delay between the cloud game client and the cloud game server, the network time consumption corresponding to the cloud game time delay measurement request reaching the cloud game server in one way is +.>
In another preferred embodiment, the cloud game client initiates an RTT probe request to a cloud game server periodically, and for each initiated RTT probe request, calculates and obtains a set of network delay data corresponding to one RTT probe request according to the initiation time of the RTT probe request and the receiving time of an RTT request response returned by the cloud game server for the RTT probe request, and maintains RTT delay data in the preset time period according to the total number of times of the RTT probe request initiated in the preset time period; wherein, the RTT delay data includes at least two groups of network delay data.
Specifically, in combination with the above embodiment, in the cloud game running process, the cloud game client periodically initiates an RTT probe request to the cloud game server, and after each time the cloud game server receives the RTT probe request initiated by the cloud game client, the cloud game server simply replies and returns a corresponding RTT request response, and because the response logic is simple, the processing delay of the cloud game server is usually smaller (less than 1 ms), so that the response processing delay of the RTT probe request is negligible, that is, in the embodiment of the present invention, the response request processing delay is not considered; further, for each initiated RTT probe request, the cloud game client records the initiation time T of the local current initiated RTT probe request req When receiving an RTT request response returned by the cloud game server for the currently initiated RTT probe request, recording the receiving time T for receiving the RTT request response res Correspondingly, the cloud game client initiates time T according to the recorded RTT detection request req And RTT request acknowledgementIs set to be a reception time T of (2) res A group of network delay data T corresponding to the currently initiated RTT detection request can be calculated and obtained rtt =T res -T req ,T rtt The method can be used for displaying the real-time network quality of the cloud game client; further, in the embodiment of the present invention, the cloud game client may maintain RTT delay data in a preset period according to a total number of RTT probe requests initiated in the preset period, where the RTT delay data in the preset period includes at least two sets of network delay data, and it may be understood that the number of sets of network delay data included in the RTT delay data in the preset period is the same as the total number of RTT probe requests initiated in the preset period.
For example, assuming that the cloud game client initiates an RTT probe request every 10ms, and the preset period of time is the last 1min, six RTT probe requests are initiated within 1min, and six sets of network delay data are correspondingly obtained, and accordingly, the cloud game client may maintain six sets of network delay data within the last 1min, that is, RTT delay data T within the last 1min net Includes six groups of network delay data, respectively T rtt1 、T rtt2 、…、T rtt6
For example, assuming that a user sets a drawing body cloud verification game with 30FPS at a cloud game client, RTT detection is performed once every 10ms, and RTT delay data within the last 1min are respectively: 18ms, 20ms, 24ms, 20ms, 22ms and 22ms, when a cloud game time delay measurement request is initiated, the frame ID of the latest frame game picture reported by a cloud game client is 100, when the cloud game server receives the time delay measurement request, the frame ID of the latest frame game picture obtained by the cloud game server is 102, and k=1, the time delay of the cloud game obtained by the measurement is:
the embodiment of the invention also provides a delay measurement device of a cloud game, which is arranged at a cloud game server side and is used for realizing the delay measurement method of the cloud game in any embodiment, and referring to fig. 2, the delay measurement device of the cloud game is a structural block diagram of a preferred embodiment of the delay measurement device of the cloud game, and the device comprises:
the local data acquisition module 11 is configured to acquire, when a delay measurement request sent by a cloud game client is received during a cloud game running process, first frame identification data of a latest frame of game picture generated in a local video stream; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
the client data obtaining module 12 is configured to parse and obtain RTT delay data in a preset period of time maintained by the cloud game client and second frame identification data of a latest frame of game picture in a current video stream of the cloud game client, where the RTT delay data is carried in the delay measurement request;
a frame difference data obtaining module 13, configured to obtain frame difference data between a cloud game server and a cloud game client according to the first frame identification data and the second frame identification data;
the cloud game delay acquiring module 14 is configured to acquire delay data of a cloud game according to the RTT delay data, the frame difference data, and FPS parameters of the cloud game.
Preferably, the frame identification data is a numerical identification, the numerical identification monotonically increases with the sequence of the game picture frames in the local video stream, and the increasing step length is k, wherein k is more than 0;
the frame difference data acquisition module 13 is specifically configured to:
according to the formulaCalculating and obtaining frame difference data delta F between a cloud game server side and a cloud game client side; wherein F is sid Representing the first frame identification data, F cid Representing the second frame identification data.
Preferably, the cloud game time delay acquiring module 14 specifically includes:
the frame delay data calculation unit is used for calculating frame delay data between the cloud game server side and the cloud game client side according to the frame difference data and the FPS parameters of the cloud game;
and the cloud game time delay calculation unit is used for calculating and obtaining time delay data of the cloud game according to the RTT time delay data and the frame time delay data.
Preferably, the frame delay data calculating unit is specifically configured to:
according to the formulaCalculating and obtaining frame delay data T between cloud game server side and cloud game client side f The method comprises the steps of carrying out a first treatment on the surface of the Wherein Δf represents the frame difference data, N represents the FPS parameter, and N > 0.
Preferably, the RTT delay data includes at least two groups of network delay data within the preset period of time;
the cloud game time delay calculation unit is specifically configured to:
calculating and obtaining an RTT delay mean value according to at least two groups of network delay data in the RTT delay data;
according to the formulaCalculating and obtaining time delay data T of cloud game cg The method comprises the steps of carrying out a first treatment on the surface of the Wherein (1)>And representing the RTT delay average value.
Preferably, the cloud game client initiates an RTT probe request to a cloud game server periodically, and for each initiated RTT probe request, calculates and obtains a set of network delay data corresponding to the RTT probe request once according to the initiation time of the RTT probe request and the receiving time of an RTT request response returned by the cloud game server for the RTT probe request, and maintains RTT delay data in the preset time period according to the total number of times of the RTT probe request initiated in the preset time period; wherein, the RTT delay data includes at least two groups of network delay data.
It should be noted that, the time delay measurement device for cloud game provided by the embodiment of the present invention can implement all the processes of the time delay measurement method for cloud game described in any embodiment, and the functions and implemented technical effects of each module and unit in the device are respectively the same as those of the time delay measurement method for cloud game described in the embodiment, and are not repeated here.
The embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program; the computer program controls the device where the computer readable storage medium is located to execute the time delay measuring method of the cloud game according to any one of the embodiments.
An embodiment of the present invention further provides a cloud game server, referring to fig. 3, which is a block diagram of a preferred embodiment of the cloud game server provided by the present invention, where the cloud game server includes a processor 10, a memory 20, and a computer program stored in the memory 20 and configured to be executed by the processor 10, where the processor 10 implements the method for measuring a time delay of a cloud game according to any one of the foregoing embodiments when the computer program is executed.
Preferably, the computer program may be divided into one or more modules/units (e.g. computer program 1, computer program 2, … …) which are stored in the memory 20 and executed by the processor 10 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program in the cloud game server.
The processor 10 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., the general purpose processor may be a microprocessor, or the processor 10 may be any conventional processor, the processor 10 being a control center of the cloud game server, with various interfaces and lines connecting various parts of the cloud game server.
The memory 20 mainly includes a program storage area, which may store an operating system, application programs required for at least one function, and the like, and a data storage area, which may store related data and the like. In addition, the memory 20 may be a high-speed random access memory, a nonvolatile memory such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc., or the memory 20 may be other volatile solid-state memory devices.
It should be noted that the cloud game server may include, but is not limited to, a processor, a memory, and those skilled in the art will appreciate that the block diagram of fig. 3 is merely an example of the cloud game server, and is not limited to the cloud game server, and may include more or less components than those illustrated, or may combine some components, or different components.
The embodiment of the invention also provides a time delay measurement system of the cloud game, which comprises a cloud game client and a cloud game server; wherein,
the cloud game client is used for initiating a time delay measurement request to the cloud game server in the cloud game operation process;
the cloud game server side is used for realizing the time delay measurement method of the cloud game according to any one of the embodiments according to the time delay measurement request when the time delay measurement request is received.
It should be noted that, the time delay measurement system for cloud game provided by the embodiment of the present invention can implement all the processes of the time delay measurement method for cloud game described in any embodiment, and the actions and the working processes of the cloud game client and the cloud game server in the system are respectively the same as those of the cloud game client and the cloud game server in the time delay measurement method for cloud game described in the embodiment, and are not repeated here.
In summary, the method, the device, the computer readable storage medium, the cloud game server and the system for measuring the time delay of the cloud game provided by the embodiment of the invention acquire frame difference data between the cloud game server and the cloud game client by utilizing the frame identification data, and finish the measurement of the cloud game time delay data by using the RTT time delay data and the frame difference data on the basis of the cloud game RTT time delay data.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.

Claims (10)

1. A method for measuring a time delay of a cloud game, wherein the method is executed by a cloud game server, the method comprising:
in the cloud game running process, when a time delay measurement request sent by a cloud game client is received, first frame identification data of a latest frame of game picture generated in a local video stream is obtained; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
analyzing and acquiring RTT time delay data in a preset time period maintained by the cloud game client and second frame identification data of a latest frame of game picture in a current video stream of the cloud game client, wherein the RTT time delay data is carried in the time delay measurement request;
acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data;
and acquiring delay data of the cloud game according to the RTT delay data, the frame difference data and the FPS parameters of the cloud game.
2. The method for measuring time delay of a cloud game according to claim 1, wherein the frame identification data is a numerical identification which monotonically increases with the sequence of game picture frames in the local video stream, and the increasing step length is k, k > 0;
and acquiring frame difference data between a cloud game server side and a cloud game client side according to the first frame identification data and the second frame identification data, wherein the frame difference data specifically comprises:
according to the formulaCalculating and obtaining frame difference data delta F between a cloud game server side and a cloud game client side; wherein F is sid Representing the first frame identification data, F cid Representing the second frame identification data.
3. The method for measuring the time delay of the cloud game according to claim 1, wherein the obtaining the time delay data of the cloud game according to the RTT time delay data, the frame difference data and the FPS parameter of the cloud game specifically comprises:
calculating frame delay data between a cloud game server side and a cloud game client side according to the frame difference data and FPS parameters of the cloud game;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data.
4. The method for measuring the time delay of the cloud game according to claim 3, wherein the calculating the frame time delay data between the cloud game server and the cloud game client according to the frame difference data and the FPS parameter of the cloud game specifically comprises:
according to the formulaCalculating and obtaining frame delay data T between cloud game server side and cloud game client side f The method comprises the steps of carrying out a first treatment on the surface of the Wherein Δf represents the frame difference data, N represents the FPS parameter, and N > 0.
5. The method for measuring the time delay of the cloud game according to claim 4, wherein the RTT delay data comprises at least two sets of network delay data within the preset time period;
and calculating to obtain the time delay data of the cloud game according to the RTT time delay data and the frame time delay data, wherein the time delay data specifically comprises the following steps:
calculating and obtaining an RTT delay mean value according to at least two groups of network delay data in the RTT delay data;
according to the formulaCalculating and obtaining time delay data T of cloud game cg The method comprises the steps of carrying out a first treatment on the surface of the Wherein (1)>And representing the RTT delay average value.
6. The method for measuring the time delay of the cloud game according to any one of claims 1 to 5, wherein the cloud game client initiates RTT probe requests to a cloud game server periodically, and for each initiated RTT probe request, calculates and obtains a set of network time delay data corresponding to one RTT probe request according to the initiation time of the RTT probe request and the receiving time of an RTT request response returned by the cloud game server for the RTT probe request, and maintains RTT time delay data in the preset time period according to the total number of the RTT probe requests initiated in the preset time period; wherein, the RTT delay data includes at least two groups of network delay data.
7. A delay measurement device for cloud games, wherein the device is arranged at a cloud game server side and is used for realizing the delay measurement method for cloud games according to any one of claims 1 to 6, and the device comprises:
the local data acquisition module is used for acquiring first frame identification data of a latest frame game picture generated in a local video stream when a delay measurement request sent by a cloud game client is received in the cloud game running process; wherein, each frame of game picture in the local video stream is configured with corresponding frame identification data;
the client data acquisition module is used for analyzing and acquiring RTT time delay data in a preset time period maintained by the cloud game client and second frame identification data of the latest frame of game picture in the current video stream of the cloud game client, wherein the RTT time delay data is carried in the time delay measurement request;
the frame difference data acquisition module is used for acquiring frame difference data between the cloud game server side and the cloud game client side according to the first frame identification data and the second frame identification data;
and the cloud game time delay acquisition module is used for acquiring time delay data of the cloud game according to the RTT time delay data, the frame difference data and the FPS parameters of the cloud game.
8. A computer readable storage medium, wherein the computer readable storage medium comprises a stored computer program; wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the time delay measurement method of a cloud game according to any one of claims 1 to 6.
9. A cloud game server comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of latency measurement of a cloud game according to any of claims 1 to 6 when the computer program is executed.
10. A time delay measurement system of cloud game, which is characterized by comprising a cloud game client side and a cloud game server side; wherein,
the cloud game client is used for initiating a time delay measurement request to the cloud game server in the cloud game operation process;
the cloud game server side is used for realizing the time delay measurement method of the cloud game according to any one of claims 1-6 according to the time delay measurement request when the time delay measurement request is received.
CN202310952607.9A 2023-07-31 2023-07-31 Cloud game time delay measurement method, device, cloud game server and system Pending CN117041101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310952607.9A CN117041101A (en) 2023-07-31 2023-07-31 Cloud game time delay measurement method, device, cloud game server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310952607.9A CN117041101A (en) 2023-07-31 2023-07-31 Cloud game time delay measurement method, device, cloud game server and system

Publications (1)

Publication Number Publication Date
CN117041101A true CN117041101A (en) 2023-11-10

Family

ID=88629103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310952607.9A Pending CN117041101A (en) 2023-07-31 2023-07-31 Cloud game time delay measurement method, device, cloud game server and system

Country Status (1)

Country Link
CN (1) CN117041101A (en)

Similar Documents

Publication Publication Date Title
US8316155B2 (en) Distributed robust clock synchronization
CN107231533B (en) synchronous exposure method and device and terminal equipment
CN112154669B (en) Correlation of video stream frame timestamps based on system clock
WO2021082667A1 (en) Video data encoding method and device, apparatus, and storage medium
US10834391B2 (en) Hologram streaming machine
US8639796B2 (en) Monitoring the performance of a streaming media server using server-side and client-side measurements
CN111901617B (en) Method and device for calculating live broadcast watching time length
CN106911927B (en) Method and device for evaluating experience quality of network video user and DPI equipment
JP4308227B2 (en) Video quality estimation device, video quality management device, video quality estimation method, video quality management method, and program
JP2016537692A (en) Method and system for performing image identification
US20090262836A1 (en) Method of processing a coded data stream
CN107392983B (en) Method and system for recording animation
CN109413371A (en) Video frame rate calculation method and device
CN111050169B (en) Method and device for generating quantization parameter in image coding and terminal
CN110751045A (en) Fault recording method, system and terminal equipment
CN117041101A (en) Cloud game time delay measurement method, device, cloud game server and system
CN114945097B (en) Video stream processing method and device
CN114071127A (en) Live video delay testing method and device, storage medium and electronic equipment
JP7431514B2 (en) Method and system for measuring quality of video call service in real time
CN109981391B (en) Sampling method, device and readable storage medium
CN114629826A (en) Network maximum bandwidth estimation method and device, electronic equipment and storage medium
CN112866745A (en) Streaming media video data processing method and device, computer equipment and storage medium
JP6501691B2 (en) Client device of content distribution system, method and program for determining playback start timing of content
JP6114702B2 (en) User experience quality estimation device, user experience quality estimation method, and program
US20220239865A1 (en) Measuring audio and video latencies in virtual desktop environments

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination