码迷,mamicode.com
首页 > Web开发 > 详细

Give NetScaler a “Tune-Up”

时间:2018-07-25 11:37:08      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:server   messages   for   uri   wing   oid   turn   bsp   def   

Give NetScaler a “Tune-Up”

https://www.citrix.com/blogs/2014/10/21/give-netscaler-a-tune-up/

To Optimize TCP Traffic

If you’re wondering, there is no little knob to turn.  But, providence is on your side, as the NetScaler has an excellent tool-kit that you can leverage to optimize TCP flows through the appliance.

In fact, now is the perfect time to ensure that your NetScaler appliance is correctly optimized with a baseline TCP profile.  With the right information, you can very easily tweak on your NetScaler appliance to optimize TCP traffic. 

The very best place to start tuning up your NetScaler is at the Global Settings level. Simply log into the appliance via the GUI, navigate to the System node, then Settingsand select Change TCP parameters on the right side of the screen as reflected below:

技术分享图片

 

Stage (1) Tune

You’ll want to ensure that Window scaling is enabled.

技术分享图片

 

What is Window scaling?

Window scaling allows end-points to increase/decrease the TCP receive window, effectively increasing or decreasing the effective bandwidth that is allowed in TCP streams.

Other detailed explanations:
TCP Window Scaling RFC 1323 – https://www.ietf.org/rfc/rfc1323.txt
Wikipedia- http://en.wikipedia.org/wiki/TCP_window_scale_option.

Stage (2) Tune

You’ll want to also ensure that SACK (selective acknowledgement) is enabled.

技术分享图片

 

What is this SACK?

SACK improves TCP throughput by only retransmitting a portion of the TCP window, depending on what segments may have be lost during transmission of course. Avoiding the need to retransmit the entire TCP window will positively increase the overall throughput capability, and thus improve the user experience.

For a detailed explanation on SACK, reference the RFC :
SACK (Selective Acknowledgement) – http://tools.ietf.org/html/rfc2018

Improved TCP performance – http://packetlife.net/blog/2010/jun/17/tcp-selective-acknowledgments-sack/.

Stage (3) Tune

You ‘may’ want to enable Nagle’s.

技术分享图片

 

The main reason that you may want to enable Nagle’s is if you’re dealing with lots of small packets being transmitted through the NetScaler. Take a look at the following URL for a description of Nagle’s – http://en.wikipedia.org/wiki/Nagle’s_algorithm. In short, enabling Nagle’s allows the NetScaler to group or combine a number of small outgoing messages/packets into a transaction, once 2*MSS worth of data is outstanding on the wire, and send them all at once. Proceed with caution on enabling Nagle’s at the Global level, as enabling this feature may cause issues with traffic that isn’t small in nature.

Give It a ‘Custom Tune’

As a note, for Window scaling, the default value is (4). If you’re dealing with long, fat pipes and are frequently transmitting very large files, such as virtual machine images or perhaps an ISO, increasing the Window scaling to a value of (6) should provide better performance than the default (4) value.

To create a custom TCP profile, navigate to the Traffic Management node, then Load Balancing and Virtual Servers and select a vServer that you would like to add a TCP profile to. Click on Profiles on the right of the screen:

技术分享图片

 

Click on the (+) option to begin creating a custom TCP profile that will only be applied to the selected Virtual Server.

技术分享图片

 

Simply fill out the profile with the values desired, click Create and you’ll have a customer TPC ‘tune’ profile on that selected vServer.

技术分享图片

 

Reference: http://support.citrix.com/article/CTX121149

Do you have any custom TCP profiles created? Why not leave a comment with examples of how you’ve given your NetScaler appliance a ‘tune-up’.

 

Give NetScaler a “Tune-Up”

标签:server   messages   for   uri   wing   oid   turn   bsp   def   

原文地址:https://www.cnblogs.com/lsgxeva/p/9364599.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!