QoS

Post Reply
Message
Author
oliver

QoS

#1 Post by oliver »

hab folgendes problem... bin in eine wg gezogen und wir wollten jetzt das dsl so einrichten das jeder beschraenkt saugen/uploaden kann, also dachte ich mir schaust dir mal das QoS an... soweit so gut, hab das ganze ein wenig studiert und ein script fertig gestellt. er nimmts auch ohne fehler etc. an, aber funzen tut es nicht wirklich. ich danke im vorraus ;)

iptables -t mangle -A PREROUTING -i ppp0 -j MARK --set-mark 9

#letz QoS ;)
tc qdisc add dev eth1 root handle 1: htb default 1
tc class add dev eth1 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps burst 2k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 128kbit burst 5k ceil 64kbit prio 6 #ich ;D
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 128kbit burst 5k ceil 64kbit prio 5 #michi
tc class add dev eth1 parent 1:1 classid 1:30 htb rate 128kbit burst 5k ceil 64kbit prio 5 #roland
tc class add dev eth1 parent 1:1 classid 1:40 htb rate 128kbit burst 5k ceil 64kbit prio 5 #sydney
tc class add dev eth1 parent 1:1 classid 1:50 htb rate 128kbit burst 5k ceil 64kbit prio 5 #christian
tc class add dev eth1 parent 1:1 classid 1:60 htb rate 128kbit burst 5k ceil 64kbit prio 5 #martin

# fair queue QoS
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10
tc qdisc add dev eth1 parent 1:40 handle 40: sfq perturb 10
tc qdisc add dev eth1 parent 1:50 handle 50: sfq perturb 10
tc qdisc add dev eth1 parent 1:60 handle 60: sfq perturb 10

tc filter add dev eth1 protocol ip parent 1: prio 1 handle 9 fw flowid 1:1
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.104 flowid 1:10
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.101 flowid 1:20
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.100 flowid 1:30
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.107 flowid 1:40
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.109 flowid 1:50
tc filter add dev eth1 protocol ip parent 1:1 prio 1 u32 match ip dst 172.16.103.102 flowid 1:60

Manuel

Re: QoS

#2 Post by Manuel »

Sorry, aber mit ner lösung komm ich jetzt nicht.
aber ich suche schon lange brauchbare infos zu QoS unter linux...
hättest du da ein paar quellen für mich?

Danke im Vorraus
Manuel

oliver

Re: QoS

#3 Post by oliver »

hmm naja, kommt drauf an
also es gibt schon ein paar tools fuer manche algorithmen
aber sonst; RTFM - hoert sich hart an, is aber so
wirklich nuetzliches habe ich nicht gefunden, bis eben die manpages der leute die an sowas develn

oliver

Dominik

Re: QoS

#4 Post by Dominik »

Für den Anfang ist http://www.knowplace.org/shaper/index.html ganz gut.

Leider habe ich die anderen Links, die ich habe, nicht zur Hand.

mfg

Dominik

Post Reply