Modify

Opened 5 years ago

Last modified 5 years ago

#13221 new defect

QOS views

Reported by: fclql@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: QOS Cc:

Description

--set-mark 4/0xff does not work

BT download still download at full speed

Modified to directly discarded

Attachments (1)

app.rsc (5.8 KB) - added by fclql@… 5 years ago.
QOS rules

Download all attachments as: .zip

Change History (12)

Changed 5 years ago by fclql@…

QOS rules

comment:1 follow-up: Changed 5 years ago by anonymous

Look into ticket #9620.

comment:2 in reply to: ↑ 1 Changed 5 years ago by fclql@…

Replying to anonymous:

Look into ticket #9620.

You say that patch?
But the effect is still not

comment:3 follow-up: Changed 5 years ago by igor

Please try latest version of patch from #9620 with default unmodified rules.

comment:4 in reply to: ↑ 3 Changed 5 years ago by fclql@…

Replying to igor:

Please try latest version of patch from #9620 with default unmodified rules.

Default configuration the latest patches BT download or full download

config interface 'wan'
	option classgroup 'Default'
	option enabled '1'
	option download '4800'
	option upload '512'

config classify
	option target 'Priority'
	option ports '22,53'

config classify
	option target 'Normal'
	option proto 'tcp'
	option ports '20,21,25,80,110,443,993,995'

config classify
	option target 'Express'
	option ports '5190'

config default
	option target 'Express'
	option proto 'udp'
	option pktsize '-500'

config reclassify
	option target 'Priority'
	option proto 'icmp'

config default
	option target 'Bulk'
	option portrange '1024-65535'

config reclassify
	option target 'Priority'
	option proto 'tcp'
	option pktsize '-128'
	option mark '!Bulk'
	option tcpflags 'SYN'

config reclassify
	option target 'Priority'
	option proto 'tcp'
	option pktsize '-128'
	option mark '!Bulk'
	option tcpflags 'ACK'

config classgroup 'Default'
	option classes 'Priority Express Normal Bulk'
	option default 'Normal'

config class 'Priority'
	option packetsize '400'
	option maxsize '400'
	option avgrate '10'
	option priority '20'

config class 'Priority_down'
	option packetsize '1000'
	option avgrate '10'

config class 'Express'
	option packetsize '1000'
	option maxsize '800'
	option avgrate '50'
	option priority '10'

config class 'Normal'
	option packetsize '1500'
	option packetdelay '100'
	option avgrate '10'
	option priority '5'

config class 'Normal_down'
	option avgrate '20'

config class 'Bulk'
	option avgrate '1'
	option packetdelay '200'


comment:5 follow-up: Changed 5 years ago by igor

Please, show outputs of 'qos-stat' and 'iptables -vnL -t mangle'.

comment:6 in reply to: ↑ 5 Changed 5 years ago by fclql@…

Replying to igor:

Please, show outputs of 'qos-stat' and 'iptables -vnL -t mangle'.

Chain PREROUTING (policy ACCEPT 177K packets, 115M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 5912 packets, 1826K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 171K packets, 113M bytes)
 pkts bytes target     prot opt in     out     source               destination         
