From: Mario Giammarco <mgiammarco@supereva.it>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] priority bands don't reduce interactive latency?
Date: Sat, 16 Feb 2002 12:47:39 +0000 [thread overview]
Message-ID: <marc-lartc-101386368505844@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216950@msgid-missing>
Il ven, 2002-02-15 alle 19:27, Martin Devera ha scritto:
> post your conf. hard to say without it ..
Ok if I can, this is my conf:
#USCITA DA PPP0
#classe root
echo ppp0 classe root
tc qdisc $1 dev ppp0 root handle 1: prio
#sottoclassi
echo sottoclassi
#tc qdisc $1 dev ppp0 parent 1:1 handle 10: sfq
#tc qdisc $1 dev ppp0 parent 1:2 handle 20: tbf rate 20kbit buffer 1600 limit 3000
#tc qdisc $1 dev ppp0 parent 1:2 handle 20: sfq
#tc qdisc $1 dev ppp0 parent 1:3 handle 30: sfq
tc qdisc $1 dev ppp0 parent 1:1 handle 10: red min 200 max 400 avpkt 50 \
burst 10 limit 600
tc qdisc $1 dev ppp0 parent 1:2 handle 20: red min 300 max 400 avpkt 150 \
burst 10 limit 700
tc qdisc $1 dev ppp0 parent 1:3 handle 30: red min 1500 max 8000 avpkt 250 \
burst 10 limit 20000
# filtri
echo filtro ssh
# ssh
tc filter add dev ppp0 parent 1:0 protocol ip prio 11 u32 \
match ip tos 0x10 0xff classid 1:2
echo filtro icmp
# icmp
tc filter add dev ppp0 parent 1:0 protocol ip prio 12 u32 \
match ip protocol 1 0xff classid 1:2
echo filtro ack
# ack
tc filter add dev ppp0 parent 1: protocol ip prio 10 u32 \
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u8 0x34 0xff at 3 \
match u8 0x10 0xff at 33 \
classid 1:1
echo filtro resto
# resto
tc filter add dev ppp0 parent 1: protocol ip prio 14 u32 \
match ip dst 0.0.0.0/0 classid 1:3
echo filtro udp
# udp
iptables -A OUTPUT -t mangle -p udp -j MARK --set-mark 2
tc filter add dev ppp0 parent 1: protocol ip prio 13 handle 2 fw \
classid 1:2
#ENTRATA DA ETH0
echo eth0 classe root
#classe root
tc qdisc $1 dev eth0 root handle 1: htb default 13
tc class $1 dev eth0 parent 1: classid 1:1 htb rate 51kbit \
ceil 52kbit burst 3k
echo sottoclassi
#sottoclassi
tc class $1 dev eth0 parent 1:1 classid 1:10 htb rate 4kbit burst 1k \
prio 1 ceil 50kbit
tc class $1 dev eth0 parent 1:1 classid 1:11 htb rate 25kbit burst 3k \
prio 2 ceil 50kbit
tc class $1 dev eth0 parent 1:1 classid 1:12 htb rate 7kbit burst 2k \
prio 3 ceil 50kbit
tc class $1 dev eth0 parent 1:1 classid 1:13 htb rate 4kbit burst 1k \
prio 4 ceil 50kbit
#tc qdisc $1 dev eth0 parent 1:10 handle 10: sfq
#tc qdisc $1 dev eth0 parent 1:11 handle 20: sfq
#tc qdisc $1 dev eth0 parent 1:12 handle 30: sfq
#tc qdisc $1 dev eth0 parent 1:13 handle 40: sfq
tc qdisc $1 dev eth0 parent 1:10 handle 10: red min 200 max 400 avpkt 50 \
burst 10 limit 600
tc qdisc $1 dev eth0 parent 1:11 handle 20: red min 300 max 1500 avpkt 150 \
burst 10 limit 700
tc qdisc $1 dev eth0 parent 1:12 handle 30: red min 1500 max 8000 avpkt 250 \
burst 20 limit 20000
tc qdisc $1 dev eth0 parent 1:13 handle 40: red min 1500 max 8000 avpkt 250 \
burst 10 limit 20000
# filtri
echo ssh
# ssh
tc filter add dev eth0 parent 1: protocol ip prio 10 u32 \
match ip tos 0x10 0xff classid 1:11
echo icmp
# icmp
tc filter add dev eth0 parent 1: protocol ip prio 11 u32 \
match ip protocol 1 0xff classid 1:11
echo ack
# ack
tc filter add dev eth0 parent 1: protocol ip prio 13 u32 \
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u8 0x34 0xff at 3 \
match u8 0x10 0xff at 33 \
classid 1:10
echo resto
# resto
tc filter add dev eth0 parent 1: protocol ip prio 15 u32 \
match ip dst 0.0.0.0/0 classid 1:13
echo www
# www
iptables -A PREROUTING -t mangle -p tcp --dport 8080 \
-j MARK --set-mark 1
iptables -A PREROUTING -t mangle -p tcp --sport 8080 \
-j MARK --set-mark 1
iptables -A PREROUTING -t mangle -p tcp --dport 80 \
-j MARK --set-mark 1
iptables -A PREROUTING -t mangle -p tcp --sport 80 \
-j MARK --set-mark 1
tc filter add dev eth0 parent 1: protocol ip prio 14 handle 1 fw \
classid 1:12
echo udp
# udp
iptables -A PREROUTING -t mangle -p udp -j MARK --set-mark 2
tc filter add dev eth0 parent 1: protocol ip prio 12 handle 2 fw \
classid 1:11
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
next prev parent reply other threads:[~2002-02-16 12:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-18 6:15 [LARTC] priority bands don't reduce interactive latency? Dan
2002-02-15 18:23 ` Mario Giammarco
2002-02-15 18:27 ` Martin Devera
2002-02-16 12:47 ` Mario Giammarco [this message]
2002-02-16 16:13 ` Ross Skaliotis
2002-02-16 19:26 ` Martin Devera
2002-02-18 8:34 ` Mario Giammarco
2002-02-18 10:00 ` Martin Devera
2002-02-21 15:03 ` Mario Giammarco
2002-02-22 9:38 ` 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-101386368505844@msgid-missing \
--to=mgiammarco@supereva.it \
--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.