All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Not proved, fw classifier ?
@ 2001-04-26 23:50 johan
  2001-04-27  6:28 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: johan @ 2001-04-26 23:50 UTC (permalink / raw)
  To: lartc

I had tried this
#iptables -t mangle -A PREROUTING -p tcp --sport 20 -j MARK --set-mark 1

#tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell
8

#tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000

#tc class add dev eth0 parent 1:1 classid 1:1234 cbq bandwidth 10Mbit rate
128Kbit weight 12Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
bounded isolated

#tc qdisc add dev eth0 parent 1:1234 tbf rate 128Kbit buffer 10Kb/8 limit
15Kb mtu 1500

#tc filter add dev eth0 parent 1:0 proto ip handle 1 fw classid 1:1234

And, we tested with ftp, we didn't get result that I would expected.

any suggest ?
let me know your example for fw classifier ....

Best Regards

Johan

-- 
             -\x1e'-      
             (o o)     
---------ooO--(_)--Ooo-------------------------------------------------
  (  )/  \( )( ) (  ) ( \( )      Visit us at http://www.pinguind.co.id
 __)(( () ))__(  /__\  )  (   Feel free to contact me at ICQ  #47240718       
(___/ \__/(_)(_)(_)(_)(_)\_)                 email:johan@pinguind.co.id          
-----------------------------------------------------------------------

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Not proved, fw classifier ?
  2001-04-26 23:50 [LARTC] Not proved, fw classifier ? johan
@ 2001-04-27  6:28 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2001-04-27  6:28 UTC (permalink / raw)
  To: lartc

Add a qdisc to class 1:1234 with bandwidth=rate\x128Kbit and attach the
tbf to that qdisc.

For fw-filter and other examples : http://users.belgacom.net/staf/

-- 

Staf

More QOS info : http://users.belgacom.net/staf/


johan@pinguind.co.id wrote:
> 
> I had tried this
> #iptables -t mangle -A PREROUTING -p tcp --sport 20 -j MARK --set-mark 1
> 
> #tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit avpkt 1000 cell
> 8
> 
> #tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
> 10Mbit weight 1Mbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
> 
> #tc class add dev eth0 parent 1:1 classid 1:1234 cbq bandwidth 10Mbit rate
> 128Kbit weight 12Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
> bounded isolated
> 
> #tc qdisc add dev eth0 parent 1:1234 tbf rate 128Kbit buffer 10Kb/8 limit
> 15Kb mtu 1500
> 
> #tc filter add dev eth0 parent 1:0 proto ip handle 1 fw classid 1:1234
> 
> And, we tested with ftp, we didn't get result that I would expected.
> 
> any suggest ?
> let me know your example for fw classifier ....
> 
> Best Regards
> 
> Johan
> 
> --
>              -\x1e'-
>              (o o)
> ---------ooO--(_)--Ooo-------------------------------------------------
>   (  )/  \( )( ) (  ) ( \( )      Visit us at http://www.pinguind.co.id
>  __)(( () ))__(  /__\  )  (   Feel free to contact me at ICQ  #47240718
> (___/ \__/(_)(_)(_)(_)(_)\_)                 email:johan@pinguind.co.id
> -----------------------------------------------------------------------
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-27  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-26 23:50 [LARTC] Not proved, fw classifier ? johan
2001-04-27  6:28 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.