Manual Chapter :
Shaping Citrix Client MultiStream ICA Traffic
Applies To:
Show VersionsBIG-IP APM
- 17.0.0, 16.1.0, 16.0.1, 16.0.0, 15.1.0
Shaping Citrix Client MultiStream ICA Traffic
Overview: Shaping traffic for Citrix clients that support MultiStream ICA
Access Policy Manager (APM) can perform traffic shaping for Citrix clients that support MultiStream ICA. You can add the configuration required for traffic shaping to an existing integration of APM by adding a BWC Policy action to an existing access policy.
Consult Citrix documentation for the clients and client platforms that support MultiStream ICA.
About Citrix XenApp server requirements for shaping traffic with
APM
To support traffic shaping for Citrix MultiStream ICA clients with Access
Policy Manager (APM), you must meet specific configuration requirements on the Citrix XenApp
server as described here.
- Citrix MultiStream ICA must be enabled.
- A Citrix Multi-Port Policy must be configured with four MultiStream ICA ports, one for each priority (high, very high, medium, and low). This example uses ports2598-2601.
- CGP default port: Default port; CGP default port priority: HighCGP default port is usually2598.
- CGP port1: 2799 CGP port1 priority: Very High
- CGP port2: 2800 CGP port2 priority: Medium
- CGP port3: 2801 CGP port3 priority: Low
When a XenApp server is configured correctly, you can use a network
monitoring utility, such as
netstat
, and
see that an XTE.exe process is listening on the configured ports as shown in this example.C:\>netstat–abnoActive Connections Proto Local Address Foreign Address State PID … TCP 0.0.0.0:2598 0.0.0.0:0 LISTENING 6416 [XTE.exe] TCP 0.0.0.0:2799 0.0.0.0:0 LISTENING 6416 [XTE.exe] TCP 0.0.0.0:2800 0.0.0.0:0 LISTENING 6416 [XTE.exe] TCP 0.0.0.0:2801 0.0.0.0:0 LISTENING 6416 [XTE.exe]
When you
change or configure a policy, it takes effect on the XenApp server after a system restart.
Shaping multistream ICA traffic
Creating a dynamic bandwidth control policy for Citrix MultiStream ICA traffic
You create a dynamic bandwidth control policy to support traffic shaping for Citrix
MultiStream ICA traffic on the BIG-IP system.
- On the Main tab, click.
- ClickCreate.
- In theNamefield, type a name for the bandwidth control policy.
- In theMaximum Ratefield, type a number and select the unit of measure to indicate the total throughput allowed for the resource you are managing.The number must be in the range from1 Mbpsto1000 Gbps. This value is the amount of bandwidth available to all the connections going through this static policy.
- From theDynamiclist, selectEnabled.The screen displays additional settings.
- In theMaximum Rate Per Userfield, type a number and select the unit of measure to indicate the most bandwidth that each user or session associated with the bandwidth control policy can use.The number must be in the range from1 Mbpsto2 Gbps.
- In theCategoriesfield, add four categories of traffic that this bandwidth control policy manages for Citrix: very high, high, medium, and low.All the categories share the specified bandwidth, in accordance with the rate specified for each category.The category names you specify here display in the visual policy editor when you add a bandwidth control (BWC) policy action to an access policy.
- In theCategory Namefield, type a descriptive name for the category.
- In theMax Category Ratefield, type a value to indicate the most bandwidth that this category of traffic can use, and select%from the list and type a percentage from1to100.
- ClickAdd.The new category displays on theCategorieslist.
- Repeat these steps to add the additional categories until you have defined all four required categories.
- ClickFinished.
The system creates a dynamic bandwidth control policy.
You might create a policy with a maximum rate of 20 Mbps and a maximum rate per
user of 10 Mbps with categories named like this: bwcVH, bwcH, bwcM, and bwcL and with
maximum category rate in percent, such as 40, 30, 20, 10 accordingly.
For the bandwidth control policy to take effect, you must apply the policy to
traffic, using the BWC policy action in an access policy.
Adding support for
Citrix traffic shaping to an access policy
Add actions to an existing access policy to
provide traffic shaping for Citrix MultiStream ICA clients.
You need to
determine where to add these actions in the access policy. You might need to precede
these actions with a Client Type action to determine whether these actions are
appropriate to the client.
- On the Main tab, click.The Access Profiles (Per-Session Policies) screen opens.
- In the Per-Session Policy column, click theEditlink for the access profile you want to configure.The visual policy editor opens the access policy in a separate screen.
- On a policy branch, click the(+)icon to add an item to the policy.A popup screen displays actions on tabs, such as General Purpose and Authentication, and provides a search field.
- Add a BWC Policy action:
- Type BWC into the search field.Search is not case-sensitive.Results are listed.
- SelectBWC Policyfrom the results and clickAdd Item.A properties screen opens.
- From theDynamic Policylist, select the dynamic bandwidth policy that you configured previously for Citrix MultiStream ICA clients.Lists for these properties:Very High Citrix BWC Category,High Citrix BWC Category,Medium Citrix BWC Category, andLow Citrix BWC Categoryinclude the categories configured in the selected dynamic bandwidth policy.
- From theVery High Citrix BWC Categorylist, select the category that corresponds to the very high setting.
- For each of the remaining properties:High Citrix BWC Category,Medium Citrix BWC Category, andLow Citrix BWC Category, select a category that corresponds to the setting.
- ClickSave.
- On a policy branch, click the(+)icon to add an item to the policy.A popup screen displays actions on tabs, such as General Purpose and Authentication, and provides a search field.
- TypeVarin the search field, selectVariable Assignfrom the results, and clickAdd Item.In this Variable Assign action, you create one entry for each of the four ports that are configured in the Citrix Multi-Port Policy on the Citrix XenApp server.A properties screen opens.
- Assign a variable for the CGP port that is configured with very high priority in the Multi-Port Policy on the Citrix XenApp server.
- ClickAdd new entry.Anemptyentry displays in the Assignment table.
- Click thechangelink next to the empty entry.A dialog box, where you can enter a variable and an expression, displays.
- In theCustom Variablefield, typecitrix.msi_port.very_high.
- In theCustom Expressionfield, typeexpr {".2599"}Replace2599with the port number defined for the CGP port with very high priority on the Citrix XenApp server.
- ClickFinished.The popup screen closes.
- Assign a variable for the CGP port that is configured with high priority in the Multi-Port Policy on the Citrix XenApp server.
- ClickAdd new entryand click thechangelink next to the new empty entry that displays.
- In theCustom Variablefield, typecitrix.msi_port.high.
- In theCustom Expressionfield, typeexpr {".2598"}Replace2598with the port number defined for the CGP port with high priority on the Citrix XenApp server.
- ClickFinished.The popup screen closes.
- Assign a variable for the CGP port that is configured with medium priority in the Multi-Port Policy on the Citrix XenApp server.
- ClickAdd new entryand then click thechangelink next to the new empty entry that displays.
- In theCustom Variablefield, typecitrix.msi_port.mid.
- In theCustom Expressionfield, typeexpr {".2600"}Replace2600with the port number defined for the CGP port with medium priority on the on the Citrix XenApp server.
- ClickFinished.The popup screen closes.
- Assign a variable for the CGP port that is configured with low priority in the Multi-Port Policy on the Citrix XenApp server.
- ClickAdd new entryand click thechangelink next to the new empty entry that displays.
- In theCustom Variablefield, typecitrix.msi_port.low.
- In theCustom Expressionfield, typeexpr {".2601"}Replace2601with the port number defined for the CGP port with low priority on the Citrix XenApp server.
- ClickFinished.The popup screen closes.
- ClickSave.The properties screen closes and the policy displays.
- Click theApply Access Policylink to apply and activate the changes to the policy.
To
apply this access policy to network traffic, add the access profile to a virtual
server.
To ensure
that logging is configured to meet your requirements, verify the log settings for
the access profile.
Verify log settings for the access profile
Confirm that the correct log settings are selected for the access profile to ensure that events are logged as you intend.
Log settings are configured in the
area of the product. They enable and disable logging for access system and URL request filtering events. Log settings also specify log publishers that send log messages to specified destinations. - On the Main tab, click.The Access Profiles (Per-Session Policies) screen opens.
- Click the name of the access profile that you want to edit.The properties screen opens.
- On the menu bar, clickLogs.The access profile log settings display.
- Move log settings between theAvailableandSelectedlists.You can assign up to three log settings that enable access system logging to an access profile. You can assign additional log settings to an access profile provided that they enable logging for URl request logging only.Logging is disabled when theSelectedlist is empty.
- ClickUpdate.
An access profile is in effect when it is assigned to a virtual server.