Skip to main content

Questions tagged [traffic-shaping]

1 vote
2 answers
553 views

Traffic shaping ineffective on tun device

I am developing a tunnel application that will provide a low-latency, variable bandwidth link. This will be operating in a system that requires traffic prioritization. However, while traffic towards ...
sheddenizen's user avatar
0 votes
1 answer
330 views

Changing packet payload with tc

How can tc be used to match a particular payload of an ingress packet, e.g., if the first 32 bits of payload of an IP/UDP packet are equal to some constant $c, the value $c should be changed to $d? ...
qemvirt's user avatar
  • 13
7 votes
1 answer
2k views

How much data transferred per user via SSH over time period

I have an Ubuntu server with approximately 20 users who primarily use it for SSH tunneling. I would like to know if there is any way to determine the amount of data transferred by each user over a ...
Javad Zamani's user avatar
0 votes
0 answers
73 views

Can no longer ping containers after setting TBF qdisc on Docker0

I am trying to use the tc command to manipulate traffic on the docker0 interface. I run the commands tc qdisc del dev docker0 root tc qdisc add dev docker0 root handle 1: tbf rate 100mbps burst 1600 ...
akastack's user avatar
0 votes
0 answers
1k views

Is it possible to match multiple IP addresses when using tc filter... match?

I would like to match 4 IP addresses as src and other 4 IP addresses as dst when using tc filter I do know I could use subnets in match but unfortunately my addresses does not form a subnet instead I ...
stuckinthekernel 's user avatar
0 votes
0 answers
84 views

Transparently Rate Limiting ANY Connection that is Already In-Progress

Let's say I begin a large download, and (about an hour into it) I find that it is consuming too much of my overall bandwidth. Is there any way to rate limit that particular connection "after the ...
Lonnie Best's user avatar
  • 5,445
4 votes
1 answer
2k views

Has 10 Gbps through Linux tc qdiscs ever been solved?

I'm trying to use tc to shape traffic on a system with 10 Gbps NICs and I find that I can't get anywhere near 10 Gbps through any qdisc. When I do: tc qdisc add dev $ifc root handle 1: htb default ...
Chris Nelson's user avatar
2 votes
0 answers
362 views

Add extra latency on top of existing tc qdiscs

On a system with an existing multi-stage qdisc setup, we need to introduce extra latency (at least fixed, but fixed with a small variation would be a nice option to have). The canonical way to do this ...
mirabilos's user avatar
  • 1,796
1 vote
1 answer
4k views

How to delay traffic and limit bandwidth at the same time with tc (Traffic Control)?

I want to throttle bandwidth and add delay to a network interface to simulate satellite communication. For example 800ms delay and 1mb/s. The following limits the bandwidth correctly but does not ...
Matebo's user avatar
  • 29
0 votes
0 answers
567 views

tc traffic shaping with HTB and CQB causes packet transmission gap inconsistencies

I am sorry if this is duplicate of https://serverfault.com/q/1076769/822163. I created that first and then realized the Linux and Unix stack exchange is the right place. Problem: When the tc HTB or ...
Chinmaey Shende's user avatar
0 votes
0 answers
3k views

Linux tc filter add - errors RTNETLINK answers: Operation not supported

I'm working on the network simulation to create some traffic on specific ports , and trying to inject the network delay. I'm using the linux tc utility to do this operations. So i'm new to the tc ...
karthik's user avatar
1 vote
1 answer
1k views

Using tc traffic shaping to filter by ethtype

I am trying to make a qdisc that filters out traffic based on its eth type and drops the specified traffic. However my current filter is not working and is not catching any traffic. '# tc filter add ...
Bruhfus's user avatar
  • 13
0 votes
0 answers
193 views

Shape traffic to certain speeds for a specific process

I need to shape traffic for a specific PID to certain speeds. For example, I would like to limit upload for PID 7502 to 300Kb/s, and download for PID 7502 to 400Kb/s. How can this be done? I have ...
vpseg's user avatar
  • 13
1 vote
1 answer
438 views

How does a htb qdesc tree handle bandwidth overallocation?

let's say I have a simple htb hierarchy (See man 8 tc-htb) set up where the total bandwidth specified for child htb classes exceeds the total bandwidth specified for the root htb class: tc class add ...
Tenders McChiken's user avatar
3 votes
1 answer
454 views

Traffic shaping using tc-netem on macvlan

I am setting up a virtual network using macvlans and I have connected traffic-control tc to each of them. I set the delay for each as 90ms. But on ping I get the time of 0.02 seconds. Why is tc not ...
shaifali Gupta's user avatar

15 30 50 per page