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

learn more… | top users | synonyms

0
votes
0answers
10 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 ...
1
vote
0answers
21 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 ...
3
votes
0answers
357 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. +-----+ ...
4
votes
1answer
102 views

How to configure QoS per IP basis?

We have say 4 users in a private network connected to the Internet trough a Linux router with a public IP address that is doing network address translation (NAT). I gotta configure QoS to give access ...
1
vote
0answers
72 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
1answer
48 views

how to use tc with htb on arch-linux

I'm trying to use this tc script on my arch box. Specifically, the first line, roughly equal to tc qdisc add dev eth0 root handle 1: htb default 3 fails with RTNETLINK answers: Operation not ...
0
votes
0answers
7 views

why do I need to specify 'htb' when I declare a class in traffic controll?

I'm reading the following guide and I have to say it is pretty clear, but I don't understand why thing. When it declares a class it does so: tc class add dev eth0 parent 1:1 classid 1:10 htb rate ...
1
vote
0answers
18 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 ...
3
votes
3answers
229 views

monitor bandwidth on interface with tc or iptables

I would like to log a warning message to /var/log/messages file if either ingress or egress bandwidth on eth0 interface is over a certain threshold. I could do this with a script which reads the value ...
2
votes
0answers
77 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 ...
0
votes
0answers
80 views

Corrupted Packets in IFB on OpenWRT

I'm trying to do ingress shaping on OpenWRT barrier breaker.. I have each port on a separate VLAN and I have two of the VLANs bridged. I've setup a transparent firewall between those VLANs ...
2
votes
1answer
213 views

QoS with TC qdiscs: is it possible to have ALL outbound connections have x speed limit per unique IP?

I'm trying to setup QoS in my VPS so that I can have any new outbound connection to a unique IP gets limited x speed. For instance: have 5 public IP's requesting data from my VPS. When the VPS ...
0
votes
0answers
39 views

How to delete filter (classifier) in Netlink (libnl route)

According to the API, in order to delete a filter I must provide the following attributes : (others are optional) ifindex priority protocol handle The problem with filters (unlike other TC ...
3
votes
0answers
116 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
219 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 ...
2
votes
0answers
138 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 ...
1
vote
0answers
77 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
1answer
20 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 ...
4
votes
2answers
3k views

set packet rate limit via iptables

I have a packet rate limit (max. 10 per seconds) which is set by my internet provider. This is a problem if I want to use the AceStream player, because if I exceed the limit I get disconnected. How ...
0
votes
0answers
28 views

what are the hash functions used by SFQ classless qdisk?

I noticed an example of creating an SFQ, in which the only parameter is perturb which is the period to switch hash function to another. I was wondering what are the hash functions used by the SFQ, are ...
1
vote
0answers
65 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 ...
5
votes
1answer
506 views

Can't get tc to limit network traffic

Based on this section of the Linux Advanced Routing & Traffic Control HOWTO, I can't get tc to limit the network speed in my computer. Basically, I have 13 machines in the network, and this ...
0
votes
0answers
314 views

Simple QoS configuration with PRIO Qdisc is not working

Im using Ubuntu 12.10 OS and i want to prioritize ICMP traffic over any other traffic in the egress queue of eth0 interface (as it is my default route to internet). By default this is the qdisc ...
2
votes
1answer
182 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
0answers
42 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 ...
2
votes
0answers
60 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
1answer
178 views

SSH tunnelling outgoing traffic shaping

I am using an OpenSSH server for a client app that uses the traffic forwarding, SSH tunnelling and some users are consuming an extraordinary amount of bandwidth. Is there a way to shape the traffic on ...
4
votes
0answers
41 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 ...
4
votes
2answers
1k views

Bucket size in tbf

I've read many times about Linux's token bucket filter (tbf) and still I don't fully understand how I should calculate the burst and latency parameters, shame on me :( I suppose that a reasonable ...
1
vote
1answer
345 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 ...
1
vote
1answer
56 views

Having several qdisc for each device, which is the first to process?

I have read about queuing disciplines here http://lartc.org/. Having this traffic shaping policy: .... qdisc pfifo_fast 0: dev ppp0 root bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc ...
1
vote
0answers
131 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
2answers
4k views

tc show output explanation

I've found useful run watch along tc, for example: [root@router ~]# watch -dc tc -p -s -d qdisc show dev eth0 Every 2,0s: tc -p -s -d qdisc show dev eth0 ...
2
votes
1answer
494 views

About hfsc parameters

I'm trying to use hfsc, so I've read the HFSC Scheduling with Linux I understand some concepts but shame on me, I don't understand how the values are calculated, for example: The concept of the ...
2
votes
1answer
278 views

remove tc filter (Traffic Shaping)

How can I remove a single filter? tc filter show dev peth1 shows filter parent 1: protocol ip pref 16 u32 filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1 filter parent 1: protocol ip ...
2
votes
0answers
352 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 ...
3
votes
1answer
493 views

Why don't the following commands work to limit traffic to port 21 using tc?

In my quest to find a way to limit outgoing bandwidth for a running instance of bitcoind, I came across this guide that explains how to rate limit traffic to a particular destination IP: tc qdisc add ...
2
votes
1answer
360 views

Explanation of bandwidth management script calling tc

I have some scripts in Linux to manage internet bandwidth, but I do not understand what they do. What is the meaning of the following scripts: tc qdisc add dev $IF root handle 1: htb default 256 tc ...
4
votes
1answer
1k views

tc on bridge port

I have a 4 port bridge: root@Linux-Switch:~# brctl show bridge name bridge id STP enabled interfaces br0 8000.000024cd2cb0 no eth0 eth1 ...
2
votes
0answers
267 views

Limit internet speed without tc [closed]

I have been using deb based Linux for years and I never had problems limiting the internet speed using wondershaper. On my sisters PC I had to install puppy Linux because it's a very old PC. The ...
3
votes
1answer
865 views

tc class rate 50Kbps != 50K/s in wget?

Got the following test rule setup: tc qdisc add dev wlan0 root handle 1: htb tc class add dev wlan0 parent 1: classid 1:1 htb rate 1000Mbps tc class add dev wlan0 parent 1:1 classid 1:5 htb rate ...
3
votes
1answer
3k views

tc don't see marked with -j MARK packets

Server has 2 network interfaces: eth1 with address 13.0.0.254/24 eth0 with address 172.20.203.4/24. It's routing traffic between this two networks. Task is to limit bandwidth between this two ...
1
vote
1answer
637 views

Is Traffic Control (tc) broken in Fedora 17?

After upgrading from Fedora 16 to Fedora 17, Traffic Control no longer seems to work. Running # tc qdisc show will output: qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priopmap 1 2 2 2 1 2 0 ...
14
votes
4answers
7k views

Understanding tc qdisc and iperf

I'm trying to limit bandwidth with tc and check the results with iperf. I started like this: # iperf -c 192.168.2.1 ------------------------------------------------------------ Client connecting to ...
2
votes
0answers
158 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 ...
4
votes
1answer
1k views

How can I configure fair bandwidth sharing between cgroups?

It's fairly easy to use tc with Stochastic Fairness Queueing (SFQ) to configure fair bandwidth sharing between flows, but an application can open multiple flows and get an unfair share of bandwidth. ...
2
votes
2answers
2k views

Reducing packet loss in tc rate limiting

I use this tc command to limit upload speed on an interface: tc qdisc add dev eth1 root tbf rate 2mbit burst 10kb latency 70ms peakrate 2.4mbit minburst 1540 But it results in heavy packet loss. ...