Questions tagged [htb]

Hierarchical Token Bucket (linux packet scheduler)

Filter by
Sorted by
Tagged with
29 votes
1 answer
3k 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 ...
Mulot's user avatar
  • 484
10 votes
1 answer
2k 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 ...
Mecki's user avatar
  • 919
5 votes
1 answer
18k 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 ...
Raphael Laurent's user avatar
5 votes
1 answer
6k 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 ...
user1449265's user avatar
5 votes
1 answer
7k views

Difference between HTB Rate and Ceil Values

What is the difference between the HTB rate and Ceil values?
noctorum's user avatar
  • 105
5 votes
1 answer
1k 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 ...
Ian's user avatar
  • 103
5 votes
1 answer
1k 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 ...
Eric MORAND's user avatar
4 votes
1 answer
2k 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 ...
Rooster's user avatar
  • 505
4 votes
2 answers
2k 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 ...
Ben K.'s user avatar
  • 2,439
3 votes
1 answer
1k views

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 ...
FasolkaPoBretonsku's user avatar
3 votes
1 answer
8k 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 ...
Ian's user avatar
  • 103
2 votes
1 answer
685 views

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 ...
Robidu's user avatar
  • 157
2 votes
1 answer
676 views

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 ...
jhansen's user avatar
  • 23
2 votes
1 answer
3k 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 ...
user avatar
2 votes
0 answers
247 views

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) ...
user3249763's user avatar
2 votes
0 answers
66 views

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 ...
user3249763's user avatar
2 votes
1 answer
1k views

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 ...
dd520's user avatar
  • 21
2 votes
0 answers
590 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 192.168.0....
denizeren's user avatar
  • 329
1 vote
3 answers
10k 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 ...
DADGAD's user avatar
  • 31
1 vote
1 answer
3k views

How can I do traffic shaping in Linux by IP for both way communication?

Well, I've already gone through How can I do traffic shaping in Linux by IP? on serverfault & what I'm trying to achieve is pretty much same. Internet--------Linux Router----Switch-----Clients ...
Neel's user avatar
  • 111
1 vote
1 answer
4k 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 ...
Etienne Dechamps's user avatar
1 vote
1 answer
84 views

htb multiply root rate by 8

I am changing the queue discipline to HTB, creating a parent node, and 3 children which are the classes. sudo tc qdisc add dev em1 root handle 1: htb sudo tc qdisc add dev em1 parent 1: classid 1:1 ...
Tony Tannous's user avatar
1 vote
1 answer
652 views

shape dropbox on linux router with tc and iptables

Another machine on my LAN is uploading to Dropbox and saturating my internet connection's upload bandwidth. When that happens my pings to 8.8.8.8 take 3000-6000ms. When dropbox is not uploading my ...
Josh's user avatar
  • 61
1 vote
2 answers
1k views

Percentual dynamic bandwidth control with tc

Does anyone know if tc (iproute2) can be used to percentually divide the currently available bandwidth? We're on a GPRS connection on which the available bandwidth changes frequently. What I want to ...
Jeroen's user avatar
  • 31
1 vote
2 answers
870 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 ...
facha's user avatar
  • 1,398
1 vote
0 answers
289 views

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. ...
UnBeliEvaBle's user avatar
1 vote
0 answers
248 views

Diagnosing / monitoring HTB or HFSC traffic shaping

I have set up a central Linux router with Shorewall script for a small company that have a HQ and several other offices. They're connected via OpenVPN. All is well, except that I want to fine tune ...
Neferkat's user avatar
1 vote
0 answers
124 views

Traffic shaping with tc

I've been playing with tc and been reading a lot about shaping traffic. I've read that traffic can be shaped egress and policed ingress. I have standard set up LAN -->eth0[OPENWRT]-ppoawan---> ...
pawel's user avatar
  • 33
1 vote
0 answers
361 views

HTB scheduler unexpected behaviour, low priority traffic starving high priority traffic

I am working on assuring low delay for UDP traffic at the home gateway level. At this home gateway I have two types of traffic, TCP and UDP, and I assure differentiated treatment by using HTB. The ...
FasolkaPoBretonsku's user avatar
1 vote
0 answers
278 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 ...
phschoen's user avatar
  • 111
1 vote
0 answers
172 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: ...
noctorum's user avatar
  • 105
1 vote
1 answer
892 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, ...
SpliFF's user avatar
  • 404
0 votes
2 answers
2k views

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 ...
papar's user avatar
  • 103
0 votes
1 answer
232 views

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 ...
William's user avatar
  • 181
0 votes
1 answer
3k views

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. ...
William's user avatar
  • 181
0 votes
1 answer
767 views

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, ...
Hadarelv's user avatar
0 votes
1 answer
770 views

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 ...
Vo1dSpace's user avatar
0 votes
0 answers
334 views

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 ...
amirhossein nasseri's user avatar
0 votes
1 answer
2k views

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 ...
Laurent Caillette's user avatar
0 votes
2 answers
3k views

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 ...
user274562's user avatar
0 votes
1 answer
261 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 ...
Diosney's user avatar
  • 305