Cisco Content Services Switch Content Load-Balancing Configuration Guide



Similar documents
Cisco Content Services Switch Content Load-Balancing Configuration Guide

Data Center Infrastructure Design Guide 2.1 Readme File

Cisco IP Phone 7961G/7961G-GE and 7941G/7941G-GE Enhancements

Cisco Content Services Switch Redundancy Configuration Guide

Cisco Registered Envelope Recipient Guide

Transferring Files Using HTTP or HTTPS

Cisco Network Planning Solution Documentation Guide and Supplemental License Agreement

Cisco Content Services Switch Global Server Load-Balancing Configuration Guide

Installation Guide for Cisco Unified ICM/Contact Center Enterprise and Hosted Release 9.0(1)

Getting Started. Cisco Desktop Product Suite 4.5 (ICD)

Integrating CAD with Thin Client and Virtual Desktop Environments

L2TP Dial-Out Load Balancing and Redundancy

Enabling and Monitoring NetFlow on Subinterfaces

Constraining IP Multicast in a Switched Ethernet Network

Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide

Cisco UCS Director Payment Gateway Integration Guide, Release 4.1

Cisco PIX 515E Security Appliance Getting Started Guide

Cisco Smart Care Services Questions and Answers About the Voice Quality Monitor Service

Cisco Data Center Infrastructure Design Guide 2.1 Release Notes

Cisco OC-3/OC-12/OC-48 SFP Transceiver Modules Compatibility Matrix

Cisco IOS Flexible NetFlow Command Reference

Accessibility Guidelines for Cisco Unified Contact Center Management Portal

Cisco Content Services Switch SSL Configuration Guide

Cisco 10-Gigabit Ethernet Transceiver Modules Compatibility Matrix

FXO, FXS, and E&M Voice Interface Card Support on Cisco 1700 Series Routers

White Paper: Active Directory Capacity Planning (Cisco Unity Versions 4.x, 3.1, and 3.0(3) and Later with Microsoft Exchange)

Cisco IOS Flexible NetFlow Overview

Implementation Note for NetFlow Collectors

Cause Codes and Debug Values

Cisco ASA 5505 Getting Started Guide

Upgrading to the Cisco ubr7246vxr Universal Broadband Router

Cisco Router and Security Device Manager File Management

Release Notes for the Cisco WAN Modeling Tools, Release Patch 1

System Message Logging

Voice-Over IP Monitoring Best Practices Deployment Guide for CAD 6.0/6.1

Cisco IronPort Encryption Appliance Release Notes

Calling Name Delivery (CNAM)

Basic Software Configuration Using the Cisco IOS Command-Line Interface

User Guide for Cisco Unified MeetingPlace Web Conferencing

Installation and Configuration Guide Cisco Unified CRM Connector for SAP

Disaster Recovery System Administration Guide for Cisco Unified Presence Server Release 1.0(3)

Installing and Configuring External Flash Memory Cards in Cisco 3600 Series Routers

Configuring VIP and Virtual IP Interface Redundancy

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T.

CLE202 Introduction to ServerIron ADX Application Switching and Load Balancing

Cisco Unified Web and Interaction Manager Knowledge Base Author s Guide

Configuring Stickiness

Cisco 10-Gigabit Ethernet Transceiver Modules Compatibility Matrix

Cisco Aironet 5-dBi Omnidirectional Antenna (AIR-ANT2450V-N)

Cisco Unified Web and Interaction Manager Knowledge Base Author s Guide

Cisco Unified Communications Manager SIP Line Messaging Guide (Standard)

How to Register, Start, and Access a Cisco Online Exam

Exam Name: Foundry Networks Certified Layer4-7 Professional Exam Type: Foundry Exam Code: FN0-240 Total Questions: 267

Danish Train Operator Gets Customer Service Back On Track

Cisco IP Phone 7912G. At a Glance

Cisco GLBP Load Balancing Options

Terminal Services Overview

Cisco TelePresence VCR MSE 8220

Installation Guide for Cisco Unified Call Services, Universal Edition and Unified Call Studio

Cisco Global Site Selector CLI-Based Global Server Load-Balancing Configuration Guide

Cisco Registered Envelope Recipient Guide

Cisco Application Networking Manager Version 2.0

Cisco Configuration Assurance Solution Audit and Analysis IT Sentinel Reference Guide

Cisco ASA, PIX, and FWSM Firewall Handbook

Cisco Smart Services for Small and Medium Business: Solutions for Your Success

CISCO SMALL AND MEDIUM BUSINESS CLASS VOICE SOLUTIONS: CISCO CALLMANAGER EXPRESS BUNDLES

Securing Networks with PIX and ASA

Overview: Cisco Wireless Network Management Suite 1.0

