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

learn more… | top users | synonyms

1
vote
2answers
21 views

Percentual dynamic bandwidth control with tc

Does anyone know if tc (iproute2) can be used to percentually divide the currently available bandwidth? We're on a GPRS connection on which the available bandwidth changes frequently. What I want to ...
0
votes
0answers
23 views

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 ...
0
votes
1answer
55 views

Add latency and random packet drops excluding SSH packets

I want to add some random delay/drop to all packets excluding SSH packets. I can do that to all packets this way: tc qdisc change dev $NIC root netem delay 100ms 10ms 25% tc qdisc change dev $NIC ...
0
votes
1answer
77 views

RTNETLINK answers: File exists when using netem with tc

So I simply get this error when I enter this command in my master VM: sudo tc qdisc add dev eth0 root netem delay 97ms RTNETLINK answers: File exists Any idea how that could be fixed? I am ...
1
vote
1answer
53 views

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 ...
1
vote
0answers
21 views

iptables mark is not persisting after MASQUERADING [closed]

iptables -i eth0 -t mangle -I PREROUTING 1 -m mac --mac-source $mac -j MARK --set-mark 88 echo "1" > /proc/sys/net/ipv4/ip_forward iptables -A FORWARD -i wlan0 -o eth0 -m state --state ...
0
votes
0answers
14 views

traffic shaping using ifb redirect

I would like to use ifb to perform some shaping for multiple virtual interfaces. However, I am not sure how to tell the ifb interface to egress to a dedicated egress interface Right now vnet0 -> ...
0
votes
1answer
70 views

Limit input on a given port with tc filter and u32 match

I'm trying to rate-limit all incoming traffic on ports 8128-8191. I've read everything I found, checked everything ten times, it still doesn't work. The commands: tc qdisc del dev eth0 root tc ...
0
votes
0answers
44 views

tc add delay by specific port

Am trying to simulate WAN latency between an application server and an Oracle database server. The database server itself runs several instances, one of which is my applications 'local' instance, ...
2
votes
0answers
27 views

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 ...
0
votes
0answers
59 views

What is means in tc “Unparsable filter ID ”2:“”

I wrote a shell script for limit upload speed by tc and cgroup. #!/bin/bash -x mkdir -p /cgroup/imagecenter mount -t cgroup -o net_cls image_net /cgroup/imagecenter/ mkdir -p ...
0
votes
0answers
36 views

TC - delete exact filter

Im't trying to automate traffic shaping on some system n one interface, using next script. This script adds classes and filters by one per class, width command like: tc filter add dev eth0 parent 1: ...
1
vote
0answers
120 views

Linux traffic shaping for multiple clients with tc [closed]

I need to divide bandwidth between several clients connected through IPSEC. I found this article: ...
0
votes
1answer
99 views

RTNETLINK answers: Invalid argument while specifying packet loss by tc command

I am trying to specify packet loss by tc command on interface (port) 1 of switch part of network I have created using mininet : sudo tc qdisc change dev s1-eth1 root netem loss 0.1% but gettring ...
0
votes
1answer
310 views

Is there a way to limit bandwidth per ip using HTB + a CIDR range in Linux?

I can create rules to limit a entire subnet or to limit individual ip addresses with tc and htb. I am looking to use CIDR ranges to keep things somewhat elegant. The machines in question are all ...
0
votes
0answers
110 views

Limiting bandwidth to a specific IP

My question is very similar to http://serverfault.com/a/191605/253872 however I wish not to limit someone on my network, but traffic from my server to a specific IP. In reference to the script in the ...
0
votes
0answers
87 views

TC fails to shape traffic with DRR

I try to control outgoing traffic from my server. I want to have several classes with different QoS parameters. For the scheduling I'm using DRR. The following commands (should) create a Tree of ...
0
votes
0answers
86 views

Bandwidth Policing on Linux gateway - not QoS

I have a linux server providing NAT to a large subnet (/16) using iptables to-destination + multiple external ip's to survive port exhaustion. I've looked at using tc / htb such as here Limiting ...
0
votes
0answers
194 views

Traffic Control in OpenStack Neutron with either TC or OpenVSwitch

As far as I know, QoS in OpenStack Neutron is still under development and not production-ready (I could be wrong on this point though, shout at me if so...), but we are required to implement traffic ...
1
vote
1answer
202 views

How can I do traffic shaping in Linux by IP for both way communication?

Well, I've already gone through How can I do traffic shaping in Linux by IP? on serverfault & what I'm trying to achieve is pretty much same. Internet--------Linux Router----Switch-----Clients ...
2
votes
1answer
574 views

Limiting bandwidth on Ubuntu Linux

I am in the situation where I have to simulate a P2P-environment (for my masters thesis in computer science). To do that I am using Docker with Ubuntu to create a bunch of virtual machines that is ...
0
votes
1answer
325 views

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 ...
0
votes
0answers
46 views

Dumping specific tc class data

I'm using tc classes to manage the bandwidth for a couple of customers. Every Customer has got his own tc class on both interfaces of the router. # root Outgoing ${tc} qdisc add dev $EXTIF root ...
0
votes
0answers
47 views

tc using HTB consumes all available memory - until crash

Have a question about HTB ceil setting and why a very high ceil would cause rapid memory consumption: I use linux 2.6.37 and tc HTB for traffic shaping with six classes. Since we use payload ...
0
votes
0answers
182 views

Using net_cls with tc to shape ingress

I've successfully set up egress shaping using tc and net_cls, but am having a lot of trouble doing the same for ingress. I've tried using the basic tc ingress qdisc with a filter as well as using IFB ...
1
vote
0answers
22 views

How do I cap each individual tcp stream, to a fixed maximum rate?

