[LARTC] The woods never end with HTB

2003-08-14 Thread Raj Mathur
Hi, After spectacularly failing to get HTB to proportionately distribute excess bandwidth into multiple classes based on the rate, I decided to hack my requirements. Now I'm creating multiple classes with the sum of the bandwidths of the classes being equal to (OK, slightly less than) the link ba

Re: [LARTC] Parameters for the ingress qdisc?

2003-08-14 Thread Patrick Turley
> > I still can't find anything about "filter > > policers" anywhere. I didn't find any description of a command line that > > even suggested such a thing was possible. Can you please point me to > > some more info about this, if any exists? > There also some limited example scripts in the iproute2

Re: [LARTC] HTB shaping different subnets...

2003-08-14 Thread Rokas
Hi Martin, That you very much for your help. I entered:ip address add 192.168.2.254/24 dev eth0 and also I added IP masquerading for this address range. Everything now is working very well, just as I wanted. Of course, If a user changed his IP address from 192.168.2.* range into 192.

Re: [LARTC] redundancy and multipath routing.

2003-08-14 Thread Damion de Soto
S Mohan wrote: [Question 1] Am I wrong? Is my interpretation of metrics wrong? yes and yes, but it's a common mistake. packets will still use the lower metric if the route exists. until the kernel knows the route/interface is dead and removes it, your metric 2 default route won't do anything. [Re

Re: [LARTC] Ingress mode

2003-08-14 Thread Martin A. Brown
Hi there Raghuveer, Just a brief answer here. : I want to apply traffic control rules for the incomming traffic to my : firewall, which is what we call it as Ingress mode, am I right? : Just to confirm, suppose my firewall WAN interface is eth0 with IP : 66.218.71.198 and LAN interface is

Re: [LARTC] How to limit a dev bandwidth.

2003-08-14 Thread Martin A. Brown
Raghuveer, : "It's very important to understand that you can only shape outgoing : traffic". Be careful with terminology. Stef is absolutely correct above*. It is true that you can only "shape" outgoing traffic. Please don't confuse shaping with other types of traffic control mechanisms, s

Re: [LARTC] Two ADSL lines with PPPoE in one server.

2003-08-14 Thread Steve Wright
On Sat, 2003-08-09 at 05:04, Rokas wrote: > I would like to connect another ADSL line (also PPPoE) to my server > and have two lines, because I want to make "Simple source policy > routing", as described in LARTC HOWTO. google for "policy routing book." There is an example there. > How should I

[LARTC] redundancy and multipath routing.

2003-08-14 Thread S Mohan
I use a LEAF Bering distribution which is 2.4.18 kernel based. I wanted to experiment using it for link load balancing and redundancy and ran up some hitches. Pointers would be welcome and helpful. I set up a single machine with 2 ethernet interfaces as per the network schematic below. +--

[LARTC] Ingress mode

2003-08-14 Thread Raghuveer
Hi, I would like to know whether can we do bandwidth management(traffic control) for incomming traffic to firewall. For ex;- If my firewall WAN interface IP is 203.145.1.2 and any data from internet comming to 203.145.1.2 whether can be controlled...? If my total bandwidth= 512kb and I want to

Re: [LARTC] Ingress mode

2003-08-14 Thread Raghuveer
Thanks Martin for valuable links, Iam going through it. I want to apply traffic control rules for the incomming traffic to my firewall, which is what we call it as Ingress mode, am I right? Just to confirm, suppose my firewall WAN interface is eth0 with IP 66.218.71.198 and LAN interface is e

Re: [LARTC] How to limit a dev bandwidth.

2003-08-14 Thread Raghuveer
Hi Stef, You have mentioned in " http://www.docum.org/stef.coene/qos/docs/BB/BB.html"; that "It's very important to understand that you can only shape outgoing traffic". So is it not possible to shape the incomming traffic at all...? I already got some useful links and suggestion from Martin for i

[LARTC] masqurading and source based routing

2003-08-14 Thread Agri
i have private network let it be 192.168.0.0/24 and and two external networks, let it be 10.1.1.0/24 and 10.2.2.0/24 ip addresses of my linux box is 192.168.0.1 10.1.1.1 10.2.2.1 i want to masquarade all private network addresses through 10.1.1.1 but also if destination is not at 10.1.1.0/24 want

[LARTC] problem about sch_dsmark

2003-08-14 Thread ince
Hi,everybody I met a problem when i configured diffserv edge router using tc.I want to use "dsmark" qdisc to remark the DS field of the packets going through the router and also use some other qdisc (such as pfifo,red) to implement the EF and AF PHB. My script is listed below: #

[LARTC] htb qdiscs inside htb classes tree - possible side effects???

2003-08-14 Thread Robert Kryczało
Hello, Currently I use following htb configuration: --- 1:0 --- / | \ 1:1 1:21:x / | \/ | \/ | \ 1:1001 1:2001 1:3001 1:1002 1:2002 1:3002 Classes li

RE: [LARTC] Bandwith sharing in NAT environment.

2003-08-14 Thread S Mohan
In a NAT environment, it is advisable to mark packets in prerouting stage. Subsequently, till the packets leaves the system , the mark will not be changed by any other process except a explicit mark iptables statement. Even if NAT changes IP address, the fw mark will still be the same allowing for

[LARTC] request for review of linux traffic control diagram

2003-08-14 Thread Martin A. Brown
Hello LARTC readers, I have completed a generic diagram of a linux traffic control scenario with HTB. I believe that the diagram is substantially accurate, although I'd like feedback from others. I will (eventually) be annotating the diagram in a separate HTML page, and would welcome any suggest

Re: [LARTC] Please check the follow script for diffserv

2003-08-14 Thread Martin A. Brown
Raghuveer, : How can I get the real NIC bandwidth for a particular interface through : a script or code?? You can use mii-tool. For a brief introduction to mii-tool, see: http://linux-ip.net/html/tools-mii-tool.html -Martin -- Martin A. Brown --- SecurePipe, Inc. --- [EMAIL PROTECTED

Re: [LARTC] Mixing classifiers

2003-08-14 Thread Steffen Moser
Hi Marton, * On Wed, Aug 13, 2003 at 05:44 AM (+0300), Marton Sandor wrote: > I tried using under a htb qdisc u32 filter for 1 class , and fw > classifier for another but i get "RTNETLINK answers: Invalid argument" > when i wanr ro insert the second type of classifier. I don't get any error m

Re: [LARTC] Please check the follow script for diffserv

2003-08-14 Thread Raghuveer
Stef Coene wrote: On Thursday 07 August 2003 14:42, Steffen Moser wrote: Here, you should specify the physical bandwidth of your underlaying device (eth0), i.e. 100Mbit. You can't slow down the device at this position. The bandwidth parameter is used in the internal calculations of cbq and

[LARTC] Two ADSL lines with PPPoE in one server.

2003-08-14 Thread Rokas
Hello, My system is: Server with Slackware 8.1 LINUX, ADSL Internet with PPPoE connection, and I masquerade my LAN. I use "Roaring Penguin" PPPoE client for my ADSL connection. I would like to connect another ADSL line (also PPPoE) to my server and have two lines, because I want to make "Simple

Re: [LARTC] Bandwith sharing in NAT environment.

2003-08-14 Thread Stef Coene
On Saturday 09 August 2003 18:30, Rajesh wrote: > Hi > > I wish to implement Bandwith sharing in a NAT environment. > > The question is whether I can classify input packets on the basis of > ip-addresses (private LAN addresses)? These packets finally need to be > NATed before going on to Internet.

Re: [LARTC] HTB : quantum of class is small. Considerr2q change.

2003-08-14 Thread Patrick Turley
Oops again. While the note I indicated below is VERY informative, it's not at all clear why HTB would complain if the rate is 78Kbit - that corresponds to a quantum of 7800 bytes, which is plenty large. Yes, I know I said I mispelled "kpbs" below, and I also know that the correct way to say "kilob

Re: [LARTC] Sparc problem

2003-08-14 Thread debritoa
El Sáb 09 Ago 2003 21:27, escribió: > Hello there, > > : Now i change the machine for a Sun Enterprise 250 (Sparc64 with Debian > : 3.0r1) and iptables works fine (the packets are marked) but iproute > : don't send them by the correct interface (only use the default gateway, > : ppp0). I

Re: [LARTC] r2q error with HTB

2003-08-14 Thread Stef Coene
On Friday 08 August 2003 00:20, Patrick Turley wrote: > (This is a re-statement of a question I asked earlier) > > I have a number of HTB classes feeding into a root HTB qdisc. Whenever I > set the rate on any of the subordinate classes to 78 kpbs or less, I get > the following message: > > > HTB :

[LARTC] Solution for blocking kazaa with iptables

2003-08-14 Thread gypsy
Still in beta testing, but it works: http://www.lowth.com/p2pwall/ftwall/ Thought you would like to know... gypsy ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[LARTC] What is drop in Qdisc_ops for?

2003-08-14 Thread Chris Paulson-Ellis
Hi, What is the operation drop() in Qdisc_ops for? What are the requirements on a new qdisc? As far as I can tell, the classfull qdiscs just pass it on to child qdiscs and classless qdiscs drop the most recently queued packet. I can't find any code that initiates all this though. The operation i

Re: [LARTC] Please check the follow script for diffserv

2003-08-14 Thread Stef Coene
On Thursday 07 August 2003 14:42, Steffen Moser wrote: > Here, you should specify the physical bandwidth of your underlaying > device (eth0), i.e. 100Mbit. You can't slow down the device at this > position. The bandwidth parameter is used in the internal calculations of cbq and it must be the real

Re: [LARTC] Ingress mode

2003-08-14 Thread Martin A. Brown
Raghuveer, : I would like to know whether can we do bandwidth management(traffic : control) for incomming traffic to firewall. For ex;- If my firewall WAN : interface IP is 203.145.1.2 and any data from internet comming to : 203.145.1.2 whether can be controlled...? If my total bandwidth= 512k

Re: [LARTC] masqurading and source based routing

2003-08-14 Thread Martin A. Brown
Hello Agri, This doesn't seem to difficult--are you telling us the whole story? :) : i have private network let it be 192.168.0.0/24 : and and two external networks, : let it be 10.1.1.0/24 and 10.2.2.0/24 : ip addresses of my linux box is : 192.168.0.1 : 10.1.1.1 : 10.2.2.1 : : i want

[LARTC] ensure game server latency

2003-08-14 Thread Tom Verbeek
Hi group, first of all: I am new to this group and hope to bring in some value later. At the moment I am such a beginner that I will probably of no use to anyone and only be asking stupid questions... I am running a little private linux server with kernel 2.4.21. It serves as a gameserver, webser

Re: [LARTC] Parameters for the ingress qdisc?

2003-08-14 Thread Martin A. Brown
Patrick, As far as I'm concerned, these are two very good questions. : 1) When working with egress traffic control, filters are attached to :classes. The documents I've read so far tell me that the ingress :qdisc is classless so, on the face of it, filters shouldn't be :useable a

Re: [LARTC] Sparc problem

2003-08-14 Thread Martin A. Brown
Hello there, : Now i change the machine for a Sun Enterprise 250 (Sparc64 with Debian : 3.0r1) and iptables works fine (the packets are marked) but iproute : don't send them by the correct interface (only use the default gateway, : ppp0). I compile from source the kernel (2.4.19, 2.4.20, 2.4.

Re: [LARTC] What is drop in Qdisc_ops for?

2003-08-14 Thread Martin A. Brown
Chris, Have you discovered the following source of documentation on the QoS APIs for linux, yet? http://qos.ittc.ukans.edu/howto/index.html : What is the operation drop() in Qdisc_ops for? Well, from the userland perspective, drop is just like a netfilter -j DROP. Essentially we are saying

Re: [LARTC] Please check the follow script for diffserv

2003-08-14 Thread Steffen Moser
Hi, * On Thu, Aug 07, 2003 at 04:29 PM (+0800), anzp wrote: > My linux host has two 100M eth device, but I want to limit it's > bandwidth to 1M for experiments. Then allocate 150k to EF flow, > 500k to best effort flow. > > The script is fllowing: > - > #/bi

[LARTC] Mixing classifiers

2003-08-14 Thread Marton Sandor
Hi, I tried using under a htb qdisc u32 filter for 1 class , and fw classifier for another but i get "RTNETLINK answers: Invalid argument" when i wanr ro insert the second type of classifier. Using either u32 alone or fw alone work, so can't be a kernel or tc problem ( 2.4.21-ac1, tc with htb

lartc@mailman.ds9a.nl

2003-08-14 Thread Stef Coene
On Tuesday 05 August 2003 14:57, Martin A. Brown wrote: > : > For a root-qdisc, can the bandwidth be smaller than the bandwidth of > : > the device > : > : yes. The root qdisc bandwidth *should* be set smaller than the > : bandwidth of the device by about 5% > > Well, wouldn't you say it depe

Re: [LARTC] Looking for a good htb traffic shaping script to prioritize incoming traffic

2003-08-14 Thread Sebastián Aresca
Here the scrip of wonder shaper ... i modified it to prioritize Counter Strike, ACK, DNS and HTTP. The same with telnet. This is used for ppp0 uptreams and the other the htb script for eth0 to priritize download. This is working for now, is anybody have to modified something please tell me. Best R

[LARTC] above rate and below rate HTB packet dequeuing

2003-08-14 Thread Martin A. Brown
Hello all, I have a question about the details of HTB packet dequeuing and the effect on scheduling of packets queued in different classes. I have been unable to answer this question with certainty either by reading the HTB user guide [1] or the LARTC FAQ on docum.org [2]. The closest I can come

[LARTC] Please check the follow script for diffserv

2003-08-14 Thread anzp
My linux host has two 100M eth device, but I want to limit it's bandwidth to 1M for experiments. Then allocate 150k to EF flow, 500k to best effort flow. The script is fllowing: - #/bin/sh DEV="dev eth0" echo $DEV TC="/usr/src/redhat/SOURCES/iproute2-2.4.7src/

[LARTC] How can I combine efcbq and afcbq scripts

2003-08-14 Thread Nikos A. Nikolaou
Dear all, Is it possible to combine scripts efcbq and afcbq, which come with the iproute distribution, in a single script that will support EF, AF and BE traffic. Any hint is highly appreciated, regards, Nikos ___ LARTC mailing list / [EMAIL PROTECTE

[LARTC] HTB in 2.4.22 and 2.4.23

2003-08-14 Thread devik
Hello, in latest kernels there are many updates of HTB. In .22 problems related to excess debug messages and warnings (infamous "bug in dequeue") are fixed (hopefuly). There is other patch planned for .23 which solves troubles with removing sub-qdiscs which are under load. All these are of course

[LARTC] Parameters for the ingress qdisc?

2003-08-14 Thread Patrick Turley
I can't find any documentation on the paramaters for the ingress qdisc. Can someone help me? I have a number of filters feeding into my ingress qdisc, all of which are rate limited, but I want to place a limit on the aggregate flow as well. I don't want to monitor the sum of the flow rates - I wan

[LARTC] TOS flags and pfifo_fast

2003-08-14 Thread Tarek W.
last time I checked pfifo_fast, as well as honoring children's htb prio parameter, it prioritizes packets based on the TOS field. I haven't been able to find docs describing pfifo_fast's behavior in the instance where both are set. anybody tested a similar situation?! ___

Re: [LARTC] Parameters for the ingress qdisc?

2003-08-14 Thread Stef Coene
On Wednesday 06 August 2003 20:41, Patrick Turley wrote: > > > The fact that the filters are metering traffic flows implies that they > > > have are stateful. When using filters with egress queue hierarchies, it > > > was my understanding that no state was needed since all they do is > > > direct p

Re: [LARTC] Luser seeks tc syntax clue

2003-08-14 Thread Steffen Moser
Hi! * On Tue, Aug 05, 2003 at 08:05 PM (+0100), Richard Lamont wrote: > I'm trying to set a box up that rate limits everything sent to the > outside world, but not limit stuff to my own LAN, using tbf. > I don't really understand what I'm doing, and I could do with some > help to make this scrip

Re: [LARTC] ensure game server latency

2003-08-14 Thread Andreas Klauer
Am Tuesday 05 August 2003 19:22 schrieb Tom Verbeek: > I am using 3 htb classes from which one is the interactive > game server class - it gets 80% of the upload bandwidth > guaranteed. You need to shape in both directions... so, if you don't guarantee the server some download bandwith, you'll en

Re: [LARTC] any errors in this script?

2003-08-14 Thread Stef Coene
On Thursday 07 August 2003 14:08, Tom Verbeek wrote: > Hi, > > ok, I dropped the idea of using Wondershaper without having background > knowledge and are now trying to set up my own script :) ok :) > my max. upload bandwidth is 192 Kbit/s and my goal is to ensure smooth > gameplay (udp) while allo