Understanding Slow Start

Configuring Health Monitoring

Ports Reference Guide for Cisco Virtualization Experience Media Engine for SUSE Linux Release 9.0

Configuring Health Monitoring

Cisco Collaboration with Microsoft Interoperability

What's New in Cisco ACE Application Control Engine Module for the Cisco Catalyst 6500 and Cisco 7600 Series Software Release 2.1.0

Cisco Registered Envelope Service 4.3 Recipient Guide

Firewall Load Balancing

User Guide Cisco Unified MeetingPlace Express Release 2.0

Connecting Cisco Fast Ethernet ISDN PRI Network Modules to the Network

Cisco TelePresence VCR Converter 1.0(1.8)

Cisco Global Site Selector CLI-Based Global Server Load-Balancing Configuration Guide

Cisco Registered Envelope Service 4.4 Recipient Guide

Cisco Router and Security Device Manager USB Storage

Cisco Unified CallConnector for Microsoft Dynamics CRM 3.0 Installation and Configuration Guide

axsguard Gatekeeper Internet Redundancy How To v1.2

Basic System. Vyatta System. REFERENCE GUIDE Using the CLI Working with Configuration System Management User Management Logging VYATTA, INC.

Cisco 100-Megabit Ethernet SFP Modules Compatibility Matrix

CISCO ISDN BRI S/T WIC FOR THE CISCO 1700, 1800, 2600, 2800, 3600, 3700, AND 3800 SERIES

High Availability Distributed System Configuration Guide on Microsoft SQL Server for Network Compliance Manager 1.3

Cisco Cable Modem Termination System Feature Guide

Services. Vyatta System. REFERENCE GUIDE DHCP DHCPv6 DNS Web Caching LLDP VYATTA, INC.

HP Load Balancing Module

IOS Server Load Balancing

White Paper: Cisco Unity Data and the Directory

Cisco Expressway IP Port Usage for Firewall Traversal. Cisco Expressway X8.1 D December 2013

Troubleshooting Procedures for Cisco TelePresence Video Communication Server

IOS Server Load Balancing

QoS: CBQoS Management Policy-to- Interface Mapping Support Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 1000)

Figure 1. The Cisco Aironet Power Injectors Provide Inline Power to Cisco Aironet Access Points and Bridges

Getting Started with the Cisco IP Phone 7910 Series

Cisco Unified IP Conference Station 7937G Administration Guide for Cisco Unified Communications Manager 6.0

Transcription:

Cisco Content Services Switch Content Load-Balancing Configuration Guide Software Version 8.10 November 2005 Corporate Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 526-4100 Text Part Number:

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB s public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. CCSP, CCVP, the Cisco Square Bridge logo, Follow Me Browsing, and StackWise are trademarks of Cisco Systems, Inc.; Changing the Way We Work, Live, Play, and Learn, and iquick Study are service marks of Cisco Systems, Inc.; and Access Registrar, Aironet, ASIST, BPX, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Empowering the Internet Generation, Enterprise/Solver, EtherChannel, EtherFast, EtherSwitch, Fast Step, FormShare, GigaDrive, GigaStack, HomeLink, Internet Quotient, IOS, IP/TV, iq Expertise, the iq logo, iq Net Readiness Scorecard, LightStream, Linksys, MeetingPlace, MGX, the Networkers logo, Networking Academy, Network Registrar, Packet, PIX, Post-Routing, Pre-Routing, ProConnect, RateMUX, ScriptShare, SlideCast, SMARTnet, StrataView Plus, TeleRouter, The Fastest Way to Increase Your Internet Quotient, and TransPath are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries. All other trademarks mentioned in this document or Website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0502R) Copyright 2005 Cisco Systems, Inc. All rights reserved.

CONTENTS Preface xxiii Audience xxiv How to Use This Guide xxiv Related Documentation xxvi Symbols and Conventions xxix Obtaining Documentation, Obtaining Support, and Security Guidelines xxx CHAPTER 1 Content Load-Balancing Overview 1-1 Service, Owner, and Content Rule Overview 1-1 Overview of CSS Flow 1-4 CHAPTER 2 Configuring Flow and Port Mapping Parameters 2-1 Configuring Flow Parameters 2-1 Configuring Permanent Connections for TCP or UDP Ports 2-2 Configuring TCP Maximum Segment Size 2-3 Enabling the Reordering of Persistent Spanned Packets 2-4 Passing Traffic that Use TCP or UDP Source or Destination Port 0 2-4 Configuring TCP Acknowledgements for Layer 5 Spanning Packets 2-5 Showing Flow Statistics 2-5 Configuring Flow Inactivity Timeouts on Content Rules and Source Groups 2-7 Timeout Value Precedence 2-7 Configuring Flow Timeouts 2-8 Displaying Flow Timeout Statistics 2-9 Displaying Content Rule and Source Group Information 2-10 Configuring Flow Processing for Fragmented IP Packets 2-10 iii

