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.

241 questions
2
votes
0 answers

Qdisc class for eth0 disappearing

I have a script that sets up traffic shaping on port eth0. The script is as follows: import os import subprocess def run(cmd): print cmd result = subprocess.check_output(cmd, shell=True) print result interface_name = 'eth0' bandwidth…
2
votes
1 answer

tc police rate packets by iptables handle?

I want to limit download speed from any IP to 800kbit, (this works) And I want to limit the download speed of marked packets to 400kbit. I don't get any errors, but it's not limiting the download speed of the packets marked with number 30. I've…
2
votes
1 answer

Minimum bandwidth limit on Linux systems

I need to limit the minimum bandwith from an IP to specific services/ports, by dropping all the packets that will not satisfy that minimum rate. I saw the attribute rate in the HTB class of the Linux tc traffic shaping tool should do this; is it the…
2
votes
0 answers

Measuring effectiveness of qdisc

I am trying to set the incoming and outgoing bandwidth of a particular interface. I set the outgoing bandwidth in the following way. sudo tc qdisc add dev f30e888e9a857_c handle 1: root htb default 11 sudo tc class add dev f30e888e9a857_c parent 1:…
2
votes
1 answer

Bandwidth throttling linux to external subnets

I am looking to start up a new open-source mirror for my enterprise, but would also be interested in opening it up for external clients as well. However, for obvious reasons, I would like to limit the outgoing bandwidth to anyone not in one of my…
ereisch
  • 121
  • 3
2
votes
1 answer

bandwidth larger than tc htb ceil in 10-Gigabit network

In classid 88:201, I set ceil 200mibps, but in fact data can be send at 218 Mibps. Any one have any ideas what I'm doing wrong? Cheers! tc qdisc add dev eth0 root handle 88: htb default 202 tc class add dev eth0 parent 88: classid 88:89 htb rate…
dd520
  • 21
  • 3
2
votes
2 answers

How to setup a netem box

I'm trying to simulate different network condition based on factors such as latency, bandwidth and so on. I found that Netem is the best way to simulate different network condition. So my desired network setup would be as below. So Netem box should…
Chandana
  • 71
  • 1
  • 5
2
votes
1 answer

QoS Traffic Shaping based on packet loss and latency for VPN

I am currently having the following situation: I am using a VPN (OpenVPN) over a rather unstable internet connection. This means the maximum bandwidth varies between 100kbs and 1mbit. Whenever the connection is rather unstable and there is high…
2
votes
0 answers

Traffic shaping linux shell users on a per-user basis

I have a debian 7 server with a number of shell users and I would like to limit upload and download rate on all interfaces (eth0, gre1, sit1) on a per user basis so each user has his own 75KB/s upload & download rate. I have looked into tc but the…
2
votes
0 answers

tc qdisc tbf - calculate sensible latency and burst from rate

I want to create a simple script that lets me limit the outgoing speed of an interface somewhere between 56k (modem speed) and 1MBit/s. I found that something along the following does the job: tc qdisc add dev eth1 root tbf rate 220kbit latency 50ms…
josch
  • 141
  • 1
  • 6
2
votes
1 answer

Traffic shaping outbound clients source ip with tc / iptables

My question is I am trying to limit a users bandwidth on a server and wondering the best way to do this. Before I dive to far into the tc/iptables I was wondering if I could get any advice on this and if someone could give me a sample config that…
dryve
  • 23
  • 3
2
votes
0 answers

HTB equal bandwith sharing per ip in one class

In my tc configuration (shown below) in one class all bandwidth is shared among connections equally, but I want to share bandwidth among all IP addresses equally. Now: 192.168.0.2 - 38KB/s 192.168.0.2 - 38KB/s 192.168.0.2 - 37KB/s 192.168.0.3 -…
denizeren
  • 329
  • 3
  • 11
2
votes
1 answer

Openvpn limit bandwidth

I would like to ask you a question concerning openvpn and the possibility to increase the bandwidth in case I want to transfer files. I have an openvpn server via which I connect to my data center. So, in some way, I want to have the ability to…
user200913
  • 71
  • 1
  • 1
  • 9
2
votes
0 answers

Is It Possible to Attach multiple Ports to a TC Filter?

I need to limit the bandwidth/rate by ports, and as a server there would be thousands of ports. Due to the limit of tc filter, I wonder if it is possible for multiple discreate ports to share a same filter. For example, suppose we have 10 ports,…
Steve Peng
  • 559
  • 1
  • 8
  • 18
2
votes
1 answer

tc filter replace, tc filter change doesn't work

I have a tc filter rule: tc filter add dev eth0 protocol ip prio 1 u32 match ip dst 10.0.0.3 flowid 1:14 if I try to 'change' this filter rule I get an error: # tc filter change dev eth0 protocol ip prio 1 u32 match ip dst 10.0.0.2 flowid 1:14 #…
user174704
  • 33
  • 1
  • 5