Questions tagged [traffic-shaping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 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 ...
user avatar
  • 4,327
2 votes
0 answers
36 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 ...
user avatar
1 vote
0 answers
31 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 ...
user avatar
  • 1,581
0 votes
1 answer
479 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 ...
user avatar
  • 9
0 votes
0 answers
72 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 ...
user avatar
0 votes
0 answers
112 views

Shaping priority on SSH forwarded connections

I have a system where clients establish reverse tunnels from ports on the server, either to local ports on the client or to some other addresses, and then the server starts sending all sorts of ...
user avatar
  • 1
0 votes
0 answers
974 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 ...
user avatar
1 vote
1 answer
262 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 ...
user avatar
  • 13
0 votes
0 answers
37 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 ...
user avatar
  • 11
1 vote
1 answer
85 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 ...
user avatar
3 votes
1 answer
183 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 ...
user avatar
2 votes
0 answers
87 views

ipfw dummynet per ip fair traffic shaping

I want to shape traffic in such way, that no specific user could exhaust WAN connection that much so other users would be affected. I have ISP link with 100Mbits/s bandwidth and sometimes some users ...
user avatar
1 vote
1 answer
174 views

Does the Linux traffic control utility modify datagrams, IP packets, or frames?

I am using the Linux's traffic control (tc) utility, which to my understanding is used to configure the Linux kernel packet scheduler. I am also using the netem command in tc to add delay, drop, or ...
user avatar
  • 13
3 votes
0 answers
735 views

Is there a way to tag any specific application's traffic with DSCP/ToS

I recently made the switch from windows to linux (Manjaro). To manage traffic I had been using a windows feature that allowed me to specify the name of an application so that its network traffic ...
user avatar
  • 31
2 votes
0 answers
25 views

How to shape bandwidth fairly between processes?

While running QBitorrent, other processes get virtually no bandwidth, as QBittorrent gobbles up all of it. Chrome loads forever, pings time out etc. I could just limit QBittorrent to not use all of ...
user avatar
  • 181
2 votes
0 answers
615 views

Simulate network on a single machine

I'm trying to simulate a network on a single machine. I have multiple nodes that communicate through tcp sockets. I tried to create one dummy interface for each node like this: ip link add name ...
user avatar
  • 21
3 votes
3 answers
1k views

queueing in linux-htb

I am trying to understand the queuing mechanism of linux-htb QDisc and QDisc of linux tc in general. What I could gather: During TX, the packet is queued into the queue inside the linux tc. This ...
user avatar
  • 83
0 votes
1 answer
79 views

simulate geographic distance between servers

I want to simulate geographic distance, so I need to add delay to each receive/transfer package. I read that squid could work, however, playing with its configuration haven't given me the right ...
user avatar
  • 85
0 votes
1 answer
256 views

Traffic shaping for SSH

How can I set a bandwidth limit for a SSH connection in my lan with Ubuntu 16.04LTS? I tried using wondershaper but it limits the entire interface.
user avatar
  • 141
2 votes
1 answer
95 views

Confirm and/or remove a possible traffic shaping setting

I have a Debian box up and running with KVM and two guest machines, which I will refer here as Tux-A and Tux-B, both bind to the same physical network card of the Host via a bridged connection. The ...
user avatar
  • 120
1 vote
0 answers
25 views

IPTABLES: issue with impacting traffic to a subnet using --destination flag

I am applying iptables rule to impact outbound traffic into a subnet. I send the traffic into a new chain created and then tc impose some delay using netem. TC is then using that rules. Something like ...
user avatar
2 votes
1 answer
168 views

Traffic shaping with PPP: which external device should I use?

I have a dual-homed device running Debian acting as my home router, and I'm following these instructions to get fq_codel usefully working with my VDSL connection. I know the instructions refer to ...
user avatar
  • 7,687
1 vote
0 answers
304 views

TC (Traffic control) and trickle: apply different bandwidth to (multiple requests) same IP or URL during upload and download

I have some files of different sizes which I needed to send to Azure blob storage and I am using Azure IOT SDKs to achieve that.Now I have different types of file size ( from 50 MB to 5 GB) and have ...
user avatar
0 votes
0 answers
93 views

fq_codel - does ath9k_htc support it

I cannot seem to find documentation that says ath9k_htc supports fq_codel, so, it'd be safe to assume that it does not? If I use fq_codel as the queue discipline and ath9k_htc doesn't support it, ...
user avatar
  • 1,122