All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chincogan Network Services Lists <lists@chincogan.net.au>
To: lartc@vger.kernel.org
Subject: [LARTC] Traffic problems on HTB Router.
Date: Wed, 05 Mar 2003 01:12:13 +0000	[thread overview]
Message-ID: <marc-lartc-104682673324201@msgid-missing> (raw)

Hi all,
Sorry for the long post, and bad ascii art...

I have been using HTB for about 6 or so months without problems, but I have recently set it up on a separate network and am having a few issues.

Network Setup.

                    B
                   /
Internet ------ A /--- C
                  \
                   \
                    D

A is my internet router running kernel 2.4.20 with HTB
eth0 = 202.162.100.201/30, eth1 = 192.168.0.1/24

B, eth0 = 192.168.0.2/24
C, eth0 = 192.168.0.32/24
D, eth0 = 192.168.0.33/24
are hosts hanging off my network.

in my HTB setup I have the following classes.
tc qdisc add dev eth0 root handle 1: htb default 2
tc class add dev eth0 parent 1: classid 1:1 htb rate 10240kbit ceil 10240kbit
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 4kbit ceil 4kbit
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 4kbit ceil 10240kbit
tc class add dev eth0 parent 1:1 classid 1:4 htb rate 4kbit ceil 64kbit
tc qdisc add dev eth1 root handle 1: htb default 2
tc class add dev eth1 parent 1: classid 1:1 htb rate 10240kbit ceil 10240kbit
tc class add dev eth1 parent 1:1 classid 1:2 htb rate 4kbit ceil 4kbit
tc class add dev eth1 parent 1:1 classid 1:3 htb rate 4kbit ceil 10240kbit
tc class add dev eth1 parent 1:1 classid 1:4 htb rate 4kbit ceil 64kbit

..and filters.
tc filter add dev eth0 protocol ip parent 1: prio 1 handle 3 fw flowid 1:3
tc filter add dev eth0 protocol ip parent 1: prio 1 handle 4 fw flowid 1:4
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 3 fw flowid 1:3
tc filter add dev eth1 protocol ip parent 1: prio 1 handle 4 fw flowid 1:4

....and netfilter entries.
iptables -A PREROUTING -t mangle -s 192.168.0.1 -j MARK --set-mark 3
iptables -A PREROUTING -t mangle -s 192.168.0.2 -j MARK --set-mark 3
iptables -A PREROUTING -t mangle -s 202.162.100.201 -j MARK --set-mark 3
iptables -A PREROUTING -t mangle -s 192.168.0.32/28 -j MARK --set-mark 4

From the internet Hosts C and D get their 64k fine which is correct.
Host B gets his 10mbit which is correct, but....
Host A only gets the default rate, I have tested this by changing the default rate and the speed gets faster and slower etc.
A should be in the 10mbit class with host B.

So my question is how do I put host A in class 1:3 with host B, I thought by setting mark 3 on packets from its IP it would?

Thanks for your help,
Aaron Daniels
Chincogan Network Services
http://www.chincogan.net.au/

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

                 reply	other threads:[~2003-03-05  1:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-104682673324201@msgid-missing \
    --to=lists@chincogan.net.au \
    --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.