Movatterモバイル変換


[0]ホーム

URL:


CN113207016A - Virtual machine image frame rate control method, network device and storage medium - Google Patents

Virtual machine image frame rate control method, network device and storage medium
Download PDF

Info

Publication number
CN113207016A
CN113207016ACN202110336922.XACN202110336922ACN113207016ACN 113207016 ACN113207016 ACN 113207016ACN 202110336922 ACN202110336922 ACN 202110336922ACN 113207016 ACN113207016 ACN 113207016A
Authority
CN
China
Prior art keywords
image
virtual machine
frame rate
client
fps
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.)
Granted
Application number
CN202110336922.XA
Other languages
Chinese (zh)
Other versions
CN113207016B (en
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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies 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 New H3C Big Data Technologies Co LtdfiledCriticalNew H3C Big Data Technologies Co Ltd
Priority to CN202110336922.XApriorityCriticalpatent/CN113207016B/en
Publication of CN113207016ApublicationCriticalpatent/CN113207016A/en
Application grantedgrantedCritical
Publication of CN113207016BpublicationCriticalpatent/CN113207016B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The application provides a virtual machine image frame rate control method, network equipment and a storage medium, wherein the virtual machine image frame rate control method comprises the following steps: saving a virtual machine configuration file; receiving a display card instruction of the virtual machine and recording the instruction time of the display card; analyzing the video card instruction to obtain a virtual machine image and a surface of the image; judging whether the frame rate of the images sent by the virtual machine is higher than a set maximum frame rate max _ fps; if the frame rate is in the set range, sending the image to the client in a compression coding mode; if the frame rate is higher than the set range, a timer is started, and the images are sent to the client in the full-screen streaming mode of the images at the time interval of 1/max _ fps. According to the embodiment of the application, the highest frame rate is set, and different image transmission modes are adopted for the images at different frame rates. The high frame rate image is directly transmitted through a full screen stream mode, so that the problems of decoding blockage and delay blockage of the high frame rate image transmitted to the client are solved.

Description

Virtual machine image frame rate control method, network device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, a network device, and a storage medium for controlling an image frame rate of a virtual machine.
Background
The virtual machine (cloud desktop) is based on a virtual desktop infrastructure, and can host the desktop environment of a user to a high-performance server in the form of a cloud desktop, so that the user experience almost the same as that of a physical computer is provided for the user. The method is widely applied to the solution of the cloud desktop such as daily office, school teaching and the like.
When the image on the virtual machine (cloud desktop) is rapidly updated, if the image is sent to the client in a general compression coding mode, a large amount of bandwidth is occupied, and the problem of terminal decoding congestion is caused.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a virtual machine image frame rate control method, a network device, and a storage medium.
According to a first aspect of embodiments herein a virtual machine image frame rate control method,
saving a configuration file of the virtual machine, wherein the configuration file at least comprises the highest frame rate max _ fps of image transmission;
receiving a display card instruction of the virtual machine, and recording the instruction time of the display card;
analyzing the video card instruction to obtain an image of the virtual machine and a surface of the image;
judging whether the frame rate of the received images sent by the virtual machine is higher than a set maximum frame rate max _ fps;
if the frame rate is in the set range, sending the image to the client in a compression coding mode;
if the frame rate is higher than the set range, a timer is started, and the images are sent to the client in the full-screen streaming mode of the images at the time interval of 1/max _ fps.
Preferably, the configuration file further comprises a timeout time timeout for the timer to time the acquisition of the image,
if the time interval exceeds 1/max _ fps and no video card instruction sent by the virtual machine is received, starting a timer, and judging the difference between the current recording time of the timer and the time when the last video card instruction is received;
if the difference value is smaller than timeout, acquiring a full-screen streaming mode image of the image and sending the full-screen streaming mode image to the client;
if the difference is larger than or equal to timeout, the image is not updated, the timer is closed, and the image is sent to the client in a compression coding mode.
Preferably, under the condition that the difference value is less than timeout, the full-screen streaming mode image is transmitted to the client, and the timer is reset, and the time interval is 1/max _ fps.
Further, the step of judging whether the frame rate of the received image sent by the virtual machine is higher than the set maximum frame rate max _ fps comprises the following steps:
finding corresponding image data on the shared storage of the virtual machine through an image storage address in the surface;
and judging whether the frame rate of the currently found image is higher than the set highest frame rate max _ fps.
Preferably, the method comprises the steps of receiving a display card instruction of the virtual machine, establishing protocol connection with the virtual machine before recording the display card instruction time, and acquiring identification information of the virtual machine.
Further, the identification information includes at least ip and port information of the virtual machine.
The embodiment of the present application further provides a network device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to perform the above-mentioned method for controlling the image frame rate of the virtual machine.
Finally, the present embodiment also provides a storage medium, on which computer program instructions are stored, and the program instructions are executed by a processor to implement the above-mentioned method for controlling the image frame rate of the virtual machine.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the present description, by setting the highest frame rate, the image adopts different image transmission modes at different frame rates. The high frame rate image is directly transmitted through a full screen stream mode, so that the problems of decoding blockage and delay blockage when the high frame rate image is transmitted to a client are solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a schematic diagram of networking of an embodiment of the present application;
FIG. 2 is a flowchart of a method for controlling a frame rate of a virtual machine according to the present application;
fig. 3 is a flowchart of sending an image when a virtual machine is not timed according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
In order to solve the problems in the background art, the application provides a virtual machine image frame rate control method, and a client acquires image information on a virtual machine through a host. In the networking, a client needs to establish link connection with a host machine at first, the host machine needs to establish protocol connection with a virtual machine, and the host machine acquires identification information of the virtual machine. The host typically has multiple virtual machines (virtual machine 1, virtual machine 2, and virtual machine 3) hanging down, and the host is connected with multiple clients (client 1, client 2, and client 3), as in fig. 1. The embodiment of the present application takes an example where the client 1 requests to acquire an image on the virtual machine 1 through the host as an example. In addition, the protocol established between the host and the virtual machine in the above embodiment may be, for example, an existing RDP or spice protocol, or may be a custom protocol. Since it is not the point of the invention of the present application, it will not be described herein in detail. The host machine and each virtual machine client only have one protocol connection process, and the host machine and each virtual machine client are connected to the server side of the host machine through the process and used for image transmission. After the host machine and the virtual machine are connected through the protocol, the host machine obtains the identification information of the virtual machine, the identification information at least comprises ip and port information of the virtual machine, and one-to-one connection between a server side of the host machine and the progress of the virtual machine and image information interaction are achieved. The host machine stores configuration files of each virtual machine. The configuration file is mainly the highest frame rate max _ fps for sending the image, and the timeout time timeout for timer timing to acquire the image. And analyzing the display card instruction to obtain the image, the image storage address information and the like of the corresponding virtual machine.
As shown in fig. 2, the specific interaction process is as follows:
the client 1 requests the host machine for the image of the virtual machine 1, so that the host machine sends an image request to the virtual machine 1 after receiving the request;
the host machine receives a display card instruction of the virtual machine 1 and records the arrival time of the display card instruction;
the host machine analyzes the display card instruction to obtain the image of the corresponding virtual machine and the surface of the image; judging whether the frame rate of the received image transmitted from the virtual machine 1 is higher than the set highest frame rate max _ fps; if the frame rate is in the set range, the image is sent to the client 1 in a compression encoding mode; if the frame rate is higher than the set range, a timer is started, and the image is transmitted to the client 1 in the full-screen streaming mode of the image at a time interval of 1/max _ fps. It should be noted here that the full screen streaming mode refers to transmitting an image in the form of a full screen video. And the image transmitted by the general compression coding method is transmitted in the form of a common picture or a photo.
The surface in the application refers to a storage address of a host server for storing a current display sending image of a virtual machine. The storage address refers to the storage address of the image stored on the shared storage of all the down-hanging virtual machines of the host.
Because the virtual machine 1 may not send a video card instruction to the host at the set time interval of 1/max _ fps, starting a timer of a host server process, judging the difference between the current recording time of the timer and the time of receiving the last previous instruction, and if the difference is less than timeout, acquiring a full-screen streaming mode image of the image and sending the full-screen streaming mode image to the client 1; if the difference is greater than or equal to timeout, the image is not updated, the timer is closed, and the image is sent to the client 1 in a compression coding manner, as shown in fig. 3.
In the above embodiment, the method for determining whether the frame rate of receiving the image transmitted by the virtual machine 1 is higher than the set maximum frame rate max _ fps includes:
finding image data corresponding to the shared storage of all the virtual machines through the image storage address in the surface;
and judging whether the frame rate of the currently found image is higher than the set highest frame rate max _ fps.
According to the embodiment of the application, the highest frame rate is set, and different image transmission modes are adopted for the images at different frame rates. The high frame rate image is directly transmitted through a full screen stream mode, so that the problems of decoding blockage and delay blockage when the high frame rate image is transmitted to a client are solved.
The embodiment of the present application further provides a network device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the processor executes the method for controlling the image frame rate of the virtual machine according to the foregoing embodiment.
The embodiment of the present application further provides a storage medium, on which computer program instructions are stored, and the program instructions are executed by a processor to implement the method for controlling the image frame rate of the virtual machine according to the above embodiment.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (8)

CN202110336922.XA2021-03-292021-03-29Virtual machine image frame rate control method, network equipment and storage mediumActiveCN113207016B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110336922.XACN113207016B (en)2021-03-292021-03-29Virtual machine image frame rate control method, network equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110336922.XACN113207016B (en)2021-03-292021-03-29Virtual machine image frame rate control method, network equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN113207016Atrue CN113207016A (en)2021-08-03
CN113207016B CN113207016B (en)2022-05-27

Family

ID=77025865

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110336922.XAActiveCN113207016B (en)2021-03-292021-03-29Virtual machine image frame rate control method, network equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN113207016B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113973224A (en)*2021-09-182022-01-25阿里巴巴(中国)有限公司Method for transmitting media information, computing device and storage medium
CN117640627A (en)*2024-01-252024-03-01微网优联科技(成都)有限公司Collaborative work method and system realized through cloud computer
CN118175369A (en)*2024-03-122024-06-11山东乾云启创信息科技股份有限公司 A virtual desktop video display method and system based on SPICE protocol
CN118349366A (en)*2024-06-182024-07-16北京象帝先计算技术有限公司 Resource scheduler and method, graphics processing system, electronic component and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101170694A (en)*2007-10-192008-04-30上海广电(集团)有限公司中央研究院A method for real time monitoring signals of encoding device
US20080199156A1 (en)*2007-02-192008-08-21Canon Kabushiki KaishaApparatuses and methods for processing video signals
CN103747077A (en)*2013-12-312014-04-23华为技术有限公司Transmission mechanism adjusting method, server side and client
CN105611213A (en)*2016-01-042016-05-25京东方科技集团股份有限公司Image processing method, image play method and related device and system
CN109168013A (en)*2018-09-192019-01-08广州华多网络科技有限公司A kind of method, apparatus, equipment and computer readable storage medium for taking out frame
CN110493596A (en)*2019-09-022019-11-22西北工业大学A kind of video coding framework neural network based
CN110519633A (en)*2019-08-022019-11-29广州视源电子科技股份有限公司Wireless screen transmission method, device and system and intelligent interactive panel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080199156A1 (en)*2007-02-192008-08-21Canon Kabushiki KaishaApparatuses and methods for processing video signals
CN101170694A (en)*2007-10-192008-04-30上海广电(集团)有限公司中央研究院A method for real time monitoring signals of encoding device
CN103747077A (en)*2013-12-312014-04-23华为技术有限公司Transmission mechanism adjusting method, server side and client
CN105611213A (en)*2016-01-042016-05-25京东方科技集团股份有限公司Image processing method, image play method and related device and system
CN109168013A (en)*2018-09-192019-01-08广州华多网络科技有限公司A kind of method, apparatus, equipment and computer readable storage medium for taking out frame
CN110519633A (en)*2019-08-022019-11-29广州视源电子科技股份有限公司Wireless screen transmission method, device and system and intelligent interactive panel
CN110493596A (en)*2019-09-022019-11-22西北工业大学A kind of video coding framework neural network based

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113973224A (en)*2021-09-182022-01-25阿里巴巴(中国)有限公司Method for transmitting media information, computing device and storage medium
CN113973224B (en)*2021-09-182024-05-28阿里巴巴(中国)有限公司Media information transmission method, computing device and storage medium
CN117640627A (en)*2024-01-252024-03-01微网优联科技(成都)有限公司Collaborative work method and system realized through cloud computer
CN117640627B (en)*2024-01-252024-04-09微网优联科技(成都)有限公司Collaborative work method and system realized through cloud computer
CN118175369A (en)*2024-03-122024-06-11山东乾云启创信息科技股份有限公司 A virtual desktop video display method and system based on SPICE protocol
CN118349366A (en)*2024-06-182024-07-16北京象帝先计算技术有限公司 Resource scheduler and method, graphics processing system, electronic component and device

Also Published As

Publication numberPublication date
CN113207016B (en)2022-05-27

Similar Documents

PublicationPublication DateTitle
CN113207016B (en)Virtual machine image frame rate control method, network equipment and storage medium
CN111399964B (en)Cloud desktop platform based on video streaming technology
CN102158553B (en)Method and device for playing multi-media files for remote desktop
KR102387161B1 (en) Video screen projection method and apparatus, computer equipment, and storage medium
US8108577B1 (en)Method and apparatus for providing a low-latency connection between a data processor and a remote graphical user interface over a network
US7640358B2 (en)Methods and systems for HTTP streaming using an intelligent HTTP client
KR101942270B1 (en)Media playback apparatus and method including delay prevention system
CN113254130B (en)Method for adaptively adjusting resolution of cloud desktop
CN102387187A (en)Server, client as well as method and system for remotely playing video file by using client
CN105245914A (en) Cloud Desktop HD Video Transmission Protocol and Architecture
CN105898506A (en)Method and system for multi-screen playing of media files
CN105025294B (en)Video transmission control device and method
EP4287591A1 (en)Data transmission method and apparatus, and server, storage medium and program product
JP2022036307A (en) Client, server, receiving and sending methods
CN103248682A (en)Optimization method and device for bandwidth usage
US10404606B2 (en)Method and apparatus for acquiring video bitstream
CN103686077A (en)Double buffering method applied to realtime audio-video data transmission of 3G wireless network
JP2001092752A (en) Image data distribution system and recording medium used therefor
EP3440842B1 (en)Media stream prioritization
CN106686635B (en)Data transmission method and device based on control and configuration protocol of wireless access point
CN112866390B (en) A data transmission method, device, terminal equipment and storage medium
CN114827692A (en)System for operating cloud desktop based on smart television
CN112218123A (en)Network state self-adaptive image processing device and method
CN110636348B (en)Video playing method, device and system
CN120017880A (en) Video data processing method and device, storage medium and electronic device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp