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

learn more… | top users | synonyms

-1
votes
4answers
212 views

Is there anyway to tell what user will receive data from inbound packet?

In linux, considering this use case: 1. User initiates http request for webpage to remote server 2. Remote server answers request and sends packets Is there any reference to the user who started ...
1
vote
0answers
12 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 ...
3
votes
0answers
24 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 ...
1
vote
0answers
29 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 ...
0
votes
0answers
22 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
1answer
39 views

Is it possible to limit output bandwidth between eth0 and lo?

I'm trying to limit the bandwidth between my eth0 output (nginx proxy) to my loopback inteface (apache) by filtering on destination port. Incoming Packet -> Eth0 -> 0.0.0.0:80 Nginx -> tc ...
0
votes
0answers
46 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
23 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 ...
1
vote
0answers
30 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
58 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 ...
2
votes
1answer
244 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 ...
0
votes
1answer
78 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.
3
votes
1answer
60 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 ...
0
votes
1answer
146 views

How to slow down and share incoming network traffic using TC (traffic shaping)

I am trying to slow down incoming packets for a specific program, while a second one will have full access to the unused bandwidth. In other words, I want to control the network bandwidth sharing in ...
2
votes
0answers
101 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. $ ...
1
vote
1answer
275 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
57 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 ...
0
votes
0answers
109 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
55 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
26 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
59 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
18 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
29 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
29 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 ...
1
vote
1answer
1k views

How can I limit the upload/download bandwidth on my CentOS server?

How can I limit the upload and download bandwidth on my CentOS server? This is a box with a single interface, eth0. Ideally, I would like a command-line solution (I've been trying to use tc), ...
0
votes
0answers
48 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
79 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 ...
1
vote
0answers
27 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
1answer
40 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
0answers
80 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
37 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?
1
vote
0answers
54 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 ...
0
votes
1answer
124 views

Why This TC Script Not Working

Our application has three classes of traffic, and every type of traffic involves three ports. We want to limit the traffic by port number via TC, so I made a simple TC script to have the test, however ...
0
votes
0answers
80 views

Realtime dynamic traffic shaping per ip

I have a wireless and wired network shared among several users. There is a linux router which acts as dhcp server and gateway. I would like to split the max bandwidth available from ISP (20 Mbit) over ...
3
votes
2answers
305 views

Linux qos: tc DRR qdisc does not work

There is tc queue discipline DRR(Dificite Round Robin) . It has same capabilities, as HTB, but instead of using buckets, filled with tokens, it just assignes every queue some Dificit Counter. On ...
0
votes
1answer
96 views

What do these two QOS script statements mean

I am studying the QOS utility of Linux -- TC -- recently, and today I encountered below two statments from a bandwidth-limit script on Linux: tc filter add dev eth0 parent 1: prio 1 protocol ip ...
1
vote
1answer
188 views

Can TC limit bandwidth by the Qos field of IP header

We are developing a client/server applications. There are three types of network data in our server app: Realtime data such as those of Video/audio, Critical Data such as those of Database data and ...
0
votes
1answer
78 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
2answers
316 views

Shaping of outgoing traffic in linux for channel with unknown width

Is there any way to divide outgoing channel between different traffic class, for example, with relation 30/70, if I don't know channel width? HTB requires exact numbers, and CBQ too.
0
votes
1answer
97 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
0answers
81 views

tc qdisk/class/filter config purely for net io accounting

What is an example of an appropriate tc qdisc/class/filter pattern when the goal is purely to collect accounting information about the outgoing (and possibly incoming) traffic stats for a class? In ...
0
votes
0answers
122 views

Using TC to throttle client's internet bandwidth not lan bandwidth

I want to throttle traffic in my network using tc. What I found if 'wlan0' is from where my internet comes in to my Linux machine and 'eth0' to my internal network. I've so far found solution for ...
3
votes
2answers
123 views

Can TC (Linux Qos Utility) limit bandwidth usage of target applications?

We have many applications running on the same server machine which is inside a network of servers. We want limit the bandwidth of our applications to specific value. So here are some choices: ...
0
votes
0answers
36 views

How to use tc do add delay of 1 sec on tcp connection but exclude the syn package?

I want to delay package to a server but i don't want to delay on the syn or nslookup package. How can I do that with tc? I am pretty new to tc or netem. Thanks,
0
votes
0answers
67 views

Fair bandwidth sharing between lxcs

I'm trying to balance network bandwidth between a number of lxc's (which is variable) and the system itself to ensure it stays reachable. My current (not working) approach is as follows: tc qdisc add ...
0
votes
1answer
42 views

How can we set variable throttle bandwidth values using tc?

I'm building a network application and need to test its behavior under various bandwidths. This question is an offshoot of this question. I was successfully able to test my application for different ...
2
votes
1answer
561 views

tc filter replace, tc filter change doesn't work

I have a tc filter rule: tc filter add dev eth0 protocol ip prio 1 u32 match ip dst 10.0.0.3 flowid 1:14 if I try to 'change' this filter rule I get an error: # tc filter change dev eth0 protocol ...
0
votes
1answer
543 views

How to add delay to incoming traffic?

For purpose of continuous testing, I would like have apache server to serve static files with at least 20ms delay. I tried to find a apache configuration setting or a plugin with similar ability, but ...
0
votes
0answers
96 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 ...
1
vote
1answer
2k views

Linux Traffic Control: qdisc mq

On my Linux system I see this: # ip link list .... 2: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 .... What's qdisc mq? In ...