Re: [LARTC] Bridging Shaping (Wondershaper)

2002-09-17 Thread Stef Coene

On Tuesday 17 September 2002 05:31, Justin Morea wrote:
 I am rather new to all of this and I've got a few
 questions.

 I have an ADSL connection with 5 static IPs.

 Currently the DSL modem is connected directly to a
 switch, and all the computers to this switch.

 I would like to place a Linux box inbetween the modem
  the switch in order to do some traffic shaping.

 If I understand what I've read so far, I need to place
 the 2 newtork cards in a bridged mode correct? This
 should be transparent to the users correct?

 In bridged mode, what are my options for shaping? Can
 I just use the normal shaping tools/commands described
 in LARTC.org? Can I user WonderShaper?
Yes you can.  However, iptables will not work on a bridge.  So you have to use 
the u32 filter (there is a patch to get iptables working on a bridge).
If you shape on a bridge, you can shape on both interfaces, so you don't need 
the ingress capabilities of the wondershaper.  However, you introduce an 
extra NIC in the data path, so you also introduce extra (small) delays.  One 
of the benefits of ingress shaping, is that it does not introduce extra 
delays, but it's not so powerfull as egress shaping.
Or you can replace the switch with a linux box with some quad-NIC's.

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



[LARTC] iptables -m limit

2002-09-17 Thread Ciprian Niculescu

hy,

i want a iptables rule to match if a designated trafic is above x bps or 
  pps, i try

iptm=/usr/local/sbin/iptables -t mangle
$iptm -A PREROUTING -i eth0 -m limit --limit 1/sec
$iptm -A PREROUTING -i eth0 -m limit ! --limit 1/sec

the results are:
62992   16Mall  --  eth0   *   0.0.0.0/0 
0.0.0.0/0  limit: avg 1/sec burst 5
62993   16Mall  --  eth0   *   0.0.0.0/0 
0.0.0.0/0  limit: avg 1/sec burst 5

why the ! argument dont work and is accepted

C


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



Re: [LARTC] iptables -m limit

2002-09-17 Thread Eric Leblond

On Tue, 2002-09-17 at 10:29, Ciprian Niculescu wrote:
 hy,
 
 i want a iptables rule to match if a designated trafic is above x bps or 
   pps, i try
 
 iptm=/usr/local/sbin/iptables -t mangle
 $iptm -A PREROUTING -i eth0 -m limit --limit 1/sec
 $iptm -A PREROUTING -i eth0 -m limit ! --limit 1/sec

you don't have to use the ! if you go to the second rules, this is
because you don't have match the first one, so you are over the limit.
So you can do :
$iptm -A PREROUTING -i eth0 -m limit --limit 1/sec -j MYTARGET
iptm -A PREROUTING -i eth0 -j MYTARGET


-- 
Éric Leblond
courriel : [EMAIL PROTECTED]



signature.asc
Description: This is a digitally signed message part


Re: [LARTC] the range of HTB's prio

2002-09-17 Thread Robert Penz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday 17 September 2002 11:50, Nickola Kolev wrote:
  please tell me the range of prio
 1 to 8, 1 being the highest, 8 - the lowest.
0 is highest as I know ... 

but I've also an question:

is there if difference if I have 2 chains and use prio 0 and 7 or prio 0 and 1 
?

- -- 
Regards,
Robert
- 
Robert Penz
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9hv008tTsQqJDUBMRAuJIAJ90P6MUqvNw2V1sm9qLtPtncGXBnQCeNVFT
9DbmTUzKwv0/eMwgdg2n/lo=
=KhJa
-END PGP SIGNATURE-

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



[LARTC] [htb3] patch errors on 2.4.19mdk

2002-09-17 Thread raptor

When I apply HTB3 paches to 2.4.19 (mandrake kernel) I get this :
(NO to all questions)

