linux - tc-sfq alternative that limits by bytes? -


is there alternative tc-sfq (stochastic fairness queueing) allows configure limit based on packet size (total bytes) instead of packet count?

the reason given packet size of 50 bytes, 1 htb class (rate=1000kbit) example dequeue 25 packets per 10ms, packet size of 1500 bytes 0.83 packets per 10ms.

if set tc-sfq limit 25 packets, in worst case full queue take 300ms empty.

--

this on linux 3.0.101, fq_codel doesn't work afaik. maybe has patch replaces sfq packet limit byte limit (similar pfifo vs. bfifo)?

here's did: backported few changes kernel tree linux 3.0 sfq.

since commit ddecf0... there backlog counter maintained each slot. needed change use depth parameter (sfq_sched_data.maxdepth) max backlog bytes: drop packet if slot->backlog >= q->maxdepth in enqueue function.

with rate of 1000kbit can set depth 3750, means slot takes max 30ms empty. 2 large packets 1500 bytes each or 25 small ones 150 bytes each.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -