Skip to contentSkip to conversation

quantum

LARTC sujeet mulmi 2 participants 3 messages Dec 12, 2005

lore
Share & tools
lore
#0 lore raw

Dear all,

I'm new to traffic shapping although i have gone through marking and HTB queueing but i felt trouble in tc filter . I wonder if any one give me the hints about quantum or r2q.
i guess quantum is used when two class has same prio and rate and want to give first priority between them and control the borrowing traffic. It should be set more than MTU too. But my question is that how can we set quantum exactly , i mean is there any calculation need to set this quantum parameter and its effect to r2q . Any changes we have to do in r2q parameter.

Any suggestion will be apprieciated.

thanks in advance.

sujeet

---------------------------------
Yahoo! Shopping
Find Great Deals on Holiday Gifts at Yahoo! Shopping

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

Hi,

I usually use this as a rule of thumb:

quantum = rate(in bytes)/r2q

Note that quantum should be > MTU (normally 1500).

Best regards,

Pau Oliva

---
http://pof.eslack.org/blog/

Quoted 12 lines · sujeet mulmi

Dear all,

I'm new to traffic shapping although i have gone through marking
and HTB queueing but i felt trouble in tc filter . I wonder if any one give me the hints about quantum or r2q.
i guess quantum is used when two class has same prio and rate and want
to give first priority between them and control the borrowing traffic. It should be set more than MTU too. But my question is that how can we set quantum exactly , i mean is there any calculation need to set this quantum parameter and its effect to r2q . Any changes we have to do in r2q parameter.

Quoted 5 lines

Any suggestion will be apprieciated.

thanks in advance.

sujeet

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to sujeet mulmi

This page explains the quantum & r2q values used in HTB in depth:
http://www.docum.org/docum.org/faq/cache/31.html

If you want to see my working example download this script:
http://pof.eslack.org/archives/files/bw-shaper1.2.sh
results achieved can be seen here:
http://pof.eslack.org/graphs/
...any commments appreciated ;)

Regards,

Pau Oliva

Quoted 18 lines · sujeet mulmi

thanks pal.

i got the clue but i get confused in rates whether it should be the
total b/w or rate seperate for class id.
can you give me some hints on r2q too.

Pau Oliva - pof <[email protected]> wrote:
Hi,

I usually use this as a rule of thumb:

quantum = rate(in bytes)/r2q

Note that quantum should be > MTU (normally 1500).

Best regards,

Quoted 25 lines

Pau Oliva

---
http://pof.eslack.org/blog/

Quoted 17 lines · sujeet mulmi

Dear all,

I'm new to traffic shapping although i have gone through marking and HTB queueing but i felt trouble in tc filter . I wonder if any one give me the hints about quantum or r2q.
i guess quantum is used when two class has same prio and rate and want to give first priority between them and control the borrowing traffic. It should be set more than MTU too. But my question is that how can we set quantum exactly , i mean is there any calculation need to set this quantum parameter and its effect to r2q . Any changes we have to do in r2q parameter.

Any suggestion will be apprieciated.

thanks in advance.

sujeet

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc