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.

239 questions
1
vote
1 answer

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 performing large writes. I've read a good deal of…
bukzor
  • 263
  • 3
  • 9
1
vote
1 answer

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…
executable
  • 217
  • 5
  • 15
1
vote
1 answer

htb multiply root rate by 8

I am changing the queue discipline to HTB, creating a parent node, and 3 children which are the classes. sudo tc qdisc add dev em1 root handle 1: htb sudo tc qdisc add dev em1 parent 1: classid 1:1 htb rate 1000kbps ceil 1000kbps sudo tc class add…
Tony Tannous
  • 103
  • 9
1
vote
1 answer

Testing Linux HTB fall short of expectation

I am trying to test Linux HTB, doing the simplest example just to see it actually works. I am creating a root and giving it 200kbps, then I create 3 classes which each one gets assigned a portion of the 200kbps. - Root - …
Tony Tannous
  • 103
  • 9
1
vote
0 answers

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 veth7dbb.0.1 qdisc tbf 1: root refcnt 2 rate 10Mbit…
jpou
  • 131
  • 4
1
vote
1 answer

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 network A. What to do: Allow hosts in network…
Mr Mueseli
  • 11
  • 2
1
vote
2 answers

Traffic shaping with iptables, ipset and tc (--match-set and --set-mark)

I am having some trouble with what I believe should be a fairly straightforward traffic shaping problem. I have an Ubuntu (16.04) server that is acting as a router/nat. I want to allow most users to use 2mbps internet, whilst throttling some devices…
Gav
  • 113
  • 1
  • 4
1
vote
1 answer

shape dropbox on linux router with tc and iptables

Another machine on my LAN is uploading to Dropbox and saturating my internet connection's upload bandwidth. When that happens my pings to 8.8.8.8 take 3000-6000ms. When dropbox is not uploading my pings to 8.8.8.8 are 45ms. I'm trying to simply slow…
Josh
  • 61
  • 6
1
vote
1 answer

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 of its main QoS/Traffic Shaping options leave much…
Nick W.
  • 167
  • 9
1
vote
1 answer

Any detectable difference between traffic from HTTP browsing and HTTP downloads?

I am planning to use a multi WAN device for failover and load balancing, with multiple ISPs In my case I would like to maximize performance of HTTP browsing, while diverting on a specific WAN connection HTTP downloading and video streaming. So I…
Riccardo
  • 253
  • 1
  • 3
  • 13
1
vote
2 answers

Limiting bandwidth dynamically in Squid

In fact my problem is with users who download large files from internet in my network. I have a Squid cache/proxy server in my network that is placed between my network and the Internet. I thought terminating connections that is alive for a long…
Isaac
  • 581
  • 2
  • 12
  • 25
1
vote
1 answer

How to check all active netem rules?

I have been adding rules/settings (not sure what the correct terminology is here) with tc/netem, such as tc qdisc add dev eth0 root netem delay 25ms, and have been removing them after use. However, now I would like to check which rules/settings are…
wcarhart
  • 113
  • 1
  • 8
1
vote
1 answer

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 seems a reasonable balance between testing speed and…
paj28
  • 163
  • 6
1
vote
0 answers

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 bandwidth I am testing equals 1Mbit/s (thus it is…
1
vote
0 answers

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" command. However I am not sure how it is implemented.…