Questions tagged [trafficshaping]

Traffic-Shaping refers to the modification of packet-based network protocols according to certain criteria. A frequent goal might be to forbid certain protocols e.g. for file sharing to limit data transfer rates. If intended to modify the network traffic, blocking certain ports also counts as traffic shaping.

Traffic Shaping refers to various methods to change the network load of a connection. The usual goal is to avoid clogging of a slow connection.

Example: Assume you have a DSL-connection with asymmetric up- and download speeds, i.e. slow upload and fast download. If you are sending an email while downloading a large file from a webserver, not all TCP packets necessary to continue the download will find their way to the webserver and thus the download is being delayed. A solution to avoid that is to throttle the email-upload thus that the requests for the download can find their way to the webserver.

Further reading: https://de.wikipedia.org/wiki/Traffic-Shaping

82 questions
0
votes
1 answer

Introduce delay between each packet

So I know I can delay all the packets of a stream for a given delay using Linux tc and netem. What is presented here http://www.linuxfoundation.org/collaborate/workgroups/networking/netem#Delay_distribution just delays all of the packets for a given…
user1950996
0
votes
1 answer

Traffic Shaping tc-tbf

i'm trying set traffic shaping with tc and tbf qdisk on my wireless interface, to limit download bandwidth. By now I successfully wrote wondershaper, which use HTB. I'd like to use classless shaping, and read that the right qdisk for this job is…
Al3F6t0
  • 21
  • 4
0
votes
1 answer

JMeter burst traffic shaping

I want to run the following test for my webapp: Client should use T threads Client should generate R requests per second (rps). Traffic should not be uniform. Instead, the requests should be generated in bursts of X items, with X > R, with each…
xpapad
  • 4,376
  • 1
  • 24
  • 25
0
votes
3 answers

Traffic Shaping, Failover tools

I have just become the only IT manager of a small business. We have multiple internet providers (Comcast, Time Warner, XO and Qwest). I'm looking for some solutions that can aggregate those connections, and use traffic shaping to provide the best…
WedTM
  • 2,587
  • 5
  • 37
  • 54
-1
votes
1 answer

How to limit file download bandwidth based on cookies

I want to create premium membership plans in my wordpress site in a way that for example gold users can download files without any limits but regular users have to download files at maximum 200KB/s speed. It's simple to save a cookie when user…
Mohammad
  • 241
  • 1
  • 2
  • 8
-1
votes
1 answer

How to use linux tc with tcp applications

I have a 1Gb network and I need to run certain TCP performance tests by limiting the rate to 100MB and then 1Gb. My understanding is that hierarchical token bucket (htb) can be used to achieve this as shown below tc qdisc add dev eth0 root handle 1:…
Jimm
  • 8,165
  • 16
  • 69
  • 118
-3
votes
1 answer

Is it possible to reverse engineer iproute tc commands?

I have QOS working well in VyOS but need to move to TinyCoreLinux as I'll be sharing this VM as a lab router. VyOS is 400MB vs TCL which is 10MB. Using the "set" commands in VyOS, it generates the tc output as follow: **# tc -p qdisc show dev…
1 2 3 4 5
6