OpenWrt Forum Archive

Topic: QoS HOWTO

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

First: I'm sorry for my bad English.

I would set up QoS but there is a lack of information. So i've read a lot:

[*]HFSC original paper and the deferences with the linux implementation (separation of RT / LS / UL)
[*]HTB
[*]RED, SFQ, FIFO, ...
[*]ATM overhead
[*]IPtables tutorial

my question are:
[*] What are deference between the leaf classes bulk , priority, normal and express?
[*] What are service curves (RT, LS and UL) applied to each leaf class and what are the service curves (LS) applied to each inner class?
[*] Is the ATM-overhead calculated? http://www.linuxhowtos.org/manpages/8/tc-stab.htm
[*] Which leaf queues are uses (RED / SFQ / FIFO,...)?
[*] Which Qdiscs are used for ingress en egress? HFSC or HTB or both?

now i'm going to read the source code but i've already seen there are not a lot of comments in the source code.

in the tcrules.awk:

    for (i = 1; i <= n; i++) {
        if (avgrate[i] > 0) {
            rtm2[i] = avgrate[i]
            if (delay[i] > 0) {
                d[i] = delay[i]
            } else {
                d[i] = 2 * pktsize[i] * 1000 / (linespeed * 1024)
                if (d[i] > dmax) dmax = d[i]
            }
        }
    }

must it not be:??
d[i] = 2 * 8* pktsize[i] [s]* 1000[/s] / (linespeed * 1024)

(Last edited by TomVH on 15 Nov 2011, 13:55)

The discussion might have continued from here.