User experience determines the success of Citrix and virtual desktop initiatives. If users do not experience similar or better performance from these infrastructures, support incidents will rise, user satisfaction will fall and productivity will suffer. In the worst case, with inadequate attention to the user experience, even the most strategically sound Citrix/VDI rollout can fail.

In this second installment of “It’s All About the User,” we discuss how to effectively monitor the user experience in Citrix and virtual desktop infrastructures to maintain top performance and user satisfaction. For a complete breakdown of what constitutes good user experience in Citrix/VDI, see our first article in the series.

Common Approaches for User Experience Monitoring

There are four main approaches for tracking the user experience in Citrix/VDI infrastructures:

1. Monitoring at the Client Devices

In this approach, software agents are deployed on each client device (laptops, desktops, thin clients), which record traffic to and from the device. Analyzing traffic metrics, performance reports highlighting the user experience can be produced. Depending on the capabilities of the agents, the reports can be granular and most aspects of user experience can be tracked. Aternity is a performance-monitoring vendor whose technology uses this approach.

client-monitoring-with-agents

Client device monitoring – agents reporting to the management server

2. Monitoring at the Network

Deploying agents on every client device is not always practical or preferred, so software or hardware probes deployed on the network can be used instead to analyze packets transmitted by clients and from the servers. This data can then be used to analyze the VDI or Citrix user experience. ExtraHop is an example of technology that employs this approach.

Network monitoring with probe

Monitoring traffic with a network probe
An alternative network monitoring approach is to use AppFlow technology that is incorporated into many network devices – Citrix NetScalers, for example. Since a NetScaler device is directly in the data path of most communications, it is able to see at a granular level exactly what sessions are active, the user experience for each session, and network latency is for each session. By comparing the network latency with the user-perceived latency, AppFlow-based solutions can indicate when a slowdown occurs and whether the issue is due to the network, processing delays on the servers, or in the backend.

Citrix’s NetScaler Insight technology uses this approach. AppFlow data from NetScaler devices can also be exported for third-party vendors and their tools to process the packet data and report on the user experience.

Network monitoring with AppFlow data via Citrix NetScaler Insight

3. Monitoring at the Servers

Since Citrix/VDI access is connection oriented (TCP-based) and much of the processing is in the data center – rather than on the user’s desktop/terminal – extensive details about the performance of the Citrix/VDI service can be obtained with instrumentation in the data center alone. Software agents deployed on servers interface with the applications, virtual desktops, server operating systems, etc. to report performance metrics. User logon times, application launch times, screen refresh latency, application errors, and more can be effectively reported with this approach. The session servers for Citrix XenApp / VMware RDS or the virtual desktops for Citrix XenDesktop and VMware Horizon are the main locations from which these user experience metrics can be collected.

In this approach, if slowdowns are being caused by activity or bottlenecks on a specific user’s terminal, this will not be captured. Therefore, it is ideal to augment a server-monitoring approach with on-demand agent deployment to troubleshoot a user/terminal where slow performance persists over time.

Server monitoring

Monitoring at the servers

4. Synthetic Monitoring

Synthetic MonitoringAll of the above approaches focus on monitoring accesses by real users. But how can user experience monitoring occur when there is no traffic to the server farm? This is where synthetic monitoring fits in. This approach relies on emulating repeated user access to the Citrix application or virtual desktop using a robot. The robot periodically emulates user sessions and measures the availability and response time for the access.

Multiple step interactions – for example, a user logging in, launching an application, performing tasks in the application and then logging out – are recorded and played back. To enable accurate diagnosis in the event of a problem, the success or failure of each step and the response time for each step of the multi-step interaction are measured.

[Note: Some synthetic monitoring tools rely on protocol-level emulation – for example, sending an ICA request to a XenApp server or a XenDesktop VM. But for the most accurate synthetic monitoring results, the robot will invoke the same client applications that users use to access the Citrix/VDI service (Citrix Receiver, for one).]

Comparing the User Experience Monitoring Approaches

The table below summarizes the tradeoffs between the different approaches for Citrix/VDI user experience monitoring.

