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
0 answers

Defining an explicit parent in traffic control rules

In traffic control, will an explicit parent declaration in a filtering rule override a flowid definition? E.g.; tc qdisc add dev eth0 root handle 1: htb default 20 tc class add dev eth0 parent 1: classid 1:1 htb rate 200mbit ceil 200mbit tc class…
noctorum
  • 105
  • 2
  • 5
1
vote
0 answers

tc u32 match protocol [any] in recent kernels -- where to discuss?

I've been using debian with 2.6.26 kernel; now I've started to test 2.6.32 for my needs. And I've noticed that u32 filter behaves differently for, namely, "protocol 802.1q". To discover the tendency, I've run my tests on ubuntu server with 3.0.0-12…
brownian
  • 291
  • 3
  • 13
1
vote
2 answers

Tool to monitor bandwidth utilization per traffic (tc) class on linux

Some time in the past, i came across a siple tool that showed live in a 1sec interval, in human readable format, the bandwidth utilization seperated per tc class on your linux server. Unfortunately, i don't remember the name of this tool, and i did…
QuArK
  • 81
  • 1
  • 6
1
vote
1 answer

Limit bandwidth using tc, iptables, and htb

I'm running a Debian server and was wondering if there are good resources out there, to which you can point me, where I can read about traffic limitations. I have a couple of users sharing one server. Each month we only get lets say 1 TB of…
1
vote
0 answers

Traffic shaping for gateway to stop leechers

I am new to traffic shaping, but I need a quick simple shaping. I have a free internet service on my place using wifi. All www traffic has been routed to transparent proxy. We have a 10mbps connection, and our usual client is around 100-130 clients.…
prd
  • 608
  • 1
  • 11
  • 22
1
vote
2 answers

tc netem possibly missing

I have a VPS running Ubuntu 10.04 that I want to simulate network latency on. It looks like tc is what I want to use, and I pulled this command from the examples from here: http://www.linuxfoundation.org/collaborate/workgroups/networking/netem # tc…
phasetwenty
  • 198
  • 2
  • 7
1
vote
1 answer

how to tune tc rate parameter for optimal performance with htb/sfq?

I'm new to using tc/htb and I've just copy/pasted the script at ... http://lartc.org/howto/lartc.cookbook.ultimate-tc.html ... to run on the office gateway. The reason is to prevent large downloads, uploads, p2p and videos from making SSH…
SpliFF
  • 394
  • 2
  • 8
  • 24
1
vote
1 answer

tc traffic limiting/shaping/throttling/policing in linux ipv6 issues

I managed to discover an interesting issue: I'm not getting proper limiting with ipv4 traffic, but instead it works perfectly with ipv6. This doesn't make much sense to me since I read this article:…
Regan W
  • 31
  • 3
1
vote
3 answers

Traffic shaping on Linux with HTB: weird results

I'm trying to have some simple bandwidth throttling set up on a Linux server and I'm running into what seems to be very weird stuff despite a seemingly trivial config. I want to shape traffic coming to a specific client IP (10.41.240.240) to a hard…
DADGAD
  • 31
  • 1
  • 3
1
vote
2 answers

Bash Script - Traffic Shaping

hey all, I was wondering if you could have a look at my script and help me add a few things to it, How do I get it to find how many active ethernet ports I have? and how do I filter more than 1 ethernet port How I get this to do a range of IP…
Craig-Aaron
  • 11
  • 1
  • 2
1
vote
2 answers

controlling the bandwidth using tc

I have two NICs. eth0 is connected to the internet and eth1 is connected to the LAN. I want to restrict the download limit using iptables and linux tc. So I wrote a test script to verify if it is working. My iptables configuration is as…
Supratik
  • 2,154
  • 10
  • 51
  • 66
1
vote
2 answers

tc simple rate limiting

I would like to do a simple rate limiting so all the http traffic (in & out) going to or from my http server is shaped. I have a GigE connexion on the server and I want to rate limit all HTTP traffic to 50mbps for instance (this service will be used…
user57921
1
vote
1 answer

Traffic control: marking packets for shaping

I'm seeking advice about which technology to use to classify packets for shaping in traffic control (tc). I've found at least 3 that could be used: iptables MARK iptables CLASSIFY tc filter Which one should I use? Is there one that is better than…
facha
  • 1,368
  • 2
  • 18
  • 26
1
vote
2 answers

higher traffic priority for FPS game in Linux

Goal: when running a FPS game in Linux, automate the setup of higher priority for its network traffic I know such tasks are usually accomplished with a combination of iptables (to mark IP packets meeting certain criteria) and tc (to prioritize those…
halp
  • 2,208
  • 1
  • 20
  • 13
1
vote
3 answers

Priorize linux traffic in same protocol (http download vs htto browsing) with htb/tc

I have a big time reading but i cant figure-out how to do this. always i have a download in mu network all http browsing are affected, i need to do some specific or dont use sfq ? some one have a script sample to show me how to run a fair queue in…
waldecir