Questions tagged [traffic-shaping]

Traffic shaping is a technique to delay some or all datagrams to comply with desired traffic profile.

Traffic shaping is a network traffic management technique which delay some or all datagrams to bring them into compliance with a desired traffic profile. Traffic shaping is used to optimize or guarantee performance, improve latency, and/or increase usable bandwidth for some kinds of packets by delaying other kinds.

232 questions
4
votes
0 answers

MasterShaper alternative

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 there's anything better. My forum account hasn't…
Maxxer
  • 282
  • 4
  • 18
4
votes
2 answers

Linux TC / Policy Routing tools

In addition to a really good firewall Linux has a builtin advanced routing and traffic shaping (lartc). There are many applications (firehol, firestarter, etc) to make the creation of iptables firewall easier, what similar to tools exist to make…
Zoredache
  • 128,755
  • 40
  • 271
  • 413
4
votes
3 answers

Are there simpler ways to do traffic shaping in linux besides tc?

I read lartc but I don't feel I need such a complicated solution for simple needs. One of such simple use cases is to limit a specific process' available bandwidth, upstream or downstream. How can I run wget or firefox constrained to 50 kb/s…
silviot
  • 279
  • 6
  • 11
4
votes
3 answers

Limiting internet traffic per user/IP based on volume

I have a shared internet connection on my network which I currently manage using Smoothwall Express. I want to be able to allocate each of my housemates a certain amount of bandwidth per month. My ISP charges me per MB, so I want to extend that…
Richard C
  • 321
  • 1
  • 7
  • 19
3
votes
1 answer

How to remove the ingress delay introduced using tc

I learned that we can introduce delay to ingress packets using tc by following the commands specified in : https://wiki.linuxfoundation.org/networking/netem#how_can_i_use_netem_on_incoming_traffic3f Section: How can I use netem on incoming…
Dinesh
  • 171
  • 1
  • 4
3
votes
1 answer

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 when a New User Connects and Bandwidth Shape the…
executable
  • 197
  • 3
  • 15
3
votes
0 answers

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: htb tc class add dev lo parent 1: classid 1:1…
Folani
  • 31
  • 3
3
votes
2 answers

IP Forwarding and traffic shaping

Is there any way to forward packets from network A to network B (just like a router) without changing source IP Address (and vice versa, from network B to network A) and also enforcing traffic shaping rules? The solution should be implemented in…
Isaac
  • 581
  • 1
  • 12
  • 25
3
votes
3 answers

Dynamic traffic-shaping

I have a 64MB/s internet connection and it should be divided among 17 LANs with a priority. Any computer from any LAN should have a particular share from bandwidth (For example computers from LAN1 have half of bandwidth that computers from LAN2) but…
Isaac
  • 581
  • 1
  • 12
  • 25
3
votes
0 answers

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 bandwidth more than 70kbps. I am using tc & iptables…
3
votes
3 answers

Traffic Shaping using tc

I have a 1.5 Mbit/s link that i want to share with 150 users. My setup is the following: Linux box with 3 NICs eth0 - public ip eth1 - subnet A - 50 users (static ips) eth2 - subnet B - 100 users (via dhcp) I am using squid as a transparent proxy…
Simon
  • 31
  • 1
  • 3
3
votes
1 answer

How to add latency and bandwidth-limit interface using tc?

I know I can add latency to an interface using this command: # tc qdisc add dev eth0 root netem delay 50ms In addition to latency, I want to limit the bandwidth of this interface to 100kbps. How can I do this? I've seen some examples of how to…
Runcible
  • 2,955
  • 3
  • 22
  • 15
3
votes
1 answer

linux tc qdisc pie (aqm) configuration with limited bandwidth

I would like to configure AQM PIE by using tc-qdisc, but at the same time I would like to limit the bandwidth to 1Mb/s. I have used similar configuration with fq_codel, i.e. I have limited the bandwidth by using htb, and later configured fq_codel…
3
votes
1 answer

Ubuntu 14.04 - tc not working

I have used tc before on another servers to restrict the total bandwidth available on port 80, in order to make sure that there is enough throughput for port 22 during peak hours of the day. I need some help with the reason why the following tc…
Viko
  • 35
  • 1
  • 4
3
votes
1 answer

Dummynet Filtering not working on FreeBSD 10

I am trying to do network emulation using dummynet in FreeBSD 10. I have this working in 9.3 however things must have changed and I cant determine exactly what but my setup no longer works. I have pretty basic…
Rj01
  • 31
  • 2