User Experience Monitoring Approach Capabilities Limitations
Monitoring at Client Devices
  • Monitors actual user activity and performance
  • Metric collection at the client device provides performance as seen by the end user
  • Useful for indicating when problems occur and what groups of users are affected
  • Need to install agents on every client device – time consuming, difficult to manage, and inceased cost can also be an issue
  • Processing capabilities of the client device can bias performance assessment (e.g., if there is an antivirus running on the client device, this may show slower performance for a short period of time)
  • Indicates when problems occur but not why they occur (e.g., is it a Citrix issue, a database issue or an application server issue?)
Monitoring at the Network with Network Probes
  • Easy to implement – no agents required on clients or servers
  • Based on traffic through the device, can determine when slowdowns occur and to which end points
  • Requires access to network taps to install probes
  • May require multiple probes to be installed for complete coverage, depending on complexity of the network
  • Without server-side visibility, can indicate when problems occur but not why they occur (e.g., is it a CPU/memory bottleneck, or is it a specific malfunctioning application, etc.)
Monitoring at the Network with Built-in Network Instrumentation (e.g. AppFlow in NetScaler)
  • Easy to implement – no agents required on clients or servers
  • Based on traffic through the device, can determine when slowdowns occur and to which end points
  • No need for network taps or probes to be installed
  • Without server-side visibility, can indicate when problems occur but no indication as to why they occur.
Monitoring at the servers / virtual desktops
  • User experience metrics are obtained by interfacing with the server applications (XenApp, XenDesktop broker, etc.) and the server OS (e.g., GPO processing time)
  • Obtaining user experience metrics by interfacing with the server applications (XenApp, XenDesktop broker, etc.) and the server OS (e.g. GPO processing time) provides in-depth visibility into every aspect of server and application performance
  • Critical information for diagnosis of problems is available for expedited troubleshooting and analysis
  • Need to deploy and configure agents / agentless monitors for servers and virtual desktops
  • Limited visibility into network performance
Synthetic monitoring of service performance
  • Provides performance insight even if there are no users accessing the service
  • Can be deployed from multiple locations to understand the user experience
  • Because the simulation is done over time using the same device/hardware, synthetic monitoring provides a consistent measure of performance. Therefore, easy to analyze performance over time
  • Performance is measured only for the specific locations from where the robots are installed
  • Because only a limited set of transactions is monitored, performance metrics are not exactly indicative of what real users will see

Conclusion: Combining Approaches for 360-Degree Monitoring

As you can see from the above table, each approach to user experience monitoring for Citrix and VDI services has advantages and downsides. And, no single approach by itself is sufficient to ensure good user experience, so a combination of approaches must be adopted to get a complete view of user experience and to troubleshoot problems quickly when they occur. In summary:

  • Monitoring from the servers is a must. Since Citrix and VDI involve a substantial amount of server-side processing, without visibility into server-side processing bottlenecks that impact the user experience cannot be detected and fixed.
  • Monitoring from the network is a must. Among the two monitoring approaches for the network, using AppFlow data avoids the need to install separate probes. Further, it leverages existing investments in Citrix NetScaler technology.
  • A judicious deployment of synthetic monitors is important to augment server + network monitoring. Synthetic monitoring provides a consistent external measure of performance, and excels as a proactive indicator of issues when there is no workload on the servers.
  • Client-side instrumentation is important – but on an as-needed basis. Although client-side instrumentation is useful, the effort and cost involved in deploying agents on client devices is an important deterrent as a primary user-experience monitoring approach. Moreover, a problem in a client affects only one user, whereas a problem in a server impacts hundreds of users, so scalability is an important factor. However, when an individual user experiences persistent performance problems in isolation, deploying client-side instrumentation is an important tool to get more visibility into that user’s performance and solve his/her problem.

For our next article in this series, we’ll break down the defining elements that constitute user experience in web applications.

Additional Reading : Monitoring Citrix Real User Experience: See What Performance Your Users Are Getting.

eG Enterprise is an Observability solution for Modern IT. Monitor digital workspaces,
web applications, SaaS services, cloud and containers from a single pane of glass.