[root@qos test]# patch -p1 -b /arh/compile/patches/htb3.6_2.4.17.diff 
patching file net/sched/Config.in
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/sched/Config.in.rej
patching file net/sched/Makefile
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file net/sched/Makefile.rej
patching file net/sched/sch_htb.c
patching file include/linux/pkt_sched.h
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/linux/pkt_sched.h.rej
patching file net/sched/sch_api.c
Hunk #1 FAILED at 1117.
Hunk #2 succeeded at 1205 with fuzz 2.
1 out of 2 hunks FAILED -- saving rejects to file net/sched/sch_api.c.rej
patching file lib/Makefile
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/Makefile.rej
patching file lib/rbtree.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/rbtree.c.rej
patching file include/net/pkt_sched.h
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] 
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/net/pkt_sched.h.rej

LATER WHEN COMPILING
==
sch_htb.c:2153: redefinition of `htb_activate_prios'
sch_htb.c:517: `htb_activate_prios' previously defined here
sch_htb.c:2190: redefinition of `htb_deactivate_prios'
sch_htb.c:554: `htb_deactivate_prios' previously defined here
sch_htb.c:2233: redefinition of `htb_class_mode'
sch_htb.c:597: `htb_class_mode' previously defined here
sch_htb.c:2266: redefinition of `htb_change_class_mode'
sch_htb.c:630: `htb_change_class_mode' previously defined here
sch_htb.c:2293: redefinition of `htb_activate'
sch_htb.c:657: `htb_activate' previously defined here
sch_htb.c:2311: redefinition of `htb_deactivate'
sch_htb.c:675: `htb_deactivate' previously defined here
sch_htb.c:2320: redefinition of `htb_enqueue'
sch_htb.c:684: `htb_enqueue' previously defined here
...many similar..
{standard input}: Assembler messages:
{standard input}:5078: Error: symbol `L2T' is already defined
{standard input}:5099: Error: symbol `htb_hash' is already defined
{standard input}:5114: Error: symbol `htb_find' is already defined
{standard input}:5155: Error: symbol `htb_clasify' is already defined
{standard input}:5272: Error: symbol `htb_debug_dump' is already defined
{standard input}:5523: Error: symbol `htb_add_to_id_tree' is already defined
{standard input}:5642: Error: symbol `htb_add_to_wait_tree' is already defined
{standard input}:5772: Error: symbol `htb_next_rb_node' is already defined
{standard input}:5814: Error: symbol `htb_add_class_to_row' is already defined
{standard input}:5878: Error: symbol `htb_remove_class_from_row' is already defined
{standard input}:6015: Error: symbol `htb_activate_prios' is already defined
{standard input}:6139: Error: symbol `htb_deactivate_prios' is already defined
sch_htb.c:2770: redefinition of `htb_init'
sch_htb.c:1134: `htb_init' previously defined here
...many similar..
{standard input}:6331: Error: symbol `htb_class_mode' is already defined
{standard input}:6391: Error: symbol `htb_change_class_mode' is already defined
{standard input}:6459: Error: symbol `htb_activate' is already defined
{standard input}:6518: Error: symbol `htb_deactivate' is already defined
..similar..
{standard input}:9850: Error: symbol `cleanup_module' is already defined
make[2]: *** [sch_htb.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.19-9mdk/net/sched'
make[1]: *** [_modsubdir_sched] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.19-9mdk/net'
make: *** [_mod_net] Error 2
[root@qos linux-2.4.19-9mdk]# 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: *****SPAM***** [LARTC] the range of HTB's prio

2002-09-17 Thread Tobias Geiger

HTB Prios are 0-6 by default (htb 3.6), but afaik u can increase this
number at compile-time.


btw: is it true that you're a Spamware site or vendor?
at least my Spam-Assasin (which consults 2 rbl-hosts...) declares you as
such...



 SPAM:  Start SpamAssassin results
 -- SPAM: This mail is probably spam.  The original
 message has been altered SPAM: so you can recognise or block similar
 unwanted mail in future. SPAM: See http://spamassassin.org/tag/ for more
 details.
 SPAM:
 SPAM: Content analysis details:   (9.5 hits, 5 required)
 SPAM: Hit! (2.0 points)  Forged yahoo.com 'Received:' header found SPAM:
 Hit! (2.0 points)  Received via a relay in relays.osirusoft.com SPAM:
 [RBL check: found 202.41.99.202.relays.osirusoft.com.,
 type: 127.0.0.6] SPAM: Hit! (0.5 points)  Received via a relay in
 ipwhois.rfc-ignorant.org SPAM:[RBL check: found
 141.128.135.61.ipwhois.rfc-ignorant.org., type: 127.0.0.6] SPAM: Hit!
 (5.0 points)  DNSBL: sender is a Spamware site or vendor SPAM:
 SPAM:  End of SpamAssassin results
 -

 HTB and imq was used to control traffic.
 AC=tc class add dev eth0 parent
 $AC 1: classid 1:1 htb rate 100kbps burst 2k
 $AC 1:2 classid 1:10 htb rate 50kbps ceil 100kbps
 burst 2k prio 1
 $AC 1:2 classid 1:11 htb rate 50kbps ceil 100kbps
 burst 2k prio 1

 please tell me the range of prio




 _
 Do You Yahoo!?
 ÐÂÏʵ½µ×,ÓéÀÖµ½¼Ò - ÑÅ»¢ÍƳöÃâ·ÑÓéÀÖµç×ÓÖܱ¨!
 http://cn.ent.yahoo.com/newsletter/index.html
 ___
 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] [htb3] patch errors on 2.4.19mdk

2002-09-17 Thread Marc-Christian Petersen

On Tuesday 17 September 2002 21:52, raptor wrote:

Hi Raptor,

 When I apply HTB3 paches to 2.4.19 (mandrake kernel) I get this :
 (NO to all questions)
 ---
- [root@qos test]# patch -p1 -b /arh/compile/patches/htb3.6_2.4.17.diff
 patching file net/sched/Config.in
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 1 out of 1 hunk ignored -- saving rejects to file net/sched/Config.in.rej
 patching file net/sched/Makefile
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 1 out of 1 hunk ignored -- saving rejects to file net/sched/Makefile.rej
 patching file net/sched/sch_htb.c
 patching file include/linux/pkt_sched.h
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 1 out of 1 hunk ignored -- saving rejects to file
 include/linux/pkt_sched.h.rej patching file net/sched/sch_api.c
 Hunk #1 FAILED at 1117.
 Hunk #2 succeeded at 1205 with fuzz 2.
 1 out of 2 hunks FAILED -- saving rejects to file net/sched/sch_api.c.rej
 patching file lib/Makefile
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 1 out of 1 hunk ignored -- saving rejects to file lib/Makefile.rej
 patching file lib/rbtree.c
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 3 out of 3 hunks ignored -- saving rejects to file lib/rbtree.c.rej
 patching file include/net/pkt_sched.h
 Reversed (or previously applied) patch detected!  Assume -R? [n]
 Apply anyway? [n]
 Skipping patch.
 1 out of 1 hunk ignored -- saving rejects to file
 include/net/pkt_sched.h.rej
 ---
hmm, maybe htb is already in the mdk kernel?

anyway, you should patch with patch -p1 --dry-run  patchname FIRST, before 
applying and see if it succeed.


-- 
Kind regards
Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16
Key available at www.keyserver.net. Encrypted e-mail preferred.
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] [htb3] patch errors on 2.4.19mdk

2002-09-17 Thread raptor

|hmm, maybe htb is already in the mdk kernel?
|
|anyway, you should patch with patch -p1 --dry-run  patchname FIRST, before 
|applying and see if it succeed.

]- yep it is in, but i'm not sure is it the latest ?? is there a way I can check this 
]... Dry run, hu :) didn't knew it
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] Cont'd [htb3] patch errors on 2.4.19mdk

2002-09-17 Thread raptor

Now i applied it again this time answering yes, the only .rej file I got is this :
is it fatal !?

[root@qos sched]# cat *rej
***
*** 1117,1123 
psched_timer.expires = jiffies + 1*HZ;
  #else
unsigned long now = jiffies;
-   psched_time_base = ((u64)now)PSCHED_JSCALE;
psched_time_mark = now;
psched_timer.expires = now + 60*60*HZ;
  #endif
--- 1117,1124 
psched_timer.expires = jiffies + 1*HZ;
  #else
unsigned long now = jiffies;
+   //psched_time_base = ((u64)now)PSCHED_JSCALE;
+   psched_time_base += ((u64)(now-psched_time_mark))PSCHED_JSCALE;
psched_time_mark = now;
psched_timer.expires = now + 60*60*HZ;
  #endif
[root@qos sched]# 
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] How to install HTB in kernel 2.4.7-10 ??

2002-09-17 Thread noroozi

Hi all,
How can I add htb to the linux kernel?
I download htb from www.docum.org , but I can't use that , I use patch to change 
Kernel,
after change adjust when I use 
tc add qdisc dev eth0 htb ...
RTNETLINK :answerd errore

I use kernel 2.4.7-10 ,If you have any idea I am waiting to listen,


-
This message was sent using sharif web-based mail.
http://mehr.sharif.edu


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



[LARTC] Problems compiling patched bridge-utils

2002-09-17 Thread Esteban Maringolo

Hello,

I've applied ``bridge-utils-0.9.5-ipmode-1.diff'' to be able to use my
shaper as bridge and don't lose the netfilter capabilities, the patch
applies with no error messages, which makes me supose everything is
working fine.

But when i try to recompile the bridge-utils utilities i get the
message transcript below:

esteban@inercia:~/devel/nexusbm/bridge-utils-0.9.5$ make
make -C libbridge
make[1]: Entering directory
`/home/esteban/devel/bridge-shaper/bridge-utils-0.9.5/libbridge'
gcc -Wall -g -c libbridge_devif.c
libbridge_devif.c: In function `br_set_bridge_ip_mode':
libbridge_devif.c:151: `BRCTL_SET_BRIDGE_IP_MODE' undeclared (first use
in this function)
libbridge_devif.c:151: (Each undeclared identifier is reported only once
libbridge_devif.c:151: for each function it appears in.)
make[1]: *** [libbridge_devif.o] Error 1
make[1]: Leaving directory
`/home/esteban/devel/bridge-shaper/bridge-utils-0.9.5/libbridge'
make: *** [libbridge/libbridge.a] Error 2

If I compile the bridge-utils with no patch applied (or with the lower
version diff applied) it compiles seamsly, and I can build a .deb with
it too :-)

Any Clue?

-- 
Esteban A. Maringolo
Buenos Aires, Argentina



signature.asc
Description: This is a digitally signed message part


Re: [LARTC] How to install HTB in kernel 2.4.7-10 ??

2002-09-17 Thread Stef Coene

On Tuesday 17 September 2002 17:18, [EMAIL PROTECTED] wrote:
 Hi all,
 How can I add htb to the linux kernel?
 I download htb from www.docum.org , but I can't use that , I use patch to
 change Kernel, after change adjust when I use
 tc add qdisc dev eth0 htb ...
 RTNETLINK :answerd errore

 I use kernel 2.4.7-10 ,If you have any idea I am waiting to listen,
I think you mean you followed the link on www.docum.org to the htb home-page.  
On the same page is a patch for iproute2.  You have to applied this patch to 
the iproute2 source and use the patched version of the tc command.

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



Re: [LARTC] Problems compiling patched bridge-utils

2002-09-17 Thread Julian Anastasov


Hello,

On 17 Sep 2002, Esteban Maringolo wrote:

   I've applied ``bridge-utils-0.9.5-ipmode-1.diff'' to be able to use my
 shaper as bridge and don't lose the netfilter capabilities, the patch
 applies with no error messages, which makes me supose everything is
 working fine.

   But when i try to recompile the bridge-utils utilities i get the
 message transcript below:

 esteban@inercia:~/devel/nexusbm/bridge-utils-0.9.5$ make
 make -C libbridge
 make[1]: Entering directory
 `/home/esteban/devel/bridge-shaper/bridge-utils-0.9.5/libbridge'
 gcc -Wall -g -c libbridge_devif.c
 libbridge_devif.c: In function `br_set_bridge_ip_mode':
 libbridge_devif.c:151: `BRCTL_SET_BRIDGE_IP_MODE' undeclared (first use
 in this function)

