TC is the linux tool used to manipulate the traffic control functionality in the kernel.

learn more… | top users | synonyms

3
votes
1answer
75 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 ...
2
votes
1answer
664 views

Traffic shaping: tc filter attached to an HTB class?

Can I attach a tc filter to an HTB class rather than to an HTB qdisc? For example: tc class add dev $IF_LAN parent 1:100 classid 1:180 htb rate 19kbit ceil 2000kbit prio 4 where: 1:100 -> Is ...
2
votes
1answer
960 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 ...
1
vote
1answer
324 views

Openvpn limit bandwidth

I would like to ask you a question concerning openvpn and the possibility to increase the bandwidth in case I want to transfer files. I have an openvpn server via which I connect to my data center. ...
1
vote
1answer
74 views

packet loss only on Tx using tc(Traffic Control) in Linux

I'm aware that one can introduce packet loss in a Linux machine using tc. For example: tc qdisc change dev eth0 root netem loss 10% However, is it possible to specify a traffic direction where ...
1
vote
1answer
45 views

How Many Filters Can We Have — LINUX QOS

I am doing Qos on Linux server using TC. According to the grammar of tc tool, the handle of a filter must be between 800::001 and 800::FFF. And because 0XFFF equals 4095 in decimal, so we can only ...
0
votes
1answer
98 views

Limit monthly traffic per interface

I'm trying to deploy an application for a limited monthly traffic. Please can you tell me how can I do this ? I need to limit traffic on an interface under linux.
0
votes
1answer
90 views

Open the Linux QOS Service dynamically

We are developing a C++ application on Fedora (of kernel 2.6.9). This application will use the Linux TC utility to limit the bandwidth of specific applications by scanning their ports and setting ...
0
votes
1answer
118 views

TCP packet filter based on TCP sequence

I need to build a test environment with a very precise packet loss based on specific TCP sequence or, optionally, on payload content. I couldn't figure out how to do it with tc or iptables. What tool ...
0
votes
1answer
96 views

Does TC rate policing mangle packets?

I'm trying to limit traffic to test performance of some in-house applications, but I am getting inconsistent results when configuring my home PC and my company testbed. The goal is to police the rate ...
0
votes
1answer
131 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 ...
0
votes
1answer
487 views

tc netem possibly missing

I have a VPS running Ubuntu 10.04 that I want to simulate network latency on. It looks like tc is what I want to use, and I pulled this command from the examples from here: ...
0
votes
1answer
550 views

Rsync over NFS with QoS: How to view real transfer speed?

We have a bandwidth limit between a Linux server and a NAS, created using 'tc' with an IP filter. When writing to an NFS mount of the NAS, rsync claims a very high transfer speed for each file and ...
3
votes
0answers
166 views

Meaning of requeues of tc command

I ran this tc bellow and it outputs requeues with high number, do you know what this requeues means? By the way, it keeps increasing over the time. I look at man tc but I couldn't find anything. $ ...
2
votes
0answers
987 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 ...
1
vote
0answers
33 views

Linux Traffic Controller (Linux tc): hierarchical token bucket (htb) packet queue size

