* [Comm] IP шейпинг
@ 2005-05-15 16:54 Dmitry (Mothlike) Marochko
2005-05-15 20:00 ` [Comm] " Dmitry (Mothlike) Marochko
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry (Mothlike) Marochko @ 2005-05-15 16:54 UTC (permalink / raw)
To: ALT Linux Community
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Экспериментировал сегодня с htb, но ничего не добился. Что я делаю
неправильно?
tc qdisc add dev ppp0 root handle 1: htb
tc class add dev ppp0 parent 1: classid 1:1 htb rate 56kbit ceil 56kbit
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 1kbit ceil 1kbit
tc filter add dev ppp0 parent 1: protocol ip prio 3 handle 10 fw classid
1:10
iptables -v -t mangle -A FORWARD -p tcp -j MARK --set-mark 10
По идее, этот скрипт должен ограничивать все tcp соединения до 1 кбита в
секунду, т.е. чтобы они еле работали. Однако на моем модеме разницы в
скорости закачки страниц не заметно, хоть плачь :) Что общественность
думает по этому поводу?
--
With best wishes,
Dmitry Marochko aka Mothlike
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Comm] Re: IP шейпинг
2005-05-15 16:54 [Comm] IP шейпинг Dmitry (Mothlike) Marochko
@ 2005-05-15 20:00 ` Dmitry (Mothlike) Marochko
2005-05-16 3:22 ` max
2005-05-16 12:36 ` Alexey S. Kuznetsov
0 siblings, 2 replies; 9+ messages in thread
From: Dmitry (Mothlike) Marochko @ 2005-05-15 20:00 UTC (permalink / raw)
To: ALT Linux Community
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
Dmitry (Mothlike) Marochko пишет:
>tc qdisc add dev ppp0 root handle 1: htb
>tc class add dev ppp0 parent 1: classid 1:1 htb rate 56kbit ceil 56kbit
>tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 1kbit ceil 1kbit
>tc filter add dev ppp0 parent 1: protocol ip prio 3 handle 10 fw classid
>1:10
>iptables -v -t mangle -A FORWARD -p tcp -j MARK --set-mark 10
>
>
Все, вопрос снимается, я просто плохо себе представлял логику работы
шейпинга. Да и вопрос этот несколько не по теме рассылки, поскольку
непосредственно не связан с ALT Linux :)
--
With best wishes,
Dmitry Marochko aka Mothlike
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Comm] Re: IP шейпинг
2005-05-15 20:00 ` [Comm] " Dmitry (Mothlike) Marochko
@ 2005-05-16 3:22 ` max
2005-05-16 17:21 ` Dmitry (Mothlike) Marochko
2005-05-16 12:36 ` Alexey S. Kuznetsov
1 sibling, 1 reply; 9+ messages in thread
From: max @ 2005-05-16 3:22 UTC (permalink / raw)
To: community
В сообщении от 16 Май 2005 02:00 Dmitry (Mothlike) Marochko написал(a):
> Dmitry (Mothlike) Marochko пишет:
> >tc qdisc add dev ppp0 root handle 1: htb
> >tc class add dev ppp0 parent 1: classid 1:1 htb rate 56kbit ceil 56kbit
> >tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 1kbit ceil 1kbit
> >tc filter add dev ppp0 parent 1: protocol ip prio 3 handle 10 fw classid
> >1:10
> >iptables -v -t mangle -A FORWARD -p tcp -j MARK --set-mark 10
>
> Все, вопрос снимается, я просто плохо себе представлял логику работы
> шейпинга. Да и вопрос этот несколько не по теме рассылки, поскольку
> непосредственно не связан с ALT Linux :)
Хотя бы напиши как правильно должно быть (чтоб работало)
--
MaX
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Comm] Re: IP шейпинг
2005-05-16 3:22 ` max
@ 2005-05-16 17:21 ` Dmitry (Mothlike) Marochko
2005-05-17 8:27 ` Michael Shigorin
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry (Mothlike) Marochko @ 2005-05-16 17:21 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
max пишет:
>>>tc qdisc add dev ppp0 root handle 1: htb
>>>tc class add dev ppp0 parent 1: classid 1:1 htb rate 56kbit ceil 56kbit
>>>tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 1kbit ceil 1kbit
>>>tc filter add dev ppp0 parent 1: protocol ip prio 3 handle 10 fw classid
>>>1:10
>>>iptables -v -t mangle -A FORWARD -p tcp -j MARK --set-mark 10
>>>
>>>
>>Все, вопрос снимается, я просто плохо себе представлял логику работы
>>шейпинга. Да и вопрос этот несколько не по теме рассылки, поскольку
>>непосредственно не связан с ALT Linux :)
>>
>>
>
>Хотя бы напиши как правильно должно быть (чтоб работало)
>
>
http://www.freesource.info/wiki/ZagotovkiStatejj/UpravlenieTrafikom
Буду писать здесь. Но пока там только ссылки на пару статей, по которым
я пытался фтыкать в это дело :)
Скажу только, что пример, приведенный выше, вполне работоспособен, но он
ограничивает *исходящий* трафик. Что и правильно - управлять очередью
пакетов входящих мы можем лишь косвенно, поскольку эта очередь находится
на сервере провайдера. Однако для tcp пакетов мы можем умышленно терять
часть их, освобождая канал для пактов, имеющих более высокий приоритет.
Особенно актуально это для интерактивных сервисов вроде VoIP или игровых
серверов :)
--
With best wishes,
Dmitry Marochko aka Mothlike
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Comm] Re: IP шейпинг
2005-05-15 20:00 ` [Comm] " Dmitry (Mothlike) Marochko
2005-05-16 3:22 ` max
@ 2005-05-16 12:36 ` Alexey S. Kuznetsov
2005-05-16 3:36 ` Mike Lykov
1 sibling, 1 reply; 9+ messages in thread
From: Alexey S. Kuznetsov @ 2005-05-16 12:36 UTC (permalink / raw)
To: Dmitry (Mothlike) Marochko
Hello!
Sunday, May 15, 2005, 1:00:57 PM, you wrote:
> Dmitry (Mothlike) Marochko пишет:
>>tc qdisc add dev ppp0 root handle 1: htb
>>tc class add dev ppp0 parent 1: classid 1:1 htb rate 56kbit ceil 56kbit
>>tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 1kbit ceil 1kbit
>>tc filter add dev ppp0 parent 1: protocol ip prio 3 handle 10 fw classid
>>1:10
>>iptables -v -t mangle -A FORWARD -p tcp -j MARK --set-mark 10
>>
>>
> Все, вопрос снимается, я просто плохо себе представлял логику работы
> шейпинга. Да и вопрос этот несколько не по теме рассылки, поскольку
> непосредственно не связан с ALT Linux :)
да?...ну тогда и postfix - это не по теме ))))
--
Sincerely,
Alexey S. Kuznetsov
AK2351-RIPE
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-05-17 16:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-15 16:54 [Comm] IP шейпинг Dmitry (Mothlike) Marochko
2005-05-15 20:00 ` [Comm] " Dmitry (Mothlike) Marochko
2005-05-16 3:22 ` max
2005-05-16 17:21 ` Dmitry (Mothlike) Marochko
2005-05-17 8:27 ` Michael Shigorin
2005-05-17 16:25 ` Dmitry (Mothlike) Marochko
2005-05-17 16:36 ` Maxim Tyurin
2005-05-16 12:36 ` Alexey S. Kuznetsov
2005-05-16 3:36 ` Mike Lykov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git