Questions tagged [tc]

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

148 questions
16
votes
2 answers

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 latency is around 50 ms. OK, but what value should…
sebelk
  • 4,209
  • 10
  • 35
  • 54
15
votes
4 answers

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 192.168.2.1, TCP port 5001 TCP window size: 23.5…
8
votes
1 answer

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 eth2 …
tMC
  • 1,175
  • 1
  • 9
  • 12
6
votes
1 answer

How is the IFB 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 flowing to this device and exactly when this…
rda
  • 921
  • 1
  • 6
  • 16
6
votes
2 answers

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 can I restrict the internet access of this…
Andy
  • 85
  • 1
  • 2
  • 8
6
votes
1 answer

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. The router is a Motorola SurfBoard modem with a few routing capabilities and firewall. The machine I want to limit…
admirabilis
  • 4,642
  • 9
  • 41
  • 57
5
votes
1 answer

Adding qdisc under the mq top-level qdisc

This LWN article suggests that one may add/replace the network scheduler for a queue "under" the mq "dummy scheduler." These two point to that end: The mq scheduler does two things: - present device TX queues as classes, allowing to attach …
Andrew Falanga
  • 509
  • 8
  • 19
5
votes
2 answers

Tc qdisc delay not seen in tcpdump recording

I have two linux containers connected with a veth-pair. At veth-interface of one container I set up tc qdisc netem delay and send traffic from it to the other container. If I watch traffic on both sides using tcpdump/wireshark it can be seen that…
JenyaKh
  • 304
  • 4
  • 14
5
votes
2 answers

Limit bandwidth of individual HTTP requests while not throttling total bandwidth

Looking at tools like tc, wondershaper, htb and comcast, all these tools seem to operate on the level of a network interface or at least a "connection group" for limiting bandwidth. I'd like to not throttle bandwidth for a group of connections, but…
turtlemonvh
  • 196
  • 1
  • 7
5
votes
1 answer

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 have to configure QoS to give access to the users to Internet but with throttled…
Neel
  • 499
  • 1
  • 5
  • 15
4
votes
2 answers

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 Sat Oct 19 21:22:26 2013 qdisc prio 1:…
sebelk
  • 4,209
  • 10
  • 35
  • 54
4
votes
1 answer

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 pref 16 u32 fh 800::800 order 2048 key ht 800 bkt 0…
Vince
  • 371
  • 2
  • 12
4
votes
1 answer

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 dev vif1.0 parent 1: classid 1:2 htb rate 1mbit tc…
Vince
  • 371
  • 2
  • 12
4
votes
1 answer

Why does tc-netem on loopback also affects other interfaces?

I'm trying to modify the network behaviour of my server(s), to simulate external/WAN connection behaviours (what ever that means). After doing tc qdisc add dev lo root netem delay 100ms, I can successfully add 100ms delay to all traffic from (and…
renyuneyun
  • 377
  • 2
  • 3
  • 11
4
votes
2 answers

Unwanted defragmentation of forwarded ipv4 packets

I want to handle ip fragments in user-space, and I am using the iptables NF_QUEUE to direct packets to user-space. The problem is that IPv4 packets are always re-assembled and delivered as one packet rather than individual fragments. For IPv6,…
lgekman
  • 333
  • 3
  • 11
1
2 3
9 10