System Virtualization Instance Management for Terminal Sessions
Terminal sessions providing remote access to functionality may be isolated from each other, as well as from the server system space, by being placed in system virtualization instances. Applications associated with terminal sessions may be allocated to system virtualization instances. In particular, system virtualization instances may be pre-instantiated, and applications may be dynamically allocated to the system virtualization instances, for example, according to a virtualization instance policy. The system virtualization instances may provide, in particular, an ability for terminal session components and associated applications to create, read, update and delete resources in a global name space of a host server without conflict, collision or other interference with each other or other server components.
Latest Microsoft Patents:
- SEQUENCE LABELING TASK EXTRACTION FROM INKED CONTENT
- AUTO-GENERATED COLLABORATIVE COMPONENTS FOR COLLABORATION OBJECT
- RULES FOR INTRA-PICTURE PREDICTION MODES WHEN WAVEFRONT PARALLEL PROCESSING IS ENABLED
- SYSTEMS AND METHODS OF GENERATING NEW CONTENT FOR A PRESENTATION BEING PREPARED IN A PRESENTATION APPLICATION
- INFRARED-RESPONSIVE SENSOR ELEMENT
Remote access of computer functionality has become a common part of the way in which people use computers to work and play. There are a variety of remote access architectures, each with its benefits and drawbacks. The large installed base of computers, computer operating systems and computer applications that provide for remote access of functionality each support the various remote access architectures to some degree including no support and, in particular, partial support. The ambiguity of partial support can have significant associated costs, particularly for large organizations where it is not uncommon to undertake a substantial assessment process for each application and/or set of functionality to be offered to the organization's user base.
Partial support can be a particular problem with thin client remote access architectures. In such architectures, a relatively simple (i.e., thin) client provides a user interface to a server that provides the bulk of application functionality. A benefit commonly sought by those using such architectures is network management efficiency by relocating application components from a large number of client computers to a smaller set of server computers. However, such relocation can cause problems in cases where the application is not explicitly designed for relocation. For example, a computer operating system typically offers a variety of resources for applications, and some of those resources may be referenced by a name space that is global to the system (e.g., files referenced by a file system name space). An application may use the global name space in a way that is suitable for a client computer, but that causes problems such as name conflicts and/or collisions when used in the context of a server computer simultaneously executing multiple application instances.
It is desirable to solve such problems without explicit design and/or redesign at least because it can be costly, but also because the root causes can be subtle and the solutions difficult to fully test, particularly where problems arise from conflict between components from different vendors. However, unplanned name space and/or resource sharing can also create security risks ranging from denial of service to unauthorized access and information leakage, so that a robust solution is desirable to avoid such risks. Some conventional remote access architectures attempt to solve such problems by pre-sequencing applications (i.e., determining application resource usage in advance) but pre-sequencing can itself be a substantial undertaking and may not resolve some issues. It is sometimes possible to use brute force methods such as multiple operating systems or even multiple hardware subsystems to solve such problems, but a more efficient and flexible solution is desirable.
SUMMARYTerminal sessions providing remote access to functionality may be isolated from each other, as well as from the server system space, by being placed in system virtualization instances. Applications associated with terminal sessions may be allocated to system virtualization instances. In particular, system virtualization instances may be pre-instantiated, and applications may be dynamically allocated to the system virtualization instances, for example, according to a virtualization instance policy. The system virtualization instances may provide, in particular, an ability for terminal session components and associated applications to create, read, update and delete resources in a global name space of a host server without conflict, collision or other interference with each other or other server components.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Same numbers are used throughout the disclosure and figures to reference like components and features.
DETAILED DESCRIPTIONA client seeking to access functionality hosted at a server may establish an access session (session, or terminal session where some component at the client corresponds to the “terminal”) with the server. For each session, the server may instantiate one or more components to manage interaction with the client. This collection of components may also be called a session or terminal session when considered from a point of view of the server or an operating system of the server. In an embodiment of the invention, each such session is automatically isolated from others at the server, as well as from the server system space, by being placed within a system virtualization instance (or virtualization “bubble”).
Furthermore, applications associated with sessions (e.g., instantiated and/or accessed by sessions) may be allocated to system virtualization instances, for example, according to a virtualization instance policy. The system virtualization instance to which an application is allocated need not be the same as the system virtualization instance containing its associated session. System virtualization instance numbers and lifetimes may be managed according to the virtualization instance policy, for example, for efficiency and/or security reasons. In particular, one or more system virtualization instances may be instantiated prior to instantiation of any session and/or application.
The system virtualization instances may provide, in particular, an ability for session components and applications to create, read, update and delete resources in a global name space of the host server without conflict, collision or other interference with each other or other server components. The system virtualization instances may be implemented with lightweight copy-on-write based technology. Applications need not be pre-sequenced to benefit from system virtualization instances, that is, applications may be non-sequenced or native applications.
Before describing aspects of system virtualization instance management in accordance with an embodiment to the invention in more detail, it will be helpful to have reference to an example computing environment suitable for incorporating such an infrastructure.
The computers 102, 104, 106, 108 may be any suitable computing device. Examples of suitable computing devices include mainframes, minicomputers, desktop computers, personal computers (PCs), workstations, portable computers, laptop computers, tablet computers, personal digital assistants (PDAs), mobile telephones, programmable consumer electronics devices, routers, gateways, switches, hubs, and suitable combinations thereof. The computers 102, 104, 106, 108 may include one or more processing units capable of executing instructions to perform tasks, as well as one or more types of computer-readable media such as volatile and/or non-volatile memory capable of storing data, computer programs and/or computer program components. Such computer programs and components may include executable instructions, structured data and/or unstructured data organized into modules, routines and/or any suitable programmatic object. Such computer programs and components may be created by and/or incorporate any suitable computer programming language.
The computers 102, 104, 106, 108 may include a wide variety of input/output (I/O) devices not shown in
For clarity, embodiments of the invention may be described herein with reference to symbolic operations such as those of a computer programming language. Such symbolic operations and any data that they act upon correspond to physical states of components and changes in components of computing devices such as the computers 102, 104, 106, 108 in a manner well understood by one of skill in the art. In an embodiment of the invention, each such operation and its associated data may be fully implemented in hardware.
The network 110 may include any suitable network element and/or communication media. A computing device is an example of a suitable network element. The network 110 may incorporate any suitable network topology. Examples of suitable network topologies include simple point-to-point, star topology, self organizing peer-to-peer topologies and combinations thereof. Furthermore, the network 110 may employ any suitable network protocol to establish and/or maintain connectivity between the computers 102, 104, 106, 108. Examples of suitable network protocols include transmission control protocols (TCP), internet protocols (IP), remote desktop protocols (RDP), and suitable combinations thereof.
The thin client remote access architecture will serve as a helpful example for illustrating aspects of embodiments of the invention. For clarity, the description will assume a thin client remote access architecture utilizing Microsoft® Windows® Terminal Services (“Terminal Services”). Terminal Services are well known in the art and, for clarity, only some aspects are highlighted in this description.
The client 202 may include a remote desktop connection (RDC) 208 capable of using the remote desktop protocol 206 to access terminal services 210 offered by the server 204. The terminal services 210 may include a session manager 212, an application manager 214, a virtualization service 216 and a virtualization instance manager 218. The server 204 may provide access to several system resources 220 such as a file system 222, a registry 224 of configuration information, a font database 226 of character fonts for a graphical user interface (GUI), common object model (COM) 228 facilities, and an object manager 230.
Aspects of the architecture 200 are best described with reference to dynamic structures created during operation of the architecture 200.
The session manager 212 (
An example of a user action that may be indicated at the remote desktop connection 208 (
The virtualization service 216 (
Would be changes by the sessions 308, 310 and the applications 312, 314, 316 to the system resources 304 may be redirected by the associated system virtualization instance 318, 320, 322, 324 (as supported by the virtualization service 216 of
Although, for clarity, only two system global name spaces 334, 336 are depicted in
The virtualization instance manager 218 (
In addition, the virtualization instance manager 218 (
In the example depicted in
The virtualization instance manager 218 (
The virtualization instance manager 402 may include an application register 404 and a virtualization instance (VI) register 406. The application register 404 may include an entry for each session space application such as the applications 312, 314, 316 of
The virtualization instance manager 402 may further include an application-virtualization instance map 408. The application-virtualization instance map 408 may maintain one or more associations between applications registered with the application register 404 and system virtualization instances registered with the virtualization instance register 406. For example, application-virtualization instance map 408 may include a map showing which system virtualization instance contains a given application and/or a map showing which applications, if any, are contained by a given system virtualization instance.
The virtualization instance manager 402 may instantiate system virtual instances 318, 320, 322, 324 (
The application virtualization instance policy 416 may specify that applications 312, 314 316 be allocated to system virtualization instances 318, 320, 322, 324 based on an application virtualization classification. The application virtualization classification of a particular application may be determined by an application classifier 418 of the virtualization instance manager 402. The application classifier 418 may determine the application virtualization classification of a particular application based on an application signature of the application. The application classifier 418 may determine the application signature based on application characteristics provided by and/or extracted from a particular application. The application classifier 418 may use an application signature database 420 to lookup an application signature corresponding to a particular application given suitable application characteristics. The application signature database 420 need not be implemented with a full-weight database component, but may be implemented with any data collection that may be suitably searched.
The application classifier 418 may use an application classification rulebase 422 to determine an application classification corresponding to a given application signature. The application classification rulebase 422 may further contain rules for classifying applications for which an application signature cannot be determined. The application classification rulebase 422 may further contain a default classification rule, for example, a rule corresponding to “all applications not otherwise classified are to be allocated to a default system virtualization instance.” The rulebase may include rules specified with statements and/or expressions corresponding to statements and/or expressions of a programming language or any suitable rule specification language.
The virtualization instance manager 402 may subscribe to application events corresponding to significant application state changes such as successful application instantiation and application exit. For example, the virtualization instance manager 402 may provide the application manager 214 (
Having described example architectures in accordance with an embodiment of the invention, the description now turns to procedures that may be performed by components of such architectures.
At step 502, the virtualization instance manager (VIM) 218 (
The session manager 212 (
At step 508, the virtualization instance manager 218 (
At step 512, the virtualization instance manager 218 (
At step 516, the virtualization instance manager 218 (
The example depicted in
Having successfully initialized, the terminal services 210 may begin system virtualization instance management.
At step 604, a request may be received to instantiate a terminal session instance such as one of the sessions 308, 310 (
At step 608, a terminal session may be instantiated. For example, the session manager 212 (
At step 614, a system virtualization instance (virtualization instance) may be instantiated for the terminal session. For example, the virtualization instance manager 218 (
Returning to step 610, no terminal session nor system virtualization instance has yet been instantiated in response to the request of step 604. At step 610, a system virtualization instance may be instantiated for the requested terminal session. For example, the virtualization instance manager 218 (
The steps depicted by
At step 704, the application associated with the request may be classified for purposes of system virtualization instance management. For example, the virtualization instance manager 218 (
At step 706, the requested application may be allocated to a particular system virtualization instance (VI) in accordance with the application virtualization instance policy 416 (
At step 708, it may be determined if the system virtualization instance to which the request application was allocated at step 706 exists (i.e., has been instantiated). For example, the virtualization instance manager 218 (
At step 710, the requested application may be instantiated in the allocated system virtualization instance. For example, the virtualization instance manager 218 (
At step 714, a resource referenced by a system global name space may be modified. For example, the newly instantiated application 314 (FIG. 3) may create a top level (i.e., system global) event named “MyEvent” in the system global name space 336 associated with the object manager 230 (
The virtualization classification for an application, for example, as determined by the application classifier 418 (
At step 804, it may be determined if the application information received at step 802 is sufficient to determine an application signature for the application. If the application information is sufficient, a procedure incorporating steps depicted in
At step 806, an application signature may be determined for the application. For example, the application classifier 408 (
At step 818, an application virtualization classification may be determined for the application based on the determined application signature. For example, the application signature database 420 (
The virtualization instance manager 402 (
At step 904, it may be determined if the system virtualization instance (VI) associated with the exited application is now empty (i.e., contains further applications). For example, in response to the application exit event, the virtualization instance manager 402 may update the application register 404 and the application-virtualization instance map 408, and query the application-virtualization instance map 408 to determine if the system virtualization instance associated with the exited application references any other applications. If the associated system virtualization instance is now empty, a procedure incorporating steps depicted by
At step 906, it may be determined, based on the application virtualization instance policy 416 (
At step 910, the empty system virtualization instance may be deleted. For example, the virtualization instance manager 218 may instruct the virtualization service 216 to delete the empty system virtualization instance. Similarly, at step 908, the empty system virtualization instance may be maintained. For example, it may require an explicit instruction to the virtualization service 216 to maintain an empty system virtualization instance.
All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and/or were set forth in its entirety herein.
The use of the terms “a” and “an” and “the” and similar referents in the specification and in the following claims are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. The terms “having,” “including,” “containing” and similar referents in the specification and in the following claims are to be construed as open-ended terms (e.g., meaning “including, but not limited to,”) unless otherwise noted. Recitation of ranges of values herein are merely indented to serve as a shorthand method of referring individually to each separate value inclusively falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation to the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to an embodiment of the invention.
Preferred embodiments of the invention are described herein, including the best mode known to the inventors for carrying out the invention. Variations of those preferred embodiments may become apparent to those of ordinary skill in the art upon reading the specification. The inventors expect skilled artisans to employ such variations as appropriate, and the inventors intend for the invention to be practiced otherwise than as explicitly described herein. Accordingly, embodiments of the invention include all modifications and equivalents of the subject matter recited in the following claims as permitted by applicable law.
Claims
1. At least one computer-readable medium having thereon computer-executable instructions for system virtualization instance management comprising:
- instantiating a plurality of system virtualization instances;
- receiving a request to instantiate an application; and
- allocating the application to one of the system virtualization instances.
2. Said at least one computer-readable medium of claim 1 wherein the request to instantiate the application originates from within a terminal session.
3. Said at least one computer-readable medium of claim 2 wherein at least one of the system virtualization instances were instantiated prior to instantiation of the terminal session.
4. Said at least one computer-readable medium of claim 3 wherein the application is allocated to one of said at least one of the system virtualization instances that were instantiated prior to instantiation of the terminal session.
5. Said at least one computer-readable medium of claim 1 wherein the application is a non-sequenced application.
6. Said at least one computer-readable medium of claim 1 wherein allocating the application to one of the system virtualization instances comprises allocating the application to one of the system virtualization instances based on, at least, a virtualization instance policy.
7. Said at least one computer-readable medium of claim 1 wherein the instructions further comprise determining a virtualization classification for the application.
8. Said at least one computer-readable medium of claim 7 wherein:
- the instructions further comprise determining an application signature for the application; and
- determining the virtualization classification for the application comprises determining the virtualization classification based on, at least, the application signature.
9. Said at least one computer-readable medium of claim 7 wherein determining the virtualization classification for the application comprises determining the virtualization classification based on, at least, application information provided by the application.
10. Said at least one computer-readable medium of claim 7 wherein determining the virtualization classification for the application comprises determining the virtualization classification based on, at least, information obtained from the application.
11. Said at least one computer-readable medium of claim 7 wherein allocating the application to one of the system virtualization instances comprises allocating the application to one of the system virtualization instances based on, at least, the virtualization classification of the application.
12. Said at least one computer-readable medium of claim 7 wherein at least one of the plurality of system virtualization instances is instantiated responsive to determining the virtualization classification for the application.
13. Said at least one computer-readable medium of claim 1 wherein lifetimes of the system virtualization instances are independent of a lifetime of the application.
14. Said at least one computer-readable medium of claim 1 wherein each system virtualization instance is associated with a unique identifier.
15. At least one computer-readable medium having thereon computer-executable instructions for system virtualization instance management comprising:
- receiving a request to instantiate a terminal session;
- instantiating a system virtualization instance for the terminal session; and
- instantiating the terminal session within the system virtualization instance.
16. Said at least one computer-readable medium of claim 15 wherein the instructions further comprise:
- receiving a plurality of requests to instantiate a plurality of terminal sessions;
- instantiating a system virtualization instance for each terminal session; and
- instantiating each terminal session within its corresponding system virtualization instance.
17. Said at least one computer-readable medium of claim 15 wherein the instructions further comprise:
- instantiating a system virtualization instance independent of the terminal session;
- receiving a request to instantiate an application originating within the terminal session; and
- instantiating the application within the system virtualization instance independent of the terminal session.
18. At least one computer-readable medium having thereon computer-executable instructions for system virtualization instance management comprising:
- receiving a first request to instantiate a first application from within first a terminal session;
- instantiating the first application within a system virtualization instance; and
- modifying a resource referenced by a system global name space independent of modifications by a second application.
19. Said at least one computer-readable medium of claim 18 wherein the first and second applications create a same named resource in the system global name space.
20. Said at least one computer-readable medium of claim 18 wherein the second application is instantiated in response to a second request from within a second terminal session.
Type: Application
Filed: Jun 29, 2007
Publication Date: Jan 1, 2009
Patent Grant number: 9870263
Applicant: Microsoft Corporation (Redmond, WA)
Inventors: Ara Bernardi (Mercer Island, WA), Sriram Sampath (Redmond, WA), John M. Sheehan (Somerville, MA), Tad Dennis Brockway (Redmond, WA)
Application Number: 11/771,975
International Classification: G06F 12/02 (20060101);