Questions tagged [traffic-shaping]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
5k views

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#...
Dinesh's user avatar
  • 171
3 votes
2 answers
7k views

Traffic shaping HTTP downloads with l7-filter

Given the following: A small, remote office has only a few users and a 1.5 Mbps DSL connection via a ZyXEL 660R. Users experience unacceptable latency and packet loss when even one large file is ...
Skyhawk's user avatar
  • 14.2k
3 votes
2 answers
1k views

Automatic TCP connection slowering (shaping)

I'd like to automatically shape bandwidth-hungry TCP connections corresponding to the already transmitted data. A summary would be : "The first Mbit is transferred at full bandwidth, then it ...
Steve Schnepp's user avatar
3 votes
1 answer
10k views

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 ...
Runcible's user avatar
  • 3,275
3 votes
1 answer
835 views

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 ...
Viko's user avatar
  • 35
3 votes
1 answer
1k views

Can not pass traffic from privoxy to ziproxy

To save up some bandwidth I decided to set up a privoxy and ziproxy bundle on my Debian Lenny VPS. The idea was to have privoxy only accessible from localhost, and put ziproxy behind it to compress ...
Roman's user avatar
  • 61
3 votes
3 answers
6k 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 - ...
exa's user avatar
  • 571
3 votes
1 answer
3k views

Traffic filtering for websockets

We have a websocket server that accepts connections. Unfortunately, for a reason that we have yet to identify some clients go rogue and connect/disconnect/connect... in loop at a very high frequency. ...
Julien Genestoux's user avatar
3 votes
2 answers
481 views

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 ...
Isaac's user avatar
  • 581