May be you need 2.4.19 kernel in /usr/src/linux patched with
bridge-ipmode-2.4.19-2.diff, the user-space stuff is not enough.

   Any Clue?

Regards

--
Julian Anastasov [EMAIL PROTECTED]

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



Re: [LARTC] the range of HTB's prio

2002-09-17 Thread Stef Coene

On Tuesday 17 September 2002 12:00, Robert Penz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Tuesday 17 September 2002 11:50, Nickola Kolev wrote:
   please tell me the range of prio
 
  1 to 8, 1 being the highest, 8 - the lowest.

 0 is highest as I know ...

 but I've also an question:

 is there if difference if I have 2 chains and use prio 0 and 7 or prio 0
 and 1 ?
No

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



Re: [LARTC] the range of HTB's prio

2002-09-17 Thread Stef Coene

On Tuesday 17 September 2002 09:53, hanhbnetfilter wrote:
 HTB and imq was used to control traffic.
 AC=tc class add dev eth0 parent
 $AC 1: classid 1:1 htb rate 100kbps burst 2k
 $AC 1:2 classid 1:10 htb rate 50kbps ceil 100kbps
 burst 2k prio 1
 $AC 1:2 classid 1:11 htb rate 50kbps ceil 100kbps
 burst 2k prio 1

 please tell me the range of prio
