Using a WCCP Router to Redirect Web Traffic to iPrism

iPrism has long supported the WCCPv1 protocol (Web Cache Communication Protocol), providing all the advantages of Transparent-Mode (i.e. no client configuration) while only requiring HTTP traffic to pass through iPrism, reducing the overall traffic load. In addition, WCCP provides fault tolerance by automatic detection and re-routing to eliminate network downtime in the event that iPrism is turned off, disconnected, or a system failure occurs.

Note: using WCCP routers to redirect web traffic to iPrism is often thought of as a form of "policy based routing," which is a general term for explicitly re-directing traffic in some advantageous way.

With HF 2-440 installed, "limited" support for WCCPv2 protocol is provided. The primary purpose of adding WCCPv2 support is to provide integration with newer routers that support WCCPv2, but not WCCPv1. WCCPv2 support is "limited" in the sense that additional features unique to WCCPv2 protocol are not implemented or supported. However, all WCCPv1 features are supported to provide the necessary compatibility.

For Clarity, WCCPv2 features that are supported with HF 2-440 installed include:

For clarity, WCCPv2 features that are not supported include:

How it Works

The configuration is straightforward and involves deploying iPrism with WCCPv1 or WCCPv2 support:

When the client workstation generates traffic outbound to web servers on the Internet, the router detects that it is HTTP traffic (TCP port 80) and redirects that traffic to iPrism. iPrism then makes the request to the server on behalf of the client, and responds directly to the client. However, from a client perspective the response appears to come directly from the originating server, so the client does not know it is communicating with iPrism.

iPrism can be placed on either side of the router, but it is recommended that iPrism and the users be on the same side of a Firewall/NAT device. This scenario above outlines the simplest approach where iPrism, the Router, and the Client all reside on the same network. Keep in mind your network addresses will likely differ.

Identifying the WCCP Router in iPrism

The WCCP router must be identified to iPrism before enabling WCCP services on the router. Launch Appliance Manager. Go to System Configuration > System > Networking. Enter the IP address of your WCCPv1 or WCCPv2 router (192.168.1.1 in the example above).

Important: Please do NOT specify the HSRP standby IP address or the Secondary IP address of the router or Layer 3 switch as the WCCP router in the iPrism configuration. Only the Primary IP address of the router's interface connecting to the iPrism should be used as the WCCP router address. If the WCCP router is on a VLAN that has an IP, that can be specified as well. Make sure to save the configuration on exit.

Supported Routers

You must have a router that supports WCCPv1 or WCCPv2. This would include routers supporting the following Cisco IOS (Internetworking Operating System) versions:

11.1(19)CA/CC or later
11.2(14)P or later
12.0(anything) or later

Also note that certain routers (especially small office routers) may not support WCCP or may require additional memory.

Enabling WCCP Re-direction on the Router

The following three examples (refer to your IOS documentation for details on how to configure your specific equipment) illustrate enabling WCCP re-direction of Port 80 Web traffic (web-cache argument).

IOS Version 11

enable
conf t
wccp enable
interface
[Interface carrying outgoing traffic]
ip wccp web-cache redirect
CTRL Z
write mem

IOS Version 12

enable
conf t
ip wccp version 1
ip wccp web-cache
interface
[Interface Carrying Outgoing/Incoming Traffic]x/x
ip wccp web-cache redirect out|in
CTRL Z
write mem

In some versions of IOS 12.x, the following commands may apply:

conf t
ip wccp enable
interface
[Interface carrying outgoing/incoming traffic]
ip web-cache redirect
CTRL Z
write mem

WCCP Enablement Tips:

Confirming WCCP Re-direction and Status

Once you have configured iPrism and the WCCP router, do the following:

From a Cisco console or Telnet session, you may view the current WCCP version, statistics, and whether iPrism has registered itself as a Cache Engine.

show ip wccp
show ip wccp web-cache view (Shows the viewable web-caches and if they are usable)
show ip wccp web-cache detail (Shows the details of each web-cache)

To view WCCP heartbeat messages between iPrism and the Cisco router, you may issue the following commands when connected to Cisco over a Telnet session:

term mon
debug ip wccp packets
debug ip wccp events