[squid-users] problems configuring squid with zph (packet marking)

From: Mustafa Raji <mustafa.raji_at_yahoo.com>
Date: Thu, 30 Aug 2012 00:14:42 -0700 (PDT)

hi
i have a problem with zph configuration in squid 3.1.11
in the squid wiki i find the zph configuration directive is qos_flows and i want to mark the local-hit packet to root this packets locally

the configuration in squid.conf file is

acl localnet 10.10.10.0/24
tcp_outgoing_tos 0xFF localnet
qos_flows local-hit=0xFF

applying these configuration directive and dump the packets using tcpdump shows that, this configuration does not works for me
some output of tcpdump

09:19:59.320185 IP (tos 0xfc, ttl 64, id 36951, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.40.2.55494 > 97.74.215.200.80: Flags [.], cksum 0x1a65 (correct), ack 4165, win 63848, options [nop,nop,TS val 21596676 ecr 60185494], length 0
09:19:59.320224 IP (tos 0x0, ttl 64, id 16215, offset 0, flags [DF], proto TCP (6), length 1428)
    192.168.40.2.80 > 10.10.10.72.50177: Flags [P.], cksum 0x49d7 (correct), seq 2863:4251, ack 1, win 507, length 1388
09:19:59.345520 IP (tos 0xfc, ttl 64, id 36952, offset 0, flags [DF], proto TCP (6), length 52)
    192.168.40.2.55494 > 97.74.215.200.80: Flags [.], cksum 0x14f3 (correct), ack 5553, win 63848, options [nop,nop,TS val 21596682 ecr 60185494], length 0
09:19:59.345558 IP (tos 0x0, ttl 64, id 16216, offset 0, flags [DF], proto TCP (6), length 1428)

    10.10.10.82.50139 > 192.168.40.2.80: Flags [.], cksum 0x76b8 (correct), ack 2092, win 16425, length 0
09:31:16.036706 IP (tos 0x0, ttl 101, id 24249, offset 0, flags [DF], proto TCP (6), length 1440)
    208.71.40.183.80 > 192.168.40.2.58412: Flags [.], cksum 0xffa1 (correct), ack 1393, win 32748, options [nop,nop,TS val 2588446075 ecr 21630103], length 0
09:22:13.461840 IP (tos 0x0, ttl 74, id 52103, offset 0, flags [DF], proto TCP (6), length 52)
    66.220.152.16.80 > 192.168.40.2.32847: Flags [.], cksum 0xefe5 (correct), ack 2809858213, win 40, options [nop,nop,TS val 1685014915 ecr 21630147], length 0
09:22:13.462201 IP (tos 0x0, ttl 74, id 52104, offset 0, flags [DF], proto TCP (6), length 52)
    66.220.152.16.80 > 192.168.40.2.32847: Flags [.], cksum 0xebb6 (correct), ack 1066, win 46, options [nop,nop,TS val 1685014915 ecr 21630147], length 0
09:22:13.584147 IP (tos 0x0, ttl 74, id 52105, offset 0, flags [DF], proto TCP (6), length 1440)

i am using squid 3.1.11 with --enable-zph-qos, squid works in the intercept mode and the os is debian squeeze
please what is the problem with my configuration
please note the tos of my outgoing packets always 0x0 or 0xfc
Received on Thu Aug 30 2012 - 07:14:49 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 30 2012 - 12:00:04 MDT