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

learn more… | top users | synonyms

1
vote
0answers
17 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
22 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
14 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 ...
2
votes
2answers
192 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
10 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
39 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
177 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
91 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
98 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
34 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
49 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
101 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 ...
3
votes
0answers
33 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
625 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
210 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
50 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
91 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
2k 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
225 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
127 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
246 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
1answer
301 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
225 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 ...
3
votes
1answer
790 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
225 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
675 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
2k 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
570 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
3answers
5k 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
141 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
960 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
1k 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. ...