htb2 : 0-3
htb3 : 0-7

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



Re: [LARTC] Throttling or policing incoming bandwidth to my linux server

2002-09-17 Thread Stef Coene

On Tuesday 17 September 2002 20:02, Josh Chamas wrote:
 Does anyone have an idea on how to police incoming bandwidth
 to my server/workstation, in addition to outgoing.  I have
 a rule set like this so far that does well to limit my
 outbound traffic, but what could I add to this that would
 limit my inbound traffic to $LIMIT as well, ideally both
 inbound  outbound sharing the same $LIMIT say 200kbit.
If you create a imq devce (you need to patch kernel + iptables for this), you 
can redirect incomint and outgoing to this device so you can make sure IN + 
OUT  200kbit.

 LIMIT=200kbit
 HOSTIP=NNN.NNN.NNN.NNN

 start () {
  tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 10mbit
  tc class add dev eth1 parent 1: classid 1:1 cbq rate $LIMIT allot 1500
 prio 5 bounded isolated tc filter add dev eth1 parent 1: protocol ip prio
 16 u32 match ip src $HOSTIP flowid 1:1 tc qdisc add dev eth1 parent 1:1 sfq
 perturb 10
 }

 The reason I want this is to be able to limit my bandwidth
 to what I pay for at my colocation facility,  I only have
 one server/host machine there, no router.

 I have read the docs about policing bandwidth with little
 help, and it seems that when I try to reference the ingress
 rules, I get a kernel error, maybe its not compiled into my
 stock 7.2 redhat by default?  It sounded like ingress rules
 might be related to policing, if so I am out of luck.
