I don't see anything wrong here, perhaps tired eyes. If you run PPPoE and the DSL line then is ATM AAL5 with LLC/SNAP encapsulation altq isn't going to be very effective in cases where you have lots of ACKs going up stream.
When altq sees an ACK it calculates 40 bytes, but that ACK is 106 bytes (2 ATM cells) on your DSL line. I modified the token bucket regulator in the kernel to adjust to what actually happens on the DSL line and after that the shaper worked as expected. I was planning to implement it properly so one could configure it from pf.conf with some option like "tbradapt PPPoE-ATM-AAL5-LLCSNAP" per queue so I could support other type of links also, but I can never find the time to actually do it. Time to try to get the kids to sleep. /Tony On 08/10/06, S t i n g r a y <[EMAIL PROTECTED]> wrote: > > Well its PPPoE over DSL here .. > > also i ran the command "pfctl -vvsq" & got the following result , can you > tell me what wrong ? looks fishy > > bash-3.1# pfctl -vvsq > queue root_fxp0 bandwidth 500Kb priority 0 cbq( wrr root ) {www, msn, > https, def, smtp} > [ pkts: 7735 bytes: 1320956 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > queue www bandwidth 150Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > queue msn bandwidth 75Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > queue https bandwidth 125Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > queue def bandwidth 125Kb cbq( red borrow default ) > [ pkts: 7735 bytes: 1320956 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 2229 suspends: 0 ] > queue smtp bandwidth 25Kb > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > > queue root_fxp0 bandwidth 500Kb priority 0 cbq( wrr root ) {www, msn, > https, def, smtp} > [ pkts: 8105 bytes: 1381772 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 74.0 packets/s, 97.31Kb/s ] > queue www bandwidth 150Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue msn bandwidth 75Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue https bandwidth 125Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue def bandwidth 125Kb cbq( red borrow default ) > [ pkts: 8105 bytes: 1381772 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 2296 suspends: 0 ] > [ measured: 74.0 packets/s, 97.31Kb/s ] > queue smtp bandwidth 25Kb > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > > queue root_fxp0 bandwidth 500Kb priority 0 cbq( wrr root ) {www, msn, > https, def, smtp} > [ pkts: 8496 bytes: 1444388 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 76.1 packets/s, 98.75Kb/s ] > queue www bandwidth 150Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue msn bandwidth 75Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue https bandwidth 125Kb cbq( red borrow ) > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > queue def bandwidth 125Kb cbq( red borrow default ) > [ pkts: 8496 bytes: 1444388 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 2384 suspends: 0 ] > [ measured: 76.1 packets/s, 98.75Kb/s ] > queue smtp bandwidth 25Kb > [ pkts: 0 bytes: 0 dropped pkts: 0 > bytes: 0 ] > [ qlength: 0/ 50 borrows: 0 suspends: 0 ] > [ measured: 0.0 packets/s, 0 b/s ] > > > > > *:$., 88,.$:*(((*$ Stingray *:$., 88,.$:*((*$ > > > > > ----- Original Message ---- > From: tony sarendal <[EMAIL PROTECTED]> > To: misc@openbsd.org > Sent: Sunday, October 8, 2006 5:14:39 PM > Subject: Re: Problems with traffic shaping > > On 07/10/06, S t i n g r a y <[EMAIL PROTECTED]> wrote: > > > > it is asymmetric > > > What bandwidth have you configured the shaper for ? > Some technologies like PPPoA or PPPoE over DSL will give you > an overhead of 165% for empty ACKs, meaning that your shaper > wont kick in since it doesn't consider the line to be full even > if it in reality is getting cained. > > Since I'm stuck with PPP over DSL I have to modify the token > bucket regulator for the shaping to work well. > > -- > Tony Sarendal - [EMAIL PROTECTED] > IP/Unix > -= The scorpion replied, > "I couldn't help it, it's my nature" =- > > > > > > > -- Tony Sarendal - [EMAIL PROTECTED] IP/Unix -= The scorpion replied, "I couldn't help it, it's my nature" =-