In my Linux router, I am using the following configuration to limit the rate of traffic towards port 44444 of a client in the LAN (client address is 192.168.10.2, connected through the router's eth1 ...
1
vote
0answers
24 views

How to test if packet has been tagged with classid

I'm trying to troubleshoot an issue I'm having related to IFB Mirroring which I'm attempting to deploy based on this question: Tc: ingress policing and ifb mirroring My theory is that since the ...
1
vote
0answers
41 views

Group traffic shaping with traffic control?

I'm trying to limit the output bandwidth generated by an application with linux tc. This application sends me the source port of the request that I use has a filter to limit each user at a given ...
1
vote
0answers
45 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 ...
1
vote
0answers
107 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 ...
1
vote
0answers
28 views

Is It Possible to Attach multiple Ports to a TC Filter?

I need to limit the bandwidth/rate by ports, and as a server there would be thousands of ports. Due to the limit of tc filter, I wonder if it is possible for multiple discreate ports to share a same ...
1
vote
0answers
62 views

Why Parent Class In a TC Rules Tree Not Working

The parent class in my TC rules script doesn't work as it garanteed! Can somebody tell me what is wrong with my script? Here are some details about my question: From the chapter "9.5.4.4. Sample ...
1
vote
0answers
119 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 ...
1
vote
0answers
222 views

tc rules block traffic from some hosts at network

I have a problem I can not solve. The script, which sets the rules for traffic shaping is blocking the traffic from some hosts.If I remove all the rules, then it works. I can not understand why? ...
1
vote
0answers
72 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: ...
1
vote
0answers
442 views

tc u32 match protocol [any] in recent kernels — where to discuss?

I've been using debian with 2.6.26 kernel; now I've started to test 2.6.32 for my needs. And I've noticed that u32 filter behaves differently for, namely, "protocol 802.1q". To discover the tendency, ...
1
vote
0answers
210 views

tcng & tc hiercharchy

Let me explain what I'm trying to do, we have one 10Mbps line coming in, we want to divide that up into 3 3Mbps sections, which are defined by each subnet, then in one of these subnets we have ...
1
vote
0answers
635 views

Traffic shaping for gateway to stop leechers

I am new to traffic shaping, but I need a quick simple shaping. I have a free internet service on my place using wifi. All www traffic has been routed to transparent proxy. We have a 10mbps ...
0
votes
0answers
25 views

Basic QoS configuration with PRIO qdisc is not working

Im using Ubuntu 12.10 OS and i want to prioritize ICMP traffic over other traffic in the egress queue of eth0 interface (as it is my default route to internet). By default this is the Qdisc ...
0
votes
0answers
32 views

tc policing not working

We have a system that uses TC to throttle IPs as follows: tc qdisc del dev $egressif root tc qdisc add dev $egressif root handle 1:0 htb default 1 tc class add dev $egressif parent 1:0 classid 1:1 ...
0
votes
0answers
84 views

Trouble using net_cls control group in tandem with tc for packet filtering

I'm having some trouble limiting network bandwidth using the net_cls control group in conjunction with the linux traffic controller (tc). I think I might just be confused about how I'm writing the ...
0
votes
0answers
29 views

tc rules not working

Here is my tc setup : tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate 10kbit ceil 10kbit This should limit the uplink bandwidth to 10kbit. But when I ...
0
votes
0answers
154 views

Traffic shaping / HTB - how to interpret borrowed/lended figures?

I have upload traffic shaping set up as follows (this is my NAS box, eth0 serves both LAN and internet traffic): # root handle tc qdisc add dev eth0 root handle 1:0 htb default 12 # lan class - no ...
0
votes
0answers
70 views

Traffic Shaping Script Not Working

I wrote a script trying to use HTB algorithm to limit the throughput of specific ports, below is the script: tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 ...
0
votes
0answers
31 views

Same tc rules, different behavior?

I want to do some experiments with various network conditions. To do this, I am created 2 lxc containers and I place traffic control rules with tc on their network devices to represent these ...
0
votes
0answers
76 views

HTB Statistic not Correct

I have HTB Shaping with fq_codel but the statistics of the root not is less that the leaf node, what am I doing wrong here? In the example below the root not sent data is less then the leaf node ...
0
votes
0answers
21 views

Interaction between tc (traffic control) queue and MAC queue

If I establish, e.g., an HTB qdisc on an interface, what is the interaction between its internal queue and the MAC queue of the network interface? Do they effectively add up? My second question is: ...
0
votes
0answers
30 views

Queuing disciplines are per-interface, what qos is handle with interfaces using same device?

I have read about queuing disciplines here http://lartc.org/. I understand that for instance band 0 of pfifo policy is prioritized over band 2 within same qdisc, but what happen when i have ppp0 and ...
0
votes
0answers
41 views

Throttling bandwidth on a per group basis

I am wondering if it is possible to create a bandwidth shaping/throttling script that shapes traffic based on user group. That is, if user1, user2, are in user group group1, they will have 1mb/s ...
0
votes
0answers
57 views

Traffic shaping prioritizing some WAN interfaces using prio qdisc

Im configuring my router to give preference to some WAN interfaces. I have read about queuing disciplines here http://lartc.org/. I understand how PRIO discipline can prioritize traffic depending on ...
0
votes
0answers
111 views

Problems using wondershaper on KVM guest

I am trying to limit bandwidth on one of my KVM guest using Wondershaper. Doing something like this works fine: wondershaper br23 9000 9000 Doing a wget with the setting above gives a download ...
0
votes
0answers
125 views

tc traffic shapping HTB in Linux-based router

I use an Android device to be a hotspot router. In fact, the behavior is similar to a Linux OS router. There are parts of functions in Android. Now, I try to use tc command to limit bandwidth of end ...
0
votes
0answers
48 views

What Is the Smallest Burst Value for HTB Algorithm (QOS)

Regarding the HTB algorithm, I want to know what is the smallest burst value in an HTB shaping rule such as "tc class add dev eth0 parent 1:1 classid 1:10 htb rate 5mbit burst 15k". Is it MTU?
0
votes
0answers
97 views

TC Bandwidth Shaping for all clients

I am running a video site and want to shape the download speed of all clients. How can I apply my tc class to all the clients by ip, i.e. every user has a download speed of 128kbit/s, no matter how ...