Questions tagged [tc]

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

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

233 questions
4
votes
3 answers

Making iptables recognize youtube streams and large files

I use Ubuntu server 10.04 with the stock kernel as a NAT router. I use iptables and tc to do port based traffic prioritization. It is working fine. I have given http higher priority. So my network gets swamped with youtube and bigger http downloads.…
nixnotwin
  • 1,513
  • 5
  • 34
  • 54
4
votes
2 answers

HTB.init / tc behind NAT

I have an Ubuntu 10 box that I'm trying to set up as a bandwidth-shaping router. The machine has one WAN interface, eth0 and two LAN interfaces, eth1 and eth2. NAT is configured using MASQUERADE as described at InternetConnectionSharing. I'm mostly…
Ben K.
  • 2,149
  • 4
  • 17
  • 15
3
votes
1 answer

How to remove the ingress delay introduced using tc

I learned that we can introduce delay to ingress packets using tc by following the commands specified in : https://wiki.linuxfoundation.org/networking/netem#how_can_i_use_netem_on_incoming_traffic3f Section: How can I use netem on incoming…
Dinesh
  • 171
  • 1
  • 4
3
votes
1 answer

Multiqueue tun/tap interface

I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt I was able to create multiple queues. However, I don't know how to check the…
Deys Nima
  • 51
  • 5
3
votes
0 answers

Adding some delay to a specific port on localhost using tc and netem

I'm going to simulate a network latency on three different ports of local host by using tc (traffic control for Linux) commands. I run the following code: !/bin/bash tc qdisc add dev lo root handle 1: htb tc class add dev lo parent 1: classid 1:1…
Folani
  • 31
  • 3
3
votes
0 answers

How to configure per IP bandwidth control using TC?

Requirements: There is an arbitrary number of users per group. Bandwidth for any particular group is 1000kbps. Bandwidth for each user in a group is 70 kbps. At any time no user should not consume bandwidth more than 70kbps. I am using tc & iptables…
3
votes
2 answers

How to limit speed for every device per MAC address in the gateway via Linux command "tc"?

I have a gateway whose OS is Linux.Assume my downlink bandwidth is 100 Mbps. I want to limit the max download speed to 1Mbps for every device which uses this gateway.In other words, if there are 100 devices, every device can get 1 Mbps bandwidth in…
Shuangfeng He
  • 33
  • 1
  • 4
3
votes
1 answer

How to add latency and bandwidth-limit interface using tc?

I know I can add latency to an interface using this command: # tc qdisc add dev eth0 root netem delay 50ms In addition to latency, I want to limit the bandwidth of this interface to 100kbps. How can I do this? I've seen some examples of how to…
Runcible
  • 2,955
  • 3
  • 22
  • 15
3
votes
1 answer

How to do traffic shaping (rate limiting) with TC per OpenVPN client

This question is related to another question with a great answer and script from @Oliver. The goal: I want to modify/extend the script provided in this answer to suit my requirements, which are as follows: I have a large number of clients (up to…
Server Programmer
  • 237
  • 2
  • 4
  • 11
3
votes
1 answer

linux tc qdisc pie (aqm) configuration with limited bandwidth

I would like to configure AQM PIE by using tc-qdisc, but at the same time I would like to limit the bandwidth to 1Mb/s. I have used similar configuration with fq_codel, i.e. I have limited the bandwidth by using htb, and later configured fq_codel…
3
votes
1 answer

How to limit outgoing traffic per IP Address using Linux TC

I want to limit outgoing traffic per IP address. For example I have a network interface eth0, having 1Gbps of bandwidth. I want to limit the whole network interface to 1Mbps each destination IP Address. For example 1Mbps for 192.168.1.1 and 1Mbps…
Hamid Soltani
  • 41
  • 1
  • 3
3
votes
2 answers

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: suppose we have three apps:…
Steve Peng
  • 509
  • 1
  • 8
  • 18
3
votes
2 answers

how to limit upload bandwidth per user in linux?

Can anyone provide the tc command to limit upload bandwidth per user in Debian Lenny? I found that to mark packets per user with iptables I can use the following command iptables -t mangle -A OUTPUT -p tcp -m owner --uid-owner testuser -j MARK…
Gihan Lasita
  • 377
  • 1
  • 4
  • 9
3
votes
2 answers

tc prio qdisc for priorization of mysql traffic

I am struggling with tc prio qdisc for a few hours now. I have read the lartc Documentation, Examples and HowTos, but this whole thing is kinda new for me and somewhat confusing :) So this is my scenario: A couple of fileservers serving a…
Niko S P
  • 1,182
  • 8
  • 15
3
votes
3 answers

TC hashing filters - single rule deletion

For traffic shaping I'm currently using a setup that looks exactly like the setup from LARTC, on this page: http://lartc.org/howto/lartc.adv-filter.hashing.html I have a simple problem with that - everytime I want to modify something in the hash…
exa
  • 571
  • 4
  • 14
1 2
3
15 16