All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tbf token help
@ 2004-06-21 10:43 mknific
  2004-06-23  0:01 ` Damion de Soto
  0 siblings, 1 reply; 2+ messages in thread
From: mknific @ 2004-06-21 10:43 UTC (permalink / raw)
  To: lartc

Hi all!

I just started to experiment with bandwidth management using tbf.
I have the folowing problems with token understanding:

1) What unit is token? Is "1 token = 1 byte" ?
    If this is so, then with rate=0.5mbit and HZ\x100 the bucket gets filled
    with 0,64kb (655 tokens) every 10ms?

2) How much tokens are used for one packet (1500)?

3) And token unrelated question. Does packet droping alway ocurrs or 
    it happens because of bad settings?
    
    I have applied this settings on 10mbit ethernet card:
    tc qdisc add dev eth1 root tbf rate 0.5mbit burst 5kb latency 70ms /
    peakrate 1mbit minburst 1540
   
   Result:
   qdisc tbf 8007: dev eth1 rate 512Kbit burst 5Kb/8 mpu 0b peakrate 1Mbit mtu
   1539b/8 mpu 0b lat 68.4ms 
   Sent 1284481 bytes 852 pkts (dropped 48, overlimits 1743)


Thanks!

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

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

* Re: [LARTC] tbf token help
  2004-06-21 10:43 [LARTC] tbf token help mknific
@ 2004-06-23  0:01 ` Damion de Soto
  0 siblings, 0 replies; 2+ messages in thread
From: Damion de Soto @ 2004-06-23  0:01 UTC (permalink / raw)
  To: lartc

Have you fully read:
http://lartc.org/howto/lartc.qdisc.classless.html#AEN691
?
most of it is explained in there.

> 1) What unit is token? Is "1 token = 1 byte" ?
>     If this is so, then with rate=0.5mbit and HZ\x100 the bucket gets filled
>     with 0,64kb (655 tokens) every 10ms?
1 token is one packet.

> 2) How much tokens are used for one packet (1500)?
1

> 3) And token unrelated question. Does packet droping alway ocurrs or 
>     it happens because of bad settings?
>     
>     I have applied this settings on 10mbit ethernet card:
>     tc qdisc add dev eth1 root tbf rate 0.5mbit burst 5kb latency 70ms /
>     peakrate 1mbit minburst 1540
>    
>    Result:
>    qdisc tbf 8007: dev eth1 rate 512Kbit burst 5Kb/8 mpu 0b peakrate 1Mbit mtu
>    1539b/8 mpu 0b lat 68.4ms 
>    Sent 1284481 bytes 852 pkts (dropped 48, overlimits 1743)
Packet dropping happens when too much data is coming in.
See the explanation in the link above.

regards,

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-06-23  0:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-21 10:43 [LARTC] tbf token help mknific
2004-06-23  0:01 ` Damion de Soto

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.