20
XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5 Network Bandwidth Policies

Embed Size (px)

Citation preview

Page 1: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Page 2: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 2

Table of Contents

Managing Bandwidth in Network Infrastructure Page 3

Engine vs. Synchronizer Bandwidth Policies Page 4

Engine Bandwidth Policy Enforcement Page 5

Synchronizer Bandwidth Policy Enforcement Page 6

Synchronizer Bandwidth Policies and WAN Links Page 7

Engine Bandwidth Policy Configuration Page 8

Synchronizer Bandwidth Policies: Required Steps Page 9

Creating a New Synchronizer Bandwidth Policy Page 10

Synchronizer Bandwidth Policy: IP Address Range Page 11

Synchronizer Bandwidth Policy: Bandwidth and Connections Page 12

Synchronizer Bandwidth Policy: Time In Effect Page 13

Enabling and Assigning Synchronizer Bandwidth Policies Page 14

Primary and Remote Synchronizer Servers Page 15

Bandwidth Policy Scope Page 16

Multiple Bandwidth Policies Page 17

Overlapping Bandwidth Policies Page 18

Most Restrictive vs. Most Specific Page 19

What If More Flexibility Is Required? Page 20

Page 3: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 3

Managing Bandwidth in Network Infrastructure

• The Synchronizer provides some basic bandwidth control policies which are the topic of this document.

• But wherever possible, best practice is to leverage Quality of Service or other bandwidth-limiting features in network infrastructure instead.

• This can give much more flexibility and control over network bandwidth management in a XenClient Enterprise deployment.

Page 4: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 4

Engine vs. Synchronizer Bandwidth Policies

XenClient Enterprise provides two types of bandwidth policies:

Engine Bandwidth Policy

•Configured in the Engine policy.

•Sets limits for individual computers.

•Not commonly used.

Synchronizer Bandwidth Policy

•Configured as a separate policy applied to Synchronizer servers.

•Limits total bandwidth for all network communications:

• Between registered computers and Synchronizer servers.

• Between remote servers and the primary server.

•This policy does not limit SQL network traffic for remote servers.

•Much more commonly used than Engine bandwidth policies.

Page 5: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 5

Engine Bandwidth Policy Enforcement

up to 600 kb/s

200 kb/s limit

200 kb/s limit

200 kb/s limit

• Engine policy bandwidth limits are enforced in the Engine.

• Each individual Engine will comply with the policy settings.

• With multiple computers registered to Synchronizer:

• Each Engine might use up to the maximum configured bandwidth.

• Maximum network load on Synchronizer might be much higher.

Page 6: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 6

Synchronizer Bandwidth Policy Enforcement

max 200 kb/s

• Synchronizer policy bandwidth limits are enforced in the Synchronizer.

• Each Engine will try to download files as fast as the network will allow.

• If only one computer is downloading an update, it might use up to the maximum configured bandwidth.

• If multiple computers are downloading updates, the total download bandwidth is limited by the policy.

Page 7: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 7

Synchronizer Bandwidth Policies and WAN Links

• A distributed Synchronizer configuration example is shown below.

• Synchronizer bandwidth policy is commonly used to protect the WAN link otherwise the WAN link can get flooded with download traffic.

• Bandwidth policy should be set to a fraction of the WAN link bandwidth.

• To leave bandwidth available for other purposes.

• Example: for a T1 link (1.5 Mbps), the bandwidth limits might be set to 512 kbps.

• Engine bandwidth policy would not be of much help in this situation.

Remote Server

WAN Link

Primary Server

Primary Network(10.1.1.0/24)

Remote Network(10.1.2.0/24)

Primary Server Computers Remote Server Computers

Page 8: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 8

Engine Bandwidth Policy Configuration

Engine bandwidth policy settings are part of the Engine policy.

1.Locate the Engine policy in Synchronizer console.

2.Select “Network”.

3.Enter values for the maximum Engine upload and download speeds.

• Units are kilobits per second.

4.Policy changes will take effect when the computer next checks for updates.

Page 9: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 9

Synchronizer Bandwidth Policies: Required Steps

Setting a bandwidth policy for a Synchronizer server is a multi-step process.

1.The bandwidth policy must be defined in the Synchronizer console.

2.Bandwidth management must be enabled for a Synchronizer server.

3.The bandwidth policy must be assigned to the Synchronizer server.

4.The Synchronizer service should be restarted. This is the best way to make bandwidth policy changes take effect immediately.

These steps are outlined on the following pages.

Page 10: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 10

Creating a New Synchronizer Bandwidth Policy

• There is a separate folder for Synchronizer bandwidth policies.

