The first step to setting up an HFSC qdisc involves assigning a qdisc to a network interface, along with optional specification of a default class:
tc qdisc add dev $dev root handle $ID: hfsc [default $classID ]
In the second step, the class hierarchy is constructed with consecutive class additions.tc add class dev$dev parent parentID classid $ID hfsc [ [ rt SC ] [ lsSC ] | [ sc SC ] ] [ ul SC ]
The particular attributes of each class are configured via the service curves which are described as follows:SC := [ umaxbytes dmax ms ] rate BPS
Classes at the lowest level of the hierarchy can be assigned a real-time curve (rt
) as well as a link-sharing curve (ls
), where inner classes can only have a link-sharing curve. By using theul
service curve, an upper limit on service actually rendered to each class can be defined. Instead of specifying two identicalrt
andls
curves, a singlesc
curve can be specified. A service curve is described by its transmission rate, which correlates with the slope of the curve. If the curve consists of two parts, it can be specified withdmax
the maximum delay at a certain transmission rateumax
.
你看报表时,梅里雪山的金丝猴刚好爬上树尖。