All of lore.kernel.org
 help / color / mirror / Atom feed
From: "hare ram" <hareram@sol.net.in>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Monitoring problem,
Date: Wed, 23 Apr 2003 05:29:39 +0000	[thread overview]
Message-ID: <marc-lartc-105107453428331@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105099580521956@msgid-missing>

Hi
----- Original Message -----
From: "Stef Coene" <stef.coene@docum.org>
To: "hare ram" <hareram@sol.net.in>; <lartc@mailman.ds9a.nl>
Sent: Tuesday, April 22, 2003 8:04 PM
Subject: Re: [LARTC] Monitoring problem,


> On Tuesday 22 April 2003 09:25, hare ram wrote:
> > Hi all
> >
> > i have downloaded monitor_tc.pl, and try to monitor my imq0 Device
> That's from docum.org.

Yes I have downloaded from Docum.org and i have changed from eth0 to imq0

>
> > modprobe imq numdevs=1
> >  tc qdisc add dev imq0 handle 1: root htb default 1
> >
> >  tc class add dev imq0 parent 1: classid 1:1 htb rate 1mbit
> >
> >  tc qdisc add dev imq0 parent 1:1 handle 10: htb default 5
> Adding a htb qdisc to a class is useless and will only add extra delays.
>

Ok i understand now, let me correct it, since let it be delay the proceedure
should work right ?

> >  tc class add dev imq0 parent 10: classid 10:1 htb rate 128kbit burst 3k
> > prio 1
> >  tc class add dev imq0 parent 10: classid 10:2 htb rate 128kbit burst 3k
> > prio 2
> >  tc class add dev imq0 parent 10: classid 10:5 htb rate 1mbit prio 3
> >  tc qdisc add dev imq0 parent 10:1 handle 21:0 sfq
> >  tc qdisc add dev imq0 parent 10:2 handle 22:0 sfq
> >  tc qdisc add dev imq0 parent 10:5 handle 23:0 sfq
> >  tc filter add dev imq0 protocol ip pref 1 parent 10: handle 1 fw
classid
> > 10:1
> >  tc filter add dev imq0 protocol ip pref 2 parent 10: handle 2 fw
classid
> > 10:2
> >  iptables -t mangle -A POSTROUTING  -j IMQ --todev 0
> >  iptables -t mangle -A POSTROUTING  -s $myip -j MARK --set-mark 1
> >  iptables -t mangle -A PREROUTING  -j IMQ --todev 0
> >  iptables -t mangle -A PREROUTING  -d $myip -j MARK --set-mark 1
> >  ip link set imq0 up
> >
> > when i upload  from my laptop to internet the stats looks like below
> >
> > Classid   tokens   ctokens bytes  speed
> > ------------------------------------------
> > 10:2      153600   88149   0      0.000 KB
> > 10:5      -611     -611    49698  16.07 KB
> > 1:1       -910     -910    101334 32.76 KB
> > 10:1      -85783   -151234 51636  16.69 KB
> >
> > 10:2      153600   88149   0      0.000 KB
> > 10:5      16138    16138   55538  17.89 KB
> > 1:1       16138    16138   105934 34.14 KB
> > 10:1      -83019   -148470 50396  16.24 KB
> >
> >
> > when i download from internet to laptop like below
> >
> > Classid   tokens   ctokens bytes  speed
> > ------------------------------------------
> > 10:2      153600   88149   0      0.000 KB
> > 10:5      17888    17888   960    0.310 KB
> > 1:1       -1309    -1309   51968  16.80 KB
> > 10:1      -85219   -150670 51008  16.49 KB
> >
> >
> > in upload i have seen the traffic is going to 10:5 also, why this is
> > happening, is anything script wrong
> If you upload, the packets are entering the box with destination address
the
> ip-address of your box.  I'm not sure when the packet gets demasqued but
when
> this happens AFTER the marking, your packets have not the dst address of
your
> host so they are not marked and they end up in the default class.
>

See while iam uploading to test FTP Server,
i have table which all the packets which is belong to ftp  or any to go to
IMQ Device
and while iam downloading also the same
Please correct if iam wrong



> An other question.  Is this is a test setup to see if imq is working?
>

Yes, i want to make this box with IMQ Device to work, so i can take this to
live Setup

another Question mine or may be iam confused

i have lot of  individual clients, who required up+down=total b/w
so for each customer i need to have different IMQ Device or
all can be used with one IMQ Device , and make some classes  for each IP to
solve the problem

what is the suggestions

> Stef
>
> --
>
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net
>

Thanks
hare

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-04-23  5:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-22  7:37 [LARTC] Monitoring problem, hare ram
2003-04-23  5:29 ` hare ram [this message]
2003-04-23 20:06 ` Stef Coene
2003-04-24  5:47 ` hare ram
2003-04-24 19:15 ` Stef Coene

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105107453428331@msgid-missing \
    --to=hareram@sol.net.in \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.