Questions tagged [traffic-shaping]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
227 views

How to setup multiple wan connections in OpenWRT on MIPS router?

I have a router D-Link DIR-620 A1E. OpenWRT is installed on it and works, but some packages are not available (package "has no valid architecture, ignoring"). In particular, mwan3 cannot be ...
  • 111
0 votes
0 answers
233 views

why is linux traffic control `tc` tool's latency parameter not working?

I need to measure a client/server application's behavior in a LAN and a WAN setting. To this end, I decided to use Linux Traffic Control tc tool box and configured it like this: LAN sudo tc qdisc add ...
  • 101
1 vote
1 answer
233 views

Packet filtering with the u32 selector does not work

I'm trying to figure out whether the QoS solution I integrated into my RaspberryPI works or not. I found out that port-based traffic classification doesn't work, so I tried to check the filters used ...
1 vote
0 answers
22 views

Newby q: what is the backbone of a script to limit incoming and outgoing network speed, using TC? [closed]

I am new to TC / tc (traffic control), but I need to limit the speed of incoming/outgoing network traffic for a docker container. I read a lot, but still I have a lot of confusion on what is needed. ...
  • 111
0 votes
1 answer
203 views

Setting a delay between Firecracker microVM tap devices on the same host

I have set up two microVMs using Firecracker on my Ubuntu 18.04 LTS host and have attached a tun/tap device for each of them. Now I'm trying to set a delay between the two VMs (say 100ms) using tc so ...
1 vote
0 answers
350 views

The bucket size in TC-HTB

I study the behavior of tc-HTB. I did a tc setting like the below. After reading The bucket in tbf, I expect its burst size will be rate / HZ. sudo /sbin/tc qdisc del dev s1-eth1 root sudo /sbin/tc ...
  • 33
0 votes
0 answers
39 views

How can I prioritize packets coming different source one over another?

I am trying to prioritize a stream of packets over other packets coming into the router. I am running twitch and some other background process (iperf, other youtube live etc.) and I want to prioritize ...
2 votes
0 answers
246 views

tc filter parameter mtu significantly affects iperf bandwidth

I'm testing tc (traffic control) on a bond interface. When setting the ingress filter to ratelimit 1Gbps with burst 100m and default mtu (2k), I actually get only less than 100Mbps bandwidth. tc ...
  • 665
2 votes
0 answers
812 views

traffic control in linux namespace results in very low bandwidth

I'm expecting to limit ingress traffic of veth0 in namespace ns0. What I do is issuing the following commands: # create netns ip netns add ns0 # create veth pair ip link add dev veth0 type veth ...
  • 665
1 vote
1 answer
363 views

How to limit download rate per user from a Linux access point?

I have a Linux based WiFi access point connected to the internet. How can I limit the download speed for each user to 200 kbps? This is a simple question and I could find many "false duplicates" in ...
  • 148
1 vote
0 answers
344 views

traffic shaping with TC(CLASSFUL QDISCS,like prio,HTB,CBQ)not working after upgrade ubuntu from 14.04 to 16.04

all.I have a problem. I used tc with HTB to do traffic shaping on 14.04.like tc qdisc add dev docker0 root handle 1: htb default 1024 This was work well on ubuntu 14.04 with docker 1.11. But after I ...
2 votes
1 answer
681 views

How to slow down traffic with tc?

I'm on Ubuntu 14.04; I'd like to learn the basics of traffic shaping, I made a simple script that should slow down my HTTP(S) traffic to ports 80 and 443. # usage: sudo ./filename.sh #delete ...
  • 227
0 votes
1 answer
655 views

Is traffic shaping for speed tests a legitimate approach?

VW recently got into a lot of trouble for designing a car that performed differently when being tested compared to when it was actually out on the road. This seems a bit analogous to ISPs providing ...
  • 1,782
1 vote
1 answer
2k views

Limit access to specific websites by time and usage

Apologies if this is answered elsewhere, I can't find it. Pointers appreciated if so. I want to set up my home network so that access to some sites (e.g. youtube, facebook) is restricted: By device,...
  • 111
5 votes
2 answers
12k views

Mark packets with iptables by destination mac address

I need to mark packets which goes to a specified mac address. I need this to use in shaper with tc. --mac-destination doesn't exist in iptables. Also I tried to use ebtables: ebtables -t nat -A ...
1 vote
1 answer
612 views

How filter Ack or SYN packets

I am trying to create a traffic shaping by tc filters. In this traffic shaping , I have two class's . one of them is to control user's traffic and other which has more bandwidth rate is to Ack or ...
  • 31
0 votes
0 answers
195 views

How to setup an efficient badwidth management for home wifi

I plan to share our wifi between 4 roommates and occasional guests and mobile devices. We consume mb differently so the bill will not split evenly. I would like to setup something as follows: When ...
  • 213
1 vote
0 answers
380 views

What does selecting "none" queue do?

I'm trying to shape traffic in pfSense. The question comes up of which queue to assign traffic to. What happens if i pick none as a queue? In the end, traffic going out the link is under the ...
  • 21.3k
2 votes
1 answer
4k views

Why can the AckQueue not be the same as the Queue?

What should i choose for AckQueue? I'm trying to do traffic shaping in pfSense. Traffic shaping in pfSense involves things called queues. Some queues have higher priority than others. I understand ...
  • 21.3k
6 votes
1 answer
14k views

How to limit bandwidth used by an IP in the penalty box in pfSense

We're trying to use the pfSense traffic shaping feature known as the Penalty Box. We are interested in limiting the bandwidth of a particular IP to 2%. Note: There is a four-year-old bug in pfSense ...
  • 21.3k
1 vote
0 answers
933 views

ubuntu 14.04 traffic shaping

Traffic shaping using htb and tc does not give expected results for shaping. Hi I am using the script from shaping $TC class add dev $IF parent 1: classid 1:1 htb rate $DNLD When I specify 0.5mbit ...
  • 257
1 vote
1 answer
226 views

Virtual Host Redirects and Packet Flow

If I set up a virtual host in nginx, will all packets flow through that PC? Here is what is going on. I have an openwrt NAT router with two devices behind it, a server and a raspberry pi. I want both ...
  • 113
2 votes
2 answers
1k views

Drop IP fragments of a certain protocol

When conntrack is active, the iptables stack never sees a fragmented IP packet, only the reassembled one (source), so the -f test never matches. If I want to block any fragment I could set ...
2 votes
0 answers
217 views

Traffic shaping advice

I've been searching the topic I'm looking for for a quite some time, then I decide to ask my own question because I'm so confused right now. First thing first, here is the background information you ...
13 votes
3 answers
11k views

Options for bandwidth management on a shared internet connection

The premise: Rural location, not many options for high-bandwidth internet connections. The fastest by far is Satellite internet, but it's expensive (both equipment and monthly cost, and has latency ...
  • 267
0 votes
1 answer
3k views

Windows command line utility to control network bandwidth

I'm looking for a windows command line utility (it should be command line based because I want to call it from another application) that can control network bandwidth(I mean the download and upload ...
  • 351
1 vote
1 answer
1k views

How can I detect long-lived connections and mark them for shaping

I would like to detect TCP connections which have been open for more than one minute (or for greater than N bytes, or M packets), so I can classify them as bulk traffic ("downloads") and de-prioritise ...
  • 1,665
4 votes
2 answers
10k views

Limit internet bandwidth

For test purposes (to debug my WindowsPhone7 application), I need to limit the network speed to a small value, like 79 kbits/sec. I’m using Windows 8 x64. NetLimiter doesn’t install at all. ...
  • 856
0 votes
1 answer
488 views

Traffic Shaping Dlink Router

I have dlink router DIR-524. I want to set traffic shaping and QOS on my wifi router but these options are not available on the firmware that is installed on the router. I want to upgrade this ...
2 votes
0 answers
333 views

Deprioritizing (traffic shaping) bittorrent seeding

I have a linux server with spare bandwidth. I thought about running an rtorrent client and seeding some popular distros images. However, I can't allow myself to curtail the normal operation of the ...
  • 191
3 votes
1 answer
6k views