Contents What Is IP Packet Fragmentation? 2-12 Configuration Restrictions 2-12 Enabling Flow Processing for Fragmented IP Packets 2-13 Configuring the Maximum Assembled Size 2-13 Configuring the Minimum Fragment Size 2-14 Displaying IP Fragment Statistics 2-16 Resetting IP Fragment Statistics 2-18 Configuring a CSS to Send a TCP Reset if a VIP Is Unavailable 2-19 Configuring the Flow-State Table 2-20 Configuring the Flow State of a Port 2-23 Resetting the Flow-State Table Hit Counters 2-25 Displaying the Flow-State Table 2-25 Configuring CSS Port Mapping 2-26 Overview of Global Port Mapping 2-26 Configuring Global Port Mapping 2-27 Displaying Global Port Mapping Statistics 2-29 Configuring No-Flow Port Mapping 2-31 Displaying No-Flow Port Mapping Statistics 2-32 CHAPTER 3 Configuring Services 3-1 Service Configuration Quick Start 3-2 Creating a Service 3-4 Assigning an IP Address to the Service 3-4 Specifying a Port 3-6 Specifying a Protocol 3-6 Specifying a Domain Name 3-7 Specifying an HTTP Redirect String 3-8 Setting TCP FIN or RST Flags for HTTP 302 Redirect Messages 3-9 Prepending http:// to a Redirect String or a Domain 3-10 iv

Contents Configuring an Advanced Load-Balancing String 3-10 Configuring a Service HTTP Cookie 3-10 Configuring Weight and Graceful Shutdown 3-11 Specifying a Service Type 3-13 How the CSS Accesses Server Types 3-15 Configuring Service Access 3-16 Bypassing Content Rules on Caches 3-16 Configuring Network Address Translation for Transparent Caches 3-17 Configuring a Service to Bypass a Cache Farm 3-17 Configuring Maximum TCP Connections 3-18 Configuring Keepalives for a Service 3-19 Activating a Service 3-19 Suspending a Service 3-20 Showing Service Configurations 3-20 Clearing Service Statistics Counters 3-27 Where to Go Next 3-27 CHAPTER 4 Configuring Service, Global, and Script Keepalives 4-1 CSS Keepalive Overview 4-2 Configuring Service Keepalives 4-4 Configuring Global Keepalives 4-5 Creating and Naming a Global Keepalive 4-7 Configuring a Global Keepalive IP Address 4-7 Configuring a Global Keepalive Description 4-8 Activating the Global Keepalive 4-8 Suspending a Global Keepalive 4-8 Associating a Service with a Global Keepalive 4-8 Configuring Service and Global Keepalive Attributes 4-9 v

Contents Configuring a Keepalive Frequency 4-9 Configuring a Keepalive Retry Period 4-10 Configuring the Maximum Number of Failures for a Keepalive 4-11 Configuring a Keepalive Type 4-12 Configuring a TCP Keepalive with Graceful Socket Close (FIN) 4-16 Configuring a Keepalive Port Number 4-16 Configuring the HTTP Keepalive Method 4-17 Configuring a Keepalive HTTP Response Code 4-18 Configuring a Keepalive URI 4-19 Configuring a Keepalive Hash Value 4-20 Showing Keepalive Configurations 4-23 Using Script Keepalives with Services 4-25 Script Keepalive Considerations 4-26 Configuring Script Keepalives 4-28 Viewing a Script Keepalive in a Service 4-29 Script Keepalive Status Codes 4-30 Script Keepalives and Upgrading WebNS Software 4-31 CHAPTER 5 Configuring Source Groups for Services 5-1 Overview of Source Groups and Port Mapping 5-2 Source Group Configuration Quick Start 5-5 Creating a Source Group 5-8 Configuring the Source Group 5-8 Configuring a VIP Address for a Source Group 5-9 Configuring a Service on a Source Group 5-10 Adding a Destination Service to the Source Group 5-11 Activating and Suspending a Source Group 5-12 Configuring Source Group Port Mapping 5-12 Configuring the Starting Port Number 5-12 vi

