Skip to contentSkip to conversation

About HFSC ?

LARTC Sébastien CRAMATTE 2 participants 2 messages Dec 12, 2006 – Dec 14, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I’ve read this Article avout VOIP and HFSC
http://automatthias.wordpress.com/2006/06/30/hfsc-and-voip/

I’ve got few questions ?

Considering this

tc class add dev $DEV parent 1:1 classid 1:2 hfsc \
rt m1 ${UPLINK}kbit d 50ms m2 $[1*$UPLINK/10]kbit \
ls m1 ${UPLINK}kbit d 50ms m2 $[3*$UPLINK/10]kbit \
ul rate ${UPLINK}kbit

rt = realtime curve
ls = linksharing curve

but
m1 = ?
m2 = ?
d = dmax ?

I’ve found this article too
http://linux-ip.net/articles/hfsc.en/

And for example this line is quite diferent !

tc class add dev eth0 parent 1:10 classid 1:12 hfsc sc umax 1500b dmax 30ms rate 100kbit ul rate 1000kbit

Does anyone could you light me ?

Regards

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

#1 lore raw
Quoted 5 lines · Sébastien CRAMATTE

Hello,

I’ve read this Article avout VOIP and HFSC
http://automatthias.wordpress.com/2006/06/30/hfsc-and-voip/

Quoted 8 lines

I’ve got few questions ?

Considering this

tc class add dev $DEV parent 1:1 classid 1:2 hfsc \
rt m1 ${UPLINK}kbit d 50ms m2 $[1*$UPLINK/10]kbit \
ls m1 ${UPLINK}kbit d 50ms m2 $[3*$UPLINK/10]kbit \
ul rate ${UPLINK}kbit

That command and the script look a bit iffy to me - but then I could be wrong and often am :-)

Quoted 6 lines

rt = realtime curve
ls = linksharing curve

but
m1 = ?

m1 = slope/rate of the first part of the curve.

Quoted 1 line

m2 = ?

m2 = slope/rate of the second part.

Quoted 1 line

d = dmax ?

I think they will be equal if m1>m2, but not if m1<m2. dmax is a time when used with umax bytes hfsc will calculate the m1 bitrate needed to send a packet umax bytes long with a delay of dmax. d is the point on the x axis where m1 ends and m2 starts. If m1<m2 then d is still d but not the same as dmax.

Look at the curves on p10 of the sigcom pdf - I think xi = d
http://trash.net/~kaber/hfsc/SIGCOM97.pdf

You can use either format with linux, when you do tc -s -d class ls ... the output will be in m1 d m2 format.

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