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
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
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
  • 163
  • 3
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
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
  • 5
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
  • 2
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
  • 33
  • 4
0
votes
0 answers

how to apply TC htb class to each of IPs in an IP range separately?

I use HTB for TC and mark packets with iptables. First I mark a range of IPs (like 192.168.1.0/24). Now I want to apply a htb class to each of these IPs separately. If I add a class and a filter for this mark, this filter applies to all IPs in this…
0
votes
2 answers

Configuring NAT with Traffic Control for Nginx/Apache on localhost, cache miss

Apache is on 127.0.100.2 and Nginx is on 127.0.100.3, with Traffic Control performing DNAT from the former to the latter (for source 127.0.0.1) and SNAT from the latter to the former (for destination 127.0.0.1): tc qdisc add dev lo root handle 1:0…
user2768
  • 41
  • 5
0
votes
1 answer

Using tc filter together with Snort

I need to add delay to packets after doing some modification using the SNORT inline module. However, I cannot seem to get the packets to match a filter using tc filter ... It always matches the default filter. The commands I am using are stated…
Chamara
  • 1
  • 2
-1
votes
1 answer

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 --> Error: Qdisc "qfq" is classless. sch_qfq.ko was…
xnor
  • 101
  • 1
-1
votes
4 answers

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 the process that made the request to the remote…
Rooster
  • 495
  • 2
  • 7
  • 21
-2
votes
1 answer

Linux control packet size for specific IP address

I would like to get Linux tool/script to control packet size of specific IP or MAC. For example if IP reach 10 MB then DROP packages with IP tables. I have idea how to DROP, but I don't have idea how to control packet size for specific multiple IP…
aze2201
  • 101
  • 1
-2
votes
2 answers

Configure OpenVPN with many users

Similar to this question I am looking at connecting 1000's of concurrent users: OpenVPN performance: how many concurrent clients are possible? To save CPU cycles I would like to know if there is another solution outside of OpenVPN to bandwidth shape…
Server Programmer
  • 237
  • 2
  • 4
  • 11
1 2 3
16
17