[linux] squid tos a tc

M.F. PSIkappa psi na talker.sk
Sobota Prosinec 6 11:37:35 CET 2003


Zdravim,
hmm, myslim si ze ten popis je dostatocny, ale co uz, radsej to napisem
obsiahlejsie:

acl special_service_net src 10.0.0.0/255.255.255.0
tcp_outgoing_priority 10:100 special_service_net

Je normalna direktiva squid-a:
acl aclname acltype string1
cize
- special_service_net je len nazov acl-ka, kludne tam moze byt napisane
aj haluz alebo nieco podobne...
- src je typ acl-ka, cize budeme sa pozerat po zdrojovej adrese
- 10.0.0.0/255.255.255.0 je siet ktoru matchujeme

Teraz rozparsujem ten druhy riadok:
tcp_outgoing_priority 10:100 special_service_net
tcp_outgoing_priority - je nove klucove slovo v konfiguraku squida
10:100 je trieda v tc kam sa budu radit matchnute packety
special_service_net je nazov acl-ka, ktore urcuje co sa nam matchuje.

Aby si mal jasno v tych klucovych slovach, tak sa to da prepisat aj takto:
acl haluz src 10.0.0.0/255.255.255.0
tcp_outgoing_priority 10:100 haluz

Inak priamo ten diff obsahuje dokumentaciu:
NAME: tcp_outgoing_priority
TYPE: acl_priority
DEFAULT: none
LOC: Config.accessList.outgoing_priority
DOC_START
	Allows you to select the priority of the outgoing connection,
	based on the username or source address making the request. The
	priority can be used by Linux QoS Qdiscs for classification.

	tcp_outgoing_priority priority [!]aclname ...

	Example where requests from special_service_net are assigned
	priority 10:100

	acl special_service_net src 10.0.0.0/255.255.255.0
	tcp_outgoing_priority 10:100 special_service_net

	Processing proceeds in the order specified, and stops at first
        fully matching line.
DOC_END

Odporucam este precitat si:
http://squid.visolve.com/squid24s1/access_controls.htm#acl

On Fri, 5 Dec 2003, miro wrote:

> Hello M.F.,
>
>  vizera to dobre, len ten popis ktomu je volaky velmi biedny. nie je
>  daco k tomu niekde viac?
>
>  lebo s tohoto sa fakt nevyznam
>
> ----------------------------------------------------------------------------
> Requests from special_service_net are assigned to class 10:100. No filters
> need to be set up.
>
> acl special_service_net src 10.0.0.0/255.255.255.0
> tcp_outgoing_priority 10:100 special_service_net
> ----------------------------------------------------------------------------
>
>  co je to special_service_net. daky lepsi popis nie je?
>
> Friday, December 5, 2003, 2:24:37 AM, you wrote:
>
> MFP> Zdravim,
> MFP> nasiel si si zly patch na squida...
>
> MFP> Odporucam tento patch:
> MFP> http://www.trash.net/~kaber/squid-qos/
>
> MFP> Este na vysvetlenie k tomu squidovi, normalne sa squid sprava tak, ze
> MFP> object, ktory ma v cache posiela plnou rychlostou k ziadatelovi a object,
> MFP> ktory nema v cache stahuje bud rychlostou siete alebo ktorou mu to
> MFP> delay-pools dovolia...

--
`)_|_('       PSIkappa
   I k        psi _at_ talker.sk




Další informace o konferenci linux