You also need tc with ingress support.  Why not compile your own kernel ?  And 
I don't use RH, so I don't know if there kernels support ingress.

 The FreeBSD dummynet/ipfw implementation seem to handle this
 just fine out of the box, so I suspect this functionality
 is lurking in the tc rules, but have not found any online
 docs that seem to know how to clearly do it.
It is, ingress + policer is the answer.

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



Re: [LARTC] the range of HTB's prio

2002-09-17 Thread Stef Coene

 Aren't you talking about the depth of the classes?
Euh stupid me.  Indeed.

 Btw, several months ago I tried to hack my kernel (2.4.17 at that time)
 and changed the maxdepth to 7... Guess what happenned?
 It went OOOPS'ing... Anyway. That was HTB2.
In htb3 you can change it if you want :
htb3.6_2.4.17.diff:+#define TC_HTB_MAXDEPTH 8

 So, now with htb3 I can use maximum depth of classes = 7, right?
Yep.  Or change it in the source to an other value.

Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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



[LARTC] Re: LARTC digest, Vol 1 #766 - 9 msgs

2002-09-17 Thread Leonardo Balliache

Hi,

In a busy network you need to use prio. Check how many channels of voice 
you do need and bandwidth required by each channel (16-32 kbits?). Put 
voice (udp packets) in the higher priority prio queue and use tbf behind it 
to limit traffic via prio to the maximum required for your channels. Or use 
htp putting your udp traffic in the higher priority class.

