Re: [LARTC] Data collection in Linux TC queue

2004-07-13 Thread Catalin BOIE
Dear All, Would you guy have any advices concerning how to get some data like queue length, pkt size, and so forth, from the running queue. Queue len, bytes, bps, pps, packets can be obtain by using libnetlink. What do you mean by pkt size? An average or something for every packet? Right now, I

Re: [LARTC] Data collection in Linux TC queue

2004-07-13 Thread Catalin BOIE
On Tue, 13 Jul 2004, Sipat Triukose wrote: Dear Catalin BOIE, Thank you very much for your advice. I might want to collect pkt size of all pkt ever enqueue during a period of time. Would you mind please give me more detail regarding how to use libnetlink or direct me to any helpful sources. Thank

RE: [LARTC] TC Hashing Filters

2004-07-13 Thread Catalin BOIE
On Tue, 13 Jul 2004, Adam Towarnyckyj wrote: First off, no need to be rude. I read the documentation; I just missed the number limit. Second, I know it's in hex and that's what I'm using. Third, the script is rather large. I didn't want to post even a snippet because it is so big. But, if that's

Re: [LARTC] Is Linux based Router feasible

2004-07-08 Thread Catalin BOIE
I've a local LAN consisting of about 150 machines. I'm using a Linux machine as the gateway machine which inturn connects to two different ISPs. My question is can a Linux based machine match the performance of a hardware based routers provided by Cisco,... OR is my decision to go for a Linux

[LARTC] Re: [PATCH 2.6] update to network emulation QOS scheduler

2004-07-07 Thread Catalin BOIE
On Tue, 6 Jul 2004, jamal wrote: On Mon, 2004-07-05 at 22:49, David S. Miller wrote: I'm going to hold off on Stephen's patches until Jamal and he has a chance to fight it out :-) Actually i would be fine with it if Stephen gets rid of the new rate thing. I expect that duplicates of packet will

[LARTC] Re: [PATCH 2.6] update to network emulation QOS scheduler

2004-07-07 Thread Catalin BOIE
On Wed, 6 Jul 2004, jamal wrote: On Tue, 2004-07-06 at 12:09, Stephen Hemminger wrote: Your examples made me think about this more. The netfilter seem best suited to things that effect the flow of packets (dropping, reordering, even corrupting), and the qdisc seems best when the timing needs to

Re: [LARTC] htb: class 10007 isn't work conserving ?!

2004-07-05 Thread Catalin BOIE
On Fri, 2 Jul 2004, Glen Mabey wrote: I'm getting the following error/warning at some point in my config script, and I'm not sure which class it is referring to. htb: class 10007 isn't work conserving ?! What qdisc is attached to this class? I [think I] understand that htb is a non-work-conserving

Re: [LARTC] htb: class 10007 isn't work conserving ?!

