Questions tagged [htb]

Hierarchical Token Bucket (linux packet scheduler)

HTB is a Linux packet scheduler. It decides the transmission order of packets on a single interface according to hierarchical bandwidth guarantees and limits. It was added to the Linux kernel in version 2.4.20, and improves on CBQ, the class-based queueing discipline.

41 questions
1
vote
2 answers

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 its throughoutput is about 100 mb/s (I don't…
facha
  • 1,298
  • 2
  • 16
  • 26
1
vote
0 answers

Linux traffic control did not reach expectation when using HTB and filter

I am doing an tc experiment between two servers. When no tc rules are added, the bandwith between the two servers is about 7Gbps tested with iperf3. Then I add a tc filter based on HTB for testing. When the rate limit i set is less than 300Mbps or…
0
votes
1 answer

Where can I place tc filters?

I have a raspberry pi router for me and my room mates. The bandwidth is divided as follow: 1:0(htb) | 1:1(16mbit/s) / \ 1:2(8mbit/s) 1:ffff(8mbit/s) If I add the filter for with parent 1:0 (tc filter add…
user762750
  • 179
  • 1
  • 9
0
votes
1 answer

What's the differences between "quantum"s in htb and fq_codel qdisc?

According to the manual page HTB quantum how much bytes to serve from leaf at once {use r2q} FQ_Codel quantum It is the number of bytes used as 'deficit' in the fair queuing algorithm. Default is set to 1514 bytes which corresponds to the…
user762750
  • 179
  • 1
  • 9
0
votes
2 answers

How to change HTB rate of a classid?

I have tc htb qdisc setup that looks like 1:0 | 1:1 / \ 1:10 1:11 # tc -s -d class show dev br0 Shows class 1:10 with 1024kbit rate and ceil: class htb 1:10 parent 1:1 prio quantum rate 1024Kbit ceil 1024Kbit linklayer…
0
votes
1 answer

Limit input on a given port with tc filter and u32 match

I'm trying to rate-limit all incoming traffic on ports 8128-8191. I've read everything I found, checked everything ten times, it still doesn't work. The commands: tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1: htb default 1 tc…
0
votes
2 answers

Is there a way to limit bandwidth per ip using HTB + a CIDR range in Linux?

I can create rules to limit a entire subnet or to limit individual ip addresses with tc and htb. I am looking to use CIDR ranges to keep things somewhat elegant. The machines in question are all running CentOS 7. I have been attempting to use tc +…
user274562
  • 21
  • 1
  • 5
0
votes
1 answer

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 as soon as hardware equipment can. So that delay of …
Diosney
  • 305
  • 5
  • 12
0
votes
1 answer

HTB "rate" parameter limits available bandwidth

Good day, I have the following situation: 4 TCP streams of data from one machine to another. Each streams has its own destination TCP Port. 4 streams have different priorities : high, medium, low, bulk. High, medium, low generate 1.67Mbit/s and bulk…
Hadarelv
  • 13
  • 2
0
votes
1 answer

Linux HTB: More than 70% of ceil rate is never achieved

Background:- I have an arm based system, which has HTB setup on the eth and wlan interface. Here is the HTB configuration:- tc class add dev eth1 parent 1:1 classid 1:1 htb rate 1Gbit ceil 1Gbit burst 18000b cburst 18000b tc class add dev eth1…
0
votes
0 answers

how to apply TC htb class to each of IPs in an IP range separately?

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for this mark, this filter applies to all IPs in this…
1 2
3