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
> > 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
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.
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
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
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
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
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.
+--
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
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
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
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
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:
#
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
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
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
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
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
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
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
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.
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
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
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 :
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/
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
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
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
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
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
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
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.
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
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
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
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
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
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
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/
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
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
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
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?!
___
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
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
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
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
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
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/
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
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
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
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
53 matches
Mail list logo