Field of the Invention
Embodiments of the present invention generally relate to remote computing, and, more specifically, to user interface session management in a multi-session computing environment.
Description of the Related Art
Virtual Desktop Infrastructure (VDI) generally comprises a shared computing model in which a high performance computer, such as a server, runs multiple concurrent virtual machines (VM), each VM comprising an operating system and application software typical of a standard desktop computer. Remote computers, such as thin clients, zero clients, or mobile devices, each establish a connection with a particular VM, typically designated by a connection broker in communication with both the server and remote computing devices.
The user experience associated with a remote computing session between a VM and a remote computer becomes subject to performance degradation (i.e., increased latency, poor video quality, and/or dysfunctional peripheral devices) in various situations where the server becomes overloaded or the VM is migrated to a different server for administrative reasons, such as scheduled maintenance or load balancing measures.
Therefore, there is a need in the art for a system and method for managing remote computing sessions in such a manner as to overcome such degradation in the user experience.
Embodiments of the present invention generally relate to a method and apparatus for image encoding. In one embodiment, the method comprises encoding a first image portion by a first encoder associated with a first processor at a host system; dynamically determining a requirement to encode a second image portion by the first encoder or by a second encoder associated with a second processor at the host system; and encoding, based on the requirement, the second image portion by the first encoder or the second encoder.
So that the manner in which the above recited features of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this invention and are therefore not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
The present invention discloses a system and method for managing a remote computing session between a remote computer and a VM during migration of processing functions (e.g., codec functions) between the VM and a User Interface (UI) session processor.
A remote computer establishes a remote computing session with a VM operating on a particular host computer. If the VM has access to processing functions, such as image, Universal Serial Bus (USB), and/or audio coding functions advertised by a local UI session processor, the remote computing session is configured to include select advertised processing functions of the UI session processor rather than engaging similar functions provided by software in the VM itself. In some embodiments, such processing functions are migrated between the VM and the UI session processor within the context of an uninterrupted remote computing session to meet the dynamic processing distribution demands of the system.
In an embodiment, the host processors 112 host a virtualized desktop infrastructure (VDI) generally comprising a plurality of VMs (including VM 160 and other VMs not shown in
The host processors 112 are also coupled to network 150 by IP connection 170 supported by network switch 116. In an embodiment, host computer 110 is a blade or rack-mount server system with host processors 112 comprising pluggable blades or modules supported by network switch 116. In such an implementation, network switch 116 may comprise hardware-based switching apparatus from companies such as BROADCOM, MARVEL, or CISCO corporations, and/or virtualized software-based switching components, such as a NEXUS vSwitch from CISCO corporation. In a blade server system, network switch 116, bus switch 118, and UI session processor 114 are pluggable, backplane-assembled, or independently-mounted apparatus in different embodiments. However, it is to be understood that host computer 110 may take forms other than a blade server, such as a plurality of independent computers coupled by cables or a plurality of processing cores and connection logic co-located on one or more silicon die structures.
System 100 comprises a second host computer 120 with host processors 122 (depicted as host processor 1221 . . . 122L) and UI session processor 124, and having IP connections 174 and 176, aided by network switch 126 and bus switch 128, respectively, to network 150. Additionally, system 100 comprises host computers 130 and 180. Host computer 130 comprises host processors 132 (depicted as host processor 1321 . . . 132M), and has an IP connection 178, aided by network switch 136 to the network 150. Host computer 180 comprises host processors 182 (depicted as host processor 1821 . . . 182N), and has an IP connection 188, aided by network switch 186, to the network 150. Host computers 130 and 180 lack the UI session processors of host computers 110 and 120, as may be the case for generic off-the-shelf-server products. However, host computers 130 and 180 are nevertheless each enabled to host software services essential for providing remote computing sessions. In some embodiments, system 100 may comprise fewer or more host computers of the same type as host computers 110 and 120 (i.e., host computers comprising several host processors and at least one UI session processor), fewer or more host computers of the same type as host computers 130 and 180 (i.e., host computers comprising several host processors and lacking a UI session processor), or any combination of the foregoing. In some other alternative embodiments, the host computers 110, 120, 130, and 180 are servers (i.e., system 100 comprises a first set of servers comprising UI session processor resources and a second set of servers without such UI session processor resources).
The network 150 comprises a communication system (e.g., the Internet, LAN, Wide Area Network (WAN), and the like) that connects computer systems completely by wire, cable, fiber optic, and/or wireless links facilitated by various types of well-known network elements, such as connection broker 152, Network Address Translation (NAT) gateways, hubs, switches, routers, firewalls, and the like. The network 150 may employ various well-known protocols, such as security protocols, to communicate information amongst the network resources. For example, in an embodiment, network 150 is a corporate network including part of the Internet.
The remote computers 140 (depicted as remote computers 1401 . . . 140P), are, generally, computing devices enabled to provide remote computing functions, such as presenting a computer desktop image (i.e., image data) for display (i.e., a display image), providing ports for connecting peripheral devices, and a providing network interfaces for connection to network 150. For example, in an embodiment, remote computer 140 is a terminal in a networked remote computer system 100. Examples of such remote terminals include zero client computers, thin client computers, personal computers, notebook computers, workstations, Personal Digital Assistants (PDAs), wireless devices, and the like.
Remote computer 140 comprises various session management and processing resources for encoding or decoding media, including image data and peripheral device data, associated with a remote computing session. In an embodiment, remote computer 140 comprises at least one of an image decoder for decoding compressed display image data received from the host computer, an audio decoder for decompressing output audio data, and an audio encoder for compressing input audio data. Additionally, in such an embodiment, remote computer 140 may comprise a USB codec for managing the translation of USB data between format requirements of one or more underlying USB bus controllers and format requirements suitable for standard network communication, such as USB Request Block (URB) format used in USB-over-IP protocols known to the art. These codec functions and communication protocols are complementary to related codec functions and communication protocols executed by host processor and UI session processor elements of host computers 110 and 120 and/or related software services provided by host computers 130 and 180.
The remote computer 140 is coupled to User Interface (UI) sub-system 142, (depicted as UI sub-systems 1421 . . . 142P), typically including UI devices, such as display, mouse, keyboard, audio devices, and/or other devices such as biometric peripherals, webcam, printers, and the like. Such devices are generally coupled to remote computer 140 by industry compliant connections, such as USB, DisplayPort, Digital Visual Interface (DVI), and the like. The remote computer 140 comprises software stack components and session management functions, described herein, used for the establishment of a remote computing session with an available host computer (i.e., host computer 110, 120, 130, or 180).
One of the remote computers 140 establishes a connection with a virtual machine 160 (executed by a host processor 112) under direction of a connection broker 152 on network 150. The remote computing session between VM 160 and the remote computer 140 is aided by various codec functions resident within VM 160 and/or within UI session processor 114. In an embodiment, a particular codec function (e.g., an image compression function) is migrated (ref. migration path 166) between a codec function 180 of VM 160 and a similar codec function 182 of UI session processor 114 to meet the processing demands of the remote computing session.
In another embodiment, the termination endpoint at UI session processor 114 (and related network connection 172 to network 150) of a remote computing session between VM 160 and remote computer 140 is migrated from UI session processor 114 to VM 160 (and related network connection 170) without service interruption. Such a migration may be performed in preparation for a live migration of VM 160 (and the remote computing session) to host computer 120 (ref. VM migration path 162) or a live migration of VM 160 to host computer 130 (ref. VM migration path 164) or host computer 180 using VM migration methods known to the art. Of course, the VM 160 may also be migrated to a different host processor 112 of host computer 110, either by retaining the network session endpoint at UI session processor 114 and utilizing a different connection on switch 118, or by first moving the network session endpoint from UI session processor 114 to VM 160 followed by using a different connection on network switch 116 directed to the different host processor 112 hosting the relocated VM.
Generally, system 100 comprises multiple remote computers, each enabled to establish a remote computing session with an available VM and each host processor typically configured to execute many separate VMs. Typically, a host processor, such as host processor 112, is configured with hypervisor software 190 (also referred to as “hypervisor 190” or “hypervisor domain 190”) that runs directly on the host processor 112 and manages the execution of the separate VMs (i.e., VM 160 as well as any additional VMs). Examples of such hypervisor software 190 include ESX from VMWARE Corporation, XEN from CITRIX corporation, or HYPER-V from MICROSOFT corporation. In some embodiments, the hypervisor software 190 comprises a “type II” hypervisor, such as a LINUX operating system available from various vendors (e.g., ‘GSX Server’ from VMWARE, ‘Virtual PC’ from MICROSOFT, or ‘VIRTUALBOX’ from SUN MICROSYSTEMS), which incorporates various software applications that manage the execution of the separate VMs. In other embodiments, host processor 112 comprises one or more remote computing applications, such one or more terminal server applications. Such remote computing applications execute either inside VM 160 under management of hypervisor 190 or directly in an operating system environment of host processor 112 in the absence of hypervisor 190 or independent of hypervisor 190.
VM 160 comprises a suite of codecs 2101, including codec 180. The codecs 2101 comprise machine executable instructions directed at one or more media processing functions for encoding or decoding media associated with a remote computing session. Such media processing functions include audio compression for egress audio channels, audio decompression for ingress audio channels, other audio or voice processing functions, USB data coding or decoding functions, video decoder functions (e.g., enabled to decode an ingress video stream from a webcam), file compression functions, or image encoding functions. The suite of codecs 2101 of VM 160 are supported by codecs 240 in the remote computer 140. The codecs 240 provide complementary media processing functions, such as audio decompression for egress audio channels, audio compression for ingress audio channels, other audio or voice processing functions, USB data coding or decoding functions, video encoder functions (e.g., enabled to encode an ingress video stream from a webcam), file decompression functions, or image decoding functions.
Stack 2501 provides a network session termination point for various communications between remote computer 140 and VM 160, including media plane communications (e.g., peripheral device data and compressed image data) and control plane communications, such as session establishment, exchange of security information, tear down communications, and the like. In some embodiments, one or more lower layers of stack 2501, such as IP addressing functions, are implemented outside the domain of VM 160, e.g., in the hypervisor 190 or network switch 116.
UI Session processor 114 comprises codecs 212 (including codec 182) and protocol stack 2141 which provides protocol functions generally equivalent to those of stack 2501 when processor 114 serves as the network session endpoint with remote computer 140.
VM 160 is instantiated as VM 222 with codecs 2102 and stack 2502 following a live migration of the VM 160 from host computer 110 to host computer 120. It will be apparent to those of skill in the art of software engineering that codecs 2102 and stack 2502 are essentially replicas of codecs 2101 and stack 2501. UI Session processor 124 comprises codecs 224 (which may offer a different set of coded functions than those of codecs 212) and protocol stack 2142. Protocol stack 2142 provides protocol functions generally equivalent to those of stack 2502 under circumstances in which UI session processor 124 serves as the network session endpoint. Similarly, VM 160 is instantiated as VM 232 with codecs 2103 and stack 2503 after a migration from computer 110 to computer 130.
In an embodiment, the control path between host computer and remote computer implementations of stack 300 comprises slow path stack (SPS) 310, utilized for session signaling. The control path further comprises fast path stack (FPS) 320, utilized for control of the media plane which comprises various virtual channels of compressed image data and peripheral device data. SPS 310 and FPS 320 are each executed at both the host computer 110, 120, and 130, and the remote computer 140. Each stack 310 and 320 is layered, for example, according to the Open Systems Interconnect (OSI) reference model in which each layer encapsulates the packet passed down by a higher layer.
SPS 310 comprises session signaling (SSIG) layer 312 and secure channel (SCHAN) layer 314, underpinned by a reliable Transmission Control Protocol/Internet Protocol (TCP/IP) layer 316. Slow path traffic generally comprises infrequent signaling that is tolerant to scheduling delays, usually set to a lower communication priority than media plane or FPS-related communications. SSIG layer 312 is invoked during session startup and teardown. During session startup, SSIG layer 312 performs a startup handshake involving initial peer contact, peer authentication and negotiation of session parameters (such as encryption keys for FPS 320) with a peer SSIG layer at the other end of the network.
In an embodiment, a protocol comparable to Session Initiation Protocol (SIP), described in SIP specification version RFC 3261, is used by SSIG layer 312 to negotiate media capabilities (e.g., encoder attributes and peripheral device data types) and fast path communication parameters (e.g., encryption keys, security, and the like) using an INVITE handshake and exchange of Application Protocol Data Units (APDU) in conjunction with a Session Description Protocol (SDP), for example a protocol similar to SDP of RFC 4566 and RFC 3264. The SDP defines the session parameters exchanged by the SSIG layer 312 at host and remote computers. The remote computer 140 provides its SDP parameters (SDP offer) in the ‘INVITE’ APDU, and the server provides parameters (SDP answer) in the ‘INVITE_OK’ APDU. The SDP answer may include negotiated fast-path and media parameters to be used for the remote computing session. The SDP generally comprises of a mix of negotiable and non-negotiable parameters. In an embodiment, the remote computer 140 communicates a set of non-negotiable parameters (e.g., data plane connection IP address and port number(s)) and negotiable parameters (e.g., peripheral device data type and/or encoder attributes) to the peer stack of the host computer (e.g., stacks 250 or 214). The host stack uses the received negotiable parameters to negotiate local settings for the host computer, following which a combination of negotiated parameters and the host stack's non-negotiable parameters (e.g., data plane connection IP address and port number(s)) are communicated back to the remote computer 140 in the subsequent SDP answer. The remote computer 140 then uses the negotiated parameters sent by the peer stack of the host computer for the session.
In various embodiments, the SDP supports negotiation of parameters for User Interface Protocol (UIP) 328, such as data packet encapsulation preferences (e.g., UDP selection), link rate negotiation (e.g., 10 Mbps vs. 100 Mbps), Maximum Transmission Unit (MTU) size negotiation, encryption parameters, and attributes of peripheral device data virtual channels. Such attributes include peripheral data channel enablement switches for USB, audio, image, generic I/O, and Display Data Channel (DDC) data types, and peripheral data attributes, such as encoding method, audio format (e.g., specific Adaptive Differential Pulse Code Modulation (ADPCM) format), and the like. Once a session setup handshake completes, the SSIG layer 312 maintains a TCP connection with the peer and monitors end-to-end network connection integrity using a client-server keep alive mechanism. The SSIG layer 312 also tears down the remote computing session using a ‘BYE’ handshake, initiated either by the remote computer 140 or the current host computer (e.g., host computer 110). The secure channel SCHAN layer 314 provides a datagram-like service to higher entities and abstracts lower layer TCP or UDP oriented transport mechanics by accepting APDUs from the higher layer modules, generating packets, and transporting the data over an encrypted TCP socket (e.g., Transport Layer Security (TLS) Secure Socket Layer (SSL)) to the peer SCHAN layer which delivers APDUs to the higher layer modules at the peer.
The FPS stack 320 is generally a lightweight protocol tailored for rapid processing of frequent real-time communications data, consequently commanding a higher queuing and scheduling priority compared to traffic associated with SPS 310. The UIP layer 328 provides reliable and unreliable transport channels for media control information and data, including encryption and transport layer services for image data, peripheral device data, and control channels. The Simple Communications Protocol (SCP) layer 326 provides a connection oriented datagram-like service for setting up a peer-to-peer channel (using an ‘INVITE’ handshake) and packetizing user data for transport. In the case of underlying unreliable transport, SCP layer 326 implements a retransmit mechanism during the initial connection handshake and, when reliable transport is available, SCP layer 326 uses the provided transport mechanism to guarantee delivery of handshake-related packets to the SCP peer. SCP layer 326 provides Segmentation and Reassembly (SAR) services and multiplexing services to enable transport of data sets larger than the maximum permissible MTU size and multiplexing of different peripheral device data types over common virtual channels.
The media control layer 324 provides a datagram service and abstracts the UIP transport details from codec control layer 322 and the codecs 210, 212, 224 or 240. End-to-end control communications are provided over a combination of reliable and unreliable control channels, typically at least one control channel designated for each virtual channel of the remote computing session. The media control layer 324 uses the SCP layer 326 to encapsulate control information into SCP packets and provide a set of bidirectional channels between the host computer (e.g., host computer 110) and remote computer 140. Codec control layer 322 includes modules such as USB, audio, imaging, DDC, and generic I/O modules tasked with negotiating codec settings and configuring the codecs 210, 212, 224 or 240. Each module comprises a list of the attributes of the related codec(s), such as specific device support (e.g., device type), features (e.g., number of displays), capabilities (e.g., audio capabilities, I/O buffer depth, and the like) and encoding attributes.
Encryption is accomplished by encrypting packets prior to MAC transmission. In an embodiment, encryption properties of SPS 310 are managed at secure channel layer SCHAN 314, while those of FPS 320 are managed by the UIP 328.
Turning next to the fast path depicted in
During the active remote computing session (phase 520), there is an ongoing exchange of media between the host computer 110 and the remote computer 140 as step 522, in conjunction with periodic keep-alive signaling 524 used to detect session failure. During session teardown phase 530, either the host computer 110 or the remote computer 140 initiates ‘BYE’ handshaking as step 532 for graceful termination of the session.
The method 600 starts at step 601 and proceeds to step 602 (“Endpoint?”). At step 602, it is determined if the network session portion of a remote computing session between a VM 160 on the host computer 110 and the remote computer 140 is to be terminated by a communication stack (ref. stack 2501 in
In some embodiments, it is determined at step 602 that the network session should be terminated at the UI session processor 114, and the method 600 proceeds to step 640. Such a determination may be made, for example, if the host processor 1121 is deemed to have resource constraints rendering it desirable to offload one or more media processing functions (such as image compression) to UI session processor codecs (ref. codecs 212 of
In some embodiments, it is determined at step 602 that the network session should be terminated at the host computer's host processor, and the method 600 proceeds to step 610 (“Establish session with VM”) to establish a network session between the remote computer 140 and a network interface of the host processor 1121 utilizing, for example, an IP connection at the host processor 1121 (ref. connection 170 in
At step 620 (“Process portion of virtual channel”), one or more data streams from one or more virtual channels are processed by software in the VM domain and communicated to the remote computer 140. In the case of a virtual channel comprising display image data, the desktop display image is rendered in a frame buffer by graphics software (with optional GPU support), compressed by a software image processing codec of the VM 160 (using lossy and/or lossless image compression methods), assembled into packets (utilizing communication stack 2501), and communicated over the network using connection 170. In the case of an audio virtual channel, output audio data is retrieved from audio buffers, optionally compressed by an audio codec of the VM 160, such as an ADPCM codec (ref. codecs 2101), assembled into packets, and communicated to the remote computer 140, also via communication stack 2501 and connection 170. While different media types generally use different virtual channels within a common session designation, some embodiments multiplex different media types (identified by sub-packet header) within a single virtual channel. Ingress virtual channel data is subjected to similar processing in the opposite direction.
The method 600 proceeds to step 630 (“Switch?”), where it is determined if the remote computing session should be transitioned to an underlying network session terminated by UI session processor 114. If a switch is required, method 600 proceeds to step 640 in order to engage one or more functions of UI session processor 114. Such a switch may be triggered by any of several requirements or system status changes. For example, a switch might be triggered by a bandwidth threshold for a virtual channel, according to recent history, or anticipated demand. The data bandwidth may exceed a threshold for any of several reasons such as increased bit rate or frame update rate when switching to a high performance graphics application, such as a CAD application. In another embodiment, a threshold is triggered when frame updates are dropped as a consequence of image compression functions lagging the display update rate due to insufficient processing resources, increased image complexity, or increased loading of the CPU by other software. In another embodiment, such a switch is triggered by the advertised availability of previously allocated codec resources in the UI session processor 114. Yet another trigger might be a change in remote computing session attributes (such as a change in the graphics software application, a change in graphics or audio fidelity requirements, or a change in peripheral device configuration, such as the addition of a display device).
If, at step 630, it is determined that a switch is required, the method 600 proceeds to step 640 (“Establish session with session processor) to establish a network session between the remote computer 140 and the UI session processor 114 in anticipation of communications using UI session processor functions. If a previously established network session has not been terminated, for example on a second or subsequent pass through step 640, method 600 proceeds directly to step 650 if session attributes are unchanged or session parameters are re-negotiated if necessary.
The method 600 proceeds to step 650 (“Process portion of virtual channel”), in which case data associated with one or more virtual channels is processed by UI session processor 114. In an embodiment of a virtual channel comprising display image data, the desktop display image is rendered in a frame buffer of VM 160, communicated to UI session processor 114 over interconnect 254, compressed by an image codec 212, assembled into packets utilizing stacks 214, and communicated over interconnect 172 to the remote computer 140. In the case of an audio stream, output audio data is retrieved from audio buffers of VM 160, optionally compressed either using a codec element of VM 160 or an audio codec 212, assembled into packets, and communicated over the network. As with host-assembled packets, each virtual channel may comprise one or more media types and packets may be communicated according to priorities, such as media type and latency requirements.
The method 600 proceeds to step 660 (“Switch?”) during which it is determined if the remote computing session should be transitioned to an underlying network session associated directly with the VM 160; alternatively, it may be determined whether to transition the remote computing session to a different VM of host processor 1121, If the result of such determination is yes, method 600 proceeds to step 610 to engage one or more processing resources of the VM 160. A switch to host processor 1121 may be motivated by various reasons, such as the data bandwidth of a virtual channel falling below a determined threshold, a codec resource of UI session processor 114 becoming under-utilized (e.g., less complex image processing requirements), a codec resource of UI session processor 114 being allocated to higher priority channels, processing resources of host processor 1121 becoming available, or changes in the remote computing session (e.g., changes in graphics or audio fidelity requirements, change in peripheral device or display configuration, changes in software application, or the like). The bandwidth associated with a compressed image virtual channel may fall for any of several reasons, including when the output bit rate or frame update rate of the image application decreases upon termination or suspension of a high performance graphics application, when a display is unplugged, or when a user stops interacting with the system. In one embodiment, a switch is initiated in preparation for live migration of VM 160 (e.g., from VM 160 in
If, at step 660, it is determined that a switch is not required, the method 600 returns to step 650. If, at step 660, it is determined to end the method 600, for example when the remote computing session is suspended or terminated, the method 600 proceeds to step 662 where it ends.
The method 700 starts at step 705 and proceeds to step 710 (“Establish session with first host and engage UI session processor”), where a remote computing session is established between a remote computer (ref computer 140 in
As a next step 720 (“Process session on first host”), the remote computing session established in step 710 is maintained as depicted for step 520 depicted in
As a next step 730, it is determined whether the VM 160 hosting the remote computing session should be migrated to a second computer (ref. computer 120 in
As a next step 742 (“Establish session with second host”), a remote computing session is established between the remote computer 140 and the VM 222, generally involving a new connection established between the remote computer 140 and either a host processor or a UI session processor associated with the migrated VM.
In some embodiments in which VM 160 uses connection 172 as a network connection to the remote computer 140, a bridging network session is established between VM 160 and the remote computer 140 using connection 170 (but having the same IP address and security credentials as connection 172) as an intermediate migration step, and the connection 172 may be suspended. Codec resources of VM 160 (ref. codecs 2101) may also be engaged as an intermediate measure to minimize service disruptions during session migration to the second host computer 120. The bridging network session is then redirected from host computer 110 to the target host computer (i.e., host computer 120) using the same IP address. Once a network session has been established between the host computer 120 and the remote computer 140 (i.e., using a connection 174 of
As a next step 750, the remote computing session is continued between the newly established VM 222 and the remote computer 140, using a combination of VM and UI session processor processing resources if available.
As a next step 760 (“Migrate?”), it is determined if the remote computing session shall be moved back to the first computer 110 (or, alternatively, another host computer). If migration is required, method 700 proceeds to step 770 (“Migrate VM”) in which case VM 222 (or, alternatively, VM 232 if migration to host computer 130 occurred) is migrated again, following which a network session is established with the new host as a repeat of step 710.
If, at step 760, it is determined that no migration is required and that the session should continue, the method 700 proceeds to step 750. If, at step 760, it is determined that the session should end, the method 700 proceeds to step 780 where it ends.
As a next step 820 (“Establish network session with second host”), a network session is established between the remote computer 140 and a UI session processor coupled to the host processor of a target VM (ref. UI session processor 124 coupled to target VM 222 of host processor 1221 on host computer 120 as depicted in
As a next step 830 (“Transition”), the remote computer 140 transitions from the first network session to the second network session in response to instructions issued by the target UI session processor 124, session processor management software on the target host processor 1221, or the connection broker when VM migration is complete. In an embodiment, both host processors 1121 and 1221 concurrently communicate compressed image data and peripheral device data using both network sessions (i.e., engaging both the initial and target UI session processors 114 and 124, respectively, during a negotiation phase) and redundant data may be discarded once the transition has completed. In another embodiment, data is switched from one network session to the other and expired data associated with the first session is discarded once the transition has completed.
As a next step 840, communication is continued between the remote computer 140 and the target VM 222 using the second established network session. The method 800 proceeds to step 850, where it ends.
Image software 910, USB drivers 940 and audio drivers 950 execute under management of operating system 960. Image software 910 generally includes one or more well known executable applications with image display presentation requirements, such as word processor, spreadsheets, video/photo editing software, graphics software (such as Desktop Publishing (DTP) software), or the like and underlying graphics drivers used to render related dynamic image display representations as pixel data in one or more frame buffers. USB drivers 940 generally comprise well known USB device drivers, USB core, and/or hub drivers and data structures, such as USB Request Blocks (URBs) associated with remote USB devices and software of VM 160 that use such devices. Audio drivers 950 generally comprise well known software and data structures, such as Command Output Ring Buffer (CORB) and/or Response Input Audio Buffer (RIRB), for managing the flow of audio data between underlying audio codecs and audio application software.
USB codec 942 generally comprises well known USB-over-IP communication software, including a virtualized host controller interface (VHCI) that operates in conjunction with stub- and host controller drivers at the remote computer 140 to service physical USB bus controllers and peripheral devices. Audio codec 952 typically comprises one or more audio processing functions, such as Differential Pulse Code Modulation (DPCM) coding, decimation, interpolation, uLaw/aLaw encoding, rice encoding, silence suppression, acoustic echo cancellation, packet loss concealment function, and the like. In some embodiments, codec 942 and/or codec 952 may provide functions such as data ordering, transport or play-out timing, or error handling functions when these functions are not handled by underlying stack 2501.
Image encoder 920 performs image encoding operations, such as one or more of image analysis (e.g., image type decomposition), image transform, text encoding, picture encoding, background encoding, progressive quantization, video encoding, and binary encoding suited to the encoding requirements of computer display image content. Image encoder 920 generally executes lossy and/or lossless compression of raster-ordered pixel data located in frame buffers updated by graphics software. Each frame buffer is typically partitioned into logical sections, such as blocks or slices of an image frame and updated areas (e.g., changed areas as designated by a dirty bit mask) are independently encoded and passed to stack 2501 for communication to the remote computer 140. The encoding method (i.e., lossy vs. lossless encoding) is generally selected according to image type information (e.g., background, text, picture, video or object types) determined by spatial and temporal features, such as contrast, color content, or other suitable parameters, and/or analysis of drawing commands executed by graphics software. Lossy encoding techniques may include wavelet encoding, Discrete Fourier Transform (DCT), Moving Picture Expert Group (MPEG), Joint Photographic Expert Group (JPEG) methods, while examples of suitable lossless techniques include Golomb, Rice, Huffman, variable length encoder (VLC), context-adaptive VLC, or context-adaptive binary arithmetic encoder (CABAC) methods. Image encoder 920 may retain encoding state information for select logical partitions, thereby enabling the implementation of progressive encoding methods suited to management of network bandwidth consumption.
Image encoder 930 of UI session processor 114 generally comprises a hardware-optimized image encoding pipeline with lossy and lossless image compression functions that generates encoded image packets with the same decoder requirements as encoded image packets generated by image encoder 920. Image encoder 930 typically processes logical image sections according to the same section boundary definitions used by image encoder 920, thereby enabling different portions of image frames to be processed by either image encoder 920 or 930, or enabling mid-frame switching from one encoder to the other in a manner transparent to the image decoder at the remote computer 140. Structural details for such an image encoder 930 are disclosed in commonly assigned, co-pending patent application Ser. No. 12/657,618, filed Jan. 22, 2010, entitled “System and Method for Managing Multiple User Interface Sessions”, by Charles Peter Baron, David Victor Hobbs, Christopher Lawrence Topp, and Edlic Yiu. A method for transferring image updates generated by a virtualized frame buffer of VM 160 is disclosed in commonly assigned co-pending U.S. patent application Ser. No. 12/586,498, entitled “System and Method for Transferring Updates from Virtual Frame Buffers” and filed Sep. 23, 2009, which is also incorporated in its entirety by reference.
Distributor 912 comprises machine executable instructions enabled to switch encoding of a particular logical image section or frame between image encoders 920 and 930. In some embodiments, distributor 912 operates in conjunction with session processor management software located in the hypervisor domain to make a dynamic determination as to which encoder resource (i.e. image encoder 920 or 930) to engage; one such embodiment is depicted in
Image sections encoded by image encoder 930 are returned as packets (typically back to VM 160) which are multiplexed with packets from image encoder 920, if necessary, and communicated to the remote computer 140 using a host processor network interface (ref. switch 116 in
The hypervisor 190 comprises session processor management software 1012, which comprises functions for detection and initialization of UI session processor 114 and functions for managing individual image compression channels. Such functions include setup and teardown functions which generally operate in tandem with management firmware local to UI session processor 114 to allocate and de-allocate image data queues, descriptors, scratch memory, and encoder pipeline resources on a dynamic basis. In some embodiments, UI session processor 114 provides ongoing allocation statistics, such as data queue lengths, output frame update rates, aggregate encoded image quality information, power consumption information, or retransmission statistics, to management software 1012. Such allocation statistics are used in conjunction with CPU performance information provided by the hypervisor 190, network characteristics, and administrator settings (such as user-assigned resource priorities) to determine future encoding resource allocation for new VMs 160. Additionally or alternatively, such allocation statistics may be used to redistribute current encoding resources to achieve load balancing or display image quality objectives.
At startup, session processor management software 1012 detects the presence, availability, and operation state of UI session processor 114, which is presented to the distributors 9121, 9122 and 912N using status parameters 1022, 1024, and 1026, respectively, in shared memory 10201, 10202 and 1020N, respectively. A particular distributor 912 selects a software image encoder 920 or hardware image encoder 930 as instructed by session processor management software 1012. In an embodiment, status parameters 1022, 1024, and 1026 comprise a two-way data structure for communication of encoding requirements from the VM 160 to the session processor management software 1012, as well as communication of encoding timing information and encoder selection from the session processor management software 1012 to the distributor 912. As an example, the status parameters 1022, 1024, and 1026 are used to instruct distributors 912 to engage image encoder 930 in the face of high CPU demand by other VMs 160 or poor network reliability where a high retransmission frequency is anticipated. As another example, distributor 912 is instructed to revert to the VM software image encoder 920 in response to an anticipated drop in encoding requirements, such when a particular user suspends a graphics intensive software application or engages software such as a screensaver designated for reduced image quality.
In the event that a VM 160, such as VM 1601, is migrated to a different host processor or different host computer, distributor 9121 (operating on the new computer) detects the presence of session processor management software in the new environment. The availability and status of a UI session processor is determined via ongoing polling of the status parameters 1022 by the VM 1601. The UI session processor may be a new one (i.e., where the VM 160 is migrated to a different host computer) or the same one (i.e., where VM 160 is migrated to a different host processor on the same host computer). Given that the VM 1601 may be generally unaware of a live migration event, status parameters 1022 are used to provide an indication of a loss of connection with UI session processor 114 and a corresponding requirement to immediately revert to the VM software image encoder.
In some direct-mapped virtualization models, at least some of the functionality of session processor management software 1012 may be executed as firmware by the UI session processor 114 itself and distributors 912 may exchange status parameters 1022, 1024, and 1026 directly with the UI session processor 114. In other embodiments, at least some of the functionality of session processor management software 1012 may be executed by a connection broker.
Method 1100 starts at step 1102 and proceeds to step 1110 (“PERFORM IMAGE COMPRESSION USING VM ENCODER”). Generally, a VM of a host processor (ref. VM 160 of host processor 112 in
Method 1100 proceeds to step 1120 (“SWITCH?”) in which the encoding path is evaluated. Such an evaluation may occur on a periodic basis or in response to an interrupt event. In one case, the presence of the UI session processor 114 is detected by session processor management software in the hypervisor domain (ref. session processor management software 1012 in
If, at step 1120, it is determined that a hardware offload image encoder (i.e., image encoder 930) is available, method 1100 proceeds to step 1130 (“PERFORM IMAGE COMPRESSION USING SESSION PROCESSOR”). In some embodiments, the entire image data stream associated with a display image is offloaded to the UI session processor 114 for compression In other embodiments, only one or more sections of the image data stream are offloaded to the UI session processor 114 for compression, as might occur if a video window, fine resolution text, or other designated content type is detected via a change in image content, or when a specified application is launched. In some embodiments, image sections compressed by the UI session processor 114 are returned to the communications stack of the VM 160 prior to transport to the remote computer 140.
Method 1100 proceeds to step 1140 (“SWITCH?”) in which the encoding path is again evaluated, either periodically or in response to an event. In various embodiments, such as when the loss of connection to the UI session processor 114 results from VM migration to another host processor, or reprioritization of offload processing by the session processor management software 1012 occurs, method 1100 reverts step 1110 to engage the VM-based software image encoder 920 to compress part or all of the image data stream. Such reprioritization may be related to a degradation in perceived image quality (e.g., a drop in update rate for the compressed image stream), a reduced availability of memory and/or encoding resources on the UI session processor 114, the servicing of higher priority VMs or related to changes in encoding requirement for the current image data stream. In an embodiment where VM migration occurs, offload encoding of an image section initiated by the image transfer control function of distributor 912 results in an error code being returned to status parameters in shared memory (ref. shared memory 1020 in
If, at either step 1120 or 1140 it is determined that the remote computing session is suspended or terminated, the method 110 proceeds to step 1042 where it ends.
While the foregoing is directed to embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.
This application is a continuation of co-pending U.S. patent application Ser. No. 12/657,695, filed Jan. 26, 2010, which claims benefit of U.S. provisional patent application Ser. No. 61/147,445, filed Jan. 26, 2009. Each of the aforementioned related patent applications is herein incorporated in its entirety by reference. This application references co-pending, commonly assigned U.S. patent application Ser. No. 12/657,618, filed Jan. 22, 2010, entitled “System and Method for Managing Multiple User Interface Sessions”, by Charles Peter Baron, David Victor Hobbs, Christopher Lawrence Topp, and Edlic Yiu, which is herein incorporated in its entirety by reference. This application references co-pending, commonly assigned U.S. patent application Ser. No. 12/586,498, filed Sep. 23, 2009, entitled “System and Method for Transferring Updates from Virtual Frame Buffer”, which is herein incorporated in its entirety by reference. This application references co-pending, commonly assigned U.S. patent application Ser. No. 12/460,384, filed Jul. 17, 2009, entitled “Method and System for Image Sequence Transfer Scheduling”, which is herein incorporated in its entirety by reference.
Number | Name | Date | Kind |
---|---|---|---|
5018076 | Johary et al. | May 1991 | A |
5448702 | Garcia, Jr. et al. | Sep 1995 | A |
5519436 | Munson | May 1996 | A |
5526017 | Wilkie | Jun 1996 | A |
5708779 | Graziano et al. | Jan 1998 | A |
5880741 | Takeuchi | Mar 1999 | A |
5951706 | Benner | Sep 1999 | A |
6012101 | Heller et al. | Jan 2000 | A |
6038616 | Thornton et al. | Mar 2000 | A |
6046751 | Kato et al. | Apr 2000 | A |
6119146 | Heller et al. | Sep 2000 | A |
6154793 | MacKenna et al. | Nov 2000 | A |
6252979 | Lee et al. | Jun 2001 | B1 |
6260068 | Zalewski et al. | Jul 2001 | B1 |
6292853 | Takahashi | Sep 2001 | B1 |
6333750 | Odryna et al. | Dec 2001 | B1 |
6347344 | Baker et al. | Feb 2002 | B1 |
6385666 | Thornton et al. | May 2002 | B1 |
6483515 | Hanko | Nov 2002 | B1 |
6532511 | Brooks | Mar 2003 | B1 |
6570890 | Keenan et al. | May 2003 | B1 |
6662246 | Honary et al. | Dec 2003 | B2 |
6748473 | Shatas et al. | Jun 2004 | B1 |
6806885 | Piper et al. | Oct 2004 | B1 |
6963946 | Dwork et al. | Nov 2005 | B1 |
7043748 | Thornton et al. | May 2006 | B2 |
7095386 | Alben et al. | Aug 2006 | B2 |
7133362 | Chu et al. | Nov 2006 | B2 |
7133940 | Blightman et al. | Nov 2006 | B2 |
7136394 | Horowitz et al. | Nov 2006 | B2 |
7161557 | Thornton | Jan 2007 | B2 |
7317685 | Flott et al. | Jan 2008 | B1 |
8028040 | Hobbs | Sep 2011 | B1 |
8341624 | Hobbs | Dec 2012 | B1 |
8572251 | Srinivas | Oct 2013 | B2 |
20010000539 | Heller et al. | Apr 2001 | A1 |
20010011965 | Wilks | Aug 2001 | A1 |
20020059639 | Thornton et al. | May 2002 | A1 |
20020149617 | Becker | Oct 2002 | A1 |
20020180725 | Simmonds et al. | Dec 2002 | A1 |
20030093568 | Deshpande | May 2003 | A1 |
20030098820 | Someya et al. | May 2003 | A1 |
20030158906 | Hayes | Aug 2003 | A1 |
20030193486 | Estrop | Oct 2003 | A1 |
20030208340 | Dorough | Nov 2003 | A1 |
20030212811 | Thornton | Nov 2003 | A1 |
20040001622 | Roylance et al. | Jan 2004 | A1 |
20040015597 | Thornton | Jan 2004 | A1 |
20040212730 | MacInnis et al. | Oct 2004 | A1 |
20040222941 | Wong et al. | Nov 2004 | A1 |
20050060421 | Musunuri et al. | Mar 2005 | A1 |
20050204015 | Steinhart et al. | Sep 2005 | A1 |
20050257239 | Evans et al. | Nov 2005 | A1 |
20060005189 | Vega et al. | Jan 2006 | A1 |
20060069797 | Abdo | Mar 2006 | A1 |
20060282855 | Margulis | Dec 2006 | A1 |
20070097130 | Margulis | May 2007 | A1 |
20070124474 | Margulis | May 2007 | A1 |
20070180436 | Travostino et al. | Aug 2007 | A1 |
20070180448 | Low et al. | Aug 2007 | A1 |
20070204265 | Oshins | Aug 2007 | A1 |
20070220121 | Suwarna | Sep 2007 | A1 |
20070260768 | Bender et al. | Nov 2007 | A1 |
20090007106 | Araujo, Jr. et al. | Jan 2009 | A1 |
20090293055 | Carroll et al. | Nov 2009 | A1 |
20100131669 | Srinivas et al. | May 2010 | A1 |
20100131944 | Iorio et al. | May 2010 | A1 |
Entry |
---|
Dowty, M. and Sugerman, J., “GPU Virtualization on VMware's Hosted I/O Architecture”, SIGOPS Oper. Syst. Rev. 43, Jul. 3, 2009, 73-82. N.Y., USA. |
Kadav, A. and Swift, M. , “Live Migration of Direct Access Devices”, ACM SIGOPS Operating Systems Review vol. 43 , Issue 3, pp. 95-104, Jul. 2009 N.Y. USA. |
“Portable Multimedia”, Whitepaper, CEVA Corporation, 2005. |
Huang, W., Liu, J., Koop, M., Abali, B., and Panda, D., “Nomad: Migrating OS-bypass Networks in Virtual Machines”, In Proceedings of the 3rd International Conference on Virtual Execution Environments (San Diego, California, USA, Jun. 13-15, 2007). VEE '07. ACM, New York, NY, 158-168 USA. |
Sugerman, J., Venkitachalam, G., and Lim, B., “Virtualizing I/O Devices on VMware Workstation's Hosted Virtual Machine Monitor”, In Proceedings of the General Track: 2002 USENIX Annual Technical Conference (Jun. 25-30, 2001). Y. Park, Ed. USENIX Association, Berkeley, CA, 1-14. |
Lagar-Cavilla, H. A., Tolia, N., de Lara, E., Satyanarayanan, M., and O'Hallaron, D., “Interactive Resource-Intensive Applications Made Easy”, In Proceedings of the ACM/IFIP/USENIX 2007 International Conference on Middleware (Newport Beach, California, Nov. 26-30, 2007). Springer-Verlag New York, New York, NY, 143-163 USA. |
Niranjan, R.; Gavrilovska, A.; Schwan, K.; Tembey, P., “Towards IQ-Appliances: Quality-awareness in Information Virtualization”, Network Computing and Applications, 2007. NCA 2007., Jul. 12-14, 2007 pp. 291-294. |
Kapasi U., Daily W.J., Rixner S., Owens J.D., and Khailany B., “The Imagine Stream Processor”, Proceedings of International Conference on Computer Design, Sep. 16-18, 2002, Freiburg, Germany. |
“Solution Paper: Statistical Multiplexing over IP”, Motorola, Inc. 2008. |
Tarigopula, S., “A CAM-Based, High-Performance Classifier-Scheduler for a Video Network Processor”, Thesis prepared for the Degree of Master of Science, University of North Texas, Texas, USA, May 2008. |
“X550 Datasheet”, Ncompting Corporation, 2008. |
“Zero Client Technology: History, Use and Critical Comparison”, Applica Inc. Web Article (http://www.applica.com/zeroCtech.shtml) 4 pages. Copyright 1997-2005. |
Dale Beermann, Greg Humphreys, “Visual Computing in the Future: Computer Graphics as a Remote Service”, University of Virginia, Computer Science Department, University of Virginia Technical Report CS-2003-16, 25 Pages, Jun. 1, 2003. |
William Blanke, Chandrajit Bajaj, Donald Fussell, and Xiaoyu Zhang, “The Metabuffer: A Scalable Multiresolution Multidisplay 3-D Graphics System Using Commodity Rendering Engines”, TR200-16, The University of Texas at Austin, 7 Pages, Feb. 2000. |
Han Chen, Yuqun Chen, Adam Finkelstein, Thomas Funkhouser, Kai Li, Zhiyan Liu, Rudrajit Samanta, and Grant Wallace, “Data Distribution Strategies for High-Resolution Displays”, Computers & Graphics. vol. 25 No. 5 :811-818, 5 Pages, Oct. 2001. |
A. Heirich and L. Moll, “Scalable Distributed Visualization Using Off-The-Shelf Components”, IEEE Parallel Visualization and Graphics Symposium—1999, San Francisco, California, pp. 55-59, Oct. 1999. |
Greg Humphreys, Matthew Eldridge, Ian Buck, Gordon Stoll, Matthew Everett, and Pat Hanrahan, “WireGL: A Scalable Graphics System for Clusters”, Computer Graphics (SIGGRAPH 2001), 12 Pages, 2001. |
Tristan Richardson, Quentin Stafford-Fraser,Kenneth R. Wood and Andy Hopper, “Virtual Network Computing”, Reprint from IEEE Internet Computing vol. 2, No. 1, 7 Pages, Jan./Feb. 1998. |
“OpenGL Vizserver™ 3.1 Application-Transparent Remote Interactive Visualization and Collaboration”, Silicon Graphics Inc. 15 pages, 2003. |
Rajvikram Singh, Byungil Jeong, Luc Renambot, Andrew Johnson, Jason Leigh “TeraVision: a Distributed, Scalable, High Resolution Graphics Streaming System”, Proceedings of Cluster 2004, San Diego, CA, 10 pages, Sep. 2004. |
Applica Presenter Product Datasheet, SmartAVI, Inc, 3111 Winona Ave, Suite 101 Burbank, CA 91504, 4 Pages, obtained 2010. |
Roger Zimmermann and Dwipal A. Desai, “Ethernet Interface for Head-Mounted Displays”, USC Technical Report USC-CS-TR05-846, Integrated Media Systems Center, University of Southern California, 12 pages, Mar. 2005. |
AppSense Performance Manager Datasheet v 1.1, 2005, Dynamically Manage System Performance, Availability and Capacity, pp. 1-2, obtained 2010. |
“VMware Workload Management with AppSense Performance Manager”, Whitepaper, AppSense Ltd, 3200 Daresbury Park, Daresbury, Warrington, WA4 4BU, United Kingdom, obtained 2010, pp. 1-12. |
Brian Paul, Sean Ahern, E. Wes Bethel, Eric Brugger, Rich Cook, Jamison Daniel, Ken Lewis, Jens Owen, Dale Southard, “Chromium Renderserver: Scalable and Open Remote Rendering Infrastructure,” IEEE Transactions on Visualization and Computer Graphics, vol. 14, No. 3, pp. 627-639, May/Jun. 2008. |
Lagar-Cavilla, H. A., Tolia, N., Satyanarayanan, M., and de Lara, E. 2007, “VMM-Independent Graphics Acceleration”, In Proceedings of the 3rd International Conference on Virtual Execution Environments (San Diego, California, USA, Jun. 13-15, 2007). VEE '07. ACM, New York, NY, 33-43. |
Jonathan Chien-Liang Liu, David H.C. Du, Simon S.Y. Shim, Jenwei Hsieh, MengJou Lin, “Design and Evaluation of a Generic Software Architecture for On-Demand Video Servers,” IEEE Transactions on Knowledge and Data Engineering, vol. 11, No. 3, pp. 406-424, May/Jun. 1999. |
Abts, D., Bataineh, A., Scott, S., Faanes, G., Schwarzmeier, J., Lundberg, E., Johnson, T., Bye, M., and Schwoerer, G., “The Cray BlackWidow: A Highly Scalable Vector Multiprocessor”, In Proceedings of the 2007 ACM/IEEE Conference on Supercomputing (Reno, Nevada, Nov. 10-16, 2007). SC '07. ACM, New York, NY, pp. 1-12. |
“Advances in Memory Management for Windows”, Microsoft Corporation, Oct. 12, 2007, pp. 1-26. |
Office Action mailed Aug. 5, 2009 for U.S. Appl. No. 11/278,128 entitled “Methods and Apparatus for Enabling Multiple Remote Displays”, David V. Hobbs, filed Mar. 30, 2006, pp. 1-32. |
U.S. Appl. No. 11/904,879 entitled “Method and Apparatus for Scheduling a Resource of a Virtual Machine”, David Victor Hobbs, filed Sep. 28, 2007, pp. 1-41. |
Co-pending U.S. Appl. No. 12/460,384 entitled “Method and System for Image Sequence Transfer Scheduling”, David Victor Hobbs, filed Jul. 17, 2009, pp. 1-62. |
Co-pending U.S. Appl. No. 12/657,618 entitled “System and Method for Managing Multiple User Interface Sessions”, Charles Peter Baron, et al., filed Jan. 22, 2010, pp. 1-72. |
Co-pending U.S. Appl. No. 12/586,498 entitled “System and Method for Transferring Updates from Virtual Frame Buffers”, Charles Peter Baron, filed Sep. 23, 2009, pp. 1-41. |
“Microsoft RemoteFX for Virtual Desktop Infrastructure: Architectural Overview”, Microsoft Corporation, USA, Jan. 2011, pp. 1-18. |
“The Big IP System with Intelligent Compression”, F5 Networks Whitepaper, Aug. 2005, USA, pp. 1-7. |
Notice of Allowance mailed Feb. 16, 2012 for U.S. Appl. No. 12/657,695, entitled “Method and System for Remote Computing Session Management”, Daniel Jean Donat Doucette, filed Jan. 26, 2010; pp. 1-24. |
“Transforming the Business Desktop—PC-over-IP™ Technology Reinvents Computing”, Teradici Corporation, 2007, pp. 1-6. |
Number | Date | Country | |
---|---|---|---|
61147445 | Jan 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12657695 | Jan 2010 | US |
Child | 13523407 | US |