I've read but not in depth all the various traffic shaping docs and seen the long question on HSFC scheduling Does anyone really understand how HFSC scheduling in Linux/BSD works? looked at the ...
2
votes
3answers
231 views

Advanced dynamic routing with external program

I need to build a system in which i am able to route packets based on a number of parameters, such as port/protocol etc, which are somehow "normal", but also on other aspects, such as queue length, ...
0
votes
1answer
110 views

Using tc to delay packets to all IP address except for a single IP address

I'm familiar with this post here: Using tc to delay packets to only a single IP address Which will delay outbound packets to a single IP address. I want to do the opposite, which is to delay all ...
0
votes
1answer
66 views

Linux Traffic Shaping: ceil rate never reached

My application run on port 8080. I have this iptables command: iptables -A OUTPUT -t mangle -p tcp --sport 8080 -j MARK --set-mark 10 I have also theses TC rules: tc qdisc add dev eth0 root handle ...
-3
votes
1answer
176 views

Understanding a shell script [closed]

there i am trying to understand the purpose of this shell script. If anyone can help out i would appreciate it. Thanks! This is located in android system at system/etc/throttle.sh #!/system/bin/sh # ...
1
vote
2answers
342 views

Linux: limit specific port rate by combining tc with iptables does not work as expected

The script blow tries to limit the incoming rate of the port 2000, when using iptables to mark the INPUT packets does not work, but OUTPUT works fine. I use nc -kl 2000 on machine 10.0.1.54 and iperf ...
1
vote
0answers
762 views

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 ...
2
votes
1answer
1k views

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 ...
0
votes
0answers
49 views

How to change give highest priority to Mail traffic on port 25 with tc

How can I give the highest priority to mail traffic on port 25 whit tc? I tried prio option but It didn't work out for me or maybe I'm missing something. I'd appreciate any help.
1
vote
0answers
557 views

Linux Traffic Controller (Linux tc): hierarchical token bucket (htb) packet queue size

In my Linux router, I am using the following configuration to limit the rate of traffic towards port 44444 of a client in the LAN (client address is 192.168.10.2, connected through the router's eth1 ...
-1
votes
1answer
117 views

tc-qfq is classless error

I'm using Linux 3.0.101 with iproute2-3.4.0 on a router and I'm getting this error: tc qdisc add dev eth2.2 root handle 1: qfq --> OK tc class add dev eth2.2 parent 1: classid 1:10 qfq weight 1 ...
1
vote
1answer
6k views

Debian7 and tc qdisc issue : RTNETLINK answers: No such file or directory

I've been searching for few days now but couldn't find the solution to my problem. I have a VPS running Debian 7, and I have root access. I am trying to add some traffic shaping (using HTB), so the ...
-1
votes
4answers
241 views

Is there anyway to tell what user will receive data from inbound packet?

In linux, considering this use case: 1. User initiates http request for webpage to remote server 2. Remote server answers request and sends packets Is there any reference to the user who started ...
1
vote
0answers
56 views

How to test if packet has been tagged with classid

I'm trying to troubleshoot an issue I'm having related to IFB Mirroring which I'm attempting to deploy based on this question: Tc: ingress policing and ifb mirroring My theory is that since the ...
4
votes
1answer
427 views

linux tc htb bandwidth ceil being ignored and giving improper results

I'm setting up some htb packet queues like so: tc qdisc add dev eth0 root handle 10: htb tc qdisc add dev eth1 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1012 htb rate 750kbps ...
1
vote
0answers
96 views

Group traffic shaping with traffic control?

I'm trying to limit the output bandwidth generated by an application with linux tc. This application sends me the source port of the request that I use has a filter to limit each user at a given ...
0
votes
1answer
150 views

Is it possible to limit output bandwidth between eth0 and lo?

I'm trying to limit the bandwidth between my eth0 output (nginx proxy) to my loopback inteface (apache) by filtering on destination port. Incoming Packet -> Eth0 -> 0.0.0.0:80 Nginx -> tc ...
0
votes
0answers
323 views

Trouble using net_cls control group in tandem with tc for packet filtering

I'm having some trouble limiting network bandwidth using the net_cls control group in conjunction with the linux traffic controller (tc). I think I might just be confused about how I'm writing the ...
1
vote
0answers
135 views

Trying to understand HTB subclasses rate

I'm currently studying the opportunity of using an Ubuntu server to provide QoS instead of my consumer-class router. I've read a lot of resources about tc and HTB queuing disciplines - which look to ...
2
votes
0answers
295 views

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 ...
2
votes
1answer
2k views

Implementing HTB, NetEM, and TBF traffic control simultaneously

I am working on a bash utility that will use several aspects of the tc Linux command line utility to emulate various network conditions. I have successfully constructed several qdisc hierarchies, one ...
0
votes
1answer
378 views

Limit monthly traffic per interface

I'm trying to deploy an application for a limited monthly traffic. Please can you tell me how can I do this ? I need to limit traffic on an interface under linux.
3
votes
1answer
332 views

Bandwidth Throttling using tc qdiscs

I am trying to limit the bandwidth between a simple iperf server and client, using a third, passive machine acting as a bridge. With no interference, iperf returns a bandwidth of ~90 Mbits/sec. My ...
0
votes
1answer
514 views

How to slow down and share incoming network traffic using TC (traffic shaping)

I am trying to slow down incoming packets for a specific program, while a second one will have full access to the unused bandwidth. In other words, I want to control the network bandwidth sharing in ...
3
votes
1answer
534 views

Meaning of requeues of tc command

I ran this tc bellow and it outputs requeues with high number, do you know what this requeues means? By the way, it keeps increasing over the time. I look at man tc but I couldn't find anything. $ ...