Tc is used to configure Traffic Control in the Linux kernel.

learn more… | top users | synonyms

1
vote
2answers
137 views

How do I verify the parameters set using tc command?

I am in need of simulating a high latency and low bandwidth connection for a performance test of my application. I have gone through a number of pages describing the tc command. But, I haven't been ...
2
votes
1answer
441 views

Is Traffic control inside namespace on ports created by OpenvSwitch supported?

I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to https://lists.linux-foundation.org/pipermail/containers/2009-...
2
votes
1answer
327 views

Are dropped packages in traffic control really dropped?

While having a slight timeout problem in my network (the router needed some rest, so that's solved) I found myself trying to decipher tc -s output, after noticing that the "dropped" values represented ...
1
vote
1answer
19 views

Using qdisc prio under htb class

I have 2 services, both operate over the same interface. Service A goal is keep high bandwidth while sending massive amount of data. Service B goal is low latency. Service B packets should always ...
1
vote
1answer
30 views

How to apply a parameter to packet so TC can prioritize\classify it

I want to add a parameter to the packet so that I can later let TC (HTB in specific) prioritize my packet (based on filtering that parameter). I thought about filtering by socket but as I understand ...
1
vote
1answer
484 views

Bandwidth throttling per user group

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 ...
4
votes
0answers
114 views

TC (Traffic Control) to control bandwidth

I'm having an issue with a bandwidth script that I've been using for a while to limit the outgoing bandwidth on a port. It worked fine at the beginning until I wanted to change the outgoing port ...
4
votes
0answers
44 views

Queuing disciplines are per-interface, what happen 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 ...
3
votes
0answers
2k views

Is it possible to throttle upload bandwidth per `IP` basis using `tc`, `htb` and `iptables` ? (Download limitation not required)

Problem I've searched internet like anything but couldn't find much about limiting upload. The solutions given are not limiting IP basis like this one but LAN as a whole. +-----+ +------...
3
votes
0answers
204 views

tc cbq doesn't work (no traffic limitation)

I've been trying to use cbq weight attributes after HTB failed to do so. I've tried using a command set I've found in an example just to verify it works (HTB works fluently) Here are the commands I ...
2
votes
0answers
194 views

Dropping packets before mangle POSTROUTING

In iptables on Linux 3.10, why do packets which have been DROPed by the FORWARD chain of the standard table still appear in the POSTROUTING chain of the mangle table? -- I'm trying to use the standard ...
2
votes
0answers
285 views

Filter UDP packet in tc filter

Hello I'm trying to limiting the bandwidth on my iperf udp test (iperf -u). I use tc qdisc and class to make some assured rate and ceiling rate for it. However, I don't know what filter I should use ...
2
votes
0answers
81 views

How to limit network bandwidth after some data transferred?

So the question is in the name of topic. How to limit bandwidth I know. Using tc. But how to do so after, for example, traffic had reached 500MB. And after some time reset the limits.
2
votes
0answers
166 views

Failing to apply tc filter

I've run the example at ifb both con Centos and on Fedora tc filter add dev eth0 parent 1: protocol ip prio 10 u32 match ip src 192.168.200.200/32 flowid 1:2 action police rate 10kbit burst 90k ...
2
votes
0answers
503 views

Traffic shaping with tc does not work

I want to limit the outgoing traffic to a specific bandwidth. My Code: tc qdisc add dev vif1.0 root handle 1: htb default 30 tc class add dev vif1.0 parent 1: classid 1:1 htb rate 1mbit tc class add ...
2
votes
0answers
171 views

How to fairly share bandwidth between IPs with tc?

I have a linux router (d-link 320-nru) with tc installed. I have some users' computers to fairly share bandwidth between them. Also there is such complication as inconstant uplink bandwidth. How can ...
1
vote
0answers
14 views

How is the IMQ device positioned in the packet flow of the Linux kernel

I would like to know the exact position of the following device in the packet flow for ingress traffic shaping: IFB: Intermediate Functional Block I would like to better understand how packets are ...
1
vote
0answers
18 views

Get list of qdiscs and filters that are supported by tc tool

Depending on how it was compiled and on its version number, tc tool does not always handle the same list of queueing disciplines, filters, policing actions and so on. I am looking for a way to get a ...
1
vote
0answers
70 views

How to limit the number of connections per-host passing through a router/bridge?

For some reasons, our Internet provider has a limitation on the number of simultaneous opened connections between the machines hosted in our private network and the Internet which is around 4000 ...
1
vote
0answers
51 views

How to configure bandwidth throttling for all FTP?

I configured bandwidth throttling for ftp by using following commands sudo /sbin/tc qdisc add dev eth0 root handle 1:0 htb default 1 sudo /sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb rate ...
1
vote
0answers
455 views

Running tc inside a container

I have a debian-lastest container launched from Docker in interactive mode. I want to simluate network delay on this container, using tc. I was trying to use this command: root@a859600f8ea0:/# tc ...
1
vote
0answers
47 views

Fair traffic classification using TC

I want to apply a qdisc I developed on myself (quite similar to netem. Think netem.) to several IP-addresses using the filter classifier. No problem this far, I could do so using the prio qdisc or HTB ...
1
vote
0answers
128 views

Xen and traffic shaping

I want to limit the incoming and outgoing traffic for a guest machine on a Xen Host. There is a total of 1000Mbit/s available on the host. The guest machine has its own interface, let's say vif1.0 ...
1
vote
0answers
105 views

No traffic tc class at bridge interface

I make bridge interface like this [root@]# brctl show bridge name bridge id STP enabled interfaces br67 8000.002655e38b20 no eth6 eth7 ...
1
vote
0answers
52 views

Traffic Control user permission

My users need to emulate packet loss on RTP video streams to achieve visual effects. We are in a artistic environment and don't worry about security. The application works only as super user. I ...
0
votes
0answers
7 views

Shape traffic flowing through dd-wrt router

I am working on an experiment in which several devices connect to each other via a wireless network. I want to be able to shape the traffic between the devices, i.e., control the bandwidth, latency, ...
0
votes
0answers
122 views

Limit upload speed to port 80/443 per ip address

I'd like to implement a max-upload speed to protect my server that accepts uploads. I'd like to throttle inbound to 80 and 443 to 1 Mbps. I know it can be done with iptables/tc but I can't figure it ...
0
votes
0answers
27 views

How to calculate idle time in Class Based Queueing (CBQ)( in TC Command)

I found this LINK, manual for the tc-cbq command in linux. But couldn't understand, how to calculate the avg idle time and some other parameters like allot bytes, avpkt bytes. How these are ...