1159K  782M mssfix     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
73655 5290K qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 6517 packets, 2399K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 4102  394K qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain POSTROUTING (policy ACCEPT 177K packets, 115M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain mssfix (1 references)
 pkts bytes target     prot opt in     out     source               destination         
 3059  149K TCPMSS     tcp  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
    0     0 TCPMSS     tcp  --  *      eth0.3  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
77757 5684K qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff
    1  1012 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x1/0xff length 400:65535 MARK and 0xffffff00
    0     0 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x2/0xff length 800:65535 MARK and 0xffffff00
46478 3245K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff
 1299  216K MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0            MARK xset 0x1/0xff
21920 1382K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
  338  276K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
  105  5592 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff
 5902  247K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff
77757 5684K CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK save mask 0xff

Chain qos_Default_ct (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  238 17745 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 22,53 MARK xset 0x1/0xff
   70  4281 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 22,53 MARK xset 0x1/0xff
 7409  544K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 20,21,25,80,110,443,993,995 MARK xset 0x3/0xff
    0     0 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 5190 MARK xset 0x2/0xff
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 5190 MARK xset 0x2/0xff

# Interface: wan
# Direction: Egress
# Stats:     Start

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 512000bit ul m1 0bit d 0us m2 512000bit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 55473 work 5607403 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 298000bit d 1.5ms m2 51000bit ls m1 298000bit d 1.5ms m2 284000bit ul m1 0bit d 0us m2 512000bit 
 Sent 483205 bytes 7503 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 7379 work 483205 bytes rtwork 419526 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 272000bit d 3.8ms m2 256000bit ls m1 272000bit d 3.8ms m2 142000bit ul m1 0bit d 0us m2 512000bit 
 Sent 3196334 bytes 46173 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 31690 work 3196334 bytes rtwork 2175064 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 71000bit ul m1 0bit d 0us m2 512000bit 
 Sent 298809 bytes 1521 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 1412 work 298536 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 14000bit ul m1 0bit d 0us m2 512000bit 
 Sent 1629328 bytes 22157 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 18879 work 1629328 bytes level 0 

class fq_codel 100:61 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 30us
class fq_codel 100:11a parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1359 count 0 lastcount 0 ldelay 29us
class fq_codel 100:127 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1359 count 0 lastcount 0 ldelay 31us
class fq_codel 100:160 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1368 count 0 lastcount 0 ldelay 30us
class fq_codel 100:175 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1400 count 0 lastcount 0 ldelay 46us
class fq_codel 100:1a4 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1442 count 0 lastcount 0 ldelay 30us
class fq_codel 100:1a5 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1359 count 0 lastcount 0 ldelay 45us
class fq_codel 100:2a8 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1382 count 0 lastcount 0 ldelay 33us
class fq_codel 100:2b4 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1359 count 0 lastcount 0 ldelay 31us
class fq_codel 100:355 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1359 count 0 lastcount 0 ldelay 41us
class fq_codel 100:3af parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1138 count 0 lastcount 0 ldelay 44us
class fq_codel 100:3c6 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 29us
class fq_codel 100:3eb parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1358 count 0 lastcount 0 ldelay 31us
class fq_codel 200:1eb parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1442 count 1 lastcount 1 ldelay 31us
class fq_codel 200:390 parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1412 count 1 lastcount 1 ldelay 47us
class fq_codel 200:3dd parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1092 count 0 lastcount 0 ldelay 39us
class fq_codel 300:116 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 253us
class fq_codel 300:1fc parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 369 count 0 lastcount 0 ldelay 25us
class fq_codel 400:1ad parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 24us
class fq_codel 400:1cd parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1398 count 0 lastcount 0 ldelay 25us
class fq_codel 400:2ea parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 25us
class fq_codel 400:333 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 894 count 0 lastcount 0 ldelay 344us
class fq_codel 400:357 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1398 count 0 lastcount 0 ldelay 25us
class fq_codel 400:3a1 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1398 count 0 lastcount 0 ldelay 25us

# Interface: wan
# Direction: Egress
# Stats:     End


# Interface: wan
# Direction: Ingress
# Stats:     Start

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 4800Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 92465 work 112244899 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 1088Kbit d 406us m2 480000bit ls m1 1088Kbit d 406us m2 2666Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 9559758 bytes 8391 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 8358 work 9559758 bytes rtwork 3060097 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 2501Kbit d 406us m2 2400Kbit ls m1 2501Kbit d 406us m2 1333Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 68804390 bytes 63405 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 56367 work 68804390 bytes rtwork 39811262 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 666000bit ul m1 0bit d 0us m2 4800Kbit 
 Sent 5520840 bytes 9675 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 8914 work 5520840 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 133000bit ul m1 0bit d 0us m2 4800Kbit 
 Sent 28359911 bytes 23062 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 22344 work 28359911 bytes level 0 

class fq_codel 100:187 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1357 count 0 lastcount 0 ldelay 32us
class fq_codel 100:1f5 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1218 count 0 lastcount 0 ldelay 30us
class fq_codel 100:2a8 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1260 count 0 lastcount 0 ldelay 31us
class fq_codel 100:3b0 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1448 count 0 lastcount 0 ldelay 44us
class fq_codel 200:3d2 parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1363 count 0 lastcount 0 ldelay 44us
class fq_codel 300:12f parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1357 count 0 lastcount 0 ldelay 27us
class fq_codel 300:1db parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 26us
class fq_codel 300:36b parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1284 count 0 lastcount 0 ldelay 28us
class fq_codel 300:397 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1382 count 0 lastcount 0 ldelay 26us
class fq_codel 400:2c0 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1261 count 5 lastcount 1 ldelay 25us

# Interface: wan
# Direction: Ingress
# Stats:     End

comment:7 follow-up: Changed 5 years ago by igor

OK. Patch works as it should - all packet marks are saving for act_connmark and classification works. But I see many UDP traffic in your case - I suggest this is uTP. Please disable uTP in torrent client, reloads QoS with 'qos-start' to reset statistic and show again 'iptables -vnL -t mangle' after a several minutes of torrent download.

P.S. You configure download speed for QoS as 4800 kbit/s. But what speed exactly you have from your ISP ?

comment:8 in reply to: ↑ 7 Changed 5 years ago by fclql@…

Replying to igor:

OK. Patch works as it should - all packet marks are saving for act_connmark and classification works. But I see many UDP traffic in your case - I suggest this is uTP. Please disable uTP in torrent client, reloads QoS with 'qos-start' to reset statistic and show again 'iptables -vnL -t mangle' after a several minutes of torrent download.

P.S. You configure download speed for QoS as 4800 kbit/s. But what speed exactly you have from your ISP ?

Chain PREROUTING (policy ACCEPT 146K packets, 93M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 3541 packets, 1563K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 142K packets, 92M bytes)
 pkts bytes target     prot opt in     out     source               destination         
1335K  894M mssfix     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
60685 4220K qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 3901 packets, 2015K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 2204  221K qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain POSTROUTING (policy ACCEPT 146K packets, 94M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain mssfix (1 references)
 pkts bytes target     prot opt in     out     source               destination         
 3793  184K TCPMSS     tcp  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
    0     0 TCPMSS     tcp  --  *      eth0.3  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
62889 4441K qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff
    0     0 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x1/0xff length 400:65535 MARK and 0xffffff00
    0     0 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x2/0xff length 800:65535 MARK and 0xffffff00
41719 2974K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff
  737  148K MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0            MARK xset 0x1/0xff
18769 1166K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
   68 43144 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
   50  2596 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff
 1298 55634 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff
62889 4441K CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK save mask 0xff

Chain qos_Default_ct (1 references)
 pkts bytes target     prot opt in     out     source               destination         
   68  4776 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 22,53 MARK xset 0x1/0xff
   46  2806 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 22,53 MARK xset 0x1/0xff
 1477  102K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 20,21,25,80,110,443,993,995 MARK xset 0x3/0xff
    0     0 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 5190 MARK xset 0x2/0xff
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 5190 MARK xset 0x2/0xff

# Interface: wan
# Direction: Egress
# Stats:     Start

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 512000bit ul m1 0bit d 0us m2 512000bit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 41793 work 4363118 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 298000bit d 1.5ms m2 51000bit ls m1 298000bit d 1.5ms m2 284000bit ul m1 0bit d 0us m2 512000bit 
 Sent 215715 bytes 2211 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 2164 work 215715 bytes rtwork 181655 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 272000bit d 3.8ms m2 256000bit ls m1 272000bit d 3.8ms m2 142000bit ul m1 0bit d 0us m2 512000bit 
 Sent 2899565 bytes 41270 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 26872 work 2899565 bytes rtwork 1925343 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 71000bit ul m1 0bit d 0us m2 512000bit 
 Sent 45371 bytes 162 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 151 work 45371 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 14000bit ul m1 0bit d 0us m2 512000bit 
 Sent 1202467 bytes 18817 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 15922 work 1202467 bytes level 0 

class fq_codel 100:d5 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 3.9ms
class fq_codel 100:10c parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 29us
class fq_codel 100:14c parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1382 count 0 lastcount 0 ldelay 997us
class fq_codel 100:14e parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 88us
class fq_codel 100:1a3 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 31us
class fq_codel 100:1d1 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 44us
class fq_codel 100:1f5 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 29us
class fq_codel 100:37b parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1442 count 0 lastcount 0 ldelay 29us
class fq_codel 100:382 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 0 lastcount 0 ldelay 30us
class fq_codel 100:390 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1346 count 0 lastcount 0 ldelay 30us
class fq_codel 100:3b9 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1477 count 0 lastcount 0 ldelay 4.6ms
class fq_codel 200:156 parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1412 count 1 lastcount 1 ldelay 43us
class fq_codel 200:1a4 parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1470 count 0 lastcount 0 ldelay 30us
class fq_codel 200:3bf parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 1 lastcount 1 ldelay 32us
class fq_codel 300:1a4 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 939 count 0 lastcount 0 ldelay 26us
class fq_codel 300:399 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit -971 count 0 lastcount 0 ldelay 28us
class fq_codel 400:12 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 26us
class fq_codel 400:30 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1414 count 0 lastcount 0 ldelay 26us
class fq_codel 400:3b parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 26us
class fq_codel 400:3c parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1438 count 0 lastcount 0 ldelay 37us
class fq_codel 400:66 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 1 lastcount 1 ldelay 25us
class fq_codel 400:b4 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 18.3ms
class fq_codel 400:135 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 26us
class fq_codel 400:222 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 39us
class fq_codel 400:231 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 26us
class fq_codel 400:23d parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1478 count 0 lastcount 0 ldelay 18.6ms

# Interface: wan
# Direction: Egress
# Stats:     End


# Interface: wan
# Direction: Ingress
# Stats:     Start

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 4800Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 73323 work 91348556 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 1088Kbit d 406us m2 480000bit ls m1 1088Kbit d 406us m2 2666Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 2802210 bytes 2374 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 2354 work 2802210 bytes rtwork 807604 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 2501Kbit d 406us m2 2400Kbit ls m1 2501Kbit d 406us m2 1333Kbit ul m1 0bit d 0us m2 4800Kbit 
 Sent 61717741 bytes 58838 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 50992 work 61717741 bytes rtwork 35386847 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 666000bit ul m1 0bit d 0us m2 4800Kbit 
 Sent 2132262 bytes 4114 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 3569 work 2132262 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 133000bit ul m1 0bit d 0us m2 4800Kbit 
 Sent 24696343 bytes 20288 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
 period 19574 work 24696343 bytes level 0 

class fq_codel 100:58 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 44us
class fq_codel 100:107 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1436 count 0 lastcount 0 ldelay 46us
class fq_codel 100:271 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1440 count 0 lastcount 0 ldelay 33us
class fq_codel 100:320 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 47us
class fq_codel 100:347 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1260 count 0 lastcount 0 ldelay 34us
class fq_codel 100:363 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 33us
class fq_codel 100:381 parent 100: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 30us
class fq_codel 200:ed parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1364 count 0 lastcount 0 ldelay 33us
class fq_codel 200:392 parent 200: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1440 count 0 lastcount 0 ldelay 46us
class fq_codel 300:f parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1428 count 0 lastcount 0 ldelay 27us
class fq_codel 300:ad parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1440 count 0 lastcount 0 ldelay 40us
class fq_codel 300:1d0 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1440 count 0 lastcount 0 ldelay 27us
class fq_codel 300:27a parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1366 count 0 lastcount 0 ldelay 30us
class fq_codel 300:2f2 parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1430 count 0 lastcount 0 ldelay 27us
class fq_codel 300:39a parent 300: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1428 count 0 lastcount 0 ldelay 28us
class fq_codel 400:174 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1178 count 0 lastcount 0 ldelay 26us
class fq_codel 400:1cc parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 2 lastcount 1 ldelay 26us
class fq_codel 400:1dc parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1308 count 0 lastcount 0 ldelay 24us
class fq_codel 400:224 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1444 count 0 lastcount 0 ldelay 24us
class fq_codel 400:229 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1308 count 0 lastcount 0 ldelay 27us
class fq_codel 400:23d parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 0 lastcount 0 ldelay 39us
class fq_codel 400:2a9 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 0 lastcount 0 ldelay 37us
class fq_codel 400:2bd parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 912 count 0 lastcount 0 ldelay 24us
class fq_codel 400:325 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 3 lastcount 1 ldelay 25us
class fq_codel 400:330 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 0 lastcount 0 ldelay 25us
class fq_codel 400:341 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1510 count 0 lastcount 0 ldelay 25us
class fq_codel 400:368 parent 400: 
 (dropped 0, overlimits 0 requeues 0) 
 backlog 0b 0p requeues 0 
  deficit 1432 count 2 lastcount 1 ldelay 26us

# Interface: wan
# Direction: Ingress
# Stats:     End

PS:My ISP is 4Mb / s download speed

comment:9 follow-ups: Changed 5 years ago by igor

Hmm. Did you really disable uTP? I still see 2974K of all 4441K traffic is going for UDP again.

With uTP disabled this torrent traffic should go with tcp and marks for 0x4. But in your case many traffic is going with UDP and marks for 0x2 class.

Check it again and reloads torrent client just in case. As reference look into my statistics:

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
 174M  228G qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff 
18467   26M MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x1/0xff length 400:65535 MARK and 0xffffff00 
  130  147K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x2/0xff length 800:65535 MARK and 0xffffff00 
97555 9745K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff 
 212K   32M MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0           MARK xset 0x1/0xff 
 170M  228G MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
42812 2507K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff 
3516K  189M MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff 
 174M  228G CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save mask 0xff 

As you see I have almost all 228GB of traffic classified to 0x4 class. And only 9745K of UDP to 0x2 class. All my torrent clients works without uTP.

P.S. You don't need to lists 'qos-stat' anymore, just 'iptables -vnL -t mangle'. Also I recommend to configure speed limit for QoS for at least 1Mb/s lower than you receive from your ISP. For 4Mb/s download it makes sence to limit to '3000', for example. Your current speed limit is simply broken - configured 4800 > 4096 from ISP.

comment:10 in reply to: ↑ 9 Changed 5 years ago by fclql@…

Replying to igor:

Hmm. Did you really disable uTP? I still see 2974K of all 4441K traffic is going for UDP again.

With uTP disabled this torrent traffic should go with tcp and marks for 0x4. But in your case many traffic is going with UDP and marks for 0x2 class.

Check it again and reloads torrent client just in case. As reference look into my statistics:

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
 174M  228G qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff 
18467   26M MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x1/0xff length 400:65535 MARK and 0xffffff00 
  130  147K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x2/0xff length 800:65535 MARK and 0xffffff00 
97555 9745K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff 
 212K   32M MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0           MARK xset 0x1/0xff 
 170M  228G MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
42812 2507K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff 
3516K  189M MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff 
 174M  228G CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save mask 0xff 

As you see I have almost all 228GB of traffic classified to 0x4 class. And only 9745K of UDP to 0x2 class. All my torrent clients works without uTP.

P.S. You don't need to lists 'qos-stat' anymore, just 'iptables -vnL -t mangle'. Also I recommend to configure speed limit for QoS for at least 1Mb/s lower than you receive from your ISP. For 4Mb/s download it makes sence to limit to '3000', for example. Your current speed limit is simply broken - configured 4800 > 4096 from ISP.

UTP reopen download
Test for the results of 30 minutes:

Chain PREROUTING (policy ACCEPT 1293K packets, 840M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain INPUT (policy ACCEPT 13633 packets, 993K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 1279K packets, 838M bytes)
 pkts bytes target     prot opt in     out     source               destination         
2627K 1740M mssfix     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 581K   38M qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 16091 packets, 2810K bytes)
 pkts bytes target     prot opt in     out     source               destination         
13351 1897K qos_Default  all  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0           

Chain POSTROUTING (policy ACCEPT 1295K packets, 841M bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain mssfix (1 references)
 pkts bytes target     prot opt in     out     source               destination         
 9128  445K TCPMSS     tcp  --  *      pppoe-wan  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
    0     0 TCPMSS     tcp  --  *      eth0.3  0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
 594K   40M qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff
    4  4048 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x1/0xff length 400:65535 MARK and 0xffffff00
    0     0 MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x2/0xff length 800:65535 MARK and 0xffffff00
 439K   28M MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff
 6666 1567K MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0            MARK xset 0x1/0xff
58192 5295K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
    6  3522 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff
 1307 68168 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff
83487 3675K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            length 0:128 mark match ! 0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff
 594K   40M CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0            CONNMARK save mask 0xff

Chain qos_Default_ct (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  671 52316 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 22,53 MARK xset 0x1/0xff
  668 40487 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 22,53 MARK xset 0x1/0xff
88262 4703K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 20,21,25,80,110,443,993,995 MARK xset 0x3/0xff
    0     0 MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff tcp multiport ports 5190 MARK xset 0x2/0xff
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x0/0xff udp multiport ports 5190 MARK xset 0x2/0xff

Download a xubuntu-12.10-desktop-i386.iso.torrent seed

config interface 'wan'
option classgroup 'Default'
option enabled '1 '
option upload '512 '
option download '3000 '

UTP speed remains in 227KB / s, the the UTP version 2.2.0.23703 Chinese Edition

It is best to limit BT

comment:11 in reply to: ↑ 9 Changed 5 years ago by fclql@…

Replying to igor:

Hmm. Did you really disable uTP? I still see 2974K of all 4441K traffic is going for UDP again.

With uTP disabled this torrent traffic should go with tcp and marks for 0x4. But in your case many traffic is going with UDP and marks for 0x2 class.

Check it again and reloads torrent client just in case. As reference look into my statistics:

Chain qos_Default (2 references)
 pkts bytes target     prot opt in     out     source               destination         
 174M  228G qos_Default_ct  all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff 
18467   26M MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x1/0xff length 400:65535 MARK and 0xffffff00 
  130  147K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x2/0xff length 800:65535 MARK and 0xffffff00 
97555 9745K MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff length 0:500 MARK xset 0x2/0xff 
 212K   32M MARK       icmp --  *      *       0.0.0.0/0            0.0.0.0/0           MARK xset 0x1/0xff 
 170M  228G MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
    0     0 MARK       udp  --  *      *       0.0.0.0/0            0.0.0.0/0           mark match 0x0/0xff udp spts:1024:65535 dpts:1024:65535 MARK xset 0x4/0xff 
42812 2507K MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x02 MARK xset 0x1/0xff 
3516K  189M MARK       tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           length 0:128 mark match !0x4/0xff tcp flags:0x3F/0x10 MARK xset 0x1/0xff 
 174M  228G CONNMARK   all  --  *      *       0.0.0.0/0            0.0.0.0/0           CONNMARK save mask 0xff 

As you see I have almost all 228GB of traffic classified to 0x4 class. And only 9745K of UDP to 0x2 class. All my torrent clients works without uTP.

P.S. You don't need to lists 'qos-stat' anymore, just 'iptables -vnL -t mangle'. Also I recommend to configure speed limit for QoS for at least 1Mb/s lower than you receive from your ISP. For 4Mb/s download it makes sence to limit to '3000', for example. Your current speed limit is simply broken - configured 4800 > 4096 from ISP.

-append up "iptables -t mangle -A FORWARD -o $device -j qos_${cg}" "$N"
+append up "iptables -t mangle -I FORWARD -o $device -j qos_${cg}" "$N"

Enhance the effect of

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.