Questions tagged [traffic-shaping]

The tag has no usage guidance.

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

Transfer speed between distant computers A and B differs wildly from speed tests [closed]

For almost 15 years I've suffered the following problem (sometimes chronically and sometimes only rarely), across multiple machines, router hardware, and ISPs at both ends of the connection: My home ...
dg99's user avatar
  • 700
0 votes
0 answers
16 views

How can I delete just one queue in htb?

I would like to delete just one queue in htb when having two. My script would be the following one: TC=/sbin/tc IF=wlan0 # Interface DNLD=1mbit # DOWNLOAD Limit UPLD=1mbit ...
Nfernandez's user avatar
0 votes
0 answers
537 views

How to set speed limit per IP in IP range in Ubuntu

What I want: I've setup a openvpn-server and want the clients in range of 10.8.0.0/21 limit their speed to 10mbit for each IP as a total limit of 100mbit. wan interface : eth0 openvpn interface : ...
Root's user avatar
  • 65
1 vote
1 answer
564 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 ...
Olexandr Kulinich's user avatar
1 vote
0 answers
28 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. ...
gai-jin's user avatar
  • 113
0 votes
1 answer
303 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 ...
Tobias Pfandzelter's user avatar
1 vote
0 answers
545 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 ...
nimdrak's user avatar
  • 133
0 votes
0 answers
71 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 ...
taurenfranklin's user avatar
2 votes
0 answers
313 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 ...
dastan's user avatar
  • 705
2 votes
0 answers
1k 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 ...
dastan's user avatar
  • 705
1 vote
1 answer
431 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 ...
hdante's user avatar
  • 147
1 vote
0 answers
390 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 ...
user705655's user avatar
2 votes
1 answer
761 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 ...
elmazzun's user avatar
  • 227
0 votes
1 answer
711 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 ...
WBT's user avatar
  • 1,852
1 vote
1 answer
3k 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, ...
sfinnie's user avatar
  • 111
6 votes
2 answers
14k 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 ...
Serhii Matrunchyk's user avatar
1 vote
1 answer
808 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 ...
samie's user avatar
  • 31
0 votes
0 answers
196 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 ...
Sparkler's user avatar
  • 223
1 vote
0 answers
416 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 ...
Ian Boyd's user avatar
  • 22.2k
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 ...
Ian Boyd's user avatar
  • 22.2k
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 ...
Ian Boyd's user avatar
  • 22.2k
1 vote
0 answers
935 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 ...
Pavan K's user avatar
  • 257
1 vote
1 answer
267 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 ...
mh00h's user avatar
  • 113
2 votes
2 answers
2k 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 ...
Lorenzo Pistone's user avatar
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 ...
oursonvie's user avatar
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 ...
pmdj's user avatar
  • 267
0 votes
1 answer
4k 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 ...
wiki's user avatar
  • 381
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 ...
joeytwiddle's user avatar
  • 1,755
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. ...
Soonts's user avatar
  • 925
0 votes
1 answer
525 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 ...
Umer Farooq's user avatar
2 votes
0 answers
350 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 ...
Guy's user avatar
  • 191
3 votes
1 answer
7k 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 ...
goocreations's user avatar
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 ...
jag426's user avatar
  • 13
1 vote
0 answers
116 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 ...
user1071136's user avatar
3 votes
1 answer
473 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 ...
AjP's user avatar
  • 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-...
DefZep's user avatar
  • 51
3 votes
1 answer
481 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 ...
Ozgun S's user avatar
  • 315
3 votes
1 answer
814 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 ...
killermist's user avatar
  • 1,929
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 ...
Ian Boyd's user avatar
  • 22.2k
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 ...
ilhan's user avatar
  • 554
5 votes
1 answer
12k 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: ...
Waxhead's user avatar
  • 1,250
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 (...
lcbrevard's user avatar
  • 578
7 votes
1 answer
11k 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 ...
Vi.'s user avatar
  • 17.2k
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 ...
Timo Huovinen's user avatar
21 votes
2 answers
21k 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 ...
Justin L.'s user avatar
  • 723
3 votes
2 answers
809 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 ...
user31113's user avatar
  • 190