3 votes
3 answers
5k views

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 (...
Simon's user avatar
  • 31
3 votes
1 answer
1k views

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 ...
FasolkaPoBretonsku's user avatar
3 votes
1 answer
2k views

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 ...
Rj01's user avatar
  • 31
3 votes
1 answer
8k views

Implementing HTB, NetEM, and TBF traffic control simultaneously

I am working on a bash utility that will use several aspects of the tc Linux command line utility to emulate various network conditions. I have successfully constructed several qdisc hierarchies, one ...
Ian's user avatar
  • 103
3 votes
1 answer
674 views

redirect all youtube video requests to a specific one

I'm on an IT team in my company and I would like to block youtube to users. I don't want to just deny access to the whole youtube domain, but only to replace the .flv/.mp4 request with the one that I ...
iTayb's user avatar
  • 791
3 votes
1 answer
2k views

How to choose an open source, Asterisk friendly firewall?

I'm in pain. We are moving to a SIP based VOIP system and for whatever reason, we could not get our hosted Asterisk solution to work with our Sonicwall. Our VOIP provider gave up and is recommending ...
Lucas's user avatar
  • 133
3 votes
2 answers
504 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 ...
EightyEight's user avatar
3 votes
4 answers
5k 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 ...
user avatar
3 votes
2 answers
325 views

Where does traffic shaping typically take place?

As part of upgrading our network infrastructure we are looking to traffic shape our bandwidth since we only have about 3Mb down / 1 Mb up. We're looking to prioritize it so that web browsing gets ...
eekmeter's user avatar
  • 245
3 votes
2 answers
2k views

Determine what machine/device is consuming bandwidth

I sometimes help a small office with a few issues. About two months ago, they were complaining of poor internet performance. Long story short, I found one person running Carbonite on a Mac that was ...
tcv's user avatar
  • 651
3 votes
1 answer
4k 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 ...
jackhab's user avatar
  • 801
3 votes
3 answers
2k views

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 ...
Isaac's user avatar
  • 581
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 ...
dooble's user avatar
  • 31
3 votes
1 answer
488 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 ...
executable's user avatar
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:...
Folani's user avatar
  • 31
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 ...
techiek7's user avatar
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 ...
Dani Camps's user avatar
2 votes
6 answers
6k views

Rate limiting an internet connection per user

I've got a friend who has a "rent-by-room" property and includes internet access as part of this. However some tenants are somewhat hogging the internet (i.e. constantly downloading). I was ...
Alister's user avatar
  • 131
2 votes
3 answers
216 views

How to tell if a router traffic shapes?

I have a client in a managed office, and part of that service is the provision of internet, with static IPs for all desktops provided by the building, (I know it's a recipe to have all your data ...
Mister IT Guru's user avatar
2 votes
3 answers
10k 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 ...
Kyle Brandt's user avatar
  • 84.4k
2 votes
1 answer
3k views

Traffic control upload don't limit bandwidth

I'm making some rule to limit the bandwidth per ip connection on my VPN server. My command works for download but doesn't for upload, I don't know what I'm doing wrong here : #!/bin/bash TC='/usr/...
executable's user avatar
2 votes
1 answer
952 views

Minimum bandwidth limit on Linux systems

I need to limit the minimum bandwith from an IP to specific services/ports, by dropping all the packets that will not satisfy that minimum rate. I saw the attribute rate in the HTB class of the Linux ...
Lucap's user avatar
  • 21
2 votes
2 answers
630 views

Giving a priority of network traffic for one application over the other; in practice (windows)

Two applications perform network i/o concurrently. For instance, Firefox and Download Accelerator. The idea is to let serve the queue of packets of Firefox prior to serving those of Download ...
bohdan_trotsenko's user avatar
2 votes
1 answer
4k views

traffic control (tc) filter not working

i am using Debian and am trying to limit the upload-bandwidth on an ip basis. The configuration is the following: #!/bin/bash tc=/sbin/tc $tc qdisc del dev eth0 root 2> /dev/null > /dev/null $...
Christian's user avatar
  • 141
2 votes
1 answer
7k views

Limit packet rate, open connections, and IP addresses

On Linux, can I use tools like tc, iptables or others to control/shape network traffic on a network interface, for the following purposes: Control the network packet number rate (or the total number)....
WindChaser's user avatar
2 votes
2 answers
2k views

Bridge NICs with automatic pass-through

I am looking at using a computer with a dual-NIC card (one with two NIC ports) as an in-line traffic shaper / URL filter / traffic analyzer, etc. (probably using pfSense), but I am concerned that if ...
Laban's user avatar
  • 21
2 votes
1 answer
2k 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 ...
user308917's user avatar
2 votes
3 answers
8k views

What tools are available to simulate certain network conditions on Ubuntu?

In order to test our deployment I want to simulate certain network events like connection losses, timeout, limited bandwidths etc. I already googled for this but haven't found something that really ...
Jan Deinhard's user avatar
  • 2,403
2 votes
2 answers
2k views

How can I rate limit/packet shape/traffic shape on Solaris

I have an TCP server application running on a Nexenta NCP 3 box. I would like to limit how much outgoing bandwidth it can use. Is it possible in Solaris to rate limit an application like I can in ...
Myers C's user avatar
  • 131
2 votes
1 answer
6k views

QOS with iptables and tc with unstable WAN

I have a router/gateway under Linux, I want to add some QoS to reserve bandwidth for a specific flow. This can be done with iptables/netfilter and tc, but all examples start from the fact that you ...
Benoit PHILIPPON's user avatar
2 votes
1 answer
905 views

traffic shaping for certain (local) users

i'm using ubuntu 10.10 i've a local backup user called "backup". :) i would like to give this user just a bandwidth of 1Mbit. No matter which software wants to connect to the network. this solution ...
JMW's user avatar
  • 1,473
2 votes
1 answer
7k views

Squid delay pools and multiple ACLs evaluation

I am testing squid 3.0 on a ubuntu amd64 box. I am facing a problem with the delay pool classes when I set the delay_access parameters with multiple ACLs. Have been going through the squid wiki and ...
Muhammad's user avatar
  • 699
2 votes
2 answers
635 views

Odd traffic behavior of statically entered mac addresses over cisco 3750 vlans

At my workplace we use cisco switches to a implement a custom traffic delivery mechanism at layer 2. Custom software puts specific destination macs on ethernet frames and vlans segregate the traffic ...
user27388's user avatar
2 votes
0 answers
640 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 ...
MacUsers's user avatar
  • 479
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 ...
axon's user avatar
  • 163
2 votes
1 answer
815 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 ...
bobsaccamano's user avatar
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;...
Tony Tannous's user avatar
2 votes
1 answer
668 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 ...
DomeWTF's user avatar
  • 127
2 votes
1 answer
1k views

tc police rate packets by iptables handle?

I want to limit download speed from any IP to 800kbit, (this works) And I want to limit the download speed of marked packets to 400kbit. I don't get any errors, but it's not limiting the download ...
Josh's user avatar
  • 61
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 ...
user2071301's user avatar
2 votes
1 answer
930 views

Use traffic shaping with tc on debian jessie to limit only one virtual IP

My server has multiple IPs on which only one is mapper to the inbound physical interface eth0. Other IPs are handled in a virtual manner via iptables/DNAT. I want to limit the traffic to one of my ...
rubo77's user avatar
  • 2,519