Re: [squid-users] TOS from remote to squid(2 series)

From: Andrew Beverley <andy_at_andybev.com>
Date: Sat, 23 Apr 2011 13:45:12 +0100

On Sat, 2011-04-23 at 20:36 +0800, jiluspo wrote:
> remote servers I mean http web servers TOS.
> I already know about peers in fact current squid(as of 04/24/11) TOS are not
> being marked peer(digest or icp) hit when local miss.
> http://bugs.squid-cache.org/show_bug.cgi?id=3202
>
> AFAIK squid 2 series TOS always marked zero from remote servers.
> according to source code initial tos=0;
>
> there are some patches called preserve tos miss but kernel(linux) needs to
> be patched.
>
> does kernel really need to patch in order to pass the TOS value from kernel
> to squid?
>

Yes, I'm afraid it does, due to the way the networking stack works.

If you want *similar* functionality *without* patching the kernel, then
you can use the "qos_flows mark" feature, which uses the netfilter mark
value rather than the TOS value. However, marks do not apply remotely,
so this will only work to retain marks on the local machine.

This feature is only available from 3.2 onwards.

Andy
Received on Sat Apr 23 2011 - 12:45:14 MDT

This archive was generated by hypermail 2.2.0 : Sat Apr 23 2011 - 12:00:04 MDT