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

Huge lag with linux Traffic Control - TBF failed?

I've been working with Ubuntu18.04 and trying to shape the traffic with linux tc. Things went well in the passed few months. Here's my commands: # init queue sudo tc qdisc add dev enp2s0 root handle 1:0 tbf rate 20mbit limit 16k burst 10k sudo tc…
0
votes
0 answers

Traffic shaping and artificial latency per IP in a LAN network using tc/netem

for the last few days I have been trying to setup traffic shaping and artificial latency in a local network. Currently I have an Ubuntu 20.04 PC with 2 NICs, where one is connected to the company network and the other shares the connection with an…
gri40
  • 1
0
votes
0 answers

Traffic shaping with tc penalise large downloads

I have this shaping script that is supposed to penalise downloads larger than 10mb by downgrading their connection speed. If I test with one connection the penalty is in effect and the download speed is lowered to set value. If I open a new download…
Romeo Mihalcea
  • 502
  • 1
  • 6
  • 24
0
votes
0 answers

Traffic Control to Openvpn Clients

I have a group of users connecting to my server(ubuntu 20.04 x64) via OpenVPN(2.4.7) UDP. I'd like to be able to limit each user's bandwidth to say 10mb/s up and 10mb/s down using the TC command. Here is my server conf: local $myip port 1194 proto…
big0
  • 1
0
votes
0 answers

Limit bandwidth by tc per src IP

I would like to limit output bandwith to server in LAN (virtual server in fact) per IP session / or src IP in other words. My following rules on router doesn't work: tc qdisc add dev lxdbr0 root handle 1:0 htb tc class add dev lxdbr0 parent 1:0…
wrkilu
  • 1
0
votes
1 answer

HTB "rate" parameter limits available bandwidth

Good day, I have the following situation: 4 TCP streams of data from one machine to another. Each streams has its own destination TCP Port. 4 streams have different priorities : high, medium, low, bulk. High, medium, low generate 1.67Mbit/s and bulk…
Hadarelv
  • 13
  • 2
0
votes
1 answer

Where does u32 packet classifier start

I have a functioning traffic classifier that uses raw packet offsets to match on the source and/or destination MAC addresses of the packet. The filter uses negative offsets as the default appears to be offset=0 is the beginning of the IP packet. The…
axon
  • 153
  • 3
0
votes
0 answers

tc-mirred, redirecting flow matches to a dummy interface

I'm scaling a security inspection device. The rate limiting step is a single threaded process that analyses and extracts data from network flows. As a short-term goal, I would like to scale this by load-balancing from the physical capture interface…
0
votes
1 answer

Which values for Netem to emulate WAN?

I am developing a distributed application, which I'm currently running on a cluster of Ubuntu VMs over LAN. I'd like to evaluate the performance of my application over WAN. So I decided to use Netem and tc to add network delay, etc. . My problem is…
ePezhman
  • 11
  • 1
  • 6
0
votes
0 answers

tc prio qdisc example not working

I'm used tc to priority send packets to port 9999. tc qdisc add dev eno1 root handle 1: prio priomap 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 tc filter add dev eno1 protocol ip parent 1: prio 0 u32 match ip dport 9999 0xffff flowid 1:1 use ethtool to limit…
hello
  • 1
0
votes
0 answers

How can I limit download/upload speed for every single user on OpenVPN using TC?

I have an OpenVPN server on CentOS 7 and I want to limit the download/upload speed for every single OpenVPN client to 512 kilo byte per second . From my own researches , I understood that I can accomplish this with TC , but using the scripts here…
master lfc6
  • 27
  • 1
  • 6
0
votes
1 answer

TC Corruption of Packets Ingress

I’m new to tc & this may be naive question but correct me if I’m wrong tc qdisc change dev eth0 root netem corrupt 5% Does above command corrupt ingress packets only ? If Yes, does outgress corruption has support with different command to configure…
Genie
  • 13
  • 3
0
votes
1 answer

Why does my bond interface with multiq ignore tc's queue selection?

On Debian Buster, Kernel 5.4.51, I have two interfaces tap0 and tap1 joined in a bond interface in mode balance-xor to increase throughput. There is, however, some traffic that must be sent through tap0. For the rest I don't care. Theoretically, the…
RenWal
  • 21
  • 4
0
votes
1 answer

how to proritize UDP port in tc

I have this TC code sudo tc qdisc add dev eth0 root handle 1: prio sudo tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport xxxx 0xffff flowid 1:1 where XXXX is the port number. I know that this is for TCP. how can I achieve this…
striker69
  • 1
  • 1
0
votes
1 answer

Measure packet latency / drop between ingress and egress interface of a rate-limiting pass-through host

Somewhere between my sender and receiver, there is host explicitly limiting my transfer rate. I know it's a Linux host. The ingress interface for my traffic is eth0 and the egress interface is eth1. The rate limiter is most probably realized somehow…
rikinet
  • 21
  • 2
1 2 3
15
16