2004-07-05 Thread Catalin BOIE
Yes, that's what I was trying to ask below. I'm still trying to figure out which class (in the qdisc:classid format) the error message is referring to. It's about class 1:7. So, since I'm not sure which class it is (and I have several htb qdiscs; oh, I just realized that I neglected to mention

Re: [LARTC] [ANNOUNCE] Updated version of iproute2 snapshot version

2004-07-02 Thread Catalin BOIE
Hi Rotger. Just some quick points: - maybe you should check for other executables. It turned out I had ip and tc in /sbin and they were first in the path so /usr/sbin/tc never ran. Maybe you can do a loop prior to installing and delete whatever which tc and which ip return until they return

Re: [LARTC] Using Token Bucket Filter to simulate a low bandwidth radio link

2004-07-01 Thread Catalin BOIE
I seem to remember a kernel module for slowing down a link for testing? Can't remember the details, but I saw it in my 2.6 kernel somewhere. Perhaps check the docs on that. Yes, it's Stephen's sch_delay. Both 2.4 and 2.6 versions available. Just run the 2.4.26 or 2.6.7 and last version of

Re: [LARTC] more questions.

2004-06-28 Thread Catalin BOIE
dst 1.2.3.4/24 flowid 1:4 or tc filter add dev eth1 parent 1:0 protocol ip u32 ht 3:04: order 1 \ flowid 1:4 Catalin BOIE ([EMAIL PROTECTED]) wrote: Is there a relation between the hashtable ID /(parent,handle) so that if I used 2: for a hash table I could or couldn't use 2: for a (parent

Re: [LARTC] more questions.

2004-06-25 Thread Catalin BOIE
Is there a relation between the hashtable ID /(parent,handle) so that if I used 2: for a hash table I could or couldn't use 2: for a (parent,handle)ID? No relation. You can use the same id for both. I also noticed that you type the hashtables like 2:2: can you have more levels with this? like

Re: [LARTC] Hashtables major:minor and prio

2004-06-25 Thread Catalin BOIE
I have a question about a few things: ok when you have parent x:x and handle x:x link x:x flowid and so on. What is the max values of each of these, also where these or some of these hex numbers? I tried this on redhat 7.3 so there may have been some updates, but this is one of the tests I did.

Re: [LARTC] htb and 2.6.5 ?

2004-06-22 Thread Catalin BOIE
On Tue, 22 Jun 2004, [EMAIL PROTECTED] wrote: does someone have expirience with HTB and kernel 2.6.5 and up... Does anyone have tested it with thousand of classes and filters.. How it behaves.. Depends on how many filters/classes, how much traffic. If you have a lot of filters, you must use

[LARTC] [ANNOUNCE] sch_ooo - Out-of-order packet queue discipline

2004-06-22 Thread Catalin BOIE
Hello! I like to announce sch_ooo, a new queue discipline that, attached to a class (or a device, as root) reorder the packets that pass by delaying some. Example: tc qdisc add dev eth0 root ooo limit 100 gap 4 wait 1100 This queue will create a pfifo with limit 100 and will delay every 4th

Re: [LARTC] [ANNOUNCE] sch_ooo - Out-of-order packet queue discipline

2004-06-22 Thread Catalin BOIE
On Tue, 22 Jun 2004, Stephen Hemminger wrote: Maybe the delay and ooo scheduler should be merged, the both do sort of the same thing. Yes, it's true. I can work on a patch if you want. --- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/

Re: [LARTC] Difference between flowid and classid

2004-06-21 Thread Catalin BOIE
On Mon, 21 Jun 2004, Vinu Chandran wrote: Hi all Can anybody pls explain me the difference between classid and flowid. In which scenario we may need to use either of one. Any help will be greatly appreciated. They mean the same thing. regards Vinoos.

Re: [LARTC] Class ID limits

2004-06-17 Thread Catalin BOIE
tc class add dev eth1 parent 10: classid 10:$variable cbq bandwidth 200Mbit rate 512Kbit allot 1514 prio 5 maxburst 20 avpkt 1000 bounded That's just an example. My problem is I'm guessing the $variable is not allowed to be anything over . I'm getting an error when I run that command with

Re: [LARTC] HTB Bug report.

2004-06-04 Thread Catalin BOIE
On Fri, 4 Jun 2004, Thierry Coutelier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, We got the following message on the console of one of our server: ~ HTB: dequeue bug (8,12140714,12140714), report it please ! The server is a Dell Poweredge with 2 CPUs running a 2.5.25 Kernel. It

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

Re: [LARTC] hashing

2004-04-06 Thread Catalin BOIE
On Tue, 6 Apr 2004 [EMAIL PROTECTED] wrote: Hi i have 2 class C 80.97.103.0/24 and 81.180.12.0/24 but i dont konw how to set hashing tables for HTB tc add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256 tc add dev eth0 parent 1: prio 0 protocol ip u32 match src 80.97.103.0/24

Re: [LARTC] how to create a high latency link ?

2004-03-26 Thread Catalin BOIE
On Fri, 26 Mar 2004, Pascal OFFREDO wrote: Hi, I'd like to create a high latency link between 2 machines ( more than 700 ms round trip) for simulation purpose. Is it possible to do that with linux qos management software ? Yes, it is possible. Check latest rc from 2.4 or 2.6. It contains

Re: [LARTC] How to get src and dest IP from packet

2004-03-25 Thread Catalin BOIE
Dear All, I am trying to get src and dest IP from packet send from IP to TC via struct sk_buff *skb; In enqueue function in sch_myqueue, I get my IP like this struct iphdr* iph=skb-nh.iph; printk(KERN_ALERT %u::%u\n,iph-saddr,iph-daddr); but it turned out to be that I always get the

Re: [LARTC] HTB problem

2003-12-04 Thread Catalin BOIE
Hello, I'm having some problems using HTB to prioritize traffic on my linux router. The main problem is as follows: I have a 6Mbits channel on the metropolitan network and a 64kbps link for the sites outside my country. These 64kbps are dynamically allocated by my ISP so I

Re: [LARTC] Filter huge number of hosts

2003-11-11 Thread Catalin BOIE
On Tue, 11 Nov 2003, Peter Nelson wrote: Ok, I'm pretty new at this and am probably in a bit over my head, but I was looking for some pointers. I want to classify and then prioritize traffic based on if it is to an Internet2 host, a host on campus or the general internet. I got a dump from

Re: [LARTC] tc filter

2003-11-03 Thread Catalin BOIE
what I wright is tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 20 r2q 100 tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit tc class add dev eth0 parent 1: classid 1:2 htb rate 1mbit ceil 10mbit tc class add dev eth0 parent 1:1 classid

RE: [LARTC] Pakets marked but no shapeing is done

2003-10-28 Thread Catalin BOIE
What ip isn't shaped right? --- Catalin(ux) BOIE [EMAIL PROTECTED] ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Re: [LARTC] tc filter expression

2003-10-16 Thread Catalin BOIE
I think you can use ingress + policy + ds to mark packets (DSCP IP field) on eth0 and eth2. Then on eth1 you can classify base on this field. Could you give me an example of how this could be done? The DSMARK documentation that I have found is a bit difficult. I can't find any examples of

Re: [LARTC] 10Mbit on HTB

2003-10-12 Thread Catalin BOIE
On Sat, 11 Oct 2003, Kristiadi Himawan wrote: I want to try to shape 20-30Mbps traffic using HTB. It's possible? Anyone already try this? Yes. It's working very good. You may want to use hashes if you have a lot of filters. Thanks. --- Catalin(ux) BOIE [EMAIL PROTECTED]

Re: [LARTC] filter

2003-10-09 Thread Catalin BOIE
On Thu, 9 Oct 2003, Stef Coene wrote: On Thursday 09 October 2003 07:08, Catalin BOIE wrote: Don't worry. It's tc fault (or maybe kernel). It's a bug in the tc routing that displays the filters. Thanks for clarification, Stef. Stef -- [EMAIL PROTECTED] Using Linux as bandwidth

Re: [LARTC] filter

2003-10-08 Thread Catalin BOIE
Don't worry. It's tc fault (or maybe kernel). The filters are once in the kernel but are showed no_of_prios_used times. On Thu, 9 Oct 2003, Victor wrote: The difrence betwen these 2 configurations is only the prio parameter from the second filter, from each configutation. (tc filter add dev

Re: [LARTC] tc filter expression

2003-10-08 Thread Catalin BOIE
On Thu, 9 Oct 2003, Niels Vorgaard Christensen wrote: Hi. I am working on a router with three interfaces. eth2 and eth0 are connected to two different Internet providers. The interface eth1 are connected to an internal network. Now I need a tc filter expression that will determine which

Re: [LARTC] RE: IP over UDP Tunnel

2003-10-03 Thread Catalin BOIE
On Fri, 3 Oct 2003, Abdul Hakeem wrote: Hello, Can anyone spare tips on setting up a UDP tunnel over a DVB-S link ? I am toying with the idea of an IP over UDP tunnel over a simplex or forward only DVB-S link. Cheers, Abdul Hakeem http://vtun.sf.net

Re: [LARTC] Problem with htb and fwmark

2003-09-17 Thread Catalin BOIE
Have I forgotten something, or what is the problem? I have the exact same problem here; has anyone found the reason and/or a fix? Post your scripts to this list. I use 2.4.22 here. I worked with 2.4.20. -- Mvh. / Best regards, Steen Suder http://www.suder.dk/ ICQ UIN

Re: [LARTC] how to stop floods: netfilter or lartc?

2003-09-16 Thread Catalin BOIE
Who can share his opinion on this matter? Me? :) Section 15.3 in the Cookbook presents a way of using tc for rate limiting ICMP. It can also be done using the --limit feature in netfilter. What are the pros and cons of both approaches? Or should they be combined somehow? You can

Re: R: [LARTC] time window in CBQ

2003-09-05 Thread Catalin BOIE
On Fri, 5 Sep 2003, Andreani Luca wrote: is 64kbit/sec enough for VoIP ? I would have thought not.. but I do not have VoIP... Steve, what voip codec do you use? If you can select, use G723 (6.3 kbit/s) /steve --- Catalin(ux) BOIE [EMAIL PROTECTED]

Re: [LARTC] [Fwd: how does the bandwidth management relates withthe proc file system?]

2003-07-07 Thread Catalin BOIE
How does the bandwidth management relates with the proc file system? What do you mean? There is nothing in proc to get statistics, if this is what you want to ask. Can anybody suggest? regards, Srikanth. ___ LARTC mailing list / [EMAIL

Re: [LARTC] u32 clarification...limits on 2000???

2003-06-25 Thread Catalin BOIE
please send me your config and lemme compare the same against mine. I have main in a database. I cannot give it to you, but trust me that are 5 filters. Try to use hashes to reduce the kernel pressure. Trevor On Tue, 2003-06-24 at 15:49, Catalin BOIE wrote: On Tue, 24 Jun 2003, Trevor

Re: [LARTC] FW: Weird! HTB does not work with my new box..

2003-06-24 Thread Catalin BOIE
Unknown qdisc htb, hence option default is unparsable **HTB: failed to set root qdisc on eth0! [EMAIL PROTECTED]:/etc/sysconfig/htb# lsmod Module Size Used byNot tainted sch_htb21120 0 (unused) cls_route 5560 0 (unused) cls_u32

Re: [LARTC] u32 clarification

2003-06-24 Thread Catalin BOIE
On Tue, 24 Jun 2003, Trevor Warren wrote: Can some one please confirm which would be the best place to clarify these U32 issues and 2048 U32 filter limitations as i had posted in my previous mail. Trevor We have 5 filters and still working. I don't think there is a limit. -- ( -

Re: [LARTC] HTB flooding my kernel logs

2003-01-22 Thread Catalin BOIE
I have a 2 tree configuration. Here is an example script: #!/bin/bash tc=/sbin/tc $tc qdisc del dev eth0 root $tc qdisc add dev eth0 root handle 1: htb default 30 $tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit $tc class add dev eth0 parent 1:1 classid 1:10 htb rate 40Mbit

[LARTC] [BUG?] hashes - prio is not respected

2003-01-22 Thread Catalin BOIE
Hello! Seems that if I add two filters in a hash node, prio doesn't matter anymore. It's a known bug? Long story: If I do this: echo ** jumptables... echo *** 800: link 1: $tc filter add dev $dev parent 1: prio 1 u32 match ip nofrag hashkey mask 0xff00 at 16 link 1: echo

[LARTC] qdisc_sleeping

2002-07-30 Thread Catalin BOIE
Hi! Can somebody explain to me why there are qdisc_sleeping and qdisc_list beside qdisc in net_device structure and what are these useful for? Thank you very much! --- Catalin(ux) BOIE [EMAIL PROTECTED] H323: dino.rdsbv.ro ___ LARTC mailing list /

Re: [LARTC] Policy Routing (Again)

2002-06-04 Thread Catalin BOIE
Then I decided to mark all outgoing SMTP packets with fwmark 1 (marked using iptables). I've marked them like this: iptables -t mangle -A OUTPUT - p tcp --dport 25 -j MARK --set-mark 1 I have, then, added a rule pointing to alternative routing table: ip rule add priority 15000 fwmark 1

Re: [LARTC] htb_change sfq_change

2002-05-16 Thread Catalin BOIE
On Wed, 15 May 2002, Martin Devera wrote: Date: Wed, 15 May 2002 15:11:09 +0200 (CEST) From: Martin Devera [EMAIL PROTECTED] To: Catalin BOIE [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [LARTC] htb_change sfq_change :) You can drop recreate it safely. User will not see

Re: [LARTC] htb_change sfq_change

2002-05-14 Thread Catalin BOIE
to change on the fly r2q to see how the traffic flow changes. But I don't want to delete the whole tree just to change some parameters on the root class. devik On Fri, 10 May 2002, Catalin BOIE wrote: On Thu, 9 May 2002, Martin Devera wrote: Date: Thu, 9 May 2002 12:29:00 +0200 (CEST

Re: [LARTC] htb_change sfq_change

2002-05-14 Thread Catalin BOIE
OK. But for SFQ? what do you want to change in sfq !!?? perturb and quantum on-the-fly. devik --- Catalin(ux) BOIE [EMAIL PROTECTED] http://www2.deuroconsult.ro/~catab ___ LARTC mailing list / [EMAIL PROTECTED]

[LARTC] htb, class, prio

2002-05-14 Thread Catalin BOIE
Hello! Seems that whatever I set for prio for a htb class it is always set to 3. Example script: ifconfig dummy1 up ifconfig dummy1 200.200.200.200 netmask 255.255.255.248 tc qdisc del dev dummy1 root tc qdisc add dev dummy1 root handle 2: htb tc class add dev dummy1 parent 2: classid 2:1 \