• To create a new policy:

• Select the “Bandwidth” policy folder.

• Click “Create” and select “Bandwidth Policy”.

Page 11: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 11

Synchronizer Bandwidth Policy: IP Address Range

• Each bandwidth policy applies to a range of IP addresses.

• The IP Address property defines the beginning of the range.

• The Subnet Mask property defines the length of the range.

These settings define an entire Class C network (10.1.2.0/24).

These settings define an entire Class B network (10.100.0.0/16).

A single IP address can also be defined if desired.

Page 12: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 12

Synchronizer Bandwidth Policy: Bandwidth and Connections

• These properties are fairly self-explanatory.

• Download and upload units are in kilobits per second.

• Not kilobytes per second.

• Bandwidth limits are total limits across all connections within the IP address range defined for the bandwidth policy.

• Do not make the connection pool sizes too small. The minimum recommended size is 20.

Page 13: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 13

Synchronizer Bandwidth Policy: Time In Effect

• If desired, the bandwidth policy can be configured to only be in effect during certain times and/or on certain days of the week.

• This is often done to maximize transfers between primary and remote Synchronizer servers across WAN links during non-working hours.

Page 14: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 14

Enabling and Assigning Synchronizer Bandwidth Policies

Select the Synchronizer server that the bandwidth policy should be applied to.

Select the “Bandwidth” tab.

Select “Enable Management” .

Assign bandwidth policies to the server, then save changes.

Page 15: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 15

Primary and Remote Synchronizer Servers

• Bandwidth policies can be applied to the primary and/or remote servers.

• Different servers might have different policies applied.

• When a remote server downloads a resource from the primary server:

• Bandwidth is limited by policies in effect on the primary server.

• Controlling policy is based on the remote server IP address.

Page 16: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 16

Bandwidth Policy Scope

• If a bandwidth policy is applied to a Synchronizer server, the following types of network traffic are limited:

• The download limit is applied to client computers, or remote Synchronizer servers, downloading VM image updates and other resources from the repository.

• The upload limit is applied to client computers uploading user backups to the Synchronizer repository.

• Examples of network traffic not limited by the bandwidth policy:

• Use of the Synchronizer console.

• Direct communication between remote Synchronizer servers and the SQL database.

• Direct communication between remote Synchronizer servers and Active Directory.

• This traffic should be trivial compared to downloading VM image updates or uploading user backups.

Page 17: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 17

Multiple Bandwidth Policies

Remote Network(10.1.3.0/24)

Remote Network(10.1.2.0/24)

Up to 200 kbps Up to 200 kbps

Up to 400 kbps

• Multiple bandwidth policies can be assigned to a Synchronizer server.

• Each policy defines a different range of IP addresses.

• Bandwidth limits are enforced individually on each set of IP addresses.

• This applies to upload or download speeds and number of connections.

Page 18: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 18

Overlapping Bandwidth Policies

10.1.2.0/24

10.1.0.0/16

10.0.0.0/8

192.168.0.0 – 192.168.255.255

This group of clients is limited to a total bandwidth of 200 kbps.

This group of clients is limited to a total bandwidth of 1000 kbps.

Total network load for all three groups could be up to 1700 kbps.

There is no bandwidth policy for this group of clients so they are unrestricted.

This group of clients is limited to a total bandwidth of 500 kbps.

• Overlapping bandwidth policies can be assigned to a server.

• For a client with an IP address in the overlapping range, the policy with the most restrictive bandwidth limits is applied.

Page 19: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 19

Most Restrictive vs. Most Specific

• When a client connects to Synchronizer, the client IP address is used to choose the controlling bandwidth policy.

• If multiple policies apply to the client IP address, the policy that gets chosen is the one that is more restrictive (in terms of bandwidth limits), not more specific (in terms of IP address ranges).

10.1.1.0/24

10.0.0.0/8

Example 1: The more specific policy is less restrictive. Both sets of clients are controlled by the first policy.

Example 2: The more-specific policy is also more restrictive. The two sets of clients are controlled by different policies.

10.1.1.0/24

10.0.0.0/8

Page 20: XenClient Enterprise 4.5 Network Bandwidth Policies

XenClient Enterprise 4.5Network Bandwidth Policies

Copyright © 2012 CitrixPage 20

What If More Flexibility Is Required?

• Synchronizer bandwidth policies are fairly basic and might not provide the desired level of flexibility.For example, it may be desired to restrict bandwidth for all IP addresses, except for those in a particular range.

• For these types of requirements, it is best to leverage Quality of Service or bandwidth management features provided by network infrastructure (switches, routers, firewall appliances, or other components).