Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 20:01:17 -0300
From:      Rafael Henrique Faria <rafaelhfaria@cenadigital.com.br>
To:        =?ISO-8859-1?Q?Ermal_Lu=E7i?= <eri@freebsd.org>
Cc:        freebsd-net@freebsd.org, freebsd-pf@freebsd.org
Subject:   Re: Unknown Behavior of PF+ALTQ on a Bridge
Message-ID:  <AANLkTiko7D9KXPQCd0AHtn8uZc36x-uYM8bfLXw4I28I@mail.gmail.com>
In-Reply-To: <AANLkTilON4MSb-_cN5WL_g8LmwASjVMVORPVmi08T_O8@mail.gmail.com>
References:  <AANLkTim4F0iJvKfjCWJtAFkwYhOT4J_Yz3sZOiOdRPoj@mail.gmail.com>  <AANLkTimCHZakUfHRUplTGyNMsx3ZFuVo7wLYbRLNseQA@mail.gmail.com>  <AANLkTilMEb29wh-fKSBVqbiBQhLr2SWwWebFWXcc2qHP@mail.gmail.com>  <AANLkTilNGkFzRSrPPzq9zSX4mpjNkewS_-x_N7_DHejn@mail.gmail.com>  <AANLkTilON4MSb-_cN5WL_g8LmwASjVMVORPVmi08T_O8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 24, 2010 at 18:56, Ermal Lu=E7i <eri@freebsd.org> wrote:
> 2010/6/24 Rafael Henrique Faria <rafaelhfaria@cenadigital.com.br>:
>> Just to be more clean:
>>
>> My pf.conf:
>> ----
>> wan_if=3D"bce0"
>>
>> set limit { states 100000, frags 20000 }
>> set loginterface $wan_if
>> set optimization normal
>> set block-policy drop
>> set fingerprints "/etc/pf.os"
>> set skip on lo
>>
>> altq on $wan_if cbq bandwidth 100% queue { out_bal, out_std }
>> =A0 queue out_bal bandwidth 50% priority 0 cbq
>> =A0 queue out_std bandwidth 50% priority 0 cbq (default borrow)
>>
>> pass out on $wan_if queue (out_bal)
>> ----
>>
> The problem is that this rule will not match any traffic that
> initiated as incoming on $wan_if.
>
> Try this instead:
> =A0pass out all queue (out_bal)
>
> It will do the magic.

I tried it... but nothing changes... the same behavior.

queue root_bce0 on bce0 bandwidth 1Gb priority 0 cbq( wrr root )
{out_bal, out_std}
  [ pkts:      76573  bytes:   14784373  dropped pkts:      0 bytes:      0=
 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:  2774.1 packets/s, 4.15Mb/s ]
queue  out_bal on bce0 bandwidth 500Mb priority 0
  [ pkts:      27413  bytes:    8197630  dropped pkts:      0 bytes:      0=
 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:  1040.4 packets/s, 2.34Mb/s ]
queue  out_std on bce0 bandwidth 500Mb priority 0 cbq( borrow default )
  [ pkts:      49160  bytes:    6586743  dropped pkts:      0 bytes:      0=
 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:  1733.7 packets/s, 1.81Mb/s ]

I have tried a lot of rules... including:

pass all queue out_bal

But without success...

If this is not the regular behavior of PF+ALTQ, my suspect is on the
Bridge itself...

>>
>> The "pfctl -vvs queue" show:
>>
>> ----
>> queue root_bce0 on bce0 bandwidth 1Gb priority 0 cbq( wrr root )
>> {out_bal, out_std}
>> =A0[ pkts: =A0 =A0 =A050117 =A0bytes: =A0 13947411 =A0dropped pkts: =A0 =
=A0 =A00 bytes: =A0 =A0 =A00 ]
>> =A0[ qlength: =A0 0/ 50 =A0borrows: =A0 =A0 =A00 =A0suspends: =A0 =A0 =
=A00 ]
>> =A0[ measured: =A03869.4 packets/s, 8.31Mb/s ]
>> queue =A0out_bal on bce0 bandwidth 500Mb priority 0
>> =A0[ pkts: =A0 =A0 =A033198 =A0bytes: =A0 =A07175985 =A0dropped pkts: =
=A0 =A0 =A00 bytes: =A0 =A0 =A00 ]
>> =A0[ qlength: =A0 0/ 50 =A0borrows: =A0 =A0 =A00 =A0suspends: =A0 =A0 =
=A00 ]
>> =A0[ measured: =A02591.3 packets/s, 4.36Mb/s ]
>> queue =A0out_std on bce0 bandwidth 500Mb priority 0 cbq( borrow default =
)
>> =A0[ pkts: =A0 =A0 =A016919 =A0bytes: =A0 =A06771426 =A0dropped pkts: =
=A0 =A0 =A00 bytes: =A0 =A0 =A00 ]
>> =A0[ qlength: =A0 0/ 50 =A0borrows: =A0 =A0 =A00 =A0suspends: =A0 =A0 =
=A00 ]
>> =A0[ measured: =A01278.1 packets/s, 3.95Mb/s ]
>> ----
>>
>> So, my question is: why the default queue is being used, If I have a
>> rule to use the out_bal queue to all outgoing traffic on that
>> interface?
>>
>> I need to redirect all the traffic from a subnet (/24) to one queue
>> (incoming and outgoing traffic)... so what I can understand is that,
>> this is not possible with PF+ALTQ. Am I wrong?
>>
>> --
>> Rafael Henrique da Silva Faria
>> Grupo de Sistemas e Redes
>>
>> Servi=E7o T=E9cnico de Inform=E1tica
>> Faculdade de Ci=EAncias e Letras do Campus de Araraquara - UNESP
>> _______________________________________________
>> freebsd-net@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-net
>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>>
>
>
>
> --
> Ermal
>



--=20
Rafael Henrique da Silva Faria
Grupo de Sistemas e Redes

Servi=E7o T=E9cnico de Inform=E1tica
Faculdade de Ci=EAncias e Letras do Campus de Araraquara - UNESP



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTiko7D9KXPQCd0AHtn8uZc36x-uYM8bfLXw4I28I>