HTTP Cache

Performance on small network

Performance analysis of HTTP Cache in small network. Cache server - Squid, Access method - WCCP


Config

HTTP Cache accessed via WCCP

wccp2_router 192.168.100.1
wccp2_service standard 0 password=cache112
wccp2_forwarding_method 1
wccp2_return_method 1
wccp2_assignment_method 1
wccp2_weight 10000
wccp2_address 0.0.0.0

GRE Tunnel

ip tunnel add wccp0 mode gre remote 192.168.100.1 local 192.168.100.2 dev eth0
ip addr add 192.168.100.2/32 dev wccp0
ip link set wccp0 up

route add -net 1.1.1.1 netmask 255.255.255.255 dev wccp0

echo 0 > /proc/sys/net/ipv4/conf/wccp0/rp_filter
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -F
iptables -t nat -A PREROUTING -i wccp0 -m tcp -p tcp -j REDIRECT --to-ports 3128