Search squid archive

Re: Re: Configuring WCCPv2, Mask Assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Amos.

Understood... thanks.

Then I think the names of the flags are a bit misleading:
they all end with "_hash", even if mask assignment is used.

Also, with respect to that fixed mask, 0x1741 .... I know that is the default value, but it then means that there is no way to use a different mask.

If the number of cache-engines is low, one could think on having a mask of just 1 or 2 bits for instance, so that the processing time at the router is minimized.

What do you think?

Thanks.




On 08/06/2014 11:16 AM, Amos Jeffries wrote:
On 5/08/2014 12:27 a.m., Squid user wrote:
Hi Amos.

Could you please be more specific?

I cannot find any wccp-related directive in Squid named IIRC or similar.

IIRC = "If I Recall Correctly".
I am basing my answer on code knowledge I gained a year or two back.

Just re-checked the code and confirmed. The flag names on
wccp2_service_info are the same for both hash and mask methods. What
they do is different and hard-coded into Squid.

For mask assignment the static mask of 0x00001741 is sent from Squid for
each of the fields you configure a flag for.

http://www.squid-cache.org/Doc/config/wccp2_service_info/


Examples of what you need for your earlier requested config (Sorry about
the line wrap):

   wccp2_service_info 80 protocol=tcp flags=src_ip_hash
priority=240 ports=80

with mask assignment method sets the mask to be 0x1741 on the packet
src-IP when protocol is TCP and dst-port 80.


   wccp2_service_info 90 protocol=tcp flags=dst_ip_hash
priority=240 ports=80

with mask assignment method sets the mask to be 0x1741 on the packet
dst-IP when protocol is TCP and dst-port 80.


Amos





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux