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

How can I do traffic shaping in Linux by IP for both way communication?

Well, I've already gone through How can I do traffic shaping in Linux by IP? on serverfault & what I'm trying to achieve is pretty much same. Internet--------Linux Router----Switch-----Clients I've followed Julien Vehent's tutorial and could…
Neel
  • 111
  • 2
  • 5
1
vote
0 answers

How do I cap each individual tcp stream, to a fixed maximum rate?

I've read but not in depth all the various traffic shaping docs and seen the long question on HSFC scheduling Does anyone really understand how HFSC scheduling in Linux/BSD works? looked at the other questions but everything seems to be solving hard…
1
vote
3 answers

Linux: limit specific port rate by combining tc with iptables does not work as expected

The script blow tries to limit the incoming rate of the port 2000, when using iptables to mark the INPUT packets does not work, but OUTPUT works fine. I use nc -kl 2000 on machine 10.0.1.54 and iperf -c 10.0.1.54 -p 2000 -t 10 on another machine to…
tianchaijz
  • 31
  • 4
1
vote
0 answers

How to change give highest priority to Mail traffic on port 25 with tc

How can I give the highest priority to mail traffic on port 25 whit tc? I tried prio option but It didn't work out for me or maybe I'm missing something. I'd appreciate any help.
JimmySys
  • 46
  • 2
1
vote
0 answers

How to test if packet has been tagged with classid

I'm trying to troubleshoot an issue I'm having related to IFB Mirroring which I'm attempting to deploy based on this question: Tc: ingress policing and ifb mirroring My theory is that since the ingress traffic is being redirected to/via ifb to be…
Rooster
  • 495
  • 2
  • 7
  • 21
1
vote
0 answers

Group traffic shaping with traffic control?

I'm trying to limit the output bandwidth generated by an application with linux tc. This application sends me the source port of the request that I use has a filter to limit each user at a given downloadspeed. I feel that my setup could be managed…
Arka
  • 173
  • 1
  • 2
  • 8
1
vote
1 answer

Limit monthly traffic per interface

I'm trying to deploy an application for a limited monthly traffic. Please can you tell me how can I do this ? I need to limit traffic on an interface under linux.
Ali Mezgani
  • 3,850
  • 2
  • 24
  • 36
1
vote
1 answer

How to slow down and share incoming network traffic using TC (traffic shaping)

I am trying to slow down incoming packets for a specific program, while a second one will have full access to the unused bandwidth. In other words, I want to control the network bandwidth sharing in order to prioritize one app over another one. Here…
1
vote
1 answer

packet loss only on Tx using tc(Traffic Control) in Linux

I'm aware that one can introduce packet loss in a Linux machine using tc. For example: tc qdisc change dev eth0 root netem loss 10% However, is it possible to specify a traffic direction where the packet loss occurs? I would like to have no packet…
Martin
  • 352
  • 3
  • 12
  • 29
1
vote
1 answer

How Many Filters Can We Have -- LINUX QOS

I am doing Qos on Linux server using TC. According to the grammar of tc tool, the handle of a filter must be between 800::001 and 800::FFF. And because 0XFFF equals 4095 in decimal, so we can only have at most 4095 filters, it this true?
Steve Peng
  • 559
  • 1
  • 8
  • 18
1
vote
0 answers

Why Parent Class In a TC Rules Tree Not Working

The parent class in my TC rules script doesn't work as it garanteed! Can somebody tell me what is wrong with my script? Here are some details about my question: From the chapter "9.5.4.4. Sample configuration" of Linux Advanced Routing & Traffic…
Steve Peng
  • 559
  • 1
  • 8
  • 18
1
vote
1 answer

Can TC limit bandwidth by the Qos field of IP header

We are developing a client/server applications. There are three types of network data in our server app: Realtime data such as those of Video/audio, Critical Data such as those of Database data and BestEfforts data as those of common file transfer.…
Steve Peng
  • 559
  • 1
  • 8
  • 18
1
vote
1 answer

TCP packet filter based on TCP sequence

I need to build a test environment with a very precise packet loss based on specific TCP sequence or, optionally, on payload content. I couldn't figure out how to do it with tc or iptables. What tool should I use? Thanks.
jackhab
  • 771
  • 1
  • 8
  • 21
1
vote
0 answers

htb with an inner gred how to setup filter to reach DPs

I want to create a qos htb class and within this class there is a gred queue. how do I add a working filter for each red queue in the gred queue? what i tried was: DEV=lo SOMEGREDETTINGS="limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth…
phschoen
  • 111
  • 1
1
vote
1 answer

Linux tc htb + prio = very slow link

I'm trying to shape the traffic going out of my DSL link (verified 1 mbit upload) using Linux (3.2) tc, HTB, and PRIO. My Linux box is connected via a Gigabit Ethernet link to the ADSL modem. I want to limit the upload rate using HTB so my packets…
Etienne Dechamps
  • 2,194
  • 8
  • 24
  • 28