Questions tagged [traffic-shaping]
Traffic shaping is a technique to delay some or all datagrams to comply with desired traffic profile.
68
questions with no upvoted or accepted answers
5
votes
1
answer
2k
views
pfsense 2.0 traffic priority - set full priority for single host
I have a network with several computers all on the same network and since I have very limited bandwidth I would like to prioritize traffic almost like a CPU scheduler prioritize processes.
Example:
...
4
votes
0
answers
1k
views
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 ...
4
votes
0
answers
3k
views
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 ...
3
votes
0
answers
2k
views
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 ...
3
votes
1
answer
489
views
OpenVPN Traffic Control on CentOS 7
I'm trying to give my OpenVPN some bandwidth limitation. I would like for example for each user give 10Mb/s for upload and download. I tried the following answer I found (Automatically Call a Script ...
3
votes
0
answers
2k
views
Adding some delay to a specific port on localhost using tc and netem
I'm going to simulate a network latency on three different ports of local host by using tc (traffic control for Linux) commands.
I run the following code:
!/bin/bash
tc qdisc add dev lo root handle 1:...
3
votes
0
answers
2k
views
How to configure per IP bandwidth control using TC?
Requirements:
There is an arbitrary number of users per group. Bandwidth for any particular group is 1000kbps. Bandwidth for each user in a group is 70 kbps. At any time no user should not consume ...
3
votes
1
answer
5k
views
Ingress filtering in Linux traffic control: Redirect traffic to IFB device
I have an openwrt router and I want to shape incoming traffic in order to classify all the traffic addressed to a certain IP address in my home network as low priority. For that purpose I want to ...
2
votes
0
answers
644
views
Can any help me to understand HAProxy DDoS attack protection configuration?
I'm using HAP on and off for a bit now and now I'm trying confgure DDoS protection per frontend, to block a connection for 5 mints, if it receives more than 200 requests per second from the same ...
2
votes
1
answer
1k
views
Linux traffic control u32 hashtable filters based on MAC address
I am currently working with a traffic shaping Linux node. The rule set has grown to about 2500 hosts, all identified specifically by MAC address. The filter configuration is "basic", meaning ...
2
votes
1
answer
817
views
Unable to set bandwidth limit on ingress wireless interface with netem and ifb
I am trying to limit the bandwidth on the ingress of a wireless interface using an IFB virtual interface. I followed the instructions here
Summary of the steps:
Bringing up ifb:
sudo modprobe ifb ...
2
votes
0
answers
144
views
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;...
2
votes
1
answer
669
views
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 ...
2
votes
1
answer
633
views
QoS Traffic Shaping based on packet loss and latency for VPN
I am currently having the following situation:
I am using a VPN (OpenVPN) over a rather unstable internet connection. This means the maximum bandwidth varies between 100kbs and 1mbit. Whenever the ...
2
votes
0
answers
2k
views
iptables & tc limit both upload & download together
I have the following for iptables & tc but it limits the upload speed to 2Mbits once the quota of 1GB has been hit.
iptables -t mangle -A POSTROUTING -o eth0 -p tcp -m owner --uid-owner aaron -...
2
votes
0
answers
5k
views
How to share bandwidth equitably between 16 users on a pfsense multi-WAN router
I have 16 users connected to my pfSense single-LAN, 3-WAN router.
The 3 WAN ports connect to ADSL lines giving about 4Mb/s down, 800kb/s up each.
I would like to prevent any one user hogging the ...
2
votes
0
answers
416
views
Ubuntu traffic shaping by source mac address or destination host
Is there an easy way to manage traffic shaping/bandwidth monitoring to limit traffic based on source mac address and/or destination server address?
2
votes
1
answer
381
views
Is there an equivalent of LinuxIMQs in BSD?
Is there an equivalent of LinuxIMQs in BSD ?
From linuximq.net:
The imq device has two common usage cases:
Ingress shaping:
With linux only egress shaping is possible (except for the ingress ...
2
votes
1
answer
546
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
...
1
vote
0
answers
46
views
shape voice linux traffic using tc
How to set up a traffic control policy so voice traffic has maximum bandwidth of an specific interface?
I tried
tc qdisc add dev $WIFI handle 1: root tbf rate 10mbit burst 32kbit latency 10ms
but how ...
1
vote
0
answers
345
views
Dynamic bandwidth in Tc (Bandwidth Changes over time)
Basically I wanted to change the bandwidth after every 10 seconds using tc. So how to do that thing in tc.
This is my script.
!/bin/bash
#
# tc uses the following units when passed as a parameter.
# ...
1
vote
1
answer
162
views
Does tc guarantee network bandwidth for a process or run as best effort?
I have a tc rule as follows:
qdisc tbf 1: dev bwp93ce2ea9d929 root refcnt 2 rate 100Mbit burst 100Kb lat 25.0ms
Is this rule guarantee network bandwidth to be 100Mbps or it'll throttle if not enough ...
1
vote
0
answers
44
views
How is traffic shaping handled for WAN links with unknown bandwidth?
We have a customer on a site with an LTE cell link as their WAN connection. The cell provider sells the link as 25Mbps down by 10Mbps up. The customer needs traffic shaping on site, where some of ...
1
vote
0
answers
290
views
Linux traffic control did not reach expectation when using HTB and filter
I am doing an tc experiment between two servers. When no tc rules are added, the bandwith between the two servers is about 7Gbps tested with iperf3.
Then I add a tc filter based on HTB for testing. ...
1
vote
1
answer
450
views
throttle outgoing linux network traffic under high latency
I want to slow my outgoing traffic when it encounters congestion, and measure "congestion" by packet response times. The intent is to avoid one NFS client starving all the other clients when ...
1
vote
0
answers
219
views
force tbf qdisc to drop traffic
I have several virtual netspaces on my server connected via the virtual adapters. One of the connections between the netspaces is limited to 10 Mbps:
root@core-wkst:/var/log# tc -s qdisc show dev ...
1
vote
1
answer
1k
views
How to set an general network limit per client + priority for TCP acknowledgements
Following situation:
Network A is connected to network B over an slow connection.
Different hosts in network A would like to send traffic to hosts in network B.
Hosts in network B sending commands to ...
1
vote
1
answer
779
views
Layer 7 QoS Management
I have currently run a medium size SOHO network that can have up to 25-50 users and I am looking to implement a QoS system to better utilize the bandwidth. I currently am using pfSense however, both ...
1
vote
1
answer
507
views
Linux: limit outgoing bandwidth based on destination /24 network
I am setting up a scanning system for a Pentest company. The box has loads of bandwidth and I'm concerned that testers could inadvertently DoS the clients. Capping the outgoing bandwidth to 10mbps ...
1
vote
0
answers
361
views
HTB scheduler unexpected behaviour, low priority traffic starving high priority traffic
I am working on assuring low delay for UDP traffic at the home gateway level. At this home gateway I have two types of traffic, TCP and UDP, and I assure differentiated treatment by using HTB. The ...
1
vote
0
answers
99
views
Traffic control
Good day! I am using Traffic control on ubuntu 14.04 for shaping bandwidth for rate 5Mbit/sec. After some time I would like to change the rate.
As fas as I understand I can do that with "change" ...
1
vote
1
answer
340
views
tc filters not working with DRR
I am trying to control the outgoing traffic from two VMs with the DRR qdisc.
This is the hierarchy I want to have:
root
|
qdisc drr
...
1
vote
0
answers
98
views
How to throttle bandwidth for ipalias in Linux
I want to slow the connection between some nodes to a virtual node inside one machine. (different nodes use different ip with ip-alias or with different ports)
In Linux, is it possible to slow the ...
1
vote
0
answers
197
views
IP hashing filter in traffic shaping
I am using a traffic shaping by IP hashing filter.
I have Five networks /24 : 192.168.1.0/24, 192.168.2.0/24 .. 192.168.5.0/24
so i create a table with 5 cells and each cells has 256 cells.
this is ...
1
vote
0
answers
350
views
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.
1
vote
0
answers
244
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 ...
1
vote
0
answers
415
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 ...
1
vote
0
answers
1k
views
FTP Transfers Slow Between 2 Servers
Between 2 dedicated servers, hosted in 2 different DCs (different companies), the FTP upload speeds are always much slower than the max connection speed.
Specs:
Windows 2008 on both.
Quad core/8 GB ...
1
vote
1
answer
514
views
Traffic shaping - Controlling burst time and rate - on Debian server
I run a busy website on a Debian server that utilises Shorewall for most of the traffic management.
I need to work out a way to shape excess traffic so that all users can burst up to a maximum speed ...
1
vote
1
answer
2k
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
1
answer
1k
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 ...
1
vote
0
answers
317
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
0
answers
172
views
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: ...
1
vote
0
answers
858
views
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 ...
1
vote
0
answers
924
views
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,...
1
vote
0
answers
1k
views
Freebsd, ipfw sched - config type = QFQ get frozen
I have some freebsd soft-router
$uname -r
8.2-STABLE
code for ipfw:
pipe 50 config bw 70Mbit/s
sched 50 config type QFQ
queue 502 config sched 50 weight 1 mask dst-ip 0xffffffff
queue 501 ...
1
vote
0
answers
323
views
Troubleshooting iptables and configuring it to drop the priority of long-term connections
I'm somewhat familiar with the general concepts of iptables, and would like to learn it in more detail. I'm hoping that my learning experience can also be useful.
The situation:
I'm running dd-wrt ...
0
votes
1
answer
215
views
Linux TCP tuning to overcome choking uplink
A linux computer is on a network link which exhibits the following behaviour:
good download speeds
upload/uplink starts well but after a few seconds drops to close to nothing. The Send-Q and Recv-Q ...
0
votes
0
answers
288
views
How to realize a user-based bandwidth throttling in VPN or Proxy server
I created my own VPN or proxy server on a rented Ubuntu server. For example it may be an OpenVPN server with Pritunl or a Wireguard server with wg-easy or wg-install or firezone installation script.
...
0
votes
0
answers
81
views
Ingress traffic shaping with OVS port
I have a ovs topology like this:
h1
|
|
[SW 1]
/ \
/ \
[SW 2] [SW 3]
\ /
\ /
[SW 4]
|
|
h2
Traffic is sent ...