![]() |
Cisco Cache Software, Software Configuration Guide, Release 3.1
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Appendix A : Web Cache Communication Protocol Version 1
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsWeb Cache Communication Protocol Version 1Feature Overview
Related Documents Prerequisites Configuration Tasks Configuration Example Command Reference clear ip wccp ip wccp enable ip wccp redirect-list ip web-cache redirect show ip interface show ip wccp show ip wccp web-caches Debug Commands debug ip wccp events debug ip wccp packets Web Cache Communication Protocol Version 1
Feature OverviewThe WCCP feature allows you to use a Content Engine to handle web traffic, thus reducing transmission costs and downloading time. This traffic includes user requests to view pages and graphics on Figure A-1: Content Engine Network Configuration Using WCCP Version 1
When a user (client) requests a page from a web server (located on the Internet, in this case), the router sends the request to a Content Engine (Cache 1, Cache 2, or Cache 3). If the Content Engine has a copy of the requested page in storage, the engine sends the user that page. Otherwise, the engine gets the requested page and the objects on that page from the web server, stores a copy of the page and its objects (caches them), and forwards the page and objects to the user. WCCP transparently redirects HTTP requests from the intended server to a Content Engine. End users do not know that the page came from the Content Engine rather than from the originally requested web server. BenefitsWeb caches reduce transmissions costs and the amount of time required to download web files. If a client requests a web page that is already cached, the request and data only have to travel between the Content Engine and the client. Without a web cache, the request and reply must travel over the Internet or wide-area network. Cached pages can be loaded faster than noncached pages and do not have to be transmitted from the Internet to your network. Cisco IOS support of WCCP provides a transparent web cache solution. Users can benefit from web proxy caches without having to configure clients to contact a specific proxy server in order to access web resources. Many web proxy caches require clients to access web resources through a specific proxy web server rather than using the originally requested web server URL. With WCCP, the clients send web requests to the desired web server URL. Cisco IOS routers intelligently intercept HTTP requests and transparently redirect them to a Content Engine. Redirection ProcessWhen a WCCP-enabled router receives an IP packet, the router determines if the packet is a request that should be directed to a Content Engine. The router looks for TCP as the protocol field in the IP header and for 80 as the destination port in the TCP header. If the packet meets these criteria, it is redirected to a Content Engine. Through communication with the Content Engines, the routers running WCCP are aware of available Content Engines. Related DocumentsRefer to the following Cisco IOS documentation for further information on WCCP.
PrerequisitesTo use WCCP, IP must be configured on the interface connected to the Internet and the interface must be connected to the Content Engine. The interface connected to the Content Engine must be a Fast Ethernet or Gigabit Ethernet interface. Configuration TasksConfiguring the Content EngineTo use WCCP, the Content Engine must be properly configured. Keep these important points in mind:
To configure WCCP on the router, you must perform the following tasks. The first task is required, whereas the second is optional.
Enabling WCCP on the RouterTo enable an interface to redirect web traffic to the Content Engine using WCCP Version 1, perform the following tasks beginning in global configuration mode:
Monitoring WCCP Version 1To monitor WCCP, perform any of the following tasks in EXEC mode:
The show ip wccp and show ip wccp web-caches commands display a count of the number of packets redirected. Use the clear ip wccp EXEC command to clear this counter. Configuration ExampleThe following example configures a router to support WCCP Version 1 and to redirect web-related packets from Ethernet interface 0 to the Content Engine: Router# configure terminal Router(config)# ip wccp enable Router(config)# interface Ethernet 0 Router(config-if)# ip web-cache redirect Router(config-if)# end Router# %SYS-5-CONFIG_I: Configured from console by console. Router# copy running-config startup-config After the router has been configured, use the show ip wccp web-caches command to verify that WCCP is enabled and aware of Content Engines. In this example, the show ip wccp web-caches command is entered immediately after the router has been configured. After a few seconds, the Content Engine becomes usable, as seen in the second output. Router# show ip wccp web-caches WCCP Web-Cache information: IP Address: 192.168.51.102 Protocol Version: 0.3 State: NOT Usable Initial Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Assigned Hash Info: 00000000000000000000000000000000 00000000000000000000000000000000 Hash Allotment: 0 (0.00%) Packets Redirected: 0 Connect Time: 00:00:06 Router# show ip wccp web-caches WCCP Web-Cache information: IP Address 192.168.51.102 Protocol Version: 0.3 State: Usable Initial Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Hash Allotment: 256 (100.00%) Packets Redirected: 0 Connect Time: 00:00:31 Command ReferenceThis section documents new or modified commands. All other commands used with this feature are documented in the Cisco IOS Release 11.1 or Release 11.2 command references.
clear ip wccpTo clear the counter for packets redirected by the Web Cache Communication Protocol, use the Syntax Description This command has no arguments or keywords. Defaults No default behavior or values Command Modes EXEC Command History This command first appeared in Cisco IOS Release 11.2 P and IOS Release 11.1 CA. Usage Guidelines The "Packets Redirected" count is displayed by the show ip wccp and show ip wccp web-caches commands. Examples The following example shows output from the show ip wccp web-caches command before and after the clear ip wccp command is used: Router# show ip wccp web-caches WCCP Web-Cache information: IP Address: 192.168.88.11 Protocol Version: 1.0 State: Usable Initial Hash Info: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Hash Allotment: 256 (100.00%) Packets Redirected: 21345 Connect Time: 00:13:46 Router# clear ip wccp Router# show ip wccp web-caches WCCP Web-Cache information: IP Address: 192.168.88.11 Protocol Version: 1.0 State: Usable Initial Hash Info: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Hash Allotment: 256 (100.00%) Packets Redirected: 0 Connect Time: 00:13:46 Related Commands ip wccp enableTo enable the router to support WCCP, use the ip wccp enable global configuration command. The no form of this command disables support for WCCP. ip wccp enableno ip wccp enable Syntax Description This command has no arguments or keywords. Defaults WCCP is disabled on the router. Command Modes Global configuration Command History This command first appeared in Cisco IOS Release 11.2 P and Release 11.1 CA. Usage Guidelines This command and the ip web-cache redirect interface command are the only commands required to start redirecting requests to the Content Engine using WCCP. To see whether WCCP is enabled on the router, use the show ip wccp command. When this command is enabled but the ip web-cache redirect command is disabled, the router is aware of Content Engines but does not use them. Use the ip wccp redirect-list command to limit the redirection of packets to those matching an access list. Examples The following example configures a router to support WCCP and redirects web-related packets from Ethernet interface 0 to the Content Engine: Router# configure terminal Router(config)# ip wccp enable Router(config)# interface Ethernet 0 Router(config-if)# ip web-cache redirect Router(config-if)# end Router# %SYS-5-CONFIG_I: Configured from console by console. Related Commands Related Commands ip wccp redirect-listTo specify which packets are redirected to a Content Engine, use the ip wccp redirect-list global configuration command. The no form of this command enables redirection of all packets. ip wccp redirect-list {number | name}Syntax Description
Defaults All HTTP packets are redirected to the Content Engine. Command Modes Global configuration Command History This command first appeared in Cisco IOS Release 11.2 P and Release 11.1 CA. Usage Guidelines Use this command to specify which packets should be redirected to the Content Engine. When WCCP is enabled but this command is not configured, all web-related packets are redirected to the Content Engine. When you enter this command, only packets that match the access list are redirected. Some web sites use the source IP address of packets for authentication. The Content Engine uses its own IP address when sending requests to web sites. Thus, the requests from the Content Engine may not be authenticated. Use this command to bypass the Content Engine in these cases. Use the ip wccp enable and ip web-cache redirect commands to configure WCCP. Examples The following example configures a router to redirect web-related packets without a destination of 192.168.196.51 to the Content Engine: Router# configure terminal Router(config)# access-list 100 deny ip any host 192.168.196.51 Router(config)# access-list 100 permit ip any any Router(config)# ip wccp enable Router(config)# ip wccp redirect-list 100 Router(config)# interface Ethernet 0 Router(config-if)# ip web-cache redirect Router(config-if)# end Router# %SYS-5-CONFIG_I: Configured from console by console. Related Commands ip web-cache redirectTo instruct an interface to check for appropriate outgoing packets and redirect them to a Content Engine, use the ip web-cache redirect interface configuration command. The no form of this command disables the redirection of messages to the Content Engine. ip web-cache redirectno ip web-cache redirect Syntax Description This command has no arguments or keywords. Defaults The interface does not redirect messages to the Content Engine. Command Modes Interface configuration Command History This command first appeared in Cisco IOS Release 11.2 P and Release 11.1 CA. Usage Guidelines This command and the ip wccp enable interface command are the only commands required to start redirecting requests to the Content Engine using WCCP. Examples The following example configures a router to support WCCP and redirects web-related packets from Ethernet interface 0 to the Content Engine: Router# configure terminal Router(config)# ip wccp enable Router(config)# interface Ethernet 0 Router(config-if)# ip web-cache redirect Router(config-if)# end Router# %SYS-5-CONFIG_I: Configured from console by console. Related Commands show ip interfaceTo display the usability status of interfaces configured for IP, use the show ip interface EXEC command. show ip interface [type number]Syntax Description
Defaults No default behavior or values Command Modes EXEC Command History This command first appeared in Cisco IOS Release 10.0. Usage Guidelines The Cisco IOS software automatically enters a directly connected route in the routing table if the interface is usable. A usable interface is one through which the software can send and receive packets. If the software determines that an interface is not usable, it removes the directly connected routing entry from the routing table. Removing the entry allows the software to use dynamic routing protocols to determine backup routes to the network (if any). If the interface can provide two-way communication, the line protocol is marked "up." If the interface hardware is usable, the interface is marked "up." If you specify an optional interface type, you will see information about that specific interface only. If you specify no optional arguments, you will see information about all of the interfaces. When an asynchronous interface is encapsulated with Point-to-Point Protocol (PPP) or Serial Line Internet Protocol (SLIP), IP fast switching is enabled. A show ip interface command on an asynchronous interface encapsulated with PPP or SLIP displays a message indicating that IP fast switching is enabled. Examples The following is sample output from the show ip interface command: Router# show ip interface Ethernet0 is up, line protocol is up Table A-1 describes the fields shown in the display. Table A-1: Field Descriptionsshow ip interface Command
show ip wccpTo display global statistics related to WCCP, use the show ip wccp EXEC command. show ip wccpSyntax Description This command has no arguments or keywords. Defaults No default behavior or values Command Modes EXEC Command History This command first appeared in Cisco IOS Release 11.2 P and Release 11.1 CA. Usage Guidelines Use the clear ip wccp command to reset the counter for the "Packets Redirected" information. Examples The following example shows sample show ip wccp output: Router# show ip wccp
Global WCCP information:
Number of web-caches: 2
Total Packets Redirected: 101
Redirect access-list: no_linux
Total Packets Denied Redirect: 88
Total Packets Unassigned: 0
Table A-2 describes the fields shown in this example. Table A-2: Field Descriptionsshow ip wccp Command
Related Commands show ip wccp web-cachesTo display information about the router's known Content Engines, use the show ip wccp web-caches EXEC command. show ip wccp web-cachesSyntax Description This command has no arguments or keywords. Defaults No default behavior or values Command Modes EXEC Command History This command first appeared in Cisco IOS Release 11.2 P and Release 11.1 CA. Usage Guidelines Use the clear ip wccp command to reset the counter for the "Packets Redirected" information. Examples The following example shows sample show ip wccp web-caches output: Router# show ip wccp web-caches WCCP Web-Cache information: IP Address: 172.168.88.11 Protocol Version: 1.0 State: Usable Initial Hash Info: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Hash Allotment: 256 (100.00%) Packets Redirected: 21345 Connect Time: 00:13:46 Table A-3 explains the fields shown in this display. Table A-3: Field Descriptionsshow ip wccp web-caches Command
Related Commands Debug CommandsThis section documents new or modified debug commands related to WCCP.
debug ip wccp eventsTo display information about significant WCCP events, use the debug ip wccp events command. To disable debugging output, use the no form of this command. debug ip wccp eventsno debug ip wccp events Syntax Description This command has no arguments or keywords. Defaults No default behaviors or values Examples The following example is a sample debug ip wccp events command output when a Content Engine is added to the list of available web caches: Router# debug ip wccp events WCCP-EVNT: Built I_See_You msg body w/1 usable web caches, change # 0000000A WCCP-EVNT: Web Cache 192.168.25.3 added WCCP-EVNT: Built I_See_You msg body w/2 usable web caches, change # 0000000B WCCP-EVNT: Built I_See_You msg body w/2 usable web caches, change # 0000000C debug ip wccp packetsTo display information about every WCCP packet received or sent by the router, use the debug ip wccp packets command. To disable debugging output, use the no form of this command. debug ip wccp packetsno debug ip wccp packets Syntax Description This command has no arguments or keywords. Defaults No default behaviors or values Examples The following example is a sample debug ip wccp packets command output. The router is sending keepalive packets to the Content Engines at 192.168.25.4 and 192.168.25.3. Each keepalive packet has an identification number associated with it. When the Content Engine receives a keepalive packet from the router, it sends a reply with the identification number back to the router. Router# debug ip wccp packets WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.4 w/rcvd_id 00003532 WCCP-PKT: Sending I_See_You packet to 192.168.25.4 w/ rcvd_id 00003534 WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.3 w/rcvd_id 00003533 WCCP-PKT: Sending I_See_You packet to 192.168.25.3 w/ rcvd_id 00003535 WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.4 w/rcvd_id 00003534 WCCP-PKT: Sending I_See_You packet to 192.168.25.4 w/ rcvd_id 00003536 WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.3 w/rcvd_id 00003535 WCCP-PKT: Sending I_See_You packet to 192.168.25.3 w/ rcvd_id 00003537 WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.4 w/rcvd_id 00003536 WCCP-PKT: Sending I_See_You packet to 192.168.25.4 w/ rcvd_id 00003538 WCCP-PKT: Received valid Here_I_Am packet from 192.168.25.3 w/rcvd_id 00003537 WCCP-PKT: Sending I_See_You packet to 192.168.25.3 w/ rcvd_id 00003539
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|