Questions tagged [traffic-shaping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Traffic control - bandwidth and jitter colidation for Quic

I am currently experimenting with the Quic and TCP protocols, aiming to simulate real network conditions using TC. However, I encountered an issue when attempting to set the bandwidth to 32mbit, with ...
Patrik Nespor's user avatar
1 vote
1 answer
96 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
0 answers
30 views

How can I delete just one queue in htb?

I would like to delete just one queue in htb when having two. My script would be the following one: TC=/sbin/tc IF=wlan0 # Interface DNLD=1mbit # DOWNLOAD Limit UPLD=1mbit ...
Nfernandez's user avatar
0 votes
0 answers
43 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
8 votes
1 answer
1k 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
38 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
642 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
51 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,113
4 votes
1 answer
888 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
1 vote
0 answers
220 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,733
1 vote
1 answer
3k 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
422 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
2k 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
784 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
133 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
308 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
370 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
2 votes
0 answers
159 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 ...
Никита's user avatar
1 vote
1 answer
328 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 ...
Khalid's user avatar
  • 13
3 votes
0 answers
1k 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 ...
Depak's user avatar
  • 31
2 votes
0 answers
37 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 ...
PaperTsar's user avatar
  • 181
3 votes
0 answers
1k 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 ...
Joao P's user avatar
  • 31
3 votes
3 answers
2k 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 ...
sbhTWR's user avatar
  • 93
0 votes
1 answer
85 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 ...
Bar's user avatar
  • 85
0 votes
1 answer
369 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.
cdarwin's user avatar
  • 141
2 votes
1 answer
145 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 ...
funkoolow's user avatar
  • 120
1 vote
0 answers
44 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 ...
user2118100's user avatar
2 votes
1 answer
284 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 ...
Flup's user avatar
  • 8,107
1 vote
0 answers
441 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 ...
Shivanand Mahabalshetti's user avatar
0 votes
0 answers
96 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, ...
Walter's user avatar
  • 1,234