Re: [LARTC] Sharing a DSL between 40 subnets with htb

2006-01-08 Thread Andy Furniss
Flemming Frandsen wrote: I have a network with around 40 /24 subnets that shares a common DSL, this cries out for shaping so here I am trying to make it work as my first tc project. I have managed to cargocult some snippets from this list and tried to come up with a config, but there are a

Re: [LARTC] unexpected drop

2006-01-08 Thread Andy Furniss
Roberto Belletti wrote: Hello everybody, I have a Linux router with an ethernet adapter and a ADSL device. My router has a GRE tunnel connected to a remote IP address. Using tc I have configured 3 different classes: 1. 290kbit rate (used for Voip Services) 2. 180kbit rate (used for GRE

Re: [LARTC] Wondershaper and DSCP

2006-01-08 Thread Andy Furniss
Keith Mitchell wrote: Did anyone ever answer this one? THIS is what I am trying to do: [LARTC] cbq+sfq and DSCP marking I haven't used dscp but it looks like you need to add cbq below dsmark and then filter with tcindex see http://lartc.org/howto/lartc.adv-qdisc.dsmark.html Andy.

Re: [LARTC] HTB traffic shaping odd effects

2006-01-08 Thread Andy Furniss
Oliver Hookins wrote: Hi, I'm trying to perform some (what I consider) basic traffic shaping on our network utilising HTB. I have mostly reused the example on the lartc.org site: tc qdisc add dev eth0 root handle 1: htb default 10 tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit

Re: [LARTC] HTB traffic shaping odd effects

2006-01-09 Thread Andy Furniss
Oliver Hookins wrote: burst 19k will limit you unless your HZ=1000 Our HZ is 512. I don't know if it makes any difference, but I would have chosen 500 so that it was 2ms. The default now is 250 and with 19k burst that fits the speed you get really well - with 512 it would be around

Re: [LARTC] HTB - not borrowing, not exceeding rate

2006-01-09 Thread Andy Furniss
Kajetan Staszkiewicz wrote: Here is current setup: tc qdisc del root dev eth2.24 2/dev/null tc qdisc add root dev eth2.24 handle 1: htb default 1 # main rate limitation for whole connection (802.11a radio link) tc class add dev eth2.24 parent 1: classid 1:1 htb rate 15000kbit ceil 15000kbit

Re: [LARTC] Shaping traffic bound for the NAT'ed networks whithout imq

2006-01-10 Thread Andy Furniss
Flemming Frandsen wrote: I'm trying to set up a shaper that can shape the inbound traffic to around 40 subnets, that hang on 3 different interfaces of the router. As Linux can't do ingress shaping I'm left with having to set up 3 seperate shapers, one for each internal interface. This is not

Re: [LARTC] tc filter add ... fw returns RTNETLINK answers: Invalid argument

2006-01-10 Thread Andy Furniss
Flemming Frandsen wrote: When I run this: tc filter add dev eth0 parent 1: protocol ip prio 1 handle 1 fw I get: RTNETLINK answers: Invalid argument As I already said - you don't need handle 1 Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl

Re: [LARTC] tc filter add ... fw returns RTNETLINK answers: Invalid argument

2006-01-10 Thread Andy Furniss
Flemming Frandsen wrote: tc class add dev eth1 parent 1:1 classid 1:4806 htb rate 1200mbit burst 15k prio 10 1200mbit with 15k burst won't work. Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl

Re: [LARTC] qdisc's useless in my case?

2006-01-10 Thread Andy Furniss
André Matuschek wrote: Now what I worry about ist if this has any effect at all. Maybe the kernel sends all the Packets from the LAN (from eth0) to the to cable-modems, which are connected via 100Mbit crossover-cable and the modem queues the packets itself and drops the ones exceeding the

Re: [LARTC] Gred/dsmark/htb

2006-01-12 Thread Andy Furniss
comp.techs wrote: Hi, I am trying to get assured forwarding/expedited forwarding with gred and htb working. Below is the script I am using. The following steps are what I thing is how the script works. My problem is that if I remove the HTB qdisc from the script and have the GREDS parent as

Re: [LARTC] tc filter can target only leaf classes?

2006-02-25 Thread Andy Furniss
Andreas Hasenack wrote: (using htb) I'm trying to learn tc filter and it seems the flowid parameter can only point to leaf classes. Actually, it can point anywhere, but it doesn't seem to work unless it points to a leaf class. Is this correct? For example, I have this tree:

Re: [LARTC] why isn't 1:1 getting the traffic? [filter question]

2006-02-25 Thread Andy Furniss
Andreas Hasenack wrote: With the below script, whenever I ping 10.0.16.10 (which matches the only filter I have), traffic still get's sent to the default 1:2 class instead of 1:1 and I don't know why... Any hints? (kernel 2.6.12, iproute2-2.6.15) tc qdisc del dev eth0 root /dev/null 21 tc

Re: [LARTC] userlevel should not need to know about HZ?

2006-02-25 Thread Andy Furniss
Andreas Hasenack wrote: Em Qui 23 Fev 2006 19:47, Andreas Klauer escreveu: So, how do we reliably calculate the minimum value for buffer/burst/maxburts? Trial Error, not that I ever had much luck with TBF though... From my experiments, the minimum seems to be either MTU plus a few bytes

Re: [LARTC] Shaping by IP's

2006-02-25 Thread Andy Furniss
Laimis wrote: If in one time 3 IP adresses using internet. TC script: DEV=eth0 # LAN SERVER_IP=192.168.1.2 # eth0 ip address tc qdisc add dev $DEV root handle 1: htb default 255 tc class add dev $DEV parent 1: classid 1:1 htb rate 384Kbit quantum 1500 tc class add dev $DEV parent 1:1 classid

Re: [LARTC] Shared ADSL SHAPER

2006-02-25 Thread Andy Furniss
Rasmus Melgaard wrote: Hi, I'm trying to make a shaper / firewall to improve sharing of bandwidth on a ADSL (3mbit down / ½ mbit up) Since the ADSL is very asymmetric, down is unimportant, I make a ingress rate limit shaper to ensure, all shaping is at the Shaper, and not on the Router or

Re: [LARTC] QOS server droping packets 4% loss

2006-02-25 Thread Andy Furniss
Calin Ilis wrote: Hi all, I have a problem with htb and wonder if anybody has encountered this. On my LAN I have more than 1000 clients, and I am using htb to shape the incoming trafic. The problem is that I am experiencing packet loss (about 4%) in the qos server. The server is droping

Re: [LARTC] htb root don't reach ceil rate?

2006-02-25 Thread Andy Furniss
Markus Schulz wrote: Am Freitag, 10. Februar 2006 14:45 schrieb Markus Schulz: tc -s -d class show dev ppp0 class htb 1:1 root rate 576000bit ceil 576000bit burst 30Kb/8 mpu 0b overhead 0b cburst 1739b/8 mpu 0b overhead 14b level 7 Sent 1485575598 bytes 3140554 pkts (dropped 0, overlimits 0)

Re: [LARTC] htb root don't reach ceil rate?

2006-02-25 Thread Andy Furniss
ok, i've understand now. Differenz comes from gross versus net data rates due to overhead of ATM-SAR and pppoe-overhead. All statistic values are netto values. Yes - you can get patches to do egress overheads for dsl - if you know your exact type and are prepared to rebuild kernel or the

Re: [LARTC] invert u32 match selector

2006-02-25 Thread Andy Furniss
richard lucassen wrote: On Wed, 22 Feb 2006 11:43:40 +0200 Vaidas [EMAIL PROTECTED] wrote: With u32 you cannot negate, that's why it is lame... And why doesn't this work? (I send all port 80 to 1.2.3.4 to class 14 /before/ I send the rest to classid 13): $TC filter add dev ${DEV_IFB}

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi everybody! I'm using an edge bridge box with two ethernet cards to shape traffic in a WAN link. I'm running Debian 3.1 stable with kernel 2.6.8 and iproute from packages. I recompiled the kernel with the following built-in options: [*] 802.1d Ethernet

Re: [LARTC] QoS in Linux

2006-03-01 Thread Andy Furniss
Krishan wrote: Hello All, I am interested in QoS provided by Linux, when I looked into IP header I came accross ToS field, also while going more into detail about QoS I found that the QoS based on ToS is serviced thru DiffServ which in turn gives more priority to packets with higher value is

Re: [LARTC] Delay before shaping kicks in

2006-03-01 Thread Andy Furniss
Steinar Pedersen wrote: I am shaping traffic very sucessfully, but I still have one problem that I just can't figure out the solution to. When my backbone becomes saturated with traffic, I use prio to diffreciate between users, so that those who need it most, actually gets their service. BUT...

Re: [LARTC] invert u32 match selector

2006-03-01 Thread Andy Furniss
richard lucassen wrote: I guess IFB means this is ingress - if you are doing nat / or the ip you match is on that machine maybe it not passing ifb with the address you expect. Hmm, I don't think so because the ip is the machine itself and it won't be translated... Yes it should still have

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi and thanks for replying! As I select everything I don't know if this is enough - also I think you need to select classify in netfilter the section. I also select almost everything in the netfilter section, including MARK and CLASSIFY. I simplified

Re: [LARTC] Htb queueing problem

2006-03-01 Thread Andy Furniss
Andreas Hasenack wrote: On Wed, Mar 01, 2006 at 02:48:18PM +, Andy Furniss wrote: than bulk. Also remember when setting rates that htb will see ip packets as ip length + 14 when used on ethX Could you elaborate on this a bit? I suppose you also meant this in an earlier message when you

Re: [LARTC] leaky bucket on bursty multicast

2006-03-01 Thread Andy Furniss
Oivind wrote: Hi all, I have an average 2mbit multicast stream that once in a while bursts high (up to 20mbit/s) in short periods (about 200ms). Could anyone please help me with directions using tc for configuing leaky bucket shaping to this stream? I have a 5mbit/s ceiling. My system is

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-02 Thread Andy Furniss
Russell Stuart wrote: The following patch to tc allows it to perform an exact ATM / ADSL rate calculation. I probably haven't read the patch properly - but I don't think you can do it exactly without patching net/sched/sched_htb.c aswell. Specifically you need to add overhead - 1 before htb

Re: [LARTC] Htb queueing problem

2006-03-02 Thread Andy Furniss
Diego Andrés Asenjo Gonzalez wrote: Hi again! $IPT -A FORWARD -t mangle -p udp -s 172.16.0.185/32 -i eth1 --sport 1:10100 -d 172.16.1.0/24 -j MARK --set-mark 0x44 This should be -o eth1 or you should be shaping it on eth0 or if it's for the shaping box you need to do some sort of

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-02 Thread Andy Furniss
Adam James wrote: As Markus mentioned in another post on this thread, Jesper Dangaard Brouer (http://www.adsl-optimizer.dk) has already written an iproute2 and Linux kernel patch that implements the above. ATM cell alignment is done in tc_core.c, and the per packet overhead is passed to the

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-05 Thread Andy Furniss
[EMAIL PROTECTED] wrote: On netBSD setting the MTU also seems to set the MRU, is this the case here to? should people have thier DSLAMs configured for the same MTU? It doesn't set MRU - you can still receive a larger than MTU packet. I guess what you mean is MSS, if so yes Linux and Windows

Re: [LARTC] complex; ifb, masq et omnia

2006-03-13 Thread Andy Furniss
Krzysztof Matusik wrote: Hi all. I'm using Jamal's ifb virtual interface from new kernel. Redirecting incoming traffic from external interface like that: # tc [blahbla] match u32 0 0 flowid 1:0 action mirred egress redirect dev ifb0 to ifb to shape it. The problem is that I'm using

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-14 Thread Andy Furniss
Russell Stuart wrote: On Mon, 2006-03-13 at 13:09 -0500, Jason Boxman wrote: I finally patched my 2.6.15.5 kernel last night and use Stuart's userspace `tc` patch and I'm up and running. So far, things are working extremely well and exceeding my expectations. I only wish I actually knew my

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-14 Thread Andy Furniss
Jason Boxman wrote: Jesper Dangaard Brouer said: snip I just held a technical talk about the ADSL-optimizer (4/3-2006) at linuxforum.dk. Where I promised the audience that I would try to get the patches to the kernel and TC into the main line. It seem work on this front is already in

Re: [LARTC] Patch to allow for the ATM cell tax

2006-03-14 Thread Andy Furniss
Russell Stuart wrote: On Tue, 2006-03-14 at 13:14 +, Andy Furniss wrote: I would say 2 + 8 = 10 for pppoa/vc mux Dam, yes - brain explosion. I have no idea why I wrote 4 for the AAL5 overhead. It is 8. So Jason, the tables should in the next email of been: The complete table

Re: [LARTC] Trying to do some very simple ingress limiting, no success

2006-04-09 Thread Andy Furniss
Erik Slagter wrote: Hi, I am trying to do some simple ingress limiting based on fwmark. I know the ability and sense to do INGRESS limiting is ehm... limited ;-) but still I want to try it. I tried several things. === 1 === tcq ingress handle : tcf parent : protocol ip prio 1 handle

Re: [LARTC] Trying to do some very simple ingress limiting, no success

2006-04-09 Thread Andy Furniss
Erik Slagter wrote: Found it and deselected it. Now making new kernel... The old policer is marked as obsolete, so I guess it will go away. What am I supposed to replace it with, then? There may be a way in the future to get netfilter state with an ematch/meta data (I don't know the detail

Re: [LARTC] Where is the documentation for IFB ?

2006-04-10 Thread Andy Furniss
openswan wrote: Hi all, Can you tell me where is the documentation for the new IFB (implemented in kernels 2.6.16). Thanks in advance! Below is a copy of Jamal's example posted on netdev. You can use it on ingress and egress, on egress you need a classful qdisc on the interface(s) - prio

[LARTC] Re: packet marking: only a ratio, not all

2006-04-12 Thread Andy Furniss
pfer wrote: Hi Andy! I haven't checked the iproute sources for that, but maybe I was not clear: What I need is not having ALL packets re-marked when they are overlimit, or sent to any class, etc.. I want them to be remarked at a ratio. (eg. 2%) And granularity is important, if I have to

Re: [LARTC] trying to find out how much is on a drive?

2006-04-12 Thread Andy Furniss
Yvon Dubinsky wrote: I have a Ferdora 2 machine with 2 drives in it one has the OS and the main drive for our Samba server on it and the other is the Mirror drive. What I am trying to find out is how much is on the primary drive. When I use the du command I get a number that seems to be

Re: [LARTC] Detect and mark 'bulk' http traffic

2006-04-12 Thread Andy Furniss
Andrew Beverley wrote: To give fast web browsing on my network, I prioritise http traffic by marking it all into a high priority band ('30'). This generally works quite well, as unidentified traffic such as p2p falls by default into a lower priority band ('40'). However, I would like to

Re: [LARTC] HFSC and default qdisc backlog

2006-04-12 Thread Andy Furniss
James Nelson wrote: Thanks for all of your help Patrick! Just so I'm clear. If hfsc at the class level shows no overlimits and no packet dropps, then hfsc is not effecting my traffic any different (from a throughput perspective computational computer slowness aside) then if i had no traffic

Re: [LARTC] QoS - Ping problem

2006-04-12 Thread Andy Furniss
Nataniel Klug wrote: # Regras para a placa eth1 #-- $TC qdisc add dev $DL root handle 1: htb default 50 You are using htb default on eth - unless you make a filter for arp it will also end up in 1:50 which may or may not be the problem - you should fix it anyway. tc filter add .

Re: [LARTC] Problems matching by mac address

2006-04-12 Thread Andy Furniss
Adam M. Towarnyckyj wrote: Sorry for bumping this one, but I wanted to know if anyone else had any ideas as well. I'm a bit baffled as to why this isn't working. Thanks. Hmm this is a strange one - I tried both ip and mac version of your script (on non-bridged eth) and both work ie the

Re: [LARTC] ESFQ not so fair?

2006-04-12 Thread Andy Furniss
Michał Margula wrote: Hello! I am using since yesterday ESFQ instead of N HTB queues. It mostly works OK, but when somebody is using one single sesion (for example downloading file via FTP), it gets weird speed. For example it is 20 kilobytes pres second, then drops down to 9, then 20

Re: [LARTC] ESFQ not so fair?

2006-04-12 Thread Andy Furniss
Patrick McHardy wrote: Andy Furniss wrote: Corey Hickey changed his esfq to use jhash for dst/src/fw - copy of his announce below. Using jhash is a probably a good idea, the improved hash is broken and will cause reordering in some circumstances: return (h - q-dyn_min) * (q-hash_divisor

Re: [LARTC] ESFQ not so fair?

2006-04-12 Thread Andy Furniss
Michał Margula wrote: Andy Furniss napisał(a): Corey Hickey changed his esfq to use jhash for dst/src/fw - copy of his announce below. Andy. Thanks, but I am already using his patch :-). It happens with that patch, I haven't tried original version at all. Ahh OK - looks like

[LARTC] Re: packet marking: only a ratio, not all

2006-04-12 Thread Andy Furniss
pfer wrote: Hello! Well I won't go into protocol details, but I do not care if an intra-domain node will be congested via packets on ingress. I will drop them, but check with tc .. show .. how much I get on byte-level. Based on this, and maximum egress transmission rate of this congested node,

Re: [LARTC] Problems matching by mac address

2006-04-15 Thread Andy Furniss
Adam M. Towarnyckyj wrote: Andy, Thanks for investigating so extensively. However, I'm an idiot and made a fundamental mistake in networking that I should have realized in the first place. I completely didn't think about the fact that the filter is looking at the data link layer of the packet

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Andy Furniss
Yanko Kaneti wrote: Hi Here is something that worked with with 2.6.10-1.771_FC2smp and stopped working when I upgraded to 2.6.16-1.2069_FC4smp. These are fedora kernels and the network controller is an Intel Gbit (e1000) running a 100 Mbps Full Duplex. Don't know how or if this matters but the

Re: [LARTC] htb overrate with 2.6.16

2006-04-15 Thread Andy Furniss
Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface is and was 1500. Or so ifconfig and ip link tell me. Or this is some other mtu we are talking about... Hmm I didn't expect that - maybe

Re: [LARTC] htb overrate with 2.6.16

2006-04-16 Thread Andy Furniss
Yanko Kaneti wrote: On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place? The mtu of the interface is and was 1500. Or so ifconfig and ip link tell me

Re: [LARTC] htb overrate with 2.6.16

2006-04-16 Thread Andy Furniss
Yanko Kaneti wrote: I think you need to ask fedora or intel driver maintainer about this. AIUI tso is not in vanilla kernels and the patches are quite invasive. Well, as much as google tells me TSO has been in the kernel and enabled since 2.5.33 and e1000 was the first driver to support it.

Re: [LARTC] htb overrate with 2.6.16

2006-04-17 Thread Andy Furniss
Yanko Kaneti wrote: On Sun, 2006-04-16 at 19:40 +0100, Andy Furniss wrote: Yanko Kaneti wrote: On Sun, 2006-04-16 at 03:03 +0100, Andy Furniss wrote: Yanko Kaneti wrote: Setting mtu 16500 for the class fixed it. But I wonder where did these giants come from in the first place

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Yanko Kaneti wrote: One more thing I just thought - sfq sets its quantum from the dev mtu. Riiight. I should have tried without the sfq earlier. Without it this works as expected without explicit mtu setting for the htb class. And no giants. # tc qdisc add dev eth0 root handle 1: htb # tc

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Andy Furniss wrote: Looking again at your stats - Sent 189796883 bytes 20626 pkt (dropped 0, overlimits 0 requeues 0) rate 3484Kbit 45pps backlog 0b 0p requeues 0 lended: 20627 borrowed: 0 giants: 30926 tokens: -9768 ctokens: -9768 The giants count is higher than the packet count so now I

Re: [LARTC] htb overrate with 2.6.16

2006-04-18 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Looking again at your stats - Sent 189796883 bytes 20626 pkt (dropped 0, overlimits 0 requeues 0) rate 3484Kbit 45pps backlog 0b 0p requeues 0 lended: 20627 borrowed: 0 giants: 30926 tokens: -9768 ctokens: -9768 The giants count is higher than

Re: [LARTC] Backlog with less rate than defined

2006-04-24 Thread Andy Furniss
Luciano wrote: Hi all, I setup a Linux machine to act as Lan Authentication server. So, the same script that redirect the http connection to a login web page, it create some queues to limit traffic, login by login. The PC uses only 1 ethernet interface that receive the packets source routed

Re: RES: [LARTC] Backlog with less rate than defined

2006-04-25 Thread Andy Furniss
Luciano wrote: Hi Andy, I´m not sure if I understood what you told about arp packets. I use htb default but the problem occurs even when the default queue rate is low (it is almost always low in rate and pps). It's still not ideal even if it's not the cause - sfq default length is 128

Re: [LARTC] time matching in the mangle stage?? is it possible??

2006-05-07 Thread Andy Furniss
William Bohannan wrote: the classify command which only works in the postrouting. I'd try it, I think it works everywhere now the even if old docs say different. Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl

Re: [LARTC] How to write a catch all rule?

2006-05-07 Thread Andy Furniss
Andreas Unterkircher wrote: http://mailman.ds9a.nl/pipermail/lartc/2005q3/016774.html tc filter add dev eth0 parent 1:0 protocol all u32 match u32 0 0 flowid 1:1 That will match all. Someone told me once that the difference between it working and not on a large rule set was the explicit

Re: [LARTC] HFSC and prioritization

2006-05-12 Thread Andy Furniss
Patrick McHardy wrote: Patrick McHardy wrote: Jody Shumaker wrote: What is there for good HSFC documentation out there right now anyways? There is the original papers by Hui Zhang et al., which is mostly about the theory and not very suitable for users - but still worth reading if you're

Re: [LARTC] HTB at 100+ Mbits/sec

2006-05-16 Thread Andy Furniss
Muthukumar S wrote: Iperf has a demonstrated behavior that when running more than one copy at the same time on the same box (client side); that the timing of each will start to effect the other copies. This is a function of how Iperf does it's timing (spin loops). What traffic generators

Re: [LARTC] Fair shaping over link with variable parameters

2006-06-01 Thread Andy Furniss
Rafal Krypa wrote: Hi. I would like to ask you for advice. I am trying to construct following shaping solution: * several users are using one link to the Internet * all of them have equal priority and should be given fair amount of bandwidth * no kind of traffic is considered more important than

Re: [LARTC] Shaping of pppoe clients

2006-06-01 Thread Andy Furniss
Georgi Alexandrov wrote: Kenneth Kalmer wrote: The keyword here is better, and that was my argument for using a bridge in the first place. It would appear to be easier to shape filter away from the messy scripts of pppd radius servers, but this raises the next issue. For the bridge, is the

Re: Fwd: [LARTC] HTB shaping borrowing info

2006-06-01 Thread Andy Furniss
Stefano Mainardi wrote: tc class add dev eth1 parent 11:1 classid 11:2 htb rate 70Mbit ceil 70Mbit burst 6k cburst 64k quantum 1600 I am not sure if it matters in this case with the big cburst - but remember burst * 8 * HZ will be the bit rate a class can reach. Andy.

Re: Fwd: [LARTC] HTB shaping borrowing info

2006-06-01 Thread Andy Furniss
Stefano Mainardi wrote: Hi Andy, how i must setup the value for CBURST for my situation? Have you read? I think the burst is too small - In your case I would just not specify either burst and let htb choose them. Andy. Ste 2006/6/1, Andy Furniss [EMAIL PROTECTED]: Stefano Mainardi

Re: Fwd: [LARTC] HTB shaping borrowing info

2006-06-01 Thread Andy Furniss
Stefano Mainardi wrote: Ok, i try without CBURST value. Without burst aswell ... Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: Fwd: [LARTC] HTB shaping borrowing info

2006-06-01 Thread Andy Furniss
Stefano Mainardi wrote: Ops BURST...sorry! And CBURST value you think that is correct? I would leave that out aswell and let htb choose it from the rate of the class. Andy. ___ LARTC mailing list LARTC@mailman.ds9a.nl

[LARTC] Re: Bi-directional packet classification with ACK prioritization

2006-06-04 Thread Andy Furniss
Eliot, Wireless and Server Administrator, Great Lakes Internet wrote: This problem will be true for generally classified traffic and P2P traffic. I would use tc filters in one direction if I could possibly distinguish P2P traffic from other types of traffic with them. You can match mark with

Re: [LARTC] IMQ + NAT

2006-06-16 Thread Andy Furniss
Jonas Jasas wrote: Hello, I have eth0 - internet eth1..4 - local networks on eth0 i do $IPTABLES -A POSTROUTING -t nat -o eth0 -j MASQUERADE I want to balance out/in load for eth1..4 and localhost (mainly squid). Nat makes impossible to do it on eth0, so I installed IMQ. I need to get to on

[LARTC] Re: [PATCH 0/2] NET: Accurate packet scheduling for ATM/ADSL

2006-06-16 Thread Andy Furniss
jamal wrote: I have taken linux-kernel off the list. Russell's site is inaccessible to me (I actually think this is related to some DNS issues i may be having) and your masters is too long to spend 2 minutes and glean it; so heres a question or two for you: - Have you tried to do a long-lived

Re: [LARTC] English translation of article on HFSC

2006-06-25 Thread Andy Furniss
Martin A. Brown wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings all, Working in concert with the original authors, Klaus Rechert and Patrick McHardy, I have translated their article HFSC Scheduling mit Linux [0] on Hierarchical Fair Service Curve (HFSC) into English [1].

Re: [LARTC] fwmark filter doesn't work as expected

2006-06-26 Thread Andy Furniss
Michał Margula wrote: Hello! Currently I am marking packets with IPMARK, and then using following rules: 1: class add dev eth0 parent 1:4 classid 1:100a htb rate $rate ceil $ceil quantum 1600 2: qdisc add dev eth0 parent 1:100a handle 100a:0 sfq perturb 10 3:

Re: [LARTC] Egress shaping recommendations (based on source ip)

2006-06-26 Thread Andy Furniss
Ray Van Dolson wrote: I'm trying to set up customer egress shaping on concentrator that customers connect to using pptp (which uses pppd). This means customers each have a pppXXX interface when they connect. It's easy to shape their down speed this way, and when they disconnect the interface

Re: [LARTC] please advise me in HTB and HFSC

2006-06-26 Thread Andy Furniss
*~ r a K u ~ * wrote: now i'm read a lot of knowledge paper about traffic control in linux because now i'm try to develop and research about traffic shaper so can everybody tell me about my topic ... Is it can do for real my topic is now, many organization use traffic shaper for control

Re: [LARTC] Dynamic Linux Traffic Control

2006-06-26 Thread Andy Furniss
Paul wrote: Hey all, heres my problem/s. I have to write code which upon a message from another component 1. Reserves bandwidth for a voip call between 2 hosts.My code will reside on neither of the hosts but the hosts will have to go through me to talk to eachother. 2. Since i'm reserving

Re: [LARTC] tc ingress policing with multiple subnets

2006-07-18 Thread Andy Furniss
Nikolay Kichukov wrote: If you are shaping ingress you will need to set a rate below the link speed, or you won't do anything. How about a rate that matches the link speed? Will 95% of the link be alright for ingress? Ingress shaping is a kludge - you can do alot better than doing

Re: [LARTC] I need help with tc filters!!!!!

2006-07-18 Thread Andy Furniss
Luciana Esteves Neves Hilario wrote: Hi Everybody! I need help! I'm doing a tc script with tc filters that have match the Type of Service field in the IP header. This is the script I am using to setup the filters. tc filter add dev $DEV parent 1: protocol ip prio $PRIO_CONTROL u32 match

Re: [LARTC] [PATCH] IMQ vs. local traffic

2006-07-18 Thread Andy Furniss
Jarek Poplawski wrote: PS: The included patch could be applied after linux-2.6.16-imq2 patch or eg. my yesterday version linux-2.6.17.4-imq0. I think this should go/cc to the IMQ list [EMAIL PROTECTED] http://groups.yahoo.com/group/linuximq/ Subscribe by mail and you won't get asked for a

Re: [LARTC] IFB vs IMQ

2006-07-18 Thread Andy Furniss
Rajesh Mahajan wrote: Is IFB realy replacement of IMQ Mostly - it hooks before/after netfilter though, so if you really need IMQ to hook in netfilter (eg. to get denatted addresses on ingress so you can seperate INPUT and FORWARD traffic), you still need IMQ. Andy.

Re: [LARTC] How to add multiple filters and netem rules on a single interface?

2006-07-19 Thread Andy Furniss
Andy Furniss wrote: Jon Pedersen wrote: Hi! We want to run TCP streams to several port numbers through one interface, each with a different delay set by Netem. E.g. TCP streams to port 80 could have 50ms delay, while TCP streams to port 81 could have 100 ms delay and so on. We have tried

Re: [LARTC] police rate doesn't work ?

2006-07-20 Thread Andy Furniss
Vitale Alessandro wrote: I would like to test police in ingress. I use kernel 2.4.20. FWIW if you try a 2.6 whether or not policers will see marks will depend on your config - Packet action will give a new policer that hooks before netfilter. I use this configuration: iptables -t mangle

Re: [LARTC] UDP multicast stream and NAT

2006-07-22 Thread Andy Furniss
Gabriel wrote: Hi, my ISP is streaming some local concert using UDP multicasting. I followed the instructions on the site which described how to set VLC in order to view the stream, but it didn't work. I am behind a Linux router/firewall doing NAT. Using google, I quickly found out that the

Re: [LARTC] Weird HTB behaviour in 2.6.17

2006-07-28 Thread Andy Furniss
Marlon Dutra wrote: (anything about giants?)? class htb 1:31 parent 1:1 leaf 31: prio 0 rate 1000bit ceil 75bit burst 15Kb cburst 1974b Sent 11678670 bytes 2711 pkts (dropped 0, overlimits 0) rate 1725Kbit 43pps backlog 13p As you can see, I see you snipped giants even though you

Re: [LARTC] Weird HTB behaviour in 2.6.17

2006-07-28 Thread Andy Furniss
Marlon Dutra wrote: On 7/28/06, Andy Furniss [EMAIL PROTECTED] wrote: I see you snipped giants even though you were asked about them. Oh sorry. Here it goes: class htb 1:31 parent 1:1 leaf 31: prio 0 rate 1000bit ceil 75bit burst 15Kb cburst 1875b Sent 23991629 bytes 5227 pkts (dropped

[LARTC] Re: HTB is buggy?

2006-07-28 Thread Andy Furniss
Stephen Hemminger wrote: I believe there are some unresolved memory management issues with HTB. It looks like deleting the qdisc is causing some use after free or memory corruption problems. See: http://bugzilla.kernel.org/show_bug.cgi?id=6681 I don't use HTB so I have no idea if this

Re: [LARTC] questions about HFSC, VoIP and (dynamic) ingress shaping

2006-07-31 Thread Andy Furniss
Daniel Musketa wrote: Hello, I just found the great howto and started shaping my internet connection. The howto's last update is a liitle in the past now so I have some questions about how things are done the best way nowadays ;-) To ensure a stable and low latency voip communication I

Re: [LARTC] IFB vs IMQ

2006-07-31 Thread Andy Furniss
Rajesh Mahajan wrote: can u please explain where IFB really place in linux network stack Is iptables rules applicable on it I don't know exactly - as for iptables rules, you can use marks if you are hooking ifb on egress as it's after netfilter. I suppose what's possible depends on your

Re: [LARTC] Why SFQ?

2006-07-31 Thread Andy Furniss
S.Mehdi Sheikhalishahi wrote: Hello, Why linux users use SFQ as leaf queueing discipline instead of RED and other? We don't all - I guess alot of the examples do though. SFQ does rough fairness for individual connections within a class - nothing else does (well RED a bit). It does have

Re: [LARTC] SRR qdisc

2006-07-31 Thread Andy Furniss
Dmitry Labutcky wrote: Hi all, I wrote new qdisc SRR (Simple Round Robin). This is just another reimplementation of round robin packets distributions. I'm not using SQF/ESFQ source code and algorithms in this scheduler. The main goal of this work is not given multistream download managers

Re: [LARTC] IFB support in 2.6.17 kernel

2006-08-04 Thread Andy Furniss
Abel Martín wrote: Hi, I'm trying to activate IFB device support in a 2.6.17 kernel from Debian Sid. I read that IFB device is the replacement for IMQ device, but I haven't found any useful documentantion on how to activate this feature and the kernel documentation lacks of this information.

Re: [LARTC] tc filter

2006-08-13 Thread Andy Furniss
doudouyam wrote: Hi, Is it possible to make a filter with tc which exclude an IP like iptables ?? ex: iptable -t mangle -A PREROUTING -i eth0 -d ! 192.168.1.222 -j MARK ... I try the ! with tc but it doesn't work. Thanks, doude. Not directly, but you can just match the address then follow

Re: [LARTC] Info about IFB

2006-08-18 Thread Andy Furniss
Samuel Díaz García wrote: Hi, I'm looking for info about IFB devices and how I can use it to incomming traffic shapping. Has IFB any web about it? Do any body known where I can find more info about it? I found this: http://linux-net.osdl.org/index.php/IFB But I can't stand fine how to use it

Re: [LARTC] howto reduce the ping?

2006-08-18 Thread Andy Furniss
Julius Junghans wrote: Hi, with the attached config my gaming ping is still +20ms, even if the line isn't saturated..can anybody give me a hint how to get a better response time? my line: 1024/128kbit Does not saturated mean no other traffic - I mean if you really have 128kbit up eg. dsl

Re: [LARTC] Re: tc filter

2006-08-18 Thread Andy Furniss
Jarek Poplawski wrote: Should be: # tc filter add dev eth0 parent 1: proto ip pref 100 \ u32 match ip dst 192.168.1.222 flowid 1: police \ conform-exceed drop/drop Looks a bit iffy but I haven't tried it - I thought that would be drop whether under or over - if it's valid at

Re: [LARTC] enable p2p to some host (ipp2p)

2006-08-18 Thread Andy Furniss
Roberto Pereyra wrote: Hi I using ipp2p to block p2p traffic. How to enable to use p2p to me host in my net ? I using this setup: iptables -A FORWARD -m ipp2p --ipp2p --bit --apple --winmx --soul --ares -j DROP This setup: iptables -A FORWARD -m ipp2p --ipp2p --bit --apple --winmx

Re: [LARTC] ingress and flowid

2006-08-18 Thread Andy Furniss
Andrés Ghigliazza wrote: Hi there, I am trying to understand our router / firewall, that was configured by another person. It is a Debian GNU/Linux with several configurations with tc and iptables. I have a question about flowid in ingress qdisc. As fas as I know, this qdisc is a dummy one,

Re: [LARTC] Info about IFB

2006-08-18 Thread Andy Furniss
ArcosCom Linux User wrote: I use IMQ to incomming traffic shaping (using u32 to match the source/destination MACs) With IMQ I use: iptables -t mangle -A PREROUTING -i $if_wan0 -j IMQ --to-dev 0 (for example) To enqueue packets into IMQ device and then shapping. With IMQ I can use modprobe

Re: [LARTC] Applying the same class to multiple interfaces

2006-08-29 Thread Andy Furniss
Leigh Sharpe wrote: This works OK, but it isn't quite what I want. I want to limit the traffic to 128K total. ie, 128K in one direction or the other, or 64K in each direction simultaneously, or 100K in one direction and 28K in the other, etc... I can't see anything in the tc docs which

<    1   2   3   4   5   6   7   >