WCCP Reference Guide.8
WCCP Reference Guide.8
WCCP Reference Guide.8
Reference Guide
Contact Information
Americas:
Blue Coat Systems Inc.
420 North Mary Ave
Sunnyvale, CA 94085-4121
Rest of the World:
Blue Coat Systems International SARL
3a Route des Arsenaux
1700 Fribourg, Switzerland
http://www.bluecoat.com/contact/customer-support
http://www.bluecoat.com
For concerns or feedback about the documentation:
[email protected]
2014 Blue Coat Systems, Inc. All rights reserved. BLUE COAT, PROXYSG, PACKETSHAPER,
CACHEFLOW, INTELLIGENCECENTER, CACHEOS, CACHEPULSE, CROSSBEAM, K9,
DRTR, MACH5, PACKETWISE, POLICYCENTER, PROXYAV, PROXYCLIENT, SGOS,
WEBPULSE, SOLERA NETWORKS, DEEPSEE, DS APPLIANCE, SEE EVERYTHING. KNOW
EVERYTHING., SECURITY EMPOWERS BUSINESS, BLUETOUCH, the Blue Coat shield, K9,
and Solera Networks logos and other Blue Coat logos are registered trademarks or trademarks
of Blue Coat Systems, Inc. or its affiliates in the U.S. and certain other countries. This list may not
be complete, and the absence of a trademark from this list does not mean it is not a trademark of
Blue Coat or that Blue Coat has stopped using the trademark. All other trademarks mentioned
in this document owned by third parties are the property of their respective owners. This
document is for informational purposes only.
BLUE COAT MAKES NO WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, AS TO THE
INFORMATION IN THIS DOCUMENT. BLUE COAT PRODUCTS, TECHNICAL SERVICES,
AND ANY OTHER TECHNICAL DATA REFERENCED IN THIS DOCUMENT ARE SUBJECT
TO U.S. EXPORT CONTROL AND SANCTIONS LAWS, REGULATIONS AND
REQUIREMENTS, AND MAY BE SUBJECT TO EXPORT OR IMPORT REGULATIONS IN
OTHER COUNTRIES. YOU AGREE TO COMPLY STRICTLY WITH THESE LAWS,
REGULATIONS AND REQUIREMENTS, AND ACKNOWLEDGE THAT YOU HAVE THE
RESPONSIBILITY TO OBTAIN ANY LICENSES, PERMITS OR OTHER APPROVALS THAT
MAY BE REQUIRED IN ORDER TO EXPORT, RE-EXPORT, TRANSFER IN COUNTRY OR
IMPORT AFTER DELIVERY TO YOU.
Americas:
Blue Coat Systems, Inc.
420 N. Mary Ave.
Sunnyvale, CA 94085
ii
Table of Contents
WCCP Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Using WCCP with the ProxySG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
WCCP Service Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Service Group Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Service Group Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Service Group Access Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
What Gets Redirected? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
How Do the Router and ProxySG Exchange Traffic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
GRE Forwarding and Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
L2 Forwarding and Return . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Router Affinity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Which ProxySG Receives the Redirected Traffic? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Load Balancing Weights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Automatic Redistribution of Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Hash Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Mask Assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Getting Started. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
iii
Table of Contents
Securing the Service Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Verifying the WCCP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Verifying the WCCP Configuration from the Management Console . . . . . . . . . . . . . . . . . . . . . . 35
Verifying the WCCP Configuration from the CLI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Modifying the WCCP Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Disabling WCCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Disabling WCCP From the Management Console. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Disabling WCCP From the CLI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
iv
Table of Contents
Table of Contents
vi
List of Figures
Figure 1-1
Figure 1-2
Figure 1-3
Figure 1-4
Figure 1-5
Figure 1-6
L2 Forwarding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Figure 1-7
Figure 1-8
Figure 1-9
Figure 4-2
Figure 4-3
Figure 4-4
Figure 4-5
Figure 4-6
Figure 4-7
Figure 4-8
Figure 4-9
vii
List of Figures
viii
WCCP Concepts
The Web Cache Communication Protocol (WCCP) is a Cisco-developed protocol that allows certain Cisco
routers and switches to transparently redirect traffic to a cache engine such as a ProxySG appliance. This
chapter describes the WCCP concepts that you will need to understand in order to deploy WCCP on your
ProxySG appliances.
This chapter includes the following topics:
WCCP Concepts
Security You can password-protect the WCCP service group so that only authorized appliances can
join. Additionally, you can configure access control lists (ACLs) on the router to restrict access to specific
ProxySG appliances only.
Failover In the event that there are no ProxySG appliances available for traffic redirection, the router
forwards the traffic to the original destination address.
Flexibility You control exactly what traffic to redirect and how to redirect it. You can redirect all
traffic entering or exiting a router interface; you can filter traffic using ACLs; or, you can define specific
protocol and ports to redirect.
In transparent proxy deployments, the client does not know that it is interacting with a ProxySG rather than
the origin content server (OCS). Therefore, the packet from the client is addressed to the OCS. The router
inspects the traffic on WCCP-enabled interfaceseither inbound or outbound depending on the
configurationand determines whether to redirect it based on the rules that have been agreed upon by the
router and the ProxySG appliance(s).
The process works as follows:
1. The client sends a packet addressed for the OCS.
2. The WCCP-enabled router redirects the packet to the ProxySG.
3. The ProxySG determines what to do with it based on the transparent proxy services that have been
configured for the traffic type. If it cannot service the request locally (for example by returning a page
from its local cache), it sends a request to the specified OCS on behalf of the client.
4. The OCS response is routed (or redirected depending on the configuration) back to the ProxySG.
5. The ProxySG then forwards the response back to the client.
Figure 1-1 illustrates this process:
Figure 1-1
WCCP Concepts
Each ProxySG in the group periodically sends out Here I Am messages to the routers in the group to
maintain its service group membership. If a router doesnt receive a Here I Am message from a
ProxySG in the group within the designated time-out interval, it removes the ProxySG from the service
group and sends out an I See You with an updated router view.
Note that the router and the switch can participate in multiple service groups as illustrated in Figure 1-2.
Figure 1-2
WCCP Concepts
Well-known service groups have a fixed set of traffic types and other characteristics that are known by
the routers and the ProxySG appliances in the service group. Currently there is only one well-known
service, web-cache, which redirects all TCP traffic with a destination port of 80.
Dynamic service groups have characteristics that must be negotiated between the ProxySG and the
routers. As soon as WCCP is enabled on the routers and the ProxySG appliances with the same service
group identifier, the ProxySG appliances will begin advertising themselves and the WCCP services that
have been configured for the group. If the router supports the capabilities that the ProxySG appliance
advertises, the dynamic service group forms. The router maintains a list of all ProxySG appliances that
are a part of the service group.
Service Group
Addressing
Description
Unicast
Multicast
With multicast addressing, the routers and ProxySG appliances in the service
group communicate using a single IP address in the range of 224.0.0.0 to
239.255.255.255. To configure this, each ProxySG and each router in the group
must be configured with the multicast IP address. Note that if the WCCP
routers and/or ProxySG appliances are more than one hop apart, IP
multicast routing must also be enabled on the intervening routers.
WCCP Concepts
You can define an ACL on the router that permits or denies specific ProxySG appliances and then
associate the ACL with the service group. For more information, see "Filtering Which Web Caches Can
Join the Service Group" on page 18.
You can define an MD5 password on the ProxySG appliances and the routers that are authorized to join
the service group so that a ProxySG appliance must authenticate before it is allowed to join the group.
For instructions on how to set the password on the router, see "Securing the Service Group" on page 18.
For instructions on how to set the password on the ProxySG, see "Securing the Service Group" on page 35.
Figure 1-3
WCCP Concepts
Router Redirect Lists On the router, you can set up ACLs that filter the packets to be redirected. For
example, if you didnt want to redirect traffic from a specific host, you could create an ACL that denies
traffic from the host and permits traffic from all other hosts and then associate the ACL with a redirect
list in the routers service group configuration. For instructions, see "Filtering Traffic for Redirection" on
page 17.
ProxySG WCCP Settings On the ProxySG, you can define specific port numbers and the protocol to
redirect. When the router receives a packet on an interface that is configured for redirection, it examines
the packet header to determine whether the port numbers and protocol match those defined for the
service groups that have been applied to the interface. If the traffic matches the service group
characteristics, the router redirects it to the ProxySG. Otherwise, it performs a normal routing table
lookup and forwards the packet to its destination. For instructions, see "Defining the Protocol and Ports
to Redirect" on page 25.
Figure 1-4
WCCP Concepts
For instructions on configuring GRE forwarding and return, see "Defining the Forwarding and Return
Method" on page 27.
Figure 1-5
WCCP Concepts
GRE Forwarding
Figure 1-6
L2 Forwarding
WCCP Concepts
Router Affinity
By default, the ProxySG uses the configured return method to return bypassed traffic to the router that
redirected it and uses regular routing table lookups to determine the next hop for intercepted traffic. With
router affinity, the ProxySG also uses the configured return method to return intercepted client- and/or
server-bound traffic to the WCCP router that redirected it, bypassing the routing table lookup. This is a
useful feature if you have routing policies that may prevent your client- and/or server-bound traffic from
reaching its destination and simplifies the ProxySG configuration process by eliminating the need to
replicate these policies on the ProxySG. It is also useful in configurations where you have multiple home
routers or where your WCCP router is multiple hops away from the ProxySG because it ensures that the
traffic is always returned to the same WCCP router that redirected it. Keep in mind, however, that enabling
this feature unnecessarily when using GRE return does add additional CPU overhead on the router due to
the need to decapsulate the GRE packets. In addition, the ProxySG and the router use a reduced maximum
transmission unit (MTU) for GRE packets, which reduces the amount of data that can be transferred per
packet.
WCCP Concepts
Figure 1-7
Figure 1-8
10
WCCP Concepts
Hash Assignment
With hash assignmentthe default assignment methodthe designated cache assigns each ProxySG in the
service group a portion of a 256-bucket hash table and communicates the assignment to the routers in the
group. When the router receives a packet for redirection, it runs the hashing algorithm against one or more
of the fields in the packet header to determine the hash value. It then compares the value to the hash
assignment table to see which ProxySG is assigned to the corresponding bucket and then forwards the
packet to that appliance. When you configure the service group on the ProxySG appliances, you specify
which field(s)destination IP address, destination port, source IP address, and/or source portshould be
used to calculate the hash value.
Because all of the packets are hashed using the same fields and algorithm, it is possible that one of the
ProxySG appliances in the group can become overloaded. For example, if you have a large proportion of
traffic that gets sent to the same server and you are using the destination IP address to run the hashing
function, it is possible that the bulk of the traffic will be redirected to the same ProxySG. Therefore, you can
configure an alternate field or group of fields to use to run the hashing algorithm. The router will then use
this alternate hashing algorithm if the number of GRE packets or MAC addresses (depending on the
forwarding method youre using) redirected to a given ProxySG exceeds a certain number.
By default, each ProxySG in the service group is assigned roughly an even percentage of the 256-bucket
hash table. However, you can override this behavior by configuring a hash-weight value to adjust the
proportion of the hash table that gets assigned to the ProxySG.
For instructions on configuring hash assignment, see "Configuring Hash Assignment" on page 31.
Figure 1-9
Hash Assignment
Mask Assignment
With mask assignment, each router in the service group has a table of masks and values that it uses to
distribute traffic across the ProxySG appliances in the service group. When the router receives a packet, it
performs a bitwise AND operation between the mask value and the field of the packet header that is
designated in the ProxySG mask assignment configuration. It then compares the result against its list of
values for each mask; each value is assigned to a specific ProxySG in the service group.
For instructions on configuring mask assignment, see "Configuring Mask Assignment" on page 33.
Figure 1-10
Mask Assignment
11
Getting Started
WCCP Concepts
Getting Started
To configure WCCP on your routers and ProxySG appliances, you must complete the following steps:
1. Plan your service group:
2.
3.
Decide which routers and which ProxySG appliances will work together in the redirection
scheme. Make sure that the routers that you plan to use to redirect traffic support WCCP
Version 2.
Decide what traffic you want to redirect. Do you want to redirect all traffic, or just a specific
protocol or ports? Do you want to exclude certain hosts or traffic from redirection?
Decide what forwarding and return methods you plan to use. Make sure that all of the routers in
the service group support the methods you choose.
Decide how the router will assign a specific redirected packet to a ProxySG. Make sure the
router(s) in the service group support the assignment method you plan to use. If there is more
than one ProxySG in the service group, decide whether you want to distribute traffic equally, or if
you want to assign varying weights.
Create the service group and enable WCCP on the router. See "Enabling WCCP and Defining the
Service Group" on page 14.
Apply the service group to the router interface where the traffic you want to redirect is entering or
exiting. See "Applying Service Group Redirection to an Interface" on page 19.
If youre using multicast addressing, define the group address. See "Defining a Multicast Address"
on page 16.
Define the service groups. When you create the service group settings on the ProxySG, you define
the particulars of the redirection scheme, such as the address of the routers that will be
intercepting traffic, the type of traffic to redirect, and the forwarding and return methods that the
routers and the ProxySG appliances will use to exchange packets. See "Creating the Service Group
Configuration" on page 23.
4.
Verify that the service group forms and that redirection begins. See "Verifying the WCCP Configuration"
on page 36.
12
This chapter describes how to configure WCCP on the router. It includes the following sections:
Filtering Which Web Caches Can Join the Service Group on page 18
13
Router(config)#ip wccp 90
Router(config)#exit
Router#copy running-config startup-config
14
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet2/1
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Note
For best results, attach the ProxySG to a router interface that is not
used for redirection.
15
It reduces the amount of WCCP protocol traffic that is running on your network.
You can add and remove ProxySG appliances and/or routers to the service group at any time without
having to reconfigure the other group members.
Note
Use the following procedure to define a multicast address for a service group on the router.
ROUTER CONFIGURATIONDEFINE A MULTICAST ADDRESS
Step 1. Go to global configuration mode.
Router>enable
Router#configure terminal
Router(config)#ip multicast-routing
Note
Step 3 Define the multicast address for the Router(config)#ip wccp 90 group-address
service group. The multicast address 224.1.1.103
must be in the range 224.0.0.0 to
239.255.255.255.
Step 4 Go to the interface that is connected Router(config)#interface gigabitEthernet2/1
to the ProxySG.
Step 5 Enable the WCCP multicast group
address on the interface.
Router(config-if)#exit
Router(config)#exit
Router#copy running-config startup-config
16
Note that there are two types of traffic you must not filter using a redirect list. If you do, WCCP will not
work:
UDP The router and the ProxySG communicate over UDP and blocking UDP traffic will prevent the
service group from forming.
GRE If you block the Generic Routing Encapsulation (GRE) protocol and you are using GRE
forwarding, the ProxySG will not see the redirected packets.
Use the following procedure to configure filtering of traffic to be redirected using an ACL. Note that you
must define the ACL before you associate it with a WCCP redirect list.
ROUTER CONFIGURATIONFILTER TRAFFIC FOR REDIRECTION
Step 1. Go to global configuration mode.
Router>enable
Router#configure terminal
Note
Router(config)#exit
Router#copy running-config startup-config
17
Router>enable
Router#configure terminal
Note
Router(config)#exit
Router#copy running-config startup-config
Router>enable
Router#configure terminal
Router(config)#exit
Router#copy running-config startup-config
18
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet2/2
Router(config-if)#exit
Router(config)#exit
Router#copy running-config startup-config
Router>enable
Router#configure terminal
Router(config)#interface gigabitEthernet2/3
19
20
Router(config-if)#exit
Router(config)#exit
Router#copy running-config startup-config
This chapter provides procedures for configuring WCCP on the ProxySG. If you are not yet familiar with
the WCCP features, see Chapter 1, WCCP Concepts.
You must configure the required WCCP settings on the cooperating routers before you configure the
ProxySG. If you have not yet configured your WCCP routers/switches, see Chapter 2, Configuring WCCP
on the Router for instructions.
This chapter includes the following topics:
21
Enabling WCCP
Enabling WCCP
You can enable WCCP from the Management Console or from the CLI as described in the following
sections:
a.
Note
22
Step 3 (Optional) Set the WCCP version. If your WCCP Select the WCCP Version.
router or switch supports it, you should use
Note
If you select version 1, you can only use
version 2 (the default).
the web-cache service group and the
only settings you can configure are the
interface to which to apply the service
group and the IP address of a single
home router.
Step 4 Create the service group.
Note
a.
23
24
a.
The following procedure describes how to restrict service group redirection to a specific protocol and set of
ports.
PROXYSG CONFIGURATIONDEFINE THE PROTOCOL AND PORTS TO REDIRECT
Step 1 Go to the WCCP tab in the Management
Console.
25
26
Step 3 Define the forwarding method for the router to Select GRE (the default) or L2 from the
use to forward packets to the ProxySG.
Forwarding Type field.
27
28
29
Step 3 Define the multicast group address (224.0.0.0 to a. Select Multicast Home Router.
239.255.255.255).
b. Enter the Group Address.
30
31
Source Port
Destination IP
Destination Port
Destination IP
Destination Port
32
Step 3 (optional) Enable the mask assignment method For Assignment Type, select Mask.
if its not already enabled.
http://www.cisco.com/en/US/prod/collateral/
switches/ps5718/ps708/white_paper_c11-629
052.html
33
34
a.
35
Step 2 Verify that the ProxySG has successfully joined a. Click Refresh State to update the status of
the service groups you have defined and that
each service group.
packets are being redirected.
b. Make sure the State for each service group
changes to Ready. You may need to click
Refresh State several times while the
ProxySG and the router negotiate the
service group and the assignment type. For
a description of each state, see "Service
Group States" on page 70.
Step 3 View detailed WCCP statistics.
36
Service group: 10
State: Ready
Number of Here_I_Am sent: 358
Number of I_See_You received: 358
Number of Redirect_Assign sent: 1
Router IP: 5.6.7.2
Cache IP: 1.2.3.1
Service group: 11
State: Ready
Number of Here_I_Am sent: 287
Number of I_See_You received: 287
Number of Redirect_Assign sent: 1
Router IP: 1.2.3.4
Cache IP: 1.2.3.1
37
38
a.
Disabling WCCP
Disabling WCCP
If you no longer want the ProxySG to participate in any of the service groups for which it is configured, you
can disable WCCP. Disabling WCCP does not remove the WCCP configuration settings, but rather it places
them out of service until you reenable WCCP. There are a couple of ways to disable WCCP as described in
the following sections:
39
Disabling WCCP
40
This chapter shows some common WCCP configurations, including the following:
39
Figure 4-1
Router>enable
Router#configure terminal
Router(config)#ip wccp 90
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 1
40
Web-Cache Configuration
Web-Cache Configuration
The following example shows how to configure the web-cache service on a single router and ProxySG. The
web-cache service group is used to redirect HTTP traffic on destination port 80 only. Because this is a
well-known service group, you do not need to configure any characteristics about itsuch as port number
or directionbecause the router and the ProxySG already know them. Note that this configuration is
supported in WCCP Version 1 and Version 2. In this example, the router and the ProxySG are both
configured to use WCCP Version 1.
Figure 4-2
Router>enable
Router#configure terminal
Router(config)#ip wccp web-cache
Router(config)#ip wccp version 1
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp web-cache redirect in
ProxySG 1
41
ADN Configuration
ADN Configuration
The following example shows how to configure WCCP in an ADN deployment. As a best practice in a
virtually in-path ADN deployment, you should configure separate service groups for LAN and WAN
traffic. To simplify this process use the Blue Coat Sky Management Console, which enables you to create a
WCCP pair. A WCCP pair is a pair of service groups that defaults to the appropriate settings to enable
redirection of LAN and WAN traffic.
Figure 4-3
42
ADN Configuration
From Blue Coat Sky on the Concentrator Peer (ProxySG_core), configure the
WCCP pair as follows:
Router_branch
43
ADN Configuration
44
From Blue Coat Sky on the Branch Peer (ProxySG_branch), configure the WCCP
pair as follows:
Figure 4-4
Router>enable
Router#configure terminal
Router(config)#ip wccp 90
Router(config)#ip wccp version 2
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 1
45
Figure 4-5
46
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#interface fastethernet
Router(config-if)#ip wccp 90 redirect
Router(config)#ip wccp 92
Router(config)#interface fastethernet
Router(config-if)#ip wccp 92 redirect
0/1
in
0/2
in
Configure WCCP from the Management Console and Or install the WCCP settings from a
enable router affinity on service group 90:
text file:
wccp enable
wccp version 2
service-group 90
interface 0:1
protocol 6
priority 1
forwarding-type gre
assignment-type hash
service-flags source-ip-hash
router-affinity both
home-router 1.2.3.4
end
service-group 92
interface 0:1
protocol 6
priority 1
forwarding-type gre
assignment-type hash
service-flags destination-ip-hash
home-router 1.2.3.4
end
47
On the router, an ACL permits access to the ProxySG at 1.2.3.5 only; all other hosts are denied. This ACL
is then associated with the group-list for the service group.
On the router and the ProxySG, a password secures the service group. When a ProxySG attempts to join
the service group, the router will only allow it to join if it can authenticate using the configured
password.
Figure 4-6
Router>enable
Router#configure terminal
Router(config)#access-list 3 permit 1.2.3.5 0.0.0.255
Router(config)#ip wccp version 2
Router(config)#ip wccp 90 group-list 3
Router(config)#ip wccp 90 password 0 $abc123
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 1
Configure WCCP from the Management Console: Or install the WCCP settings from
a text file:
wccp enable
wccp version 2
service-group 90
interface 0:1
protocol 6
priority 1
home-router 1.2.3.1
password $abc123
end
48
On the router, an ACL excludes traffic from host 1.2.3.6 . This ACL is then associated with the
redirect-list for the service group to let the router know not to redirect traffic that matches the ACL.
On the ProxySG, the service group definition specifies individual ports to redirect; the router forwards
traffic on all other ports normally. Note that you can only specify 8 ports to redirect within a single
service group. If you want to redirect more than 8 ports, you must create multiple service groups.
Figure 4-7
Router>enable
Router#configure terminal
Router(config)#access-list 103 deny ip any host 1.2.3.6
Router(config)#access-list 103 permit ip any any
Router(config)#ip wccp version 2
Router(config)#ip wccp 90 redirect-list 103
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 1
49
Figure 4-8
50
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#ip wccp 91
Router(config)#interface fastethernet
Router(config-if)#ip wccp 90 redirect
Router(config)#interface fastethernet
Router(config-if)#ip wccp 91 redirect
0/1
in
0/1
in
ProxySG 2
51
Figure 4-9
52
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 91
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 91 redirect in
From the Management Console on the first Or install the WCCP settings from a text
ProxySG, configure WCCP as follows:
file on the first ProxySG:
wccp enable
wccp version 2
service-group 91
interface 0:3
priority 1
protocol 6
service-flags ports-defined
ports 80 8080 443 0 0 0 0 0
home-router 1.2.3.1
assignment-type hash
service-flags destination-ip-hash
service-flags destination-port-hash
end
ProxySG 2
53
Figure 4-10
54
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 2
55
Figure 4-11
56
Router>enable
Router#configure terminal
Router(config)#ip wccp 90
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
From the Management Console on the first Or install the WCCP settings from a
ProxySG, configure WCCP as follows:
text file on the first ProxySG:
wccp enable
service-group 90
interface 0:3
priority 1
protocol 6
service-flags ports-defined
ports 80 8080 443 0 0 0 0 0
home-router 1.2.3.1
assignment-type hash
service-flags destination-port-hash
primary-hash-weight 0:3 100
end
ProxySG 2
57
58
Router>enable
Router#configure terminal
Router(config)#ip wccp 90
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
ProxySG 1
59
ProxySG 3
60
Figure 4-12
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#interface fastethernet 0/1
Router(config-if)#ip wccp 90 redirect in
Router B
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#interface fastethernet 3/1
Router(config-if)#ip wccp 90 redirect in
61
62
Multicast Configuration
Multicast Configuration
With multicast addressing, the ProxySG appliances and the routers in the service group use a single
multicast addressin the range of 224.0.0.0 to 239.255.255.255to communicate with all other group
members simultaneously. In the following example, the routers in service group 90 are all configured to
listen on multicast address 224.1.1.103. Additionally, the ProxySG appliances in the group use the multicast
address as their home-router address.
CONFIGURATION EXAMPLEMULTICAST
Router A
Router>enable
Router#configure terminal
Router(config)#ip multicast
Router(config)#ip wccp version 2
Router(config)#ip wccp 90 group-address 224.1.1.103
Router(config)#interface fastethernet 2/1
Router(config-if)#ip wccp 90 redirect in
Router(config-if)#ip wccp 90 group-listen
Router(config-if)#ip pim dense-mode
Router B
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90 group-address 224.1.1.103
Router(config)#interface gigabitethernet 0/0/0
Router(config-if)#ip wccp 90 redirect in
Router(config-if)#ip wccp 90 group-listen
Router(config-if)#ip pim dense-mode
ProxySG 1
63
Multicast Configuration
CONFIGURATION EXAMPLEMULTICAST
ProxySG 2
64
Figure 4-13
Router>enable
Router#configure terminal
Router(config)#ip wccp version 2
Router(config)#ip wccp 90
Router(config)#ip wccp 91
Router(config)#interface gigabitethernet 0/0/0
Router(config-if)#ip wccp 90 redirect in
Router(config)#interface fastethernet 1/1
Router(config-if)#ip wccp 91 redirect in
65
66
From the Management Console, create the first Or define both service groups in a
service group as follows and then click OK.
single text file as follows and install
it on the ProxySG:
wccp enable
wccp version 2
service-group 90
interface 0:3
priority 1
service-flags ports-defined
ports 80 8080 443 0 0 0 0 0
home-router 1.2.3.3
end
service-group 91
service-flags ports-defined
ports 80 8080 443 0 0 0 0 0
service-flags ports-source
interface 0:3
Click New to create the second service group as priority 1
home-router 1.2.3.3
follows and then click OK.
end
Figure 4-14
Router>enable
Router#conf t
Router(config)#interface vlan700
Router(cofig-if)#ip address 192.0.2.177 255.255.255.0
Router(config-if)#end
Router(config)#interface vlan710
Router(cofig-if)#ip address 192.0.3.178 255.255.255.0
Router(config-if)#end
Router(config)#interface vlan180
Router(cofig-if)#ip address 172.16.0.180 255.255.255.0
Router(config-if)#end
Router(config)#interface vlan184
Router(cofig-if)#ip address 192.168.0.184 255.255.255.0
Router(config)#interface gigabitethernet0/1
Router(config-if)#switchport
Router(config-if)#switchport trunk encapsulation dot1q
Router(config-if)#switchport trunk allowed vlan 700, 710, 180
Router(config-if)#switchport mode trunk
Router(config-if)#exit
Router(config)#interface gigabitethernet0/0
Router(config-if)#switchport
Router(config-if)#switchport trunk encapsulation dot1q
Router(config-if)#switchport trunk allowed vlan 184
Router(config-if)#switchport mode trunk
Router(config-if)#exit
Router(config)#ip wccp version 2
Router(config)#ip wccp 3
Router(config)#ip wccp 4
Router(config)#interface vlan184
Router(config-if)#description WAN side
67
interface gigabitethernet0/1
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 180
end
interface gigabitethernet0/3
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 177, 178, 180
switchport mode trunk
end
interface gigabitethernet0/7
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 177, 178
end
ProxySG 1
From the Management Console, create the first Or define both service groups in a
service group as follows and then click OK.
single text file as follows and install
it on the ProxySG:
wccp enable
wccp version 2
service-group 3
interface 0:2.700
protocol 6
priority 1
home-router 192.0.2.177
end
service-group 4
interface 0:2.710
protocol 6
priority 1
Click New to create the second service group as home-router 192.0.3.178
assignment-type hash
follows and then click OK.
service-flags destination-ip-hash
end
Note: The home-router address
for each service group is
the IP address of the
corresponding VLAN
interface on the router. See
the router configuration.
68
This chapter provides information on how to verify that your WCCP configuration is working properly as
well as information to help you troubleshoot problems. It includes the following topics:
69
State
Description
Assignment mismatch
The router does not support the assignment type (hash or mask) that is
configured for the service group.
Bad router id
The home-router specified in the service group configuration does not match
the actual router ID.
The list of ProxySG appliances in the service group does not match.
Capability mismatch
The WCCP configuration includes capabilities that the router does not
support.
Initializing
WCCP was just enabled and the ProxySG is getting ready to send out its first
HERE_I_AM message.
The ProxySG cannot send the HERE_I_AM message because the interface
link is down.
Negotiating assignment
The ProxySG received the I_SEE_YOU message from the router but has not
yet negotiated the service group capabilities.
Negotiating membership
The router does not support the forwarding method (GRE or L2) that is
configured for the service group.
The router does not support the return method (GRE or L2) that is configured
for the service group. Note that on the ProxySG, the return method is always
the same as the forwarding method.
Ready
The service group formed successfully and the ProxySG sent the
REDIRECT_ASSIGN message to the router with the hash or mask values
table.
The router and the ProxySG have a mismatch in port, protocol, priority,
and/or other service flags.
Security mismatch
The service group passwords on the router and the ProxySG do not match.
70
Statistic
Description
Last Refresh
The date and time the displayed statistics were last refreshed. Click Refresh
WCCP Statistics to refresh them now.
The number of packets that have been redirected using GRE forwarding.
Layer-2 Redirected Packets The number of packets that have been redirected using L2 forwarding.
Service Groups
Lists the service groups that have been configured on this ProxySG. If the
group has successfully formed, you can click the arrow next to the group to
see a list of the caches (ProxySG appliances) and routers that have joined the
group.
State
Shows the service group state. See Table 5-1 for a description of each state.
Here I Am Sent
The number of HERE_I_AM messages that this ProxySG has sent to the
routers in the group.
The number of I_SEE_YOU messages that this ProxySG has received from the
routers in the group.
71
72
73
Router>enable
199.20.20.1
2.0
Service Identifier: 0
Number of Service Group Clients:
Number of Service Group Routers:
Total Packets s/w Redirected:
Process:
Fast:
CEF:
Service mode:
Service access-list:
Total Packets Dropped Closed:
Redirect access-list:
Total Packets Denied Redirect:
Total Packets Unassigned:
Group access-list:
Total Messages Denied to Group:
Total Authentication failures:
Total Bypassed Packets Received:
Service Identifier: 1
Number of Service Group Clients:
Number of Service Group Routers:
Total Packets s/w Redirected:
Process:
Fast:
CEF:
74
0
0
0
0
0
0
Open
-none0
-none0
0
-none0
0
0
0
0
0
0
0
0
199.20.20.1
2.0
Service Identifier: 9
Number of Service Group Clients:
Number of Service Group Routers:
Total Packets s/w Redirected:
Process:
Fast:
CEF:
Service mode:
Service access-list:
Total Packets Dropped Closed:
Redirect access-list:
Total Packets Denied Redirect:
Total Packets Unassigned:
Group access-list:
Total Messages Denied to Group:
Total Authentication failures:
Total Bypassed Packets Received:
Step 4 Display detailed statistics for the
service group.
1
1
0
0
0
0
Open
-none0
-none0
0
-none0
0
0
10.9.44.222
2.0
Usable
256 (100.00%)
0
00:02:00
0
0
0
0
75
Note
76
77
Cisco 2821
Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Cisco 3825
Version 12.4(13r)T, RELEASE SOFTWARE (fc1)
Cisco 3650E
Version 12.2(44r)SE3 RELEASE SOFTWARE
L2/GRE
78
Mask
This appendix lists and describes each WCCP command on both the ProxySG and the router side. In
addition, it describes how to create a WCCP configuration text file and install it on the ProxySG. For more
detailed information on how to use the router commands, see Chapter 2, Configuring WCCP on the Router.
This appendix includes the following sections:
79
Command
Description
Defines the WCCP version to use for all service groups configured on the
router. Version 2 is the default and is the recommended version.
Example:
Router(config)#ip wccp version 2
Defines the service group and enables WCCP on the router. Use the
keyword web-cache to create the well-known web-cache service group
(redirects traffic on TCP destination port 80 only) or specify a unique
service group identifier in the range of 0-99.
Example:
Router(config)#ip wccp 90
Enables multicast routing on the router. Note that if there are any
intervening routers between the WCCP router and the ProxySG
appliances, you must enable multicast routing on those routers also.
Example:
Router(config)#ip multicast-routing
Defines the multicast address for the service group. The multicast
address must be in the range 224.0.0.0 to 239.255.255.255.
Example:
Router(config)#ip wccp 90 group-address 224.1.1.103
80
Command
Description
ip pim [sparse-dense-mode |
sparse-mode]
Associates an access control list (ACL) with a WCCP service group for
filtering which traffic to redirect. For information on how to create an
ACL, refer to your router documentation.
Example:
Router(config)#access-list 103 deny ip any host
10.1.0.43
Router(config)#ip wccp 90 redirect-list 103
81
Command
Description
Applies the service group to an interface and direction. After you apply
the service group to an interface, traffic entering (redirect in) or exiting
(redirect out) the interface will be evaluated for redirection. Whenever
possible, you should apply WCCP service groups to inbound interfaces
because it is faster and requires less processing.
Example:
Router(config)#interface gigabitEthernet2/2
Router(config-if)#ip wccp 90 redirect in
82
Using the text editor of your choice, create a text file on a remote machine that is accessible by the
ProxySG via a URL.
Using the text editor of your choice, create a text file locally on the system from which you run the
Management Console.
Create a text file using the text editor in the Management Console.
Table A-1 describes each WCCP setting that you can define in the text file. For instructions on how to install
the file once its created, see "Installing the WCCP Configuration on the ProxySG" on page 89.
Table A-2
Command
Description
wccp version [1 | 2]
Defines the WCCP version to use for all service groups configured on the
ProxySG. Version 2 is the default and is the recommended version.
Example:
wccp version 2
Defines the service group. Use the keyword web-cache to create the
well-known web-cache service group (redirects traffic on TCP
destination port 80 only) or specify a unique service group identifier in
the range of 0-255.
Example:
service-group 90
83
Command
Description
interface <interface_number>
priority <0-255>
Specifies the queuing priority for the service group. If there are multiple
service groups applied to the same router interface in the same direction,
the priority defines the order in which the router evaluates them.
Example:
priority 2
password <password>
Defines the MD5 password (up to 8 characters) that is required for the
ProxySG to authenticate to the service group. This field is only required
if you have configured a password on the router; the passwords must
match.
Example:
password mypa$$
end
84
Command
Description
service-flags ports-defined
Indicates that the service group will redirect traffic with specific port
numbers only. By default, the service group redirects traffic on all ports.
Include this command only if you want to redirect a subset of traffic
based on port number.
Example:
service-flags ports-defined
Specifies the specific ports you want to redirect. You can specify any
well-known port number as defined by IANA:
http://www.iana.org/assignments/port-numbers
You can specify up to eight ports per service group. Note that this
command requires eight field values, so if you dont specify eight ports,
you must use zeroes for any remaining field values.
Example:
ports 80 8080 443 0 0 0 0 0
service-flags ports-source
Specifies that the router should use the source port rather than the
default destination port to determine whether to redirect the packet. If
you want to base the service group redirection on destination port, you
do not need to include this command.
Example:
service-flags ports-source
Example:
home-router 10.1.1.103
multicast-ttl <num>
Specifies the multicast time to live (TTL) value. You only need to include
this command if you want to use a TTL value other than 1 (the default).
Cisco recommends using a value of 15 or less.
Example:
multicast-ttl 3
85
Command
Description
Defines the method the routers in the service group use to forward
redirected packets to the ProxySG and the ProxySG appliances use to
return packets that they cant process back to the router. In this release,
the forwarding method and the return method are always the same.
Possible values are:
Example:
forwarding-type L2
returning-type [gre | L2]
Defines the method the ProxySG appliances in the service group use to
return packets to the router. In this release, the forwarding method and
the return method may be different. Possible values are:
gre return using Generic Routing Encapsulation (GRE). This is the
default return method; to use this method no configuration is
required. You can use GRE return with either GRE or L2 forwarding.
L2 return using Layer 2 (L2) return. You can only use L2 return with
L2 forwarding.
Example:
returning-type L2
router-affinity [client | server | both] Indicates whether the ProxySG will use the negotiated returning-type (GRE
or L2) to return all packets (intercepted as well as bypassed packets) to
the WCCP router t hat originally redirected the traffic to it. Possible
values are:
client return intercepted client-side traffic to the originating
WCCP router using the negotiated returning-type.
server return intercepted server-side traffic to the originating
WCCP router using the negotiated returning-type.
both return intercepted client- and server-side traffic to the
originating WCCP router using the negotiated returning-type.
Example:
router-affinity both
86
Command
Description
hash the router runs designated fields in the packet header through
Example:
assignment-type mask
service-flags [destination-ip-hash | Specifies which field(s) in the header of the packet the router should use
source-ip-hash | destination-port | to run the hashing algorithm when using hash assignment. You can use
source-port]
multiple instances of the command to designate the use of multiple
fields. If you are using hash assignment, you must specify at least one
field.
Example:
service-flags destination-ip-hash
service-flags destination-port
service-flags
[destination-port-alternate-hash |
destination-ip-alternate-hash |
source-port-alternate-hash |
source-ip-alternate-hash]
mask-scheme [source-ip |
destination-ip | source-port |
destination-port]
Specifies which field(s) in the header of the packet the router should use
to run the mask function when using mask assignment. By default
destination-ip is used. You only need to specify a mask-scheme if
you want to use a field other than the destination IP address to run the
mask function.
Example:
mask-scheme source-ip
87
Command
Description
primary-hash-weight <interface>
<weight>
88
Installing the Configuration from the Management Console Text Editor on page 89
Click Close.
89
Step 2 Specify that you want to install the settings from Select Local File from the Install WCCP Settings
from drop-down list and then click Install. The
a local file.
Open dialog box displays.
Step 3 Install the file.
Step 2 Specify that you want to install the settings from Select Remote URL from the Install WCCP
Settings from drop-down list and then click
a remote URL.
Install. The Install WCCP Settings dialog box
displays.
Step 3 Specify the URL.
http://10.25.36.47/files/wccp.txt
Step 4 (optional) View the file to verify the WCCP
settings.
90
Step 2 Specify the location of the WCCP configuration Blue Coat SG200#(config)wccp path
http://10.25.36.47/files/wccp.txt
text file.
Step 3 Install the file.
91
92