[LARTC] Sparc problem

2003-08-14 Thread debritoa
Hi all, i am using iptables (1.2.8) + iproute on Slackware 8.0 (i386) working fine, marking packet based in destination port and network and selecting the appropriate route with this marks (i have two links, a 256Kb frame relay and a 512Kb ADSL). Now i change the machine for a Sun Enterprise 25

[LARTC] How to limit a dev bandwidth.

2003-08-14 Thread anzp
The device is 100M. How to limit it to 1M? ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Re: [LARTC] Luser seeks tc syntax clue

2003-08-14 Thread Richard Lamont
On Tuesday 05 August 2003 23:09, Steffen Moser wrote: > I am not an expert within "tc", so some other user most probably will > correct me... Well, it works! That's expert enough for me. Many, many thanks. In case anyone else wants the corrected script, or wants to suggest improvements, here it

[LARTC] Looking for a good htb traffic shaping script to prioritize incoming traffic

2003-08-14 Thread John M.
I am looking for a good htb traffic shaping script to prioritize incoming traffic over outgoing traffic for my machine. I have a 100mbit line, ftp up, backup data comming in, but whenever mirrors starts grabbing it they use all the traffic and the backup data comming in (the important data) dro

Re: [LARTC] Bandwith sharing in NAT environment.

2003-08-14 Thread Raghuveer
Rajesh wrote: Hi I wish to implement Bandwith sharing in a NAT environment. The question is whether I can classify input packets on the basis of ip-addresses (private LAN addresses)? These packets finally need to be NATed before going on to Internet. Would the tc filters see the private addre

Re: [LARTC] Mixing classifiers

2003-08-14 Thread Marton Sandor
On Wed, 13 Aug 2003, Steffen Moser wrote: > > I tried using under a htb qdisc u32 filter for 1 class , and fw > > classifier for another but i get "RTNETLINK answers: Invalid argument" > > when i wanr ro insert the second type of classifier. > > I don't get any error messages when starting a