All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
82 views

TC: link sharing for ingress traffic not working

I was trying to set up an ingress link sharing env. by tc & htb qdisc. and I made two macvlan subinterfaces(say mgmt, data) under a parent physical interface enp8s0f0 and enp8s0f0's speed is 1000 ...
gary zhang's user avatar
0 votes
1 answer
522 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
0 answers
279 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
2 votes
1 answer
581 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
  • 135
0 votes
1 answer
172 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 ...
user762750's user avatar
0 votes
1 answer
2k 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. ...
user762750's user avatar
1 vote
1 answer
83 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
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
2 votes
0 answers
221 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
1 vote
1 answer
645 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
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
1 vote
0 answers
342 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
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
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
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
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
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
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
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
  • 495
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
2 votes
0 answers
585 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
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
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
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
1 vote
0 answers
275 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
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
0 answers
138 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
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
0 votes
1 answer
254 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
1 vote
1 answer
877 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
1 vote
3 answers
9k 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
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,389
1 vote
2 answers
840 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,368