[FUGSPBR] Dúvida Limitacao de Banda

Marcelo Soares ds Costa mscosta em bn.br
Qui Nov 4 11:47:32 BRST 2004


Manual ....
http://www.freebsd.org/cgi/man.cgi?query=ipfw&sektion=8

TRAFFIC SHAPER (DUMMYNET) CONFIGURATION
     ipfw is also the user interface for the dummynet(4) traffic shaper.

     dummynet operates by first using the firewall to classify packets and
     divide them into flows, using any match pattern that can be used in ipfw
     rules.  Depending on local policies, a flow can contain packets for a
     single TCP connection, or from/to a given host, or entire subnet, or a
     protocol type, etc.

     Packets belonging to the same flow are then passed to either of two dif-
     ferent objects, which implement the traffic regulation:

	 pipe	 A pipe emulates a link with given bandwidth, propagation
		 delay, queue size and packet loss rate.  Packets are queued
		 in front of the pipe as they come out from the classifier,
		 and then transferred to the pipe according to the pipe's
		 parameters.

	 queue	 A queue is an abstraction used to implement the WF2Q+ (Worst-
		 case Fair Weighted Fair Queueing) policy, which is an effi-
		 cient variant of the WFQ policy.
		 The queue associates a weight and a reference pipe to each
		 flow, and then all backlogged (i.e., with packets queued)
		 flows linked to the same pipe share the pipe's bandwidth pro-
		 portionally to their weights.	Note that weights are not pri-
		 orities; a flow with a lower weight is still guaranteed to
		 get its fraction of the bandwidth even if a flow with a
		 higher weight is permanently backlogged.

Marcelo

On Thu, 2004-11-04 at 11:01, Christopher Giese  wrote:
> ok
> 
> agora vou fazer uma bergunta para a lista toda
> 
> tem uma coisa que soh consegui ate hoje fazer com ALTQ e com dummynet 
> nao consegui...... mas quem sabe algum iluminado ai da lista saiba como 
> fazer
> 
> por exemplo....... seto 512k para a faixa 192.168.1.0/24
> 
> tudo bem... o dummynet entrega certinho os 512..... porem ele nao divide 
> de forma UNIFORME os 512 entre os micros desta faixa
> ou seja... se o ip 192.168.1.1 iniciar um kazaa por exemplo... ele come 
> quase toda a banda e deixa o resto da rede /24 a ver navios....
> 
> com altq (wfq por exemplo) consigo fazer com que seja UNIFORME...... 
> tipow.... 512 se soh 1 estiver usando..... 256/256 se 2 ips estiver 
> usando e assim por diante
> 
> em dummynet... alguem ja descobriu como fazer isto ???
> 
> Grato
> 
> 
> William Armstrong escreveu:
> 
> >nao é  ao  contrario ele  se refere  ao  HOST   e não a  mascara da
> >sub-rede veja
> >
> >o sentido  é  totalmente ao contrario ele se refere somente ao HOST 
> >
> >
> >rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> >        options=8<VLAN_MTU>
> >        inet6 fe80::2c0:dfff:fe04:394%rl0 prefixlen 64 scopeid 0x1
> >        inet 192.168.1.230 netmask 0xffffff00 broadcast 192.168.1.255
> >        ether 00:c0:df:04:03:94
> >        media: Ethernet autoselect (100baseTX <full-duplex>)
> >        status: active
> >
> >crie a regra e deixe rodar por uns  momentos  depois de um 
> >
> >ipfw pipe sh
> >
> >vc ira ver  somente  o HOST 0.0.0.56 ou 0.0.0.XXX nas regras  pois  é
> >a isso que ele esta se referindo para criar as regras.
> >
> >
> >  
> >
> 
> _______________________________________________________________
> Para enviar um novo email para a lista: fugspbr em fugspbr.org
> Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
> 

_______________________________________________________________
Para enviar um novo email para a lista: fugspbr em fugspbr.org
Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd