1
vote
0answers
11 views

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 ...
3
votes
0answers
23 views

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 ...
1
vote
0answers
29 views

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 ...
0
votes
1answer
110 views

Linux Traffic Shaping with “tc”: QoS filter for requests directly on the host not applied?

I'm trying to reduce the interface thoughput to debug my application on slower network speed. I've remembered a tc statement to do this on a interface which was working in the past. I used it on a ...
0
votes
1answer
146 views

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 ...
0
votes
0answers
108 views

Traffic shaping / HTB - how to interpret borrowed/lended figures?

I have upload traffic shaping set up as follows (this is my NAS box, eth0 serves both LAN and internet traffic): # root handle tc qdisc add dev eth0 root handle 1:0 htb default 12 # lan class - no ...
0
votes
0answers
26 views

Same tc rules, different behavior?

I want to do some experiments with various network conditions. To do this, I am created 2 lxc containers and I place traffic control rules with tc on their network devices to represent these ...
1
vote
3answers
226 views

Incoming (ingress) traffic shaping on Linux - bw is lower than expected

I want to limit incoming (download) speed for Linux box. Both, the box, which is configured, and trafic source (HTTP server) are connected to the same switch, if shaping is not configured, download ...
1
vote
1answer
1k views

How can I limit the upload/download bandwidth on my CentOS server?

How can I limit the upload and download bandwidth on my CentOS server? This is a box with a single interface, eth0. Ideally, I would like a command-line solution (I've been trying to use tc), ...
0
votes
0answers
80 views

tc traffic shapping HTB in Linux-based router

I use an Android device to be a hotspot router. In fact, the behavior is similar to a Linux OS router. There are parts of functions in Android. Now, I try to use tc command to limit bandwidth of end ...
0
votes
2answers
104 views

Redirect request from HAProxy if all the instances are down

I have a situation where I have 2 HAProxy load balancers, say LAP1 and LAP2. And I have two servers, say S1 and S2 behind LAP1 and s3, s4 behind LAP2. My question is that if S1, S2 goes down, all the ...
0
votes
0answers
80 views

Realtime dynamic traffic shaping per ip

I have a wireless and wired network shared among several users. There is a linux router which acts as dhcp server and gateway. I would like to split the max bandwidth available from ISP (20 Mbit) over ...
0
votes
1answer
176 views

throttling traffic with tc, but bandwidth is wrong

I am using these commands to set up bandwidth throttling: tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100Mbit tc class add dev eth1 parent 1: classid 1:1 ...
0
votes
1answer
578 views

PRIO qdisc example not working

I have a TP-Link WR1043-ND with OpenWrt 12.09 (r36088, Linux 3.3.8). There is a bridge called br-lan joining eth0.1 (tagged VLAN for the 4 LAN ports) and wlan0 (Wi-Fi). There is also the WAN port at ...
0
votes
1answer
127 views

split traffic on two eth ports

I have a linux Proxmox server with two ethernet ports. The problem is that I have two uplinks that I would like to use with different bandwidth limitations. The first uplink maxes out at 100mbs and ...
1
vote
1answer
481 views

Per-user dynamic traffic shaping

At work we have a dedicated Internet link for everyday use (servers use a different link) with limited upload bandwidth (currently 3Mbps). Since there are ~80 users, sometimes this upstream link ...
1
vote
0answers
245 views

Linux tc Traffic Shaping for IPv6

I have traffic shaping with tc and htb in place and everything works fine for IPv4. Now I want to limit the bandwidth for incoming IPv6 ssh/sftp traffic to some reasonable amount, so it doesn't ...
3
votes
2answers
1k views

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 ...
2
votes
2answers
1k views

Limiting interface bandwidth with tc under Linux

I have a linux router which has a 10GBe interface on the outside and bonded Gigabit ethernet interfaces on the inside. We have currently budget for 2GBit/s. If we exceed that rate by more than 5% ...
0
votes
1answer
302 views

Traffic shaping L2TP/IPsec VPN (via accounts not connection)

I need to be able to control the amount of bandwidth a specific user account can use on a VPN connection. One account I want to be able to use the VPN with no restrictions and another account I want ...
0
votes
1answer
234 views

tc don't see marked packets

Server has 2 interfaces: eth1 with address 13.0.0.254/24 eth0 with address 172.20.203.4/24. It's routing traffic between this two networks. Task is to limit bandwidth between this two networks to ...
1
vote
0answers
138 views

Equalizing bandwidth according to use

I need a way to prioritize packets without setting bandwidth limits. For example, I have a client using the whole bandwidth. As soon as other clients need bandwidth, reduce the bandwidth of the former ...
1
vote
1answer
2k views

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 ...
4
votes
1answer
2k views

Using tc to delay packets to only a single IP address

I am new to using tc and netem. I want to delay packets being sent to a specific IP address. However, the commands below cause all packets on the system to be delayed, instead of just to the IP ...
0
votes
1answer
2k views

Can I use iptables to limit port's outgoing bandwidth?

I want to limit my linux server port 8080 at speed 500KB/s, can I do this with iptables?
2
votes
1answer
504 views

Traffic shaping with tc doesn't work for high delay and bandwidth

I'm using tc with kernel 2.6.38.8 for traffic shaping. Limit bandwidth works, adding delay works, but when shaping both bandwidth with delay, the achieved bandwidth is always much lower than the limit ...
1
vote
1answer
1k views

deleting filters in tc

I have added a filter in tc as follows: tc filter add dev eth0 parent 1: protocol ip handle 6 fw flowid 1:6 This should be sending packets marked by iptables with '--set-mark 6' to class 1:6. The ...
4
votes
0answers
417 views

MasterShaper alternative [closed]

I'm looking for an alternative to MasterShaper, something possibly web-based which could allow me to manage QoS easily. Actually MasterShaper still looks supported, but would like to understand if ...
0
votes
2answers
238 views

Input traffic shaping

I know that I can shape output traffic with tc or a similar tool. However, I want to shape the input traffic now—actually, I want to prioritize downloading of files of certain type through a slow ...
3
votes
2answers
1k views

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 - ...
0
votes
1answer
401 views

traffic shaping, prioritizing packets without using a bitrate ceil/max

I've written a script that shapes traffic into 3 pipes. The first pipe needs to be high priority and always be send first. This works perfectly now on 1 condition. I enter a correct ceil/max bitrate. ...
12
votes
2answers
825 views

Linux TC class/filter numbering

I'm currently working on a traffic shaping solution for ISP-level companies, and came to an interesting (kindof philosophical) problem. Looking about the number of endpoints the system should handle ...
1
vote
1answer
1k views

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: ...
9
votes
6answers
4k views

Rate-limiting incoming traffic

I've never quite understood whether or not it's possible to rate-limit incoming traffic. I realize that there is no direct method whereby to control the remote server's rate of sending packets (unless ...
2
votes
2answers
370 views

QoS on DD-WRT Questions

I have a question about quality of service (QoS) on linux (DDWRT specifically). Here's my setup: Recent version of DD-WRT 120 kbytes/s up and 2mbytes/down Traffic limited to about 80% of stated ...
7
votes
2answers
1k views

Why is my linux traffic shaping script having limited results?

I am trying to introduce some traffic rules to my Linux passthrough server that will give a better QoS for the following: 1) Low port traffic out of the box (web traffic and mail, etc). 2) Low port ...
0
votes
3answers
1k views

Per-IP bandwidth monitoring and trafic shaping solution for 100Mb network

I have about 30 servers connecting into a Cisco 3500 series switch, with 100M upstream bandwidth. Periodically, one or more of my servers will do a large file transfer which will completely saturate ...
7
votes
3answers
3k views

Simulating a slow connection with tc

I have a linux box (Centos 5.5) on which I want to limit the network traffic. I have an application that we distribute to clients and I want to test it on the minimum recommended bandwidth of ...
2
votes
1answer
379 views

How can I do traffic shaping in Linux by xen guests?

I want to be able to set up two xen guests like this: xen-create-image --hostname=xen1.example.com --size=10Gb --swap=512Mb --ip=192.168.0.101 --force --memory=256Mb --arch=i386 --debootstrap and ...
2
votes
4answers
2k views

Is there some advanced traffic shaping frontend for linux?

If you ever worked with Mikrotik routers, you probably got used to 'simple queuing', a very simply manageable list of IP->speed rules. I guess other router OSes have something similar, for those who ...
6
votes
3answers
5k views

How can I do traffic shaping in Linux by IP?

We have a transparent proxy setup. I tried looking for traffic shaping in Linux, and all I could find online was to limit traffic by interface (eth0/eth1...). I need to limit the bandwidth (never ...
0
votes
1answer
888 views

How to prioritize openvpn traffic?

I have an openvpn server, with one network interface. VPN traffic is extremely slow. I tried to do traffic control with this configuration (currently): qdisc del dev eth0 root qdisc add dev eth0 root ...
0
votes
2answers
1k views

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 ...
1
vote
4answers
4k views

limit network bandwith for an ip

for a traffic management app i should limit bandwidth for clients ip addresses that for each ip there are different limit how can use tc-tbf for specific ip address or is any other solution?
8
votes
4answers
1k views

Slow down individual connections passing through a Linux router?

We have a Linux server acting as a router/firewall for our office. Occasionally someone will upload a large file that takes up all our bandwidth. I don't want to implement any complex rules or traffic ...
2
votes
1answer
762 views

bridge traffic limiting via tc

I have a Linux machine running as a bridge simulating various network conditions. I use tc for this. Introducing delays or packet loss is quite simple but I got into trouble trying to configure ...
2
votes
3answers
3k views

Shaping outbound Traffic to Control Download Speeds with Linux

I have a situation where a server makes lots of requests from big webservers all at the same time. Currently, I have not control over the amount of requests or the rate of the requests from the ...
23
votes
4answers
4k views

Does anyone really understand how HFSC scheduling in Linux/BSD works?

I read the original SIGCOMM '97 PostScript paper about HFSC, it is very technically, but I understand the basic concept. Instead of giving a linear service curve (as with pretty much every other ...
9
votes
1answer
1k views

Sharing Bandwidth and Prioritizing Realtime Traffic via HTB, Which Scenario Works Better?

I would like to add some kind of traffic management to our Internet line. After reading a lot of documentation, I think HFSC is too complicated for me (I don't understand all the curves stuff, I'm ...
24
votes
1answer
1k views

Minimal rate and default class problem for HTB

I have some doubts about a HTB structure I'm using. My aim is to limit the download and upload speed of users in a local network. Each user of the network has a personal list of domains with a down ...