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
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 - …
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
  • 13
  • 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.
  • 168
  • 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
  • 1
  • 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.…
1
vote
2 answers

cannot identify YouTube traffic with ndpi-netfilter, when using Google Chrome

I have ndpi-netfilter installed on Ubuntu and I need to shape the youtube traffic to 100kbps using tc module. I classify all youtube traffic to a one class through the iptables and apply tc class to shape the traffic. It works fine when I use…
1
vote
1 answer

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: / | \ / |…
Backswitch
  • 11
  • 1
1
vote
2 answers

Percentual dynamic bandwidth control with tc

Does anyone know if tc (iproute2) can be used to percentually divide the currently available bandwidth? We're on a GPRS connection on which the available bandwidth changes frequently. What I want to achieve is the following: Egress to port x: 60%…
Jeroen
  • 31
  • 3