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
3
votes
3 answers

TC hashing filters - single rule deletion

For traffic shaping I'm currently using a setup that looks exactly like the setup from LARTC, on this page: http://lartc.org/howto/lartc.adv-filter.hashing.html I have a simple problem with that - everytime I want to modify something in the hash…
exa
  • 571
  • 4
  • 14
3
votes
5 answers

QoS configuration for a medium ISP

What is the best Linux-based QoS platform to implement a configuration where all 256Kbps DSL clients (all belong to the same IP range) get a guaranteed speed of 200Kbps with single QoS rule?
MZK
  • 31
  • 2
3
votes
4 answers

How to match port range using u32 filter

with "u32 match ip sport 80" in Linux tc I can match port 80, but how can I match a port range 10000 - 20000 ?
Supratik
  • 2,154
  • 10
  • 51
  • 66
3
votes
1 answer

tc: one qdisc for two classes (multiqueue)

The default tc configuration on my server is: # tc class show dev ens5 class mq :1 root class mq :2 root # tc qdisc show dev ens5 qdisc mq 0: root qdisc fq 0: parent :2 limit 10000p flow_limit 100p buckets 1024 orphan_mask 1023 quantum 18030…
Vasili Syrakis
  • 4,558
  • 3
  • 22
  • 30
2
votes
1 answer

Attempting to shape traffic for both IPv4 and IPv6 results in a conflict

On my server I'm attempting to set up traffic shaping, and if I'm doing it for either IPv4 or IPv6, things are just fine: All filter rules for that particular protocol are installed. However, when attempting to shape both, I'm getting errors, and…
Robidu
  • 135
  • 8
2
votes
0 answers

Using tc qdisc, class, and filter to limit bandwidth (both ingress and egress) based on DSCP marks

I'm looking to set-up traffic shaping program that limits both incoming and outgoing traffic based on 6-bit DSCP field in IPv4 packet header. The user should be able to specify different rates for different DSCP values. I am using tc and iptables to…
dooble
  • 21
  • 3
2
votes
0 answers

How to undo the effects of a 'tc qdisc change' command?

I am playing with the netem examples from here https://wiki.linuxfoundation.org/networking/netem and I have learned that I can undo the effect of a tc qdisc add command with a similar tc qdisc del command. But how can I undo the effects of a tc…
AnonymousLurker
  • 141
  • 1
  • 5
2
votes
0 answers

Linux HTB number of levels

Re-modified Linux HTB by adding a single printk message in htb_dequeue function. static struct sk_buff *htb_dequeue(struct Qdisc *sch) { ... original code ... original code for (level = 0; level < TC_HTB_MAXDEPTH; level++) { …
Tony Tannous
  • 103
  • 9
2
votes
1 answer

tc/netem filter explenation

Iam new to tc and i find it mighty confusing, i was able to find and bit understand little command flow, to issue delay on specific IP, but i dont tink it works properly - delaying all traffic possible for this IP. I think i misunderstood/did not…
J B
  • 93
  • 9
2
votes
1 answer

Limit traffic on by user OpenVPN server using tc (traffic control)

I run an OpenVPN server with a 1 Gbps bandwidth and I need to limit it to 5 Mbps per user. Searching the internet I've come up to this bash script: $U32 = "tc filter add dev tun0 protocol ip parent 1:0 prio 1 u32" tc qdisc add dev tun0 root handle…
DomeWTF
  • 127
  • 2
2
votes
0 answers

Bandwidth control with TC for clients yet to be connected

I have applied bandwidth control using TC and iptables using this tutorial on my Strongswan VPN server. The bandwidth control works fine ONLY if that specific client is already connected. For example: In my Strongswan VPN server, i am trying to…
Ajji
  • 131
  • 7
2
votes
1 answer

Limit packet rate, open connections, and IP addresses

On Linux, can I use tools like tc, iptables or others to control/shape network traffic on a network interface, for the following purposes: Control the network packet number rate (or the total number). Control the number of IP addresses connected…
2
votes
0 answers

Combining tbf with other qdiscs?

It looks like a subset of classless qdiscs can be combined with each other in certain configurations. In fact it doesn't make sense to me that you could not do this, since things like codel will only work sanely if you can limit the outgoing…
jdizzle
  • 558
  • 3
  • 8
2
votes
1 answer

How to measure the speed for tc (traffic control) in Ubuntu?

I have the following settings: tc qdisc del dev $ETH0ORSIMILAR root tc qdisc add dev $ETH0ORSIMILAR root handle 1: htb default 30 tc class add dev $ETH0ORSIMILAR parent 1: classid 1:1 htb rate 100mbps tc class add dev $ETH0ORSIMILAR parent 1:1…
Houman
  • 1,545
  • 4
  • 22
  • 36
2
votes
1 answer

Can Linux queueing discipline solely to lower latency? Can it be disabled?

i'm learning about queueing discipline as part of tuning the network stack on our carbon-c-relay cluster. My understanding is that the queueing discipline layer exists solely to lower latency and provide fairness to different types of network…
Michael Martinez
  • 2,645
  • 3
  • 24
  • 35