Linux - Network Traffic Priority by IP

I'm using Ubuntu 12.10 and looking for a way to shape network traffic based on the IP address. I have a LAN, lets say from 192.168.1.2 - 192.168.1.254. The server is at 192.168.1.1. All IPs should ...
1 vote
1 answer
12k views

HTTP requests met with "Traffic blocked because of exceed per IP shaper session quota..."

I often am met by this message when trying to load a webpage. When I see it, I get nothing else back from my HTTP requests for a couple minutes, after which things go back to normal. There is no ...
  • 13
1 vote
0 answers
115 views

Blocking/traffic-shaping of an Elastic-IP URL

I'm interested in block or traffic-shaping connections made from my system to a host given by a URL. The problem is that the URL is re-mapped to a different IP address every several minutes (I ...
3 votes
1 answer
467 views

Using a Ubuntu AWS instance as tunnel for RDP to simulate bandwidth

I have a bunch of windows instances on EC2 which I can connect to using RDP. I want to test the performance of RDP under various bandwidth and latency conditions. I know about thetc qdisc tool which ...
  • 31
1 vote
0 answers
2k views

Limit Netflix bandwidth

Netflix massacres my ping whenever I play online games. Preferably, I'd like to be able to monitor and limit/assign priorities to any applications using my home network, but if it's a Netflix-...
  • 51
3 votes
1 answer
468 views

How can I organise sharing the Internet bandwidth with many people at home?

Lets say, you have a relatively fast Internet connection speed. However, there are many people who want to access the Internet and download files at the same time using that available bandwidth. The ...
  • 185
3 votes
1 answer
675 views

Using traffic shaping, is limiting download traffic helpful or harmful?

I use traffic shaping in MonoWall (BSD) to great advantage with my home connection. It has been quite some time since I've had any kind of issues where user interaction with the internet has seen any ...
  • 1,919
1 vote
2 answers
2k views

IPv6 traffic shaping

With the second IPv6 Launch Day behind us, i'm stuck waiting for traffic shaping support on IPv6 before i can deploy it to our network. i currently use m0n0wall as a router with its IPv6 support, but ...
  • 21.3k
2 votes
3 answers
3k views

I need to block torrent downloads

My cousin complains that his housemate uses torrent and thus it causes slow connection to my cousin. He owns the ADSL modem and I saw some good futures such as blocking websites or protocols. Like if ...
  • 554
4 votes
1 answer
11k views

pfsense 2.0 traffic priority - set full priority for single host

I have a network with several computers all on the same network and since I have very limited bandwidth I would like to prioritize traffic almost like a CPU scheduler prioritize processes. Example: ...
  • 1,202
5 votes
2 answers
5k views

Using tc in Linux and dummynet in FreeBSD to limit bandwidth

We have a network product that runs on Linux and needs to be tested in reduced bandwidth networks. We have been able to use 'tc' (traffic control) in Linux and dummynet in FreeBSD to inject delay (...
  • 578
7 votes
1 answer
10k views

How to deliberately introduce a delay for incoming UDP packets

I want each packet (that match iptables rule) to be delayed by some fixed time interval. How to to this? Preudocode: iptables -A INPUT -p udp <more conditions> -j DELAY --delay 50000 # delay ...
  • 16.4k
0 votes
2 answers
2k views

How to limit traffic on a router based on IP?

how to limit internet traffic on a router based on a LAN IP. so that for example on a 10mb/s internet connection I can have a IP Camera with a dedicated 1mb/s, 2 computers with 3mb/s, and 2 computers ...
21 votes
2 answers
20k views

Simulating a low-bandwidth, high-latency network connection on Linux

I'd like to simulate a high-latency, low-bandwidth network connection on my Linux machine. Limiting bandwidth has been discussed before, e.g. here, but I can't find any posts which address limiting ...
  • 703
3 votes
2 answers
807 views

Rapidshare and Megaupload traffic shaping by ISP

I think my ISP is shaping Rapidshare and Mega Upload traffic, the download speed goes down to 30 kb/s every time and only on those sites, I've tried with different programs for downloading and the ...
  • 190