Contents Configuring the Total Number of Ports in a Port-Map Range 5-13 Configuring a VIP Address Range for Port Mapping 5-13 Disabling Port Mapping 5-16 Configuring Source Groups and ACLs 5-17 Configuring a Source Group for FTP Connections 5-19 Configuring Source Groups to Allow Servers to Resolve Domain Names Using the Internet 5-20 Showing Source Groups 5-21 Clearing Source Group Counters 5-25 CHAPTER 6 Configuring Loads for Services 6-1 Configuring Relative Load for Services 6-1 Relative Load Overview 6-2 Configuring Relative Load 6-4 Relative Load Configuration Quick Start 6-5 Configuring Global Load Reporting 6-6 Configuring the Relative Load Step 6-6 Configuring the Global Load Threshold 6-7 Configuring the Load Teardown Timer 6-8 Configuring the Load Ageout Timer 6-8 Showing Global Service Loads 6-9 Configuring the Absolute Load Calculation Method 6-11 Overview of Calculating Absolute Load 6-12 Configuration Requirements and Restrictions 6-13 Absolute Load Configuration Quick Start 6-13 Configuring Load Calculation 6-15 Using the load absolute-sensitivity Command 6-16 Configuring load absolute-sensitivity 6-16 Optimizing the Absolute Load Number Scale 6-17 vii

Contents Configuring Load Variance 6-18 Displaying Relative Load Statistics 6-19 Displaying Absolute Load Calculation Ranges 6-20 Using ArrowPoint Content Awareness Based on Server Load and Weight 6-26 Using ACA Based on Server Load 6-26 Using ACA Based on Server Weight and Load 6-26 Configuring the Load Command for Use with ACA 6-27 CHAPTER 7 Configuring Server/Application State Protocol for Server Load Balancing 7-1 SASP Overview 7-2 SASP Messages 7-3 Weight Precedence and Range 7-4 Configuring SASP 7-5 Configuring an SASP Agent 7-5 Configuring an SASP Agent on a Content Rule 7-7 Enabling and Disabling SASP on the CSS 7-8 Changing the Maximum Accepted SASP Weight 7-10 Displaying SASP Information 7-11 Displaying the SASP Manager Configuration on the CSS 7-12 Displaying SASP Agent Configuration and States 7-13 Displaying Service Information and Reports 7-15 CHAPTER 8 Configuring Dynamic Feedback Protocol for Server Load Balancing 8-1 DFP Overview 8-2 Functions of a DFP Agent 8-3 Types of DFP Messages 8-3 DFP System Flow 8-4 Configuring a DFP Agent 8-5 viii

Contents Maintaining a Consistent Weight Range Among Services 8-8 Displaying Configured DFP Agents 8-9 Displaying Services Supported by Configured DFP Agents 8-10 Displaying DFP Information 8-11 Using the show service Command 8-11 Using the show rule services Command 8-12 CHAPTER 9 Configuring Owners 9-1 Owner Configuration Quick Start 9-2 Creating an Owner 9-3 Configuring an Owner DNS Balance Type 9-3 Specifying Owner Address 9-4 Specifying Owner Billing Information 9-4 Specifying Case 9-5 Specifying Owner DNS Type 9-5 Specifying Owner E-Mail Address 9-6 Removing an Owner 9-6 Showing Owner Information 9-7 Showing Owner Summary 9-10 Where to Go Next 9-11 CHAPTER 10 Configuring Content Rules 10-1 Content Rule Overview 10-2 Content Rule Hierarchy 10-3 Matching Precedence for Layer 5 Rules 10-3 Content Rule Configuration Quick Start 10-5 Naming and Assigning a Content Rule to an Owner 10-7 Configuring a Virtual IP Address 10-8 ix

Contents Configuring a Domain Name Content Rule 10-12 Matching Content Rules to Multiple Domain Names 10-13 Configuring a Content Rule Using a Domain Name and a VIP Address 10-14 Using Wildcards in Domain Name Content Rules 10-15 General Guidelines for Domain Name Wildcards in Content Rules 10-17 Configuring Domain Qualifier Lists 10-17 Creating a DQL 10-19 Describing a DQL 10-20 Adding a Domain to a DQL 10-20 Adding a DQL to a Content Rule 10-21 Removing a DQL from a Content Rule 10-21 Showing DQL Configurations 10-22 Configuring Virtual Web Hosting 10-22 Adding Services to a Content Rule 10-26 Adding a Service to a Content Rule 10-28 Specifying a Service Weight 10-28 Adding a Primary Sorry Server to a Content Rule 10-30 Adding a Secondary Sorry Server to a Content Rule 10-31 Adding a DNS Name to a Content Rule 10-32 Disabling DNS in a Content Rule 10-32 Activating a Content Rule 10-33 Suspending a Content Rule 10-33 Removing a Content Rule 10-34 Removing a Service from a Content Rule 10-34 Configuring a Protocol 10-34 Configuring a Port 10-35 Configuring Load Balancing 10-35 Configuring a DNS Balance Type 10-39 Configuring Hot Lists 10-40 x

