From: sergey ivanov <seriv@parkheights.dyndns.org> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] Q: etcnet qos question Date: Wed, 30 Nov 2005 22:10:52 -0500 Message-ID: <438E69BC.2020803@parkheights.dyndns.org> (raw) In-Reply-To: <438C7E4A.4070700@parkheights.dyndns.org> В community@ Michael Shigorin посоветовал мне самому эту проблему решать. Спасибо. Стал я пытаться смотреть внимательнее, и обнаружил, что всё что нужно для правильной фильтрации паетов по маркам, выставленным через iptables " -j MARK --set-mark ... " есть. Однако оказалось, фильтры для qos-htb все должны приклепляться к коревому классу. (См. раздел 9.6 в latrc). После того, как я туда их попытался переместить, service network restart перестал ругаться. Однако работать он не стал, и # tc filter show dev eth0 показывает отсутствие фильтров. Сравнив с работающими iproute-htb, я обнаружил разницу в фильтрах. Работающие выглядят так: --- from /var/cache/htb.init --- ... tc filter add dev comcast parent 1:0 protocol ip prio 200 handle 21 fw classid 1:21 ... а неработающие из etcnet (вставил туда отладочное echo): ... /sbin/tc filter add dev comcast parent 1:1 protocol ip prio 1 handle 21 fw flowid 1:21 Мне кажется что главная разница в том, что для того, чтобы фильтр работал, его parent должен быть типа 1:0 или 1: Я это даже проверил, вколотив в /etc/net/scripts/config-qos " parent 1:0 " вместо $PARENTNODE. Заработало! Однако аккуратно сделать, я думаю, мне слабо. Это сильно менять всю логику обработки и(или) расположения файлов filter надо. -- С уважением, Сергей.
prev parent reply other threads:[~2005-12-01 3:10 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-11-29 16:14 Sergey Ivanov 2005-11-30 15:03 ` sergey ivanov 2005-11-30 15:20 ` Yuriy Kashirin 2005-11-30 15:48 ` sergey ivanov 2005-12-01 3:10 ` sergey ivanov [this message]
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=438E69BC.2020803@parkheights.dyndns.org \ --to=seriv@parkheights.dyndns.org \ --cc=sisyphus@lists.altlinux.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
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