All of lore.kernel.org
 help / color / mirror / Atom feed
From: ulrich.schwarz@rz.uni-ulm.de
To: lartc@vger.kernel.org
Subject: [LARTC] tc bandwidth management doesn't work on one-armed router [scripts]
Date: Thu, 31 Oct 2002 13:08:55 +0000	[thread overview]
Message-ID: <marc-lartc-103606979209345@msgid-missing> (raw)

hello everyone,

as requested, i supply the script that is working two-armed and does not work
one-armed:


------------------------------------------------------------------------------


tc qdisc del dev eth0 root handle 10:

tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate
100mbit allot 1514 maxburst 20 avpkt 1000 prio 1

tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 100Mbit rate
128kbit allot 1514 maxburst 20 avpkt 1000 prio 1 bounded
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15

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

iptables -A OUTPUT -t mangle -p tcp --dport 22 -j TOS --set-tos Minimize-Delay
iptables -A OUTPUT -t mangle -p tcp --dport 80 -j TOS --set-tos Maximize-Throughput
iptables -A OUTPUT -t mangle -p tcp --dport 443 -j TOS --set-tos Maximize-Throughput

iptables -t mangle -A FORWARD -j MARK --set-mark 2


------------------------------------------------------------------------------


this may be also interesting:


# tc -d qdisc
qdisc sfq 8002: dev eth0 quantum 1514b limit 128p flows 128/1024 perturb 15sec 
qdisc cbq 10: dev eth0 rate 100Mbit cell 8b (bounded,isolated) prio
no-transmit/8 weight 100Mbit allot 1514b 
level 2 ewma 5 avpkt 1000b maxidle 1us 


# tc -s qdisc
qdisc sfq 8002: dev eth0 quantum 1514b perturb 15sec 
 Sent 723861 bytes 13389 pkts (dropped 0, overlimits 0) 

 qdisc cbq 10: dev eth0 rate 100Mbit (bounded,isolated) prio no-transmit
 Sent 724767 bytes 13402 pkts (dropped 0, overlimits 11767) 
  borrowed 0 overactions 0 avgidle 62 undertime 0


i hope anybody can help me,

greetings

ulric

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

                 reply	other threads:[~2002-10-31 13:08 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-103606979209345@msgid-missing \
    --to=ulrich.schwarz@rz.uni-ulm.de \
    --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.