Title: Citrix WANScaler Accelerating Application Delivery to Branch Offices
1Citrix WANScaler Accelerating Application
Delivery to Branch Offices
- Florian Becker
- Architect, Citrix Systems, Inc.
- David Wight
- Escalation Engineer, Citrix Systems, Inc.
2Non Disclosure Agreement
- This presentation is confidential. By virtue of
your relationship with Citrix, you are bound to
retain in confidence all information in this
presentation.
3Agenda
- Example Sites and Deployments
- Citrix WANScaler In-Depth Technical Discussion
- Deployment Scenarios and Best Practices
- Getting Started and Troubleshooting
4Agenda
- Example Sites and Deployments
- Citrix WANScaler In-Depth Technical Discussion
- Deployment Scenarios and Best Practices
- Getting Started and Troubleshooting
5Example Sites and Deployments
- A Natural Resources Exploration Company
- 31 Mbps line
- Utilization increased from 2 to 81
- Workflow wait time from 2 hours to 5 minutes
- ROI in less than 4 months
- A Major Electronics Manufacturer
- Collaboration between western US and Asia
- Response time from more than 24 hrs to minutes
- Large file sizes (previously copied to tape and
shipped) - Other Customers Across Many Verticals
- Utilization improvements between 6x and 100x
6Six Keys to Successful Application Delivery
Citrix NetScaler Deliver Web Applications
Citrix Presentation Server Deliver Windows
Applications
Citrix EdgeSight Monitor End User Experience
Citrix WANScaler Accelerate Apps to Branch Users
Citrix Access Gateway Enable Secure Application A
ccess
Citrix Desktop Server Deliver Desktops
7Application Delivery Buying Dynamics
Apps
Users
CIO, CTOVP of Infrastructureresponsible for
the performance, security and cost of all apps
8Agenda
- Example Sites and Deployments
- Citrix WANScaler In-Depth Technical Discussion
- Deployment Scenarios and Best Practices
- Getting Started and Troubleshooting
9Product Overview
- WANScaler areas of operation
- TCP Flow Control
- Multi-Level Compression
- Protocol Optimization
10Flow Control
11Typical TCP Flow Control
- Flow Control
- TCP does not know what the bandwidth of the link
is!
Ethernet LAN, 10Mb/s, low latency and loss
x
x
1
x
x
x
x
x
x
x
x
x
1 TCP Slow Start - packet sending rate is
increased after each round trip. 2 TCP
Congestion Control -Packet Loss penalty sending
rate cut by 50.
Slow Start
Performance (Mbs)
Congestion Control Algorithm
2
Time (MilliSeconds)
X packet loss
12TCP On the WAN
T3, 45Mb/s, high latency and loss
1 High latency means a slower recovery period
during congestion control. 2 Feedback (packet
loss) is too infrequent and ambiguous to be
accurate.
x
2
x
x
1
Slow Start
Performance (Mbs)
Congestion Control
Time (MilliSeconds)
X packet loss
13TCP On the WAN
1.
x
Short Distance
x
x
x
x
x
x
x
x
x
x
Slow Start
Performance (Mbps)
Long Distance
X packet loss
Time (Milliseconds)
- 1. TCP Distance Bias
- Short distance sessions may have packet loss but
recover quickly - Long distance sessions are impacted by packet
loss but recover slowly - 2. The Result is Low Throughput and Random
Application Delays
14Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
15Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
SYN
16Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
SYN
SYN
ACK
ACK
17Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
SYN
SYN
ACK
ACK
HTTP GET
18Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
SYN
SYN
ACK
ACK
HTTP GET
ACKData
19Typical WAN Communication
120
ms
Switch
Switch
WAN Router
WAN Router
WAN Router
WAN Router
WAN
WAN
Server
Client
SYN
SYN
ACK
ACK
HTTP GET
ACKData
ACK
20TCP Flow Control with WANScaler
21TCP Flow Control with WANScaler
22TCP Flow Control with WANScaler
Fast Side
Slow Side
Slow Side
Fast Side
SYN
SYNACK
ACK
HTTP GET
ACK
ACK
ACK
23WANScaler Flow Control
- Each Segment has its own flow control
- Commonly deployed TCP Windows are 64kB max.
- On the WAN side, WANScaler increases the Window
to 8MB (RFC 1323) - WANScaler acknowledges packets on the LAN side,
so server keeps sending - Use rate-based sender on the WAN segment. Never
send faster than the configured link speed
24WANScaler Flow Control Advantages
- Transparent all three segments use the same IP
and port numbers as original connection - Auto-detecting acceleration is only applied to
connections that flow through two appliances - Dynamic WANScalers adapt to network conditions.
Special algorithms make WAN segment efficient - Fair Queuing on a per-connection basis
25Fair Queuing
26Auto Discovery
27Standard TCP Options
- Standard TCP connections TCP SYN packet includes
standard options for - MSS
- Window Scale
- Selective ACK (SACK)
SYN
28WANScaler TCP Options
- WANScaler changes the standard TCP options and
parameters as part of the acceleration technology - Slow Start Disabled on the Slow Side
- Slow Side Window Scale Increased to 8MB
29WANScaler Auto Discovery
- WANScaler inserts 19 Bytes into the TCP Options
field to advertise its existence - Peer WANScaler recognizes TCP options and
optimization is applied
30WANScaler Sequence Number
- If one WANScaler fails or packets are routed
around a WS, the connection should reset - It is safer to reset the connection than
potentially allow compression tokens through that
could be misunderstood. - Sequence number is changed by adding
2,000,000,000
31WANScaler TCP Header Modification
- WANScaler inserts 19 Bytes into the option field
(options 24-31) sends to remote - MSS set to 1380 (provides room for header with
our options) - TCP Slow start is disabled
- Sequence number is changed by adding 2,000,000,000
WAN
SYN
A
Options WANScaler Options
32WANScaler TCP Header Modification
- WANScaler strips options and forwards to server
- Preserves new window scale
- Sequence number is changed by adding 2,000,000,000
WAN
SYN
A2,000,000,000
Original Options w/ new window scale
33WANScaler TCP Header Modification
- Server sends SYN-ACK to WANScaler
- Preserves new window scale
- Sequence number is incremented
WAN
SYN-ACK
B
A2,000,000,001
Original Options w/ new window scale
34WANScaler TCP Header Modification
- WANScaler sends SYN-ACK across the WAN
WAN
SYN-ACK
B
A2,000,000,001
Options WANScaler Options
35WANScaler TCP Header Modification
- Client side WANScaler sends SYN-ACK w/ new window
size and A1 sequence number - WANScaler specific options are stripped
WAN
SYN-ACK
B2,000,000,000
A1
36WANScaler TCP Header Modification
- During data transfer, client end station sends
ACK Client WANScaler Suppresses ACK - Server side WANScaler sends ACK to Server
WAN
ACK
ACK
37Bandwidth Modes
38Bandwidth Management
Unaccelerated Traffic
Accelerated Traffic
39Bandwidth Modes
- WANScaler can operate in one of two, mutually
exclusive bandwidth modes - Softboost
- Hardboost
- Softboost
- Send accelerated connections at speeds up to the
configured bandwidth limit - AutoOptimizer maximizes link utilization
- Utilizes smart back-off at times of packet loss
40Bandwidth Modes
- Hardboost
- Ignores packet loss and sends at configured speed
- More aggressive than softboost
- Performs well on lossy links where high
throughput is required - Achieves best pipe fill but not the
friendliest to other traffic - Only recommended for known point-to-point links
do not overdrive the link
41Counting Bandwidth
- WANScaler has a configurable bandwidth settings
- Bandwidth is limited by the WANScaler license
- There are two, mutually exclusive bandwidth modes
- Partial Bandwidth
- Full Bandwidth
- Manage the relationship of accelerated and
non-accelerated traffic
42Bandwidth Management
- Partial Bandwidth
- Non-accelerated traffic counts towards the
configured bandwidth limit - Accelerated traffic backs off in light of
non-accelerated traffic - Minimum send rate option limits the back-off
- Used when latency-critical, non-accelerated
traffic flows through WANScaler (such as VoIP)
43Bandwidth Management
- Full Bandwidth
- WANScaler will use all of the configured
bandwidth for accelerated traffic - Non-accelerated traffic may have to back off
- Accelerated and non-accelerated traffic behave as
if the other were not there. Non-accelerated
traffic sees variable bandwidth depending on how
much is used by accelerated traffic.
44Initial Bandwidth Set-up
- The following are recommendations for initial
deployments - Softboost
- Set bandwidth to no more than 96 of the nominal
bandwidth of the link - Use the Monitoring Usage Graph page
- Run continuous pings to monitor latency and
packet loss
45Multi-Level Compression
46How Does WANScaler Compression Work?
- Compression
- Replace a large data chunk with a small token.
Send token instead acts as pointer - WANScaler Methods
- Disk Based Compression
- Memory Based Compression
- Unlike a web cache, WANScaler is not object or
file aware. It is only bit stream aware for TCP
connections. - The memory overwrites automatically when the
history is full (FIFO).
47WANScaler Compression Advantages
- Compression is configurable per service class
though not required - WANScaler compression is application independent
- Requires zero configuration
- Automatically chooses the best compression method
dynamically - Disk-based compression (DBC)
- Memory-based compression
48WANScaler Compression vs. Caching
- WANScaler compression
- Server sends data
- WANScaler compresses it at one end of the WAN
- WANScaler decompresses it at the other end of the
WAN - Receiver sees the exact same payload bytes that
the server just sent - Caching differences
- Caching main purpose is to avoid communication to
the server. - WANScaler always talks to server so there is
never expired/stale/wrong data
49Multi-Level Compression
- Nested compression engines
- Disk-based compression delivers up to 35001
compression for disk matches. - Memory-based compression delivers 3001
compression for memory matches . - Zlib
- LZS
- Automatic nothing to configure. WANScaler
algorithms use the best available based on the
situation
50Protocol Optimization
51What is CIFS?
- Common Internet File System
- Running on top of SMB Server Message Blocks
- CIFS is used for
- Directory Browsing
- File Transfer
- UNC paths
- Open/Read/Write/Close operations
- Common trait
- Many roundtrips per transaction
- Lots of meta data in relation to desired files
52How Does WANScaler Accelerate CIFS?
- Anticipate requests based on learned behavior
- Read ahead in anticipation of the next data block
- Avoid compressing meta data
- CIFS engine communicates with compression module
53Configure Settings CIFS
54Monitoring CIFS Status
- The WANScaler Web GUI can be used to monitor CIFS
acceleration performance - Through-put graphs
- List of accelerated connections
- CIFS acceleration is performed entirely by the
client-side WANScaler. - The WANScaler closest to the fileserver will not
show acceleration in graphs.
55Service Classes
56Service Classes
- Service Classes categorize different segments of
the traffic with L3/L4 information - By TCP Port numbers
- By IP Addresses
- Service Class Policies determine how the traffic
falling into a Service Class is accelerated - Flow Control
- Disk Based Compression
- Memory Based Compression
- None
57Service Classes
- WANScaler comes pre-configured with several
Service Classes - Use the Service Class Page to create new Service
Classes - Name the Service Class and click Create
58Service Classes
- Create one or more rules for the Service Class
59Service Class Policies
- On the Service Class Policy page, move the
service class up or down in priority - Service Classes are applied top to bottom on the
list - Determine Compression Level and Flow Control
60WANScaler Areas of Operation
- Flow Control
- Multi-Level Compression
- Protocol Optimization
61Agenda
- Example Sites and Deployments
- Citrix WANScaler In-Depth Technical Discussion
- Deployment Scenarios and Best Practices
- Getting Started and Troubleshooting
62Deployment Topologies
63Inline Mode
- All link traffic passes through WANScaler
- Deployed at the LAN/WAN boundary.
- Traffic cannot bypass the appliance.
64Inline Mode Accelerating All WAN Traffic
TCP traffic passing through the two WANScalers is
accelerated
65Inline Mode Accelerating Selected Traffic
66Inline Mode and VPN
67Advantages
- Easy to deploy
- No configuration needed on Router or Switch
- All TCP traffic can be accelerated
- Less chance for asymmetry
68Disadvantages
- Few minutes of downtime needed to cable up
- May not be feasible at customer sites
69Virtual Inline Mode
- Provides Policy Based Routing or WCCP support
- Uses only one interface
- Connects to a router or switch
- Additional configuration typically needed
70Policy Based Routing
- Classify Interesting traffic
- Forward to next-hop (WANScaler)
71Advantages
- Least Intrusive from traffic perspective
- Allows for phased in deployment
- ICMP Health monitoring supported
- use CISCO set ip next-hop command
72Disadvantages
- More information required
- Routing knowledge and access required
- Room for error
73Web Cache Communication Protocol(WCCP)
- Often more convenient than PBR deployments
- Supported by most Cisco routers
- IOS 12.x and higher
74WCCP - How It Works
75Deployment StepsWAN Router Configuration
- Enable WCCP version 2 and define the WCCP group
ID for the router
76Considerations
- IP connectivity required
- Router needs to support WCCP v2
- Troubleshooting requires router access and
knowledge
77High-Availability (HA) Support
- Provide fail-over capability for accelerated
traffic - Two WANScalers required
- Three IP addresses needed
- 2 for management, 1 for VIP
78HA Deployment
Stand-by
Active
79Configure Settings High Availability
80HA Considerations
- Dont use the management IPs as the virtual IP
- Active and Stand-by units are negotiated
automatically - Only non-unique configuration parameters are
synchronized automatically - Perform all configuration changes on the active
WANScaler
81Group Mode
- Designed for multi-link environments
- Does not change traffic patterns
- Easy to Configure
82Group Mode How It Works
4
1
A
Legend
2
3
B
5
83Configure Settings Group Mode
84Group Mode Considerations
- Uses GRE to forward traffic
- IP connectivity required between WANScalers
85Agenda
- Example Sites and Deployments
- Citrix WANScaler In-Depth Technical Discussion
- Deployment Scenarios and Best Practices
- Getting Started and Troubleshooting
86Getting Started
87Fail-to-Wire (FTW) Functionality
- Engages in the event of failure or power outage
- With relay closed acts like a crossover cable
- Automatic and requires no user configuration
88Physical Cabling
- Connect cables while WANScaler is powered down
- Test Fail-to-wire card in the WANScaler GUI
- Diagnostic Tools Page
89Speed and Duplex Settings
- Auto-negotiation supported
- Hard-coded settings are recommended
- Verify Settings
- Switch and/or Router
- WANScaler GUI
- Caution
- If one NIC is hard-coded, other NIC set to Auto,
the latter will negotiate to 10Mbps Half Duplex
Misconfigured Speed and Duplex settings are the
leading cause of poor performance
90Initial Setup Assign IP address
- Configure the WANScaler via
- Front LCD panel
- Serial Access
91GUI Access
- Point web browser to WANScaler IP Address
- Username admin
- Password wanscaler
92Licensing
- License files are uploaded through the GUI
- System Tools gt Update License
93Licenses
- WANScalers ship with pre-configured licenses
- If needed, collect the following info
- Serial Number
- MAC Address
- Licensed Bandwidth
- Licensed Features
94Configure Bandwidth Settings
- Configure Settings Bandwidth Management
95User Accounts and Services
- Change Administrator password and/or add user
accounts - RADIUS and TACACS supported
96Logs and Alerts
97Configure Logging
98Collecting Log Entries
99Alerts
100Alert Configuration
101Troubleshooting
102Auto Discovery Challenges
- Traffic and one WANScaler
- May cause latency for user
- In rare circumstances, causes loss of
connectivity - Solution
- Exclude traffic via Service Class Policy
103Unaccelerated Connections
- Some connections are not accelerated
104Common Unaccelerated Codes
105Asymmetric Routing
106Tools Traceroute and Ping
- Ensure traffic flows through both WANScalers in
both directions
107Bandwidth Testing
- WANScalers have iPerf built-in
- One WANScaler is the Server the other is the
client - Diagnostic gt Diagnostic Tool
108Bandwidth Testing
- On the second WANScaler, enter the first
WANScalers IP Address and test duration
109Bandwidth Testing
- iPerf is available on the Internet
- iPerf can also be run between client and server
across the WAN - Check for I/O bottlenecks on client and server
110Service Classes Strategies
- Focus on the goal target your applications
- Selectively disable non-candidate flows
- Disable compression for encrypted traffic
- Interactive applications use Memory Based
Compression
111WANScaler Traces
- Goal Capture the issue
- Tracing Modes
- Header Only (TCP headers only)
- Packet Contents (Full packets and non-TCP
packets) - How long?
112Capturing Traces
- 1. Diagnostic Tool page Tracing Option
- 2. Click on Start Caption changes to Stop
- 3. Click on Stop Then click on Hyperlink to
download the file
113Before you leave
- Meet us at the Q Spot! if you have additional
questions - For qualifying CSAs Become authorized to sell
Citrix WANScaler here at Summit! Take the
authorization test posted on www.citrixsummit.com
- Please provide feedback Session surveys are
available online at www.citrixsummit.com Tuesday,
January 30 - Download PowerPoint presentations starting
Monday, February 5 at www.citrixsummit.com
114(No Transcript)