# US 2013/0212288 A1 · Client Bandwidth Emulation in Hosted Services

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0212288 A1
- Document ID: US20130212288A1
- Status: Published application
- Kind: A1
- Application number: 13/372,705
- Filed: 2012-02-14
- Published: 2013-08-15
- Earliest claimed: 2012-02-14
- Assignees: Citrix Systems, Inc.
- Inventors: Robert Jakubowski
- Web page: https://patentgrep.com/patent/US20130212288A1

## CPC

- H04L 67/08: specially adapted for terminal emulation, e.g. Telnet
- H04L 63/0272: {Virtual private networks}
- H04W 4/60: Subscription-based services using application servers or record carriers, e.g. SIM application toolkits
- H04W 28/20: Negotiating bandwidth
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Bandwidth on the Internet and intranets is highly variable and unreliable, two properties that can make streaming digital media content difficult. In a virtualization system (e.g., virtual desktop, remote desktop, remote application, and the like), this is especially so based on different bandwidths available to the session host and the session client. Methods and systems for emulating a bandwidth of a client device in a virtualization system are described. When the session host is executing an application (e.g., a digital media application), the session host may emulate the bandwidth of the session client by hooking into and throttling date over one or more APIs associated with the digital media application, thereby tricking the application into making a bandwidth determination based on the emulated bandwidth of the session client, rather than based on the bandwidth of the session host.

## Claims

### Claim 1

A method comprising:
hooking an application programming interface (API) on a session host in a virtualization system; and
when the API is called, intercepting the API call based on the hook, and returning data to the API based on a bandwidth of a session client connected to the session host.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining the API by querying a database for a process name associated with a first application executing on the session host,
wherein the API is called by the first application.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
hooking the API within the process associated with the first application; and
when the API is called by a second application executing on the session host, executing the API without interception by the hook.

### Claim 4 (depends on 1)

The method of claim 1, wherein returning data to the API based on the bandwidth of the session client comprises throttling a data bandwidth of the API based on the bandwidth of the session client.

### Claim 5 (depends on 1)

The method of claim 1, further comprising the first application performing a first action based on an analysis of the data returned via the API.

### Claim 6 (depends on 1)

The method of claim 1, further comprising the first application selecting a video stream based on the data returned via the API.

### Claim 7

One or more non-transitory computer readable media comprising computer readable instructions that, when executed, emulate a client bandwidth in a virtual desktop session by:
hooking an application programming interface (API) by a session host of the virtual desktop session; and
when the API is called, intercepting the API call based on the hook, and returning data to the API based on a bandwidth of a session client connected to the session host.

### Claim 8 (depends on 7)

The computer readable media of claim 7, said emulating the client bandwidth further comprising:
determining the API by querying a database for a process name associated with a first application executing on the session host,
wherein the API is called by the first application.

### Claim 9 (depends on 8)

The computer readable media of claim 8, said emulating the client bandwidth further comprising:
hooking the API within the process associated with the first application; and
when the API is called by a second application executing on the session host, executing the API without interception by the hook.

### Claim 10 (depends on 7)

The computer readable media of claim 7, wherein returning data to the API based on the bandwidth of the session client comprises throttling a data bandwidth of the API based on the bandwidth of the session client.

### Claim 11 (depends on 7)

The computer readable media of claim 7, said emulating the client bandwidth further comprising:
the first application performing a first action based on an analysis of the data returned via the API.

### Claim 12 (depends on 7)

The computer readable media of claim 7, said emulating the client bandwidth further comprising the first application selecting a video stream based on the data returned via the API.

### Claim 13

A session host apparatus comprising:
a processor; and
memory storing computer readable instructions that, when executed, emulate a client bandwidth within a virtual desktop session associated with a session client:
hooking an application programming interface (API) of the virtual desktop session; and
when the API is called, intercepting the API call based on the hook, and returning data to the API based on a bandwidth of the session client connected to the virtual desktop.

### Claim 14 (depends on 13)

The session host apparatus of claim 13, said emulating the client bandwidth further comprising:
determining the API by querying a database stored in memory for a process name associated with a first application executing within the virtual desktop,
wherein the API is called by the first application.

### Claim 15 (depends on 14)

The session host apparatus of claim 14, said emulating the client bandwidth further comprising:
hooking the API within the process associated with the first application; and
when the API is called by a second application executing within the virtual desktop, executing the API without interception by the hook.

### Claim 16 (depends on 13)

The session host apparatus of claim 13, wherein returning data to the API based on the bandwidth of the session client comprises throttling a data bandwidth of the API based on the bandwidth of the session client.

### Claim 17 (depends on 13)

The session host apparatus of claim 13, said emulating the client bandwidth further comprising:
the first application performing a first action based on an analysis of the data returned via the API.

### Claim 18 (depends on 13)

The session host apparatus of claim 13, said emulating the client bandwidth further comprising the first application selecting a video stream based on the data returned via the API.

### Claim 19

A method comprising:
at a client device, establishing a virtual desktop session between the client device and a host device;
receiving, from within an application executing in the virtual desktop session, a request for a first video stream; and
receiving the first video stream at a bitrate based on a bandwidth of the client device.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
determining the bandwidth of the client device based on communications between the host device and the client device; and
throttling an API of the application based on the determined bandwidth.