Contents Configuring a Domain Hotlist 10-42 Configuring HTTP Method Parsing 10-43 Configuring RFC-2518 Extension Methods Parsing 10-44 Configuring User-Defined Methods 10-44 Showing the HTTP Method Parsing Configuration and Status 10-46 Configuring Extension Qualifier Lists 10-49 Specifying an EQL in a Uniform Resource Locator 10-50 Showing EQL Extensions and Descriptions 10-51 Configuring URL Qualifier Lists 10-51 URQL Quick Start 10-52 Creating a URQL 10-54 Configuring a URL in a URQL 10-54 Specifying the URL Entry 10-55 Defining the URL 10-55 Describing the URL 10-56 Designating the Domain Name of URLs in a URQL 10-56 Adding a URQL to a Content Rule 10-56 Describing the URQL 10-57 Activating a URQL 10-57 Suspending a URQL 10-58 URQL Configuration in a Startup-Config File 10-58 Showing URQLs 10-58 Specifying a Uniform Resource Locator 10-60 Specifying an Extension Qualifier List in a URL 10-64 Specifying the Number of Spanned Packets 10-65 Specifying a Load Threshold 10-65 Including Services in a CSS Ping Response Decision 10-66 Enabling TCP Flow Reset Reject 10-66 Configuring Persistence, Remapping, and Redirection 10-67 Configuring Content Rule Persistence 10-67 xi

Contents Configuring Bypass Persistence 10-69 Configuring HTTP Redirection and Service Remapping 10-69 Redirecting Requests for Content 10-71 Setting TCP FIN or RST Flags for HTTP 302 Redirect Messages 10-72 Displaying the Persistence Settings 10-73 Defining Failover 10-74 Specifying an Application Type 10-77 Configuring a Content Rule for FTP Connections 10-79 Configuring the Teardown Timeout Period for the FTP Control Channel 10-80 Configuring the Wait Time to Initiate the FTP Data Channel 10-80 Configuring the CSS to Handle Non-Standard FTP Ports 10-81 Enabling Content Requests to Bypass Transparent Caches 10-82 Showing Content 10-82 Showing Content Rules 10-84 Clearing Counters in a Content Rule 10-99 Clearing Counters for Content Rules 10-100 Clearing Service Statistics Counters in a Content Rule 10-100 Where to Go Next 10-101 CHAPTER 11 Configuring Sticky Parameters for Content Rules 11-1 Sticky Overview 11-2 Why Use Stickiness? 11-3 Using Layer 3 Sticky 11-4 Using Layer 4 Sticky 11-4 Using Layer 5 Sticky 11-5 Configuring Sticky on the CSS 11-5 Specifying an Advanced Load-Balancing Method for Sticky Content 11-9 Configuring SSL-Layer 4 Fallback 11-14 xii

Contents Configuring Sticky Serverdown Failover 11-16 Configuring Sticky Mask 11-17 Configuring Sticky Inactive Timeout 11-17 Configuring Sticky Content for SSL 11-18 Configuring String Range 11-19 Specifying a String Operation 11-20 Comparing Hash Method with Match Method 11-21 Enabling or Disabling String ASCII Conversion 11-23 Configuring the Handling of Multiple String Matches 11-23 Specifying End-of-String Characters 11-24 Specifying a String Prefix 11-25 Specifying a String Process Length 11-25 Specifying a String Skip Length 11-26 Configuring Sticky-No-Cookie-Found-Action 11-26 Configuring Sticky Parameters for E-Commerce and Other Internet Applications 11-27 Configuring an advanced-balance arrowpoint-cookie 11-27 Configuring an Arrowpoint Cookie 11-28 Configuring an Arrowpoint Cookie Name 11-30 Configuring an Arrowpoint Cookie Path 11-30 Configuring an Arrowpoint-Cookie Expiration Time 11-31 Configuring Arrowpoint-Cookie Browser Expire 11-32 Configuring Arrowpoint-Cookie Expire Services 11-32 Configuring an Arrowpoint Cookie Domain 11-33 Reinserting an Arrowpoint Cookie in an HTTP Server Response 11-33 Configuring a Location Cookie 11-33 Overview 11-34 Location Cookie Quick Start 11-35 Configuring the location-cookie Command 11-44 xiii

