Netzwerkpipe und meine Topo
Pierre Bernhardt
pierre at starcumulus.owl.de
Mon May 5 19:26:01 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richtung der Paketet ppp0 aka dsl ------> eth0 aka rtl8139
~ +----------------------------------------+
~ | root-Class eth0 mit default auf Reste | rate/ceil in k
- -dsl-768/ | |
~ 128FDX--ppp0-| +-------------------------------------+
~ | | parent Class eth0 Kanal def. Prio 7 | Alles nicht
~ | | 10/10 | markierte
~ | +-------------------------------------+
~ | | parent-Class eth0 Working 700/768 | Das markierte
~ | | +----------------------------------+
~ | | | Kanal_1 "ASAP"= Prio0 70/700 | ICMP
~ | | +----------------------------------+
~ | | | Kanal_2 "Fast"= Prio1 280/700 | CS-UDP, ssh,
~ | | +----------------------------------+ telnet.
~ | | | Kanal_3 "Norm"= Prio2 350/700 | www, ftp, smtp,
~ | | +----------------------------------+ ...
~ | | | Kanal_4 "Slow"= Prio3 70/700 | Vieleicht esel
~ | | +----------------------------------+
~ | | | Kanal_5 "Rest"= Prio4 30/700 | Hier kommt der
~ +--+--+----------------------------------+ Kram rein,
~ der udp, tcp ist, aber nicht in 1-4 passt.
Das ganze habe ich analog in die andere Richtung gemacht.
Richtung der Paketet ppp0 aka dsl <------ eth0 aka rtl8139
~ +----------------------------------------+
~ | root-Class ppp0 mit default auf Reste | rate/ceil in k
- -dsl-768/ | |
~ 128FDX--ppp0-| +-------------------------------------+
~ | | parent Class ppp0 Kanal def. Prio 7 | Alles nicht
~ | | 10/10 | markierte
~ | +-------------------------------------+
~ | | parent-Class eth0 Working 110/128 | Das markierte
~ | | +----------------------------------+
~ | | | Kanal_1 "ASAP"= Prio0 10/110 | ICMP
~ | | +----------------------------------+
~ | | | Kanal_2 "Fast"= Prio1 40/110 | CS-UDP, ssh,
~ | | +----------------------------------+ telnet.
~ | | | Kanal_3 "Norm"= Prio2 50/110 | www, ftp, smtp,
~ | | +----------------------------------+ ...
~ | | | Kanal_4 "Slow"= Prio3 10/110 | Vieleicht esel
~ | | +----------------------------------+
~ | | | Kanal_5 "Rest"= Prio4 30/700 | Hier kommt der
~ +--+--+----------------------------------+ Kram rein,
~ der udp, tcp ist, aber nicht in 1-4 passt.
Noch was unklar an den Regeln? ich gebe gerne auch die Ausgabe
meiner Regeln derzeit:
no42:~ # tc -s -d qdisc show dev eth0
qdisc htb 1: r2q 10 default 1111 direct_packets_stat 0 ver 3.7
~ Sent 27261606 bytes 337697 pkts (dropped 0, overlimits 60462)
no42:~ # tc -s class show dev eth0
class htb 1:1111 root prio 7 rate 50Kbit ceil 50Kbit burst 1563b cburst 1563b
~ Sent 22120098 bytes 329628 pkts (dropped 0, overlimits 0)
~ rate 206bps 1pps
~ lended: 329628 borrowed: 0 giants: 0
~ tokens: 187904 ctokens: 187904
class htb 1:51 root rate 700Kbit ceil 768Kbit burst 2395b cburst 2482b
~ Sent 5143846 bytes 8088 pkts (dropped 0, overlimits 0)
~ rate 1161bps
~ lended: 1140 borrowed: 0 giants: 0
~ tokens: 21468 ctokens: 20292
class htb 1:510 parent 1:51 prio 0 rate 70Kbit ceil 700Kbit burst 1688b cburst 2
495b
~ Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
~ lended: 0 borrowed: 0 giants: 0
~ tokens: 154422 ctokens: 22820
class htb 1:511 parent 1:51 prio 1 rate 280Kbit ceil 700Kbit burst 1957b cburst
2495b
~ Sent 26517 bytes 107 pkts (dropped 0, overlimits 0)
~ lended: 107 borrowed: 0 giants: 0
~ tokens: 43291 ctokens: 22236
class htb 1:512 parent 1:51 prio 2 rate 350Kbit ceil 700Kbit burst 2Kb cburst 24
95b
~ Sent 5026892 bytes 7370 pkts (dropped 0, overlimits 0)
~ rate 1161bps
~ lended: 6230 borrowed: 1140 giants: 0
~ tokens: 36571 ctokens: 22382
class htb 1:513 parent 1:51 prio 3 rate 70Kbit ceil 700Kbit burst 1688b cburst 2
495b
~ Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
~ lended: 0 borrowed: 0 giants: 0
~ tokens: 154422 ctokens: 22820
class htb 1:519 parent 1:51 prio 4 rate 30Kbit ceil 700Kbit burst 1637b cburst 2
495b
~ Sent 90437 bytes 611 pkts (dropped 0, overlimits 0)
~ lended: 611 borrowed: 0 giants: 0
~ tokens: 284587 ctokens: 20042
no42:~ # tc -s -d qdisc show dev ppp0
qdisc htb 1: r2q 10 default 5555 direct_packets_stat 0 ver 3.7
~ Sent 3609797 bytes 7697 pkts (dropped 173, overlimits 3887)
no42:~ # tc -s class show dev ppp0
class htb 1:5555 root prio 7 rate 10Kbit ceil 10Kbit burst 1503b cburst 1503b
~ Sent 2448 bytes 32 pkts (dropped 0, overlimits 0)
~ lended: 32 borrowed: 0 giants: 0
~ tokens: 947200 ctokens: 947200
class htb 1:15 root rate 110Kbit ceil 128Kbit burst 1631b cburst 1654b
~ Sent 3607349 bytes 7665 pkts (dropped 0, overlimits 0)
~ lended: 1322 borrowed: 0 giants: 0
~ tokens: 90300 ctokens: 78751
class htb 1:150 parent 1:15 prio 0 rate 10Kbit ceil 110Kbit burst 1611b cburst 1
739b
~ Sent 550 bytes 7 pkts (dropped 0, overlimits 0)
~ lended: 7 borrowed: 0 giants: 0
~ tokens: 965120 ctokens: 95185
class htb 1:151 parent 1:15 prio 1 rate 40Kbit ceil 110Kbit burst 1650b cburst 1
739b
~ Sent 11910 bytes 150 pkts (dropped 0, overlimits 0)
~ lended: 150 borrowed: 0 giants: 0
~ tokens: 256479 ctokens: 98443
class htb 1:152 parent 1:15 prio 2 rate 50Kbit ceil 110Kbit burst 1663b cburst 1
739b
~ Sent 3544438 bytes 6498 pkts (dropped 173, overlimits 0)
~ lended: 5176 borrowed: 1322 giants: 0
~ tokens: 202751 ctokens: 96583
class htb 1:153 parent 1:15 prio 3 rate 10Kbit ceil 110Kbit burst 1611b cburst 1
739b
~ Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
~ lended: 0 borrowed: 0 giants: 0
~ tokens: 1031680 ctokens: 101235
class htb 1:159 parent 1:15 prio 4 rate 10Kbit ceil 110Kbit burst 1611b cburst 1
739b
~ Sent 50451 bytes 1010 pkts (dropped 0, overlimits 0)
~ lended: 1010 borrowed: 0 giants: 0
~ tokens: 929280 ctokens: 91927
Ist noch nicht perfekt abgestimmt, aber das kommt noch.
Und eigendlich wollte ich das gar nicht so gross ausdiskutieren. Wollte nur
wissen, ob man eine Netzwerkqueue bauen kann :-/
MfG...
Pierre Bernhardt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+tp1QuOJP+ESj7AoRAgNeAJ9ma7SEGmfws7TE+Ng0MxGmzdZ2YgCeKRY0
grWiiaQj0r+AZMqXnq9emmo=
=cbjj
-----END PGP SIGNATURE-----
More information about the Linux
mailing list