Be careful that higher prio traffic can't be more than 20-30% of the link 
capacity to avoid starvation of lower prio traffic.

Don´t expect good quality in a busy network. When congestion appears your 
udp packets will be dropped with no mercy (udp is an unresponssive 
protocol) hurting quality.

Best regards,

Leonardo Balliache

Ps: Cisco has (check your IOS version) RTP header compression that can help 
a lot to lowering bandwidth requirements. You have to enable it at both 
sides of the link. Also, why don't try directly with Cisco PQ?

At 06:28 a.m. 17/09/02 +0200, you wrote:
From: Andreani Luca [EMAIL PROTECTED]
To: LARTC mailing list (E-mail) [EMAIL PROTECTED]
Date: Mon, 16 Sep 2002 11:49:28 +0200
Subject: [LARTC] Voip and Qos tests

Hello list,

I'm performing some tests in order to evaluate the possibility to make Voip
calls on a busy network.
I use some cisco routers with wfq enabled. I want to introduce some linux
boxes acting as routers.
I am especially interested in low-speed (64-128 kbps) links with PPP and
frame-relay.

Haw you some reference about similar tests?

Whath qdisc (from tc) has best performance in these situations?

Thank's

Luca



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



[LARTC] Re: LARTC digest, Vol 1 #767 - 15 msgs

2002-09-17 Thread Leonardo Balliache

Hi,

Have a look to tbf. It has a selectable latency parameter that adjust the 
queue length. http://lartc.org/lartc.txt paragraph 9.2.2. Token Bucket 
Filter can give you more information.

Best regards,

Leonardo Balliache


At 06:45 p.m. 17/09/02 +0200, you wrote:
Message: 12
Date: Tue, 17 Sep 2002 16:19:12 +0200
From: Hannes Ebner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [LARTC] latency simulation

Hi,

how could I achieve a simulation of Bandwidth _and_ Latency?

In detail, I need to simulate the characteristics of ISDN and DSL on a
simple Ethernet-Connection:

 ISDN 64 Kbit/s und 10 ms latency
 DSL 128 Kbit/s und 50 ms latency

I would use HTB for the limitation of the Bandwidth, but how am I able
to increase the latency?

Thank you in advance,
Hannes



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



[LARTC] Wondershaper

2002-09-17 Thread Justin Morea

I think I've gotten everything up and running but I'm
not sure.

How can I tell if wondershaper is running correctly (I
just put the command /wondershaper/wshaper in my
/etc/rc.local)?

Can anyone recommend a good program to log bandwidth
usage?

Thanx
Snuffy2

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Wondershaper

2002-09-17 Thread Stef Coene

On Wednesday 18 September 2002 06:42, Justin Morea wrote:
 I think I've gotten everything up and running but I'm
 not sure.

 How can I tell if wondershaper is running correctly (I
 just put the command /wondershaper/wshaper in my
 /etc/rc.local)?

 Can anyone recommend a good program to log bandwidth
 usage?
iptraf, ethereal, ntop, a quick google search will show some more.


Stef

-- 

[EMAIL PROTECTED]
 Using Linux as bandwidth manager
 http://www.docum.org/
 #lartc @ irc.oftc.net

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