All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Tsuladze <gio@ultracom.ge>
To: lartc@vger.kernel.org
Subject: [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps but i can
Date: Fri, 22 Mar 2002 12:56:01 +0000	[thread overview]
Message-ID: <marc-lartc-101680179523346@msgid-missing> (raw)

I have 2 net cards in my router. eth1 and eth0. eth0 is internal eth1 is 
external (connected to internet).

tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
#eht0
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 128kbps ceil 
128kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbps ceil 
128kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 1kbps ceil 
128kbps burst 2k

tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:10
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:11

#eth1
tc qdisc add dev eth1 root handle 1: htb default 10
tc class add dev eth1 parent 1: classid 1:1 htb rate 128kbps ceil 
128kbps burst 2k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 128kbps ceil 
128kbps burst 2k
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 1kbps ceil 
128kbps burst 2k

tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw classid 1:10
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw classid 1:11

#iptables output
iptables -F -t mangle
#staff ips
iptables -A OUTPUT -t mangle -p tcp -d 200.200.200.1 -j MARK --set-mark 1
#priorized ip-s
iptables -A OUTPUT -t mangle -p tcp -d 200.200.200.2 -j MARK --set-mark 2

#iptables prerouting
#staff ip-s
iptables -A PREROUTING -t mangle -s 200.200.200.1  -j MARK --set-mark 3
#priorized ip-s
iptables -A PREROUTING -t mangle -s 200.200.200.2  -j MARK --set-mark 4

this is my skript.

in 128 kbps i can download maxiimum with 15-1, but i am download with 
100 and more. why?



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

             reply	other threads:[~2002-03-22 12:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-22 12:56 George Tsuladze [this message]
2002-03-22 13:59 ` [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps Martin Devera

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-101680179523346@msgid-missing \
    --to=gio@ultracom.ge \
    --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.