Re: [LARTC] Most general filter rule?

2004-04-15 Thread Kabelweb
On Thursday 15 April 2004 11:09, Adrian Saileanu wrote:

  tc filter add dev eth2 pref 300 protocol all parent 1: u32 match ip dst
  0.0.0.0/0 flowid 1:5000

   Hi!

   What are you trying to accomplish by using this filter ? eth2 is a
 netdevice with public ip ?

Exactly - I'm just trying to find out what kind of traffic doesn't get matched 
by my other filters and therefore is responsible for the few kbps going to my 
default class.
I tried to match the traffic with the most general filter rule I could imagine 
(see above) - but there's still traffic going to my default class :(

I'd appreciate any suggestions!

Andreas
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Most general filter rule?

2004-04-15 Thread Catalin BOIE
 Exactly - I'm just trying to find out what kind of traffic doesn't get matched
 by my other filters and therefore is responsible for the few kbps going to my
 default class.
 I tried to match the traffic with the most general filter rule I could imagine
 (see above) - but there's still traffic going to my default class :(

 I'd appreciate any suggestions!

Post your script and maybe we can help.


 Andreas
 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Most general filter rule?

2004-04-15 Thread Kabelweb
 Post your script and maybe we can help.

Ok thank you - a script says more than thousand words I guess - but I only kept the 
essential parts:

# here we go:
tc qdisc add dev eth2 root handle 1: htb default 1000
tc class add dev eth2 parent 1: classid 1:100 htb rate 10400kbit ceil 10400kbit
tc class add dev eth2 parent 1:100 classid 1:1000 htb rate 128kbit ceil 10400kbit prio 
3 quantum 2000
tc class add dev eth2 parent 1:100 classid 1:2000 htb rate 512kbit ceil 10400kbit prio 
1 quantum 2

tc class add dev eth2 parent 1:100 classid 1:1021 htb rate 10kbit ceil 512kbit prio 3 
quantum 2000
tc class add dev eth2 parent 1:100 classid 1:1022 htb rate 10kbit ceil 512kbit prio 3 
quantum 2000
tc class add dev eth2 parent 1:100 classid 1:1023 htb rate 10kbit ceil 512kbit prio 3 
quantum 2000
...
# this goes on for a couple of hundred classes
...
# test class which I am trying to give all the traffic not belonging to other classes
tc class add dev eth2 parent 1:100 classid 1:5000 htb rate 10kbit ceil 256kbit prio 3 
quantum 2000

# now the filters:
tc filter add dev eth2 pref 1 protocol ip parent 1: u32 match ip dst 
aaa.bbb.ccc.ddd/32 flowid 1:2000
tc filter add dev eth2 pref 1 protocol ip parent 1: u32 match ip src 
aaa.bbb.ccc.ddd/32 flowid 0:

tc filter add dev eth2 pref 100 protocol ip parent 1: u32 match ip dst 
aaa.bbb.ccc.ddd/32 flowid 1:1021
tc filter add dev eth2 pref 100 protocol ip parent 1: u32 match ip dst 
aaa.bbb.ccc.ddd/32 flowid 1:1022
tc filter add dev eth2 pref 100 protocol ip parent 1: u32 match ip dst 
aaa.bbb.ccc.ddd/32 flowid 1:1023
...
# this goes on for all the classes
...
# now my test filter which should prevent all other traffic going to default
tc filter add dev eth2 pref 200 protocol all parent 1: u32 match ip dst 0.0.0.0/0 
flowid 1:5000

-

With tc -d -s class show dev eth2 I see traffic flowing through the classes nicely 
but I see
just about 20bps in 1:5000 and about 3bps in default (1:1000).

Anybody can tell me why?
What kind of traffic doesn't get matched by dst 0.0.0.0/0 and protocol all?

And yes - these are all public IPs.

thanks!

Andreas
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Making tcp start transfers slow

2004-04-15 Thread Patrick Petersen
Hey list
I have almost gotten my shaping setup up and running as planned. The
last barrier seems to be tcp overshooting availible bandwidth when its
starting a transfer, and thereby bursting the line, so ping rises for a
moment. At least this is my best guess at the problem :)
There is a possibility that its just plain old traffic being bursty for
some reason.. I am using bittorrent to test this, as it seems to be what
stresses the line the most.
Would it be possible to lower the default window size, and thereby
making tcp start up slower, or would this just lower the overall speed?
My efforts so far can be seen here:
http://tc.schmakk.dk/betashaper
-- 
Patrick Petersen [EMAIL PROTECTED]

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Does IPV6 support HTB?

2004-04-15 Thread Alan Ford
On Thu, Apr 15, 2004 at 02:10:47PM +0300, Hasso Tepper wrote:
 Alan Ford wrote:

  The one thing you *cannot* do is mix protocol ip and protocol
  ipv6 filters for filtering into a class. The second filter request
  returns with Invalid argument.
...
  Is it possible to do a fwmark match without a protocol? Or is there
  any other way around my problem?
 
 I would like to have solution for this as well. At the moment I have 
 to use imq device per device and TBF because of that :(. Number of 
 imq devices is limited and many other annoying things.

I discovered the answer to this problem was hidden in a totally 
unrelated post yesterday :)  [most general filter rule]

You can specify protocol all in filters, and still use fwmarks to
identify traffic. I have been using this since yesterday and it 
appears to work perfectly, you can MARK packets with the same ID in
both iptables and ip6tables, and filter them into the same class.

-- 
Alan Ford * [EMAIL PROTECTED] 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[LARTC] Uplink limit possibilities

2004-04-15 Thread Domborczky Jnos



Hi guys!
Im new there, and i havent found yet stories about 
uplink bandwith limits, and i would like to limit my Exim's speed, coz its 
eating my ADSL's whole uplink. 
Til now i used the 
#:~ tc qdisc add dev ppp0 root tbf rate 50kbit 
latency 50ms burst 1540
command, buts its limiting the whole 
link:/

Ichecked the documents on that link: http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm, 
but its kinda hard to understand me, and im not sure in usage.

If anybody have an example or a tip plz share 
with me.

thx

dy



[LARTC] When the inside functions of a sfq are called ?

2004-04-15 Thread Adrian Saileanu

  I read the sched/qdiscs code from kernel source ... and I have some
questions :

  When the .enqueue, .dequeue, .drop, .requeue functions are called ? What
is the event that triggers them and how often this event apears ( per
second ? ) ? When a qdisc is dequeued ( when it's limit is reached ) ?

  Thanks





___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Making tcp start transfers slow

2004-04-15 Thread Roy
It is possible to slow down tcp start and it realy helped for me to get
better pings,
but expense is too high, so I think it do not work as it should,

if you start 5 coonections at once you receive 5  1.5kbyte packets, what
fills your queue at isp side
the more connections you start at once the worse delay will be.
this can be partialy fixed if you give some reserve using about 80-90% of
link like everybody usualy do

now I am working on new driver which could help to solve this,
the only way probably is predict new coonecions and reduce speed of
exsisting ones before new ones start.

- Original Message - 
From: Patrick Petersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 1:26 PM
Subject: [LARTC] Making tcp start transfers slow


 Hey list
 I have almost gotten my shaping setup up and running as planned. The
 last barrier seems to be tcp overshooting availible bandwidth when its
 starting a transfer, and thereby bursting the line, so ping rises for a
 moment. At least this is my best guess at the problem :)
 There is a possibility that its just plain old traffic being bursty for
 some reason.. I am using bittorrent to test this, as it seems to be what
 stresses the line the most.
 Would it be possible to lower the default window size, and thereby
 making tcp start up slower, or would this just lower the overall speed?
 My efforts so far can be seen here:
 http://tc.schmakk.dk/betashaper
 -- 
 Patrick Petersen [EMAIL PROTECTED]

 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] When the inside functions of a sfq are called ?

2004-04-15 Thread Roy
Logicaly it would be so:
enqueue caled by last(leaf) filter
dequeue called by htb
drop should not be used in normal operation, probably called on tc dev eth0
del root

(this is what I think it should be not nessecary t is so)

- Original Message - 
From: Adrian Saileanu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 15, 2004 8:10 PM
Subject: [LARTC] When the inside functions of a sfq are called ?



   I read the sched/qdiscs code from kernel source ... and I have some
 questions :

   When the .enqueue, .dequeue, .drop, .requeue functions are called ? What
 is the event that triggers them and how often this event apears ( per
 second ? ) ? When a qdisc is dequeued ( when it's limit is reached ) ?

   Thanks





 ___
 LARTC mailing list / [EMAIL PROTECTED]
 http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/