jamie baker sr. escalation engineer
DESCRIPTION
Jamie Baker Sr. Escalation Engineer. XenDesktop Design and Architecture. Agenda. XenDesktop Architecture Review. Pool Management. USB Redirection. Troubleshooting Tools and Techniques. XenDesktop Architecture. Inter-DDC Communication. Independent Management Architecture - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/1.jpg)
Jamie Baker
Sr. Escalation Engineer
XenDesktop Design and Architecture
![Page 2: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/2.jpg)
XenDesktop Architecture Review
Agenda
Pool Management
USB Redirection
Troubleshooting Tools and Techniques
![Page 3: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/3.jpg)
XenDesktop Architecture
![Page 4: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/4.jpg)
![Page 5: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/5.jpg)
Inter-DDC Communication
• Independent Management Architecture• Similar to the role IMA takes in XenApp
• Central Data Store
• Zone Data Collector handles Dynamic
Store
• Limited to one zone
![Page 6: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/6.jpg)
Inter-DDC communication
Farm Management
Session ManagementPC
![Page 7: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/7.jpg)
Virtual Machine Registration
• On the Virtual Desktop Agent Machine• Citrix Desktop Service
• On the Desktop Delivery Controller• Citrix Desktop Delivery Service
• Independent Management
Architecture
![Page 8: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/8.jpg)
Virtual Machine Registration
![Page 9: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/9.jpg)
Enumeration and Connection
• Citrix XML Service
• IMA Service
• Desktop Delivery Service
• Citrix ICA Service
• Citrix CGP Service
![Page 10: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/10.jpg)
User Authentication and Pool Resolution
![Page 11: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/11.jpg)
Desktop Connection
![Page 12: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/12.jpg)
Pool Management
![Page 13: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/13.jpg)
Services Involved
• Citrix Pool Management Service
• Hosting Infrastructure• XenServer Pool Master
• Vmware Virtual Center
• MS SCVMM
Virtual Machines
Pool MasterPool Management Service
![Page 14: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/14.jpg)
Virtual MachinesPool Management
Pool MasterDesktop Delivery ControllerPool Management Service
![Page 15: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/15.jpg)
Addresses=[http://10.54.76.172,http://10.54.76.173][http://10.7.1.21,http://10.7.1.22]
![Page 16: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/16.jpg)
Pool Management
Desktop Delivery ControllerPool Management Service
Virtual Machines
Pool Master
Virtual Machines
Pool Master
![Page 17: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/17.jpg)
Virtual Machines
Pool MasterDesktop Delivery ControllerPool Management Service
![Page 18: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/18.jpg)
USB Redirection
![Page 19: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/19.jpg)
Device information
• Identifying a device• Descriptors
• String, Device, Configuration, Interface, Endpoint & more
• Device/interface classes & subclasses• Mass storage, Image, etc.
![Page 20: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/20.jpg)
Modified components
• Modified components• Policy
• Presentation Server console, IMA, DDC, PortICA configuration defaults
• PortICA configuration schema• PortICA service
• Workstation Agent
• Desktop Toolbar
![Page 21: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/21.jpg)
New components
• New components• Citrix USB Service
• Protocol handling, Policy lookup and enforcement
• Citrix USB bus driver• Presents devices to system
• ctxusbf.sys – USB filter driver• Filter on all USB devices
• ctxusbr.sys – USB redirection driver• ‘Dummy’ device driver for redirected devices
• vdgusbN.dll – USB virtual channel
![Page 22: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/22.jpg)
Endpoint / VDA relationship
ICA ClientICA Client PortICA stackPortICA stackUSB Redirection
ManagerUSB Service
Desktop Receiver(client)
Virtual Desktop Agent(PortICA)
StandardDrivers
StandardDrivers
AppsApps
Device
Interception driver
Citrix USB bus driver
Interception driver(pass through)
StandardDrivers
StandardDrivers
AppsApps
MSUSBHUB
MSUSBHUB
Device
Before Redirection/ Not Redirected
Once Redirected
MSUSBHUB
MSUSBHUB
![Page 23: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/23.jpg)
User mode components
• Workstation Agent• Policy handling
• Read from GPO registry keys
• PortICA configuration• Written into configuration sent to ICA
service
• Citrix USB Service• Policy reading (from configuration)
• Policy enforcement
• Data pump
![Page 24: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/24.jpg)
Kernel mode components
• Citrix USB bus driver• Control device – communication with USB Service
• Device stack – Handles• IOCTLs from function drivers
• Certain interface requests (e.g. USB_BUS_INTERFACE_USBDI_V0)
![Page 25: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/25.jpg)
Desktop Receiver
• ctxusbf.sys – USB filter driver• Upper class filter on USB hubs
• Lower filter on device stacks
• Reads policy from registry:• HKLM\Citrix\ICA Client\GenericUSB\DeviceRules
• HKLM\Policies\Citrix\ICA Client\GenericUSB\DeviceRules
• Changes VID & PID on-the-fly
![Page 26: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/26.jpg)
Desktop Receiver
• ctxusbr.sys – USB redirection driver• ‘Dummy’ device driver
• Command pump for Host-to-Clientcommands
• Sends responses back to client
• Handles asynchronous URBs
• vdgusbN.dll – USB virtual channel• Communicates with toolbar
• Data pump to/from server/client
![Page 27: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/27.jpg)
Troubleshooting Tools and Tips
![Page 28: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/28.jpg)
VDA registration issues
• XDPing tool• Services on the DDC
• Networking
• DNS
• Desktop Service Logging• CTX117452
• CDFControl
![Page 29: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/29.jpg)
Pool Management Failures
• Logging in Pool Management Service• CTX117452
• XenServer logs
• CDF Tracing
• XDPing tool
![Page 30: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/30.jpg)
Desktop Connectivity Failures
• CDF tracing
• Event Logs on VDA
• Standard IMA resolution troubleshooting
• Standard ICA connection troubleshooting
• Network tracing
• XDPing
![Page 31: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/31.jpg)
Case Study - User Association with a VDA is Lost
• Username shows as "-" in AMC
• User cannot reconnect to session once disconnected
• User token is captured by ctxidhlpr.exe on session start
• Token is not cached
• Restart of the Desktop Service loses the token
![Page 32: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/32.jpg)
Case Study - User Association with a VDA is Lost
• The desktop service does not get user token on re-launch
• Reassociate the token by running ctxidhlpr.exe in the user session
• Do Not Restart the VDA Desktop Service without reason!
![Page 33: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/33.jpg)
Case Study – Pool Management Churn
• Idle pool spins up several VDAs
• Registration does not take place in 3 minutes
• Pool Manager Starts up more VDAs
• Eventually all register
• Pool Manager shuts down extra VDAs
![Page 34: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/34.jpg)
Case Study - Pool Management Churn
• Pool Management Logs
• Desktop Service Logs
• Performance Logs from Hosting Infrastructure
• XDPing test to FQDN of the VDA
• Correctly Size Your Hosting Infrastructure during transitional periods!
![Page 35: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/35.jpg)
Recap
• XenDesktop Architecture is similar to XenApp Architecture
• XenDesktop 3.0 provides:• XenServer Pool Master failover
• USB device redirection
• Use plaintext logging and XDPing for troubleshooting
![Page 36: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/36.jpg)
Questions??
![Page 37: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/37.jpg)
Continue Your Learning
The following course expands on today's topics and is recommended to support your Citrix solution:
• CXD-200 Implementing Citrix XenDesktop 3
Visit www.citrixeducation.com for more information
![Page 38: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/38.jpg)
• If you complete the survey, you will be entered to win the $250 Amazon gift card.The winner will be announced May 29th
• TechEdge survey link: http://www.citrix.com/techedgesurvey
• Link will also be emailed to all attendees
• The TechEdge PPTs will be posted on the Knowledge Center by Tuesday, May 5th
TechEdge Survey & Posting of PPTs
![Page 39: Jamie Baker Sr. Escalation Engineer](https://reader038.vdocuments.us/reader038/viewer/2022102800/56812dcf550346895d930ed0/html5/thumbnails/39.jpg)