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
29
votes
1 answer

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 and up speed for the domain he cannot exceed. It…
Mulot
  • 484
  • 4
  • 10
10
votes
1 answer

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 afraid I will never get it right), CBQ is not…
Mecki
  • 799
  • 1
  • 6
  • 16
5
votes
1 answer

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 first line I tried to type was this one : tc qdisc…
Raphael Laurent
  • 219
  • 1
  • 6
  • 17
5
votes
1 answer

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 be the one I need for my QoS needs, and even if it…
Eric MORAND
  • 293
  • 2
  • 8
5
votes
1 answer

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 goal is to create a root qdisc that sends all…
Ian
  • 93
  • 1
  • 6
5
votes
1 answer

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 is made up of OpenVSwitches. For my project I…
user1449265
  • 151
  • 1
  • 2
5
votes
1 answer

Difference between HTB Rate and Ceil Values

What is the difference between the HTB rate and Ceil values?
noctorum
  • 105
  • 2
  • 5
4
votes
1 answer

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 ceil 750kbps tc filter add dev eth0 parent 10:…
Rooster
  • 485
  • 2
  • 7
  • 21
4
votes
2 answers

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 described at InternetConnectionSharing. I'm mostly…
Ben K.
  • 2,149
  • 4
  • 17
  • 15
3
votes
1 answer

linux tc qdisc pie (aqm) configuration with limited bandwidth

I would like to configure AQM PIE by using tc-qdisc, but at the same time I would like to limit the bandwidth to 1Mb/s. I have used similar configuration with fq_codel, i.e. I have limited the bandwidth by using htb, and later configured fq_codel…
2
votes
1 answer

Attempting to shape traffic for both IPv4 and IPv6 results in a conflict

On my server I'm attempting to set up traffic shaping, and if I'm doing it for either IPv4 or IPv6, things are just fine: All filter rules for that particular protocol are installed. However, when attempting to shape both, I'm getting errors, and…
Robidu
  • 123
  • 6
2
votes
0 answers

Qdisc class for eth0 disappearing

I have a script that sets up traffic shaping on port eth0. The script is as follows: import os import subprocess def run(cmd): print cmd result = subprocess.check_output(cmd, shell=True) print result interface_name = 'eth0' bandwidth…
2
votes
0 answers

Measuring effectiveness of qdisc

I am trying to set the incoming and outgoing bandwidth of a particular interface. I set the outgoing bandwidth in the following way. sudo tc qdisc add dev f30e888e9a857_c handle 1: root htb default 11 sudo tc class add dev f30e888e9a857_c parent 1:…
2
votes
1 answer

HTB class doesn't borrow avaliable bandwidth

I'm using iptables + htb to shape the bandwidth of the internet traffic. I have a link of 17mbit DSL. Actually I have set the rules bellow: # Interface eth0 (Donwload) tc qdisc del dev eth0 root tc qdisc add dev eth0 root handle 1:0 htb default…
jhansen
  • 23
  • 2
2
votes
1 answer

bandwidth larger than tc htb ceil in 10-Gigabit network

In classid 88:201, I set ceil 200mibps, but in fact data can be send at 218 Mibps. Any one have any ideas what I'm doing wrong? Cheers! tc qdisc add dev eth0 root handle 88: htb default 202 tc class add dev eth0 parent 88: classid 88:89 htb rate…
dd520
  • 21
  • 3
1
2 3