ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitry (Mothlike) Marochko" <mothlike@gmail.com>
To: community@altlinux.ru
Subject: [Comm] Re: IP шейпинг
Date: Mon, 16 May 2005 21:21:07 +0400
Message-ID: <4288D683.4000508@gmail.com> (raw)
In-Reply-To: <200505160922.23595.alt@zlt.ru>

[-- 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 --]

  reply	other threads:[~2005-05-16 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-15 16:54 [Comm] " 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 [this message]
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

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=4288D683.4000508@gmail.com \
    --to=mothlike@gmail.com \
    --cc=community@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 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