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
2
votes
0 answers

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.2 - 38KB/s 192.168.0.2 - 37KB/s 192.168.0.3 -…
denizeren
  • 329
  • 3
  • 11
2
votes
1 answer

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 each for HTB bandwidth control, NetEM delay and…
Ian
  • 93
  • 1
  • 6
2
votes
1 answer

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 for some reason it doesn't work. Here is my…
SteveBarr
1
vote
0 answers

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 HTB / HFSC traffic shaping. I need to be able to see…
Neferkat
  • 11
  • 3
1
vote
1 answer

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 htb rate 1000kbps ceil 1000kbps sudo tc class add…
1
vote
1 answer

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 pings to 8.8.8.8 are 45ms. I'm trying to simply slow…
Josh
  • 61
  • 6
1
vote
0 answers

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---> INTERNET I've managed to set up an outbound shaping…
pawel
  • 33
  • 1
  • 3
1
vote
0 answers

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 bandwidth I am testing equals 1Mbit/s (thus it is…
1
vote
2 answers

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 achieve is the following: Egress to port x: 60%…
Jeroen
  • 31
  • 3
1
vote
1 answer

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 I've followed Julien Vehent's tutorial and could…
Neel
  • 111
  • 2
  • 5
1
vote
0 answers

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 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth…
phschoen
  • 111
  • 1
1
vote
1 answer

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 to limit the upload rate using HTB so my packets…
Etienne Dechamps
  • 2,164
  • 8
  • 24
  • 28
1
vote
0 answers

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: classid 1:1 htb rate 200mbit ceil 200mbit tc class…
noctorum
  • 105
  • 2
  • 5
1
vote
1 answer

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, uploads, p2p and videos from making SSH…
SpliFF
  • 394
  • 2
  • 7
  • 24
1
vote
3 answers

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 to a specific client IP (10.41.240.240) to a hard…
DADGAD
  • 31
  • 1
  • 3