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
1
vote
1 answer

throttle outgoing linux network traffic under high latency

I want to slow my outgoing traffic when it encounters congestion, and measure "congestion" by packet response times. The intent is to avoid one NFS client starving all the other clients when performing large writes. I've read a good deal of…
bukzor
  • 263
  • 3
  • 9
1
vote
0 answers

tc rule not matching when applied on virtual interface created with Docker

I'm trying to delay traffic between containers (container1 calling container2) from a third container that has access to the host network and having capability NET_ADMIN (container3_admin). When I apply the following tc rules on the container I want…
1
vote
1 answer

tc command does not affect on two processes in a same machine

I am wondering why tc command does not work as expected. I set the command like the following tc qdisc add dev eno0 root handle 1:0 tbf rate 50mbit burst 25kb limit 250kb where I'm expecting outbound communication is simulated over 50Mbps…
user9414424
  • 171
  • 1
  • 4
1
vote
1 answer

tc match IPv4 fragment offset

What is the correct Syntax for matching Fragments that have and Offset > 0 in tc? I have tried: ... u32 match u8 255 ff at 7 flowid 2:1 But to no avail
John
  • 11
  • 2
1
vote
1 answer

Revert tc back to original that existed before the tc command?

I did this which worked great to limit my host's bandwidth. But now I want to return to full speed. Sadly my command is not right. ga@ga-EX58-UD4P:~$ sudo tc qdisc add dev eth1 ingress [sudo] password for ga: ga@ga-EX58-UD4P:~$ sudo tc filter add…
1
vote
1 answer

Delaying Server response for specific IPv6 address

I have 3 servers configured with IPv6 address and I want to add some delay to a couple of servers say S1 and S3. For IPv4, I'm using 'tc' command and it's working fine. Commands using for IPv4 address: tc qdisc ls dev eth1 tc qdisc add dev eth1…
metadata
  • 121
  • 5
1
vote
1 answer

TC- HFSC : Can we have TC rule to set classes with minimum guarantee, but no maximum limit?

Can we set a rule where i can specify that my particular traffic will get minimum b/w no matter what, but no max limit if bandwidth is available. Eg : I have 20 mbps line. i want to set minimum 5 mbps for my voip traffic. so in case no one is using…
kulhar
  • 11
  • 1
1
vote
1 answer

htb multiply root rate by 8

I am changing the queue discipline to HTB, creating a parent node, and 3 children which are the classes. sudo tc qdisc add dev em1 root handle 1: htb sudo tc qdisc add dev em1 parent 1: classid 1:1 htb rate 1000kbps ceil 1000kbps sudo tc class add…
Tony Tannous
  • 103
  • 9
1
vote
2 answers

Why doesn't this "tc filter" rule classify the traffic at intended?

I'm trying to configure some basic traffic classification to limit the maximum ingress bandwidth for every machine in my local network to 3 Mbps. I'm operating the gateway 192.168.2.1, where the interface eth1 is attached to a switch to provide…
1
vote
0 answers

tc prio how the packets are prioritized

I want to use tc prio queuing discpline for scheduling packets in a particular order. I want to send out packets to destination port 5555 with the highest priority and packets to destination port 6666 with medium priority and all the other packets…
vijaya
  • 11
  • 3
1
vote
0 answers

force tbf qdisc to drop traffic

I have several virtual netspaces on my server connected via the virtual adapters. One of the connections between the netspaces is limited to 10 Mbps: root@core-wkst:/var/log# tc -s qdisc show dev veth7dbb.0.1 qdisc tbf 1: root refcnt 2 rate 10Mbit…
jpou
  • 131
  • 4
1
vote
1 answer

How to set an general network limit per client + priority for TCP acknowledgements

Following situation: Network A is connected to network B over an slow connection. Different hosts in network A would like to send traffic to hosts in network B. Hosts in network B sending commands to network A. What to do: Allow hosts in network…
Mr Mueseli
  • 11
  • 2
1
vote
1 answer

I need it simulate a delay to a certain IP over as certain port

I need to simulate a traffic slow down to a certain service. That means I need to slow connection on a certain port. I have this script that introduces a delay to a certain IP on all ports, but other services run on that system that I cannot slow…
GreenFox
  • 111
  • 1
  • 2
1
vote
0 answers

Use tc qdisc netem to emulate delay, but ssh gets slow down

I have 3 VMs, A, B, and C. These VMs are all under the same network. On VM A, I use the following commands to introduce a delay to VM B. tc qdisc add dev eth0 root handle 1: prio tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst…
Wei-Tsung
  • 11
  • 2
1
vote
2 answers

Traffic shaping with iptables, ipset and tc (--match-set and --set-mark)

I am having some trouble with what I believe should be a fairly straightforward traffic shaping problem. I have an Ubuntu (16.04) server that is acting as a router/nat. I want to allow most users to use 2mbps internet, whilst throttling some devices…
Gav
  • 113
  • 1
  • 4