Questions tagged [traffic-shaping]
27 questions
8
votes
1 answer
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 specific time period, such as the past week or…
Javad Zamani
- 91
- 4
3
votes
1 answer
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 ffff
tc class add dev $ifc parent 1:0 classid 1:1…
Chris Nelson
- 221
- 1
- 2
- 7
3
votes
1 answer
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 working on macvlan?
I am using the following…
shaifali Gupta
- 141
- 6
3
votes
0 answers
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 would be tagged with a specific code (DSCP), my…
Depak
- 31
- 3
3
votes
0 answers
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 int1 type dummy
ip address add 10.0.1.1 dev…
Joao P
- 31
- 1
3
votes
3 answers
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 queue by default follows a pfifo_fast QDisc with a…
sbhTWR
- 93
- 7
2
votes
0 answers
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 can exhaust it when they download something from…
Никита
- 21
- 1
2
votes
0 answers
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 the bandwidth, but for that I'd have to know the…
PaperTsar
- 181
- 7
2
votes
1 answer
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 problem is that Tux-A shows evidences of some sort…
funkoolow
- 120
- 2
- 11
2
votes
1 answer
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 Gentoo but the principles are the same.
I have these…
Flup
- 8,017
- 2
- 33
- 50
1
vote
0 answers
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 on Linux is to use the netem qdisc. However,…
mirabilos
- 1,723
- 15
- 33
1
vote
1 answer
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 dev eth2 prio 100 protocol all parent 1: u32 match…
Bruhfus
- 13
- 3
1
vote
1 answer
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 dev eth0 parent 1: classid 1:1 htb rate 100kbps
tc…
Tenders McChiken
- 908
- 1
- 9
- 24
1
vote
1 answer
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 corrupt traffic.
My main question is, does the…
Khalid
- 13
- 5
1
vote
0 answers
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 this:
/sbin/iptables -t mangle -I…
user2118100
- 43
- 3