Contents Configuring a Domain Name for the Location Cookie 11-45 Configuring Location Services 11-45 Examples of Location Cookie Flow 11-47 Displaying Location Cookie Information 11-52 Configuring Wireless Users for E-Commerce Applications 11-52 Configuring Session Initiation Protocol Load Balancing 11-53 Configuration Requirements and Restrictions 11-54 SIP Load Balancing Configuration Quick Start 11-55 Showing Sticky Attributes 11-57 Showing Sticky Table Configurations 11-67 Showing Layer 3 Sticky Table Information 11-70 Showing Layer 4 Sticky Table Information 11-71 Showing SIP Call-ID Sticky Table Information 11-72 Showing SSL Sticky Table Information 11-73 Showing WAP Sticky Table Information 11-74 Showing Sticky Connection Statistics 11-75 CHAPTER 12 Configuring HTTP Header Load Balancing 12-1 HTTP Header Load-Balancing Overview 12-2 Using HTTP Header Load Balancing in a Content Rule 12-2 HTTP Header Load Balancing Configuration Quick Start 12-3 Creating a Header Field Group 12-4 Describing the Header Field Group 12-5 Configuring a Header-Field Entry 12-6 Associating a Header Field Group with a Content Rule 12-10 Showing a Content Rule Header Field Group Configuration 12-11 Showing Header Field Groups 12-11 Header Field Group Configuration Examples 12-12 xiv

Contents CHAPTER 13 Configuring Caching 13-1 Caching Overview 13-1 Content Caching 13-2 Using Proxy Caching 13-3 Using Reverse Proxy Caching 13-4 Using Transparent Caching 13-5 Using Cache Clustering 13-7 Caching Configuration Quick Start 13-8 Configuring Caching Content Rules 13-10 Specifying a Service Type 13-10 Specifying a Failover Type 13-11 Configuring Load Balancing 13-14 Configuring a Double-Wildcard Caching Content Rule 13-16 Enabling Content Requests to Bypass Caches 13-17 Using the param-bypass Command 13-17 Using the cache-bypass Command 13-18 Using the bypass-hosttag Command 13-18 Configuring Network Address Translation for Transparent Caches 13-19 Configuring Network Address Translation Peering 13-20 Configuring NAT Peering 13-22 CHAPTER 14 Configuring Content Replication 14-1 Configuring Demand-Based Content Replication 14-2 Demand-Based Content Replication Quick Start 14-3 Configuring Hot Lists 14-5 Specifying Service Type for Replication 14-6 Configuring Max Age 14-7 Configuring Max Content 14-8 Configuring Max Usage 14-8 Configuring FTP Access for Content Replication 14-8 xv

Contents Creating an FTP Record 14-9 Configuring Content Staging and Replication 14-10 Content Staging and Replication Quick Start 14-12 Configuring FTP Access for Publishing and Subscribing 14-14 Configuring a Publishing Service 14-15 Displaying Publisher Configurations 14-16 Configuring a Subscriber Service 14-18 Displaying Subscriber Configurations 14-19 Configuring a Content Rule for Content Staging and Replication 14-20 Configuring Publisher Content Replication 14-21 Configuring File-Error Handling for Content Replication 14-22 Displaying Content 14-23 I NDEX xvi

FIGURES Figure 1-1 Services, Owners, and Content Rules 1-3 Figure 1-2 Example of a TCP Flow 1-4 Figure 1-3 Example of a UDP Flow 1-5 Figure 1-4 Example of a TCP Flow with Front-End and Back-End Connections 1-6 Figure 1-5 Setting Up the Front-End TCP Connection - Delayed Binding 1-6 Figure 1-6 Setting Up the Back-End TCP Connection - Delayed Binding 1-7 Figure 1-7 Example of HTTP Redirection 1-8 Figure 1-8 Example of Remapping the Back-end Connection 1-9 Figure 6-1 Load Calculation Example with Three Servers 6-3 Figure 7-1 Example of SASP Functional Overview 7-2 Figure 8-1 Example of DFP Manager to DFP Agents System Flow 8-5 Figure 10-1 Example of Configuring a Virtual IP Address 10-11 Figure 10-2 ServerB Configured for Failover Next 10-75 Figure 10-3 ServerC Configured for Failover Next 10-76 Figure 10-4 Suspended or Failed Service Configured for Failover Linear 10-76 Figure 10-5 Removing a Service Configured for Failover Linear 10-77 Figure 13-1 Proxy Cache Configuration Example 13-4 Figure 13-2 Reverse Proxy Cache Configuration Example 13-5 Figure 13-3 Transparent Cache Configuration Example 13-6 Figure 13-4 Cache Cluster Configuration Example 13-7 Figure 13-5 Cache Services Configured for Failover Next Example 1 13-12 Figure 13-6 Cache Services Configured for Failover Next Example 2 13-13 xvii

Figures Figure 13-7 Suspended or Failed Cache Service Configured for Failover Linear 13-13 Figure 13-8 Removing a Cache Service Configured for Failover Linear 13-14 Figure 13-9 NAT Peering Configuration Example 13-21 xviii

TABLES Table 2-1 Field Descriptions for the flow statistics Command 2-6 Table 2-2 Field Descriptions for show flow-timeout default Command 2-9 Table 2-3 Field Descriptions for the show flow-timeout configured Command 2-10 Table 2-4 Field Descriptions for the show ip-fragment-stats Command 2-16 Table 2-5 Default CSS Flow-Disabled Ports 2-20 Table 2-6 Flow-State Table Default Values 2-21 Table 2-7 Field Descriptions for the show flow-state-table Command 2-25 Table 2-8 Field Descriptions for show global-portmap Command 2-30 Table 2-9 Field Descriptions for show noflow-portmap Command 2-33 Table 3-1 Service Configuration Quick Start 3-3 Table 3-2 Field Descriptions for the show service Command Output 3-21 Table 4-1 Keepalive Class, Types, and Limitations 4-3 Table 4-2 Global Keepalive Configuration Quick Start 4-5 Table 4-3 Field Descriptions for the show keepalive Command Output 4-24 Table 5-1 Adding Modules (SPs) to a CSS 11506 Decreases the Number of Eligible Source Ports While Adding VIP Addresses for Port Mapping Increases the Number of Eligible Source Ports 5-4 Table 5-2 Adding Destination Ports or Configuring a VIP Address Range for Port Mapping Increases the Number of Eligible Source Ports 5-5 Table 5-3 Source Group Configuration Quick Start 5-6 Table 5-4 Field Descriptions for the show group Command Output 5-22 Table 6-1 Relative Load Configuration Quick Start 6-5 xix

Tables Table 6-2 Field Descriptions for the show load Command Output 6-10 Table 6-3 Absolute Load Configuration Quick Start 6-13 Table 6-4 Service-Specific Field Descriptions for the show load Command Output 6-19 Table 6-5 Output for the show load absolute Command (load absolute-sensitivity = 21) 6-21 Table 6-6 Field Descriptions for the show load absolute Command Output 6-22 Table 6-7 Output for the show load absolute Command (load absolute-sensitivity = 22) 6-23 Table 6-8 Output for the show load absolute Command (load absolute-sensitivity = 1) 6-24 Table 6-9 Output for the show load absolute Command (load absolute-sensitivity = 2) 6-25 Table 7-1 Field Descriptions for the show sasp Command Output 7-12 Table 7-2 Field Descriptions for the show sasp-agent-summary Command Output 7-13 Table 7-3 Field Descriptions for the show sasp-agent label Command Output 7-17 Table 8-1 Field Descriptions for the show dfp Command Output 8-9 Table 8-2 Field Descriptions for the show dfp-reports Command Output 8-11 Table 9-1 Owner Configuration Quick Start 9-2 Table 9-2 Field Descriptions for the show owner name Command Output 9-7 Table 9-3 Field Descriptions for the show owner name statistics Command Output 9-9 Table 9-4 Field Descriptions for the show summary Command Output 9-11 Table 10-1 Content Rule Configuration Quick Start 10-5 Table 10-2 Field Descriptions for the show dql Command Output 10-22 Table 10-3 Virtual Web Hosting Configuration Quick Start 10-23 Table 10-4 Field Descriptions for the show domain hotlist Command Output 10-41 Table 10-5 Field Descriptions for the show http-methods Command Output 10-47 Table 10-6 Field Descriptions for the show eql Command Output 10-51 Table 10-7 URQL Configuration Quick Start 10-52 Table 10-8 Field Descriptions for the show urql Command Output 10-59 xx

Tables Table 10-9 Field Descriptions for a Specified URQL 10-59 Table 10-10 Field Descriptions for the show remap Command Output 10-73 Table 10-11 Field Descriptions for the show content Command Output 10-83 Table 10-12 Field Descriptions for the show rule Command Output 10-85 Table 11-1 Applying Sticky Rules to Content Rules 11-8 Table 11-2 Location Cookie Configuration Quick Start for Site1 11-35 Table 11-3 Location Cookie Configuration Quick Start for Site2 11-38 Table 11-4 Location Cookie Configuration Quick Start for Site3 11-41 Table 11-5 SIP Configuration Quick Start 11-55 Table 11-6 Field Descriptions for the show rule sticky Command Output 11-58 Table 11-7 Field Descriptions for the show sticky-table all-sticky Command Output 11-67 Table 11-8 Field Descriptions for the show sticky-stats Command Output 11-75 Table 12-1 HTTP Load Balancing Configuration Quick Start 12-3 Table 12-2 Field Descriptions for the show header-field-group Command Output 12-12 Table 13-1 Caching Configuration Quick Start 13-8 Table 13-2 NAT Configuration Quick Start 13-23 Table 14-1 Demand-Based Content Replication Configuration Quick Start 14-3 Table 14-2 Content Staging and Replication Configuration Quick Start 14-12 Table 14-3 Field Descriptions for the show publisher Command 14-17 Table 14-4 Field Descriptions for the show subscriber Command 14-19 Table 14-5 Field Descriptions for the show content Command 14-23 xxi

Tables xxii

Preface This guide provides instructions for the content load-balancing configuration of the Cisco 11500 Series Content Services Switch (CSS). Information in this guide applies to all CSS models except where noted. The CSS software is available in a Standard or optional Enhanced feature set. The Enhanced feature set contains all of the Standard feature set and also includes Network Address Translation (NAT) Peering, Domain Name Service (DNS), Demand-Based Content Replication (Dynamic Hot Content Overflow), Content Staging and Replication, and Network Proximity DNS. Proximity Database and Secure Management, which includes Secure Shell Host and SSL strong encryption, are optional features. This preface contains the following major sections: Audience How to Use This Guide Related Documentation Symbols and Conventions Obtaining Documentation, Obtaining Support, and Security Guidelines xxiii

Audience Preface Audience This guide is intended for the following trained and qualified service personnel who are responsible for configuring the CSS: Web master System administrator System operator How to Use This Guide This guide is organized as follows: Chapter Chapter 1, Content Load-Balancing Overview Chapter 2, Configuring Flow and Port Mapping Parameters Chapter 3, Configuring Services Chapter 4, Configuring Service, Global, and Script Keepalives Chapter 5, Configuring Source Groups for Services Chapter 6, Configuring Loads for Services Description Assist you in understanding load balancing on the CSS by providing information about the relationship of service, owner, and content rules, and describes how the CSS handles TCP and UDP traffic. Configure flow and port mapping parameters for the CSS. Create and configure services. This chapter also provides information on activating and suspending a service and displaying service information. Configure service, global, and script keepalives. This chapter also provides information on how to display keepalive information. Configure source groups for services. This chapter also provides information on source group port mapping and displaying source group information. Configure the relative and absolute load for services. This chapter also provides information on how to display global load information. xxiv

Preface How to Use This Guide Chapter Chapter 7, Configuring Server/Application State Protocol for Server Load Balancing Chapter 8, Configuring Dynamic Feedback Protocol for Server Load Balancing Chapter 9, Configuring Owners Chapter 10, Configuring Content Rules Chapter 11, Configuring Sticky Parameters for Content Rules Chapter 12, Configuring HTTP Header Load Balancing Chapter 13, Configuring Caching Chapter 14, Configuring Content Replication Description ConfigureServer/Application State Protocol (SASP). SASP allows global workload managers (GWM) to monitor backend servers and their applications. The GWM uses SASP to send updated service weights to the CSS for load balancing decisions. Configure Dynamic Feedback Protocol (DFP). DFP allows load-balanced servers (both local and remote) to dynamically report changes in their status and their ability to provide services to a CSS. Create and configure owners. This chapter also describes how to configure owner attributes such as a DNS balance type, address, billing information, case sensitivity, and DNS type. Create and configure content rules. This chapter also describes how to assign a content rule to an owner, configure a virtual IP address, add a service to a content rule, and activate, suspend, and remove a content rule. Configure sticky parameters for content rules such as subnet mask, inactive timeout, string range, string operation, string prefix and string skip length. Configure HTTP header load balancing including creating a header field group, configuring a header field entry, associating a header field group to a content rule, and showing header field groups. Configure content caching for proxy, reverse proxy, and transparent caching configurations. Configure demand-based content replication and content synchronization using publisher and subscriber services on a CSS. xxv

Related Documentation Preface Related Documentation In addition to this document, the Content Services Switch documentation set includes the following: Document Title Release Note for the Cisco 11500 Series Content Services Switch Cisco 11500 Series Content Services Switch Hardware Installation Guide Cisco Content Services Switch Getting Started Guide Description This release note provides information on operating considerations, caveats, and command-line interface (CLI) commands for the Cisco 11500 series CSS. This guide provides information for installing, cabling, and powering the Cisco 11500 series CSS. In addition, this guide provides information about CSS specifications, cable pinouts, and hardware troubleshooting. This guide describes how to perform initial administration and configuration tasks on the CSS, including: Booting the CSS for the first time and a routine basis, and logging in to the CSS Configuring the username and password, Ethernet management port, static IP routes, and the date and time Configuring DNS server for hostname resolution Configuring sticky cookies with a sticky overview and advanced load-balancing method using cookies Installing the CSS Cisco View Device Manager (CVDM) browser-based user interface used to configure the CSS Finding information in the CSS documentation with a task list Troubleshooting the boot process xxvi