Hierarchical Token Bucket (linux packet scheduler)

learn more… | top users | synonyms

1
vote
1answer
182 views

Debian7 and tc qdisc issue : RTNETLINK answers: No such file or directory

I've been searching for few days now but couldn't find the solution to my problem. I have a VPS running Debian 7, and I have root access. I am trying to add some traffic shaping (using HTB), so the ...
3
votes
1answer
52 views

linux tc htb bandwidth ceil being ignored and giving improper results

I'm setting up some htb packet queues like so: tc qdisc add dev eth0 root handle 10: htb tc qdisc add dev eth1 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1012 htb rate 750kbps ...
0
votes
0answers
28 views

tc policing not working

We have a system that uses TC to throttle IPs as follows: tc qdisc del dev $egressif root tc qdisc add dev $egressif root handle 1:0 htb default 1 tc class add dev $egressif parent 1:0 classid 1:1 ...
1
vote
0answers
43 views

Trying to understand HTB subclasses rate

I'm currently studying the opportunity of using an Ubuntu server to provide QoS instead of my consumer-class router. I've read a lot of resources about tc and HTB queuing disciplines - which look to ...
1
vote
0answers
83 views

HTB equal bandwith sharing per ip in one class

In my tc configuration (shown below) in one class all bandwidth is shared among connections equally, but I want to share bandwidth among all IP addresses equally. Now: 192.168.0.2 - 38KB/s ...
2
votes
1answer
383 views

Implementing HTB, NetEM, and TBF traffic control simultaneously

I am working on a bash utility that will use several aspects of the tc Linux command line utility to emulate various network conditions. I have successfully constructed several qdisc hierarchies, one ...
3
votes
1answer
75 views

Bandwidth Throttling using tc qdiscs

I am trying to limit the bandwidth between a simple iperf server and client, using a third, passive machine acting as a bridge. With no interference, iperf returns a bandwidth of ~90 Mbits/sec. My ...
0
votes
0answers
139 views

Traffic shaping / HTB - how to interpret borrowed/lended figures?

I have upload traffic shaping set up as follows (this is my NAS box, eth0 serves both LAN and internet traffic): # root handle tc qdisc add dev eth0 root handle 1:0 htb default 12 # lan class - no ...
0
votes
0answers
66 views

HTB Statistic not Correct

I have HTB Shaping with fq_codel but the statistics of the root not is less that the leaf node, what am I doing wrong here? In the example below the root not sent data is less then the leaf node ...
0
votes
0answers
18 views

Interaction between tc (traffic control) queue and MAC queue

If I establish, e.g., an HTB qdisc on an interface, what is the interaction between its internal queue and the MAC queue of the network interface? Do they effectively add up? My second question is: ...
2
votes
0answers
928 views

VLAN based rate limiting using tc

I have been trying to perform VLAN based rate limiting on an academic project I am working on. The project uses Openflow (with Beacon controller) and the network is emulated using Mininet. The network ...
1
vote
0answers
113 views

htb with an inner gred how to setup filter to reach DPs

I want to create a qos htb class and within this class there is a gred queue. how do I add a working filter for each red queue in the gred queue? what i tried was: DEV=lo SOMEGREDETTINGS="limit ...
1
vote
1answer
2k views

Linux tc htb + prio = very slow link

I'm trying to shape the traffic going out of my DSL link (verified 1 mbit upload) using Linux (3.2) tc, HTB, and PRIO. My Linux box is connected via a Gigabit Ethernet link to the ADSL modem. I want ...
1
vote
0answers
70 views

Defining an explicit parent in traffic control rules

In traffic control, will an explicit parent declaration in a filtering rule override a flowid definition? E.g.; tc qdisc add dev eth0 root handle 1: htb default 20 tc class add dev eth0 parent 1: ...
0
votes
1answer
984 views

Difference between HTB Rate and Ceil Values

What is the difference between the HTB rate and Ceil values?
0
votes
1answer
131 views

HTB qdisc child of another HTB qdisc drawbacks

In the HTB documentation can be read: Note: HTB as child of another HTB is NOT the same as class under another class within the same HTB. It is because when class in HTB can send it will send ...
1
vote
1answer
448 views

how to tune tc rate parameter for optimal performance with htb/sfq?

I'm new to using tc/htb and I've just copy/pasted the script at ... http://lartc.org/howto/lartc.cookbook.ultimate-tc.html ... to run on the office gateway. The reason is to prevent large downloads, ...
1
vote
3answers
2k views

Traffic shaping on Linux with HTB: weird results

I'm trying to have some simple bandwidth throttling set up on a Linux server and I'm running into what seems to be very weird stuff despite a seemingly trivial config. I want to shape traffic coming ...
2
votes
1answer
945 views

HTB.init / tc behind NAT

I have an Ubuntu 10 box that I'm trying to set up as a bandwidth-shaping router. The machine has one WAN interface, eth0 and two LAN interfaces, eth1 and eth2. NAT is configured using MASQUERADE as ...
2
votes
1answer
2k views

Traffic prioritization with Linux htb doesn't work, why?

I'm a Linux QoS newbie and I'm trying to learn how it works by using the docs at lartc.org as reference. My first goal is a modest one: I want to assign a higher priority to UDP outgoing traffic, but ...
1
vote
2answers
593 views

How much traffic a linux-based shaper would be able to chew

I have a linux based traffic shaper (iptables + tc htb policy). It works in bridge mode. Shapes traffic based on IPs and ports (there are about 100 rules in the "mangle" chain of iptables). Right now ...
9
votes
1answer
1k views

Sharing Bandwidth and Prioritizing Realtime Traffic via HTB, Which Scenario Works Better?

I would like to add some kind of traffic management to our Internet line. After reading a lot of documentation, I think HFSC is too complicated for me (I don't understand all the curves stuff, I'm ...
25
votes
1answer
1k views

Minimal rate and default class problem for HTB

I have some doubts about a HTB structure I'm using. My aim is to limit the download and upload speed of users in a local network. Each user of the network has a personal list of domains with a down ...