ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Peter V. Saveliev" <peet@altlinux.ru>
To: "Anatoly A. Ivanov" <anatol@fxp.ru>,
	ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Как проверить, работает ли htb
Date: Sat, 18 Dec 2004 13:19:42 +0300
Message-ID: <200412181319.42250.peet@altlinux.ru> (raw)
In-Reply-To: <787076061.20041218130122@fxp.ru>

On Saturday 18 December 2004 13:01, Anatoly A. Ivanov wrote:
> Здравствуйте, sisyphus.
<skip />
> Подскажите, как запустить сеё чудо с нуля, проверить что он нормально
> запустился и функционирует.
<skip />

Как запустить -- не знаю, а вот функционирование проверить просто. При 
дефолтных настройках будет что-то такое:

[peet@tsl01 peet]$ /sbin/tc qdisc show
qdisc pfifo_fast 0: dev eth0 [Unknown qdisc, optlen=20] 

[peet@tsl01 peet]$ /sbin/tc filter show dev eth0

[peet@tsl01 peet]$ /sbin/tc class show dev eth0


При установленном htb:

~ # tc qdisc show
qdisc pfifo_fast 0: dev eth2 [Unknown qdisc, optlen=20] 
qdisc sfq 8001: dev eth0 limit 128p quantum 1514b perturb 10sec 
qdisc htb 1: dev eth0 r2q 10 default 0 direct_packets_stat 24
      ^^^^^^^
qdisc pfifo_fast 0: dev eth1 [Unknown qdisc, optlen=20] 

~ # tc filter show dev eth0 
filter parent 1: protocol ip pref 16 u32 
filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1 
filter parent 1: protocol ip pref 16 u32 fh 800::800 order 2048 key ht 800 bkt 
0 flowid 1:1 
  match c0a86f34/ffffffff at 16

~ # tc class show dev eth0
class htb 1:1 root leaf 8001: prio 0 rate 10Mbit ceil 10Mbit burst 14704b
      ^^^^^^        cburst 14704b 

в тему, раз уж на то пошло. В дедал ушёл пакет rt-network, посмотрим, как там 
он приживётся, готовлю rt-shell. Как это выглядит там:

8<--------------------------------------------------------------------------
shaper rule test
        address 192.168.111.52
        bound 10Mbit
!
ip shaper ethernet 0
        use rule test
8<--------------------------------------------------------------------------

rush 5# show ip egress 

interface lo:
        no egress installed

interface eth0:
        1:1 (htb) 10Mbit
                ipaddr 192.168.111.52 netmask 255.255.255.255
                 Sent 23682 bytes 215 pkts (dropped 0, overlimits 0) 
                 rate 16bps 
                 lended: 215 borrowed: 0 giants: 0
                 tokens: 9073 ctokens: 9073

-- 
Peter V. Saveliev

  reply	other threads:[~2004-12-18 10:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18 10:01 Anatoly A. Ivanov
2004-12-18 10:19 ` Peter V. Saveliev [this message]
2004-12-18 10:32   ` Anatoly A.Ivanov
2004-12-18 10:37     ` Peter V. Saveliev

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=200412181319.42250.peet@altlinux.ru \
    --to=peet@altlinux.ru \
    --cc=anatol@fxp.ru \
    --cc=sisyphus@altlinux.ru \
    /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

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git