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
1
vote
1 answer

shape dropbox on linux router with tc and iptables

Another machine on my LAN is uploading to Dropbox and saturating my internet connection's upload bandwidth. When that happens my pings to 8.8.8.8 take 3000-6000ms. When dropbox is not uploading my pings to 8.8.8.8 are 45ms. I'm trying to simply slow…
Josh
  • 61
  • 6
1
vote
1 answer

rate limiting traffic for internal ip (TC)

I have configured ikev2 VPN on my server, but there is no tunnel interfaces like openvpn (tun0). So actually, I can't limit the ikev2 vpn speed using tc tool. Example for traffic shapping of openvpn (tun0) below. tc qdisc del dev tun0 root tc qdisc…
JohnsonGoey
  • 51
  • 10
1
vote
1 answer

LINUX: multiq leaf not replaceable with tc

# uname -r 4.7.5-200.fc24.x86_64+debug # tc -s -d qdisc show dev ens3 qdisc mq 8001: root Sent 44589 bytes 340 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 qdisc fq_codel 0: parent 8001:1 limit 10240p flows 1024 quantum…
cherusk
  • 21
  • 5
1
vote
1 answer

Bandwidth limit for multiple network destinations with a default (slow) match with Linux TC

I'm playing with Linux traffic control features to restrict KVM VM output bandwidth and got stuck while using filters to match destinations for a fast class and for a (default) slow class for a given VM. The physical network output interface is…
vroman
  • 76
  • 2
1
vote
0 answers

Create IFB with name or ID in Ubuntu server

I am doing some work relate to limit income bandwidth (ingress) of a NIC in Ubuntu 16.04. Seem like we cannot limit the income bandwidth directly but have to use IFB. In this this post we have a good tutorial using IFB to finish the job. I followed…
Andiana
  • 121
  • 2
1
vote
0 answers

Network performance low when using OpenVPN

When transferring larger amounts of data using an OpenVPN client from a specific internet connection, the internet connection from the OpenVPN servers network completely breaks down. Other OpenVPN clients do not result in this performance impact…
1
vote
1 answer

Limit bandwidth per connection in Linux

I wasn't really able to google this which surprises me but maybe I was just looking the wrong way... I would like to limit bandwidth per one TCP connection ie. all the connections are coming to a single interface, using the same source address, have…
NZT
  • 11
  • 1
  • 3
1
vote
1 answer

How to check all active netem rules?

I have been adding rules/settings (not sure what the correct terminology is here) with tc/netem, such as tc qdisc add dev eth0 root netem delay 25ms, and have been removing them after use. However, now I would like to check which rules/settings are…
wcarhart
  • 113
  • 1
  • 8
1
vote
0 answers

TC not classifying packets correctly based on iptables MARK

I have machineA that is connected to the internet via eth0. MachineB on the other hand is connected to machineA through a mesh and is connected to the internet via machineA. I am trying to give lower priority to the traffic coming from machine…
Ogoose
  • 11
  • 2
1
vote
0 answers

HTB scheduler unexpected behaviour, low priority traffic starving high priority traffic

I am working on assuring low delay for UDP traffic at the home gateway level. At this home gateway I have two types of traffic, TCP and UDP, and I assure differentiated treatment by using HTB. The bandwidth I am testing equals 1Mbit/s (thus it is…
1
vote
2 answers

cannot identify YouTube traffic with ndpi-netfilter, when using Google Chrome

I have ndpi-netfilter installed on Ubuntu and I need to shape the youtube traffic to 100kbps using tc module. I classify all youtube traffic to a one class through the iptables and apply tc class to shape the traffic. It works fine when I use…
1
vote
1 answer

tc filters not working with DRR

I am trying to control the outgoing traffic from two VMs with the DRR qdisc. This is the hierarchy I want to have: root | qdisc drr 1: / | \ / |…
Backswitch
  • 11
  • 1
1
vote
2 answers

Percentual dynamic bandwidth control with tc

Does anyone know if tc (iproute2) can be used to percentually divide the currently available bandwidth? We're on a GPRS connection on which the available bandwidth changes frequently. What I want to achieve is the following: Egress to port x: 60%…
Jeroen
  • 31
  • 3
1
vote
2 answers

RTNETLINK answers: File exists when using netem with tc

So I simply get this error when I enter this command in my master VM: sudo tc qdisc add dev eth0 root netem delay 97ms RTNETLINK answers: File exists Any idea how that could be fixed? I am running this command in Ubuntu: uname -a Linux…
Mona Jalal
  • 433
  • 2
  • 5
  • 13
1
vote
1 answer

traffic shaping using ifb redirect

I would like to use ifb to perform some shaping for multiple virtual interfaces. However, I am not sure how to tell the ifb interface to egress to a dedicated egress interface Right now vnet0 -> mirrer action mirror -> ifb0 I would like to to…
user2066671
  • 115
  • 2
  • 11