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.

233 questions
5
votes
1 answer

VLAN based rate limiting using tc

I have been trying to perform VLAN based rate limiting on an academic project I am working on. The project uses Openflow (with Beacon controller) and the network is emulated using Mininet. The network is made up of OpenVSwitches. For my project I…
user1449265
  • 151
  • 1
  • 2
5
votes
2 answers

lxc bandwidth control using tc

I am trying to restrict bandwidth inside my containers. I have tried using the following commands , But I think it is not getting effective. cd /sys/fs/cgroup/net_cls/ echo 0x1001 > A/net_cls.classid # 10:1 echo 0x1002 > B/net_cls.classid #…
kumar
  • 423
  • 2
  • 9
  • 23
5
votes
2 answers

nginx clobbering sftp traffic during peak times - is tc the answer?

This is probably a continuation of my previous (unanswered) question because the underlying cause is probably the same. I have a Linux server with nginx and sshd running on it. It's on a shared 100mbit/s unmetered link. During "peak times"…
njahnke
  • 290
  • 3
  • 15
5
votes
1 answer

Difference between HTB Rate and Ceil Values

What is the difference between the HTB rate and Ceil values?
noctorum
  • 105
  • 2
  • 5
4
votes
1 answer

Using tc to decrease bandwidth to a specific destination address

I am trying to find the shortest path between two hosts H1 and H2 using Dijkstra code. Setting a condition in one of the switches on that path. the condition is: if the packet sending to H2 then change the path automatically. I'm using Mininet, I…
a66a
  • 43
  • 3
4
votes
0 answers

Limiting incoming traffic with tc police

I have a requirement to limit the total incoming traffic to 5mbit. I know this can be achieved by using the following tc command: tc filter add dev eth0 parent ffff: protocol ip u32 match u32 0 0 police rate 5mbit burst 10k drop flowid…
4
votes
1 answer

Inject Delay between Virtual Machines in a VLAN

We'd like to simulate the impact of locality using VMs within a on a public cloud (say AWS EC2). To do this, we would like to inject delays in packets such that we can simulate a particular network topology. Assume that there are three VMs: A, B,…
Jedi
  • 408
  • 1
  • 5
  • 19
4
votes
1 answer

Limiting bandwidth on Ubuntu Linux

I am in the situation where I have to simulate a P2P-environment (for my masters thesis in computer science). To do that I am using Docker with Ubuntu to create a bunch of virtual machines that is gonna be connected in a BitTorrent network. I then…
Kasper Vesth
  • 51
  • 1
  • 7
4
votes
0 answers

Linux Traffic Controller (Linux tc): hierarchical token bucket (htb) packet queue size

In my Linux router, I am using the following configuration to limit the rate of traffic towards port 44444 of a client in the LAN (client address is 192.168.10.2, connected through the router's eth1 iface): tc qdisc add dev eth1 root handle 1: htb…
bmarcov
  • 41
  • 3
4
votes
1 answer

linux tc htb bandwidth ceil being ignored and giving improper results

I'm setting up some htb packet queues like so: tc qdisc add dev eth0 root handle 10: htb tc qdisc add dev eth1 root handle 10: htb tc class add dev eth0 parent 10: classid 10:1012 htb rate 750kbps ceil 750kbps tc filter add dev eth0 parent 10:…
Rooster
  • 485
  • 2
  • 7
  • 21
4
votes
1 answer

Meaning of requeues of tc command

I ran this tc bellow and it outputs requeues with high number, do you know what this requeues means? By the way, it keeps increasing over the time. I look at man tc but I couldn't find anything. $ tc -s qdisc ls dev em1 qdisc mq 0: root Sent…
Leandro Moreira
  • 549
  • 1
  • 7
  • 12
4
votes
2 answers

Linux qos: tc DRR qdisc does not work

There is tc queue discipline DRR(Dificite Round Robin) . It has same capabilities, as HTB, but instead of using buckets, filled with tokens, it just assignes every queue some Dificit Counter. On packet sending DC is decreased by packet size. If DC…
Selivanov Pavel
  • 2,126
  • 3
  • 23
  • 47
4
votes
2 answers

Limiting bandwidth on internal interface on Linux gateway

I am responsible for a Linux-based (it runs Debian) branch office router that takes a single high-speed Internet connection (eth2) and turns it into about 20 internal networks, each with a seperate subnet (192.168.1.0/24 to 192.168.20.0/24) and a…
Jack Scott
  • 155
  • 2
  • 6
4
votes
2 answers

Matching last fragment of IP packets using tc or ipfilter

I am transmitting UDP packets of say 2900 bytes. Due to fragmentation, packet is divided in 2 IP fragments. My tc u32 filter (more fragments bit and IP/PORT combination) matches only first fragment and second fragment is not matched. How can I…
Pritesh
  • 41
  • 1
4
votes
2 answers

Traffic shaping: tc filter attached to an HTB class?

Can I attach a tc filter to an HTB class rather than to an HTB qdisc? For example: tc class add dev $IF_LAN parent 1:100 classid 1:180 htb rate 19kbit ceil 2000kbit prio 4 where: 1:100 -> Is an HTB inner class. This question arises from the fact…
Diosney
  • 305
  • 5
  • 12
1
2
3
15 16