Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [qos]

QoS (Quality of Service) is the idea that transmission rates, error rates, and other characteristics can be measured, improved, and, to some extent, guaranteed in advance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
60 views

wondershaper on two interfaces

I'm running Debian as a home router and server with DLNA, samba, and netatalk. I've set up wondershaper for the external interface (not the outdated debian package but obtained and built from https://...
user avatar
0 votes
0 answers
18 views

ESFQ is not control the upload

I am using IMQ and Iptables to control the packages outcome from my LAN using ESFQ, but it is not work at all. How I can control the upload of my LAN, I know that others systems like Mikrotik, has its ...
user avatar
0 votes
0 answers
203 views

egress traffic shaping rules on mirrored interface aren't working

In my small, private, network I have a device (IP address 192.168.0.240) which I want to have a "guaranteed" section of the pipe. To that end, I've been following this Server Fault article to shape ...
user avatar
2 votes
1 answer
1k views

Example command to set same DSCP value in the IP header for return packets within the same TCP connection

I have seen connmark or ctinfo could work for this but couldn't find a simple effective command to make it work (Not familiar within this area). The command can be applied to the TCP termination node ...
user avatar
1 vote
0 answers
107 views

tc: route all traffic from default gateway to ifb0

Traffic from eth0 arriving from gateway should be sent to ifb0 for ingress shaphing. Here some relevant outputs and commands ip route default via 192.168.0.1 dev eth0 metric 200 realm 1 What ...
user avatar
  • 155
1 vote
1 answer
301 views

How to prioritize traffic using bridge and qdisc?

I'm trying to prioritize traffic over the Linux-based software bridge in my network. When I generate traffic locally (on the machine hosting the bridge), the traffic is correctly prioritized. However, ...
user avatar
  • 11
1 vote
0 answers
505 views

iptables marks are being ignored by tc?

I'm getting crazy with this one: tc qdisc add dev $WANCARD root handle 1: htb default 1 tc class add dev $WANCARD parent 1: classid 1:1 htb rate $SPEED burst 6k prio 1 tc class add dev $WANCARD ...
user avatar
  • 31
1 vote
0 answers
2k views

How to limit download bandwidth per IP?

We are running Ookla Speedtest server and want to limit download bandwidth per IP (350Mbit/s per IP). And I cannot find some examples how to do that. All the examples with tc are about how to limit ...
user avatar
1 vote
0 answers
183 views

shorewall - VoIP - jitter buffer

I am using shorewall as my firewall and traffic shaping platform; however, I'm wondering what more I can do to help mitigate upstream jitter issues. I have a fair amount of bandwidth, but the ...
user avatar
  • 1,122
2 votes
0 answers
293 views

Why am I unable to prioritize TCP traffic using ToS fields?

I am trying to prioritize TCP traffic using ToS field in IP header. I am saturating the interface(ethernet) by sending 1GB data through iperf with ToS field set to 0x10 (Minimize-Delay). I then start ...
user avatar
  • 21
3 votes
1 answer
571 views

TCP flows coexisting with UDP when using SFQ (stochastic fair queuing)

I am simulating a network where I limited and modified all the interfaces using TC (traffic control). My interfaces are of the form HTB --- SFQ (it is a little bit more complex but I will simplify ...
user avatar
1 vote
1 answer
1k views

Using qdisc prio under htb class

I have 2 services, both operate over the same interface. Service A goal is keep high bandwidth while sending massive amount of data. Service B goal is low latency. Service B packets should always ...
user avatar
  • 277
1 vote
0 answers
118 views

How to get packets queued by the kernel packet filter?

I made simple HTTP proxy which accepts connections from clients on a fixed port; the proxy forks for every incoming connection, and the forked process deals with the flow of packets to the Internet ...
user avatar
  • 151
3 votes
1 answer
3k views

Get list of qdiscs and filters that are supported by tc tool

Depending on how it was compiled and on its version number, tc tool does not always handle the same list of queueing disciplines, filters, policing actions and so on. I am looking for a way to get a ...
user avatar
  • 654
1 vote
2 answers
375 views

Percentual dynamic bandwidth control

Does anyone know a tool that can 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 ...
user avatar
  • 11
2 votes
1 answer
2k views

What order are mangle dscp rules applied with iptables?

I'm using iptables mangle to mark traffic with different DSCP values. I'd like to confirm the order in which overlapping rules will be applied. I assumed that the logic would be the same as with ...
user avatar
  • 21
1 vote
0 answers
432 views

How can I monitor iptables classification applied by OpenWRT QoS, preferably live?

I set up a bunch of quality of service rules in OpenWRT, which then are translated to iptables rules. For debugging purposes, I'd love to see how the different connections are binned into, which would ...
user avatar
  • 2,113
0 votes
1 answer
1k views

How to switch power save mode between PS Poll and UAPSD (WMM) modes in CLI?

I'm trying to figure out if there are any chances to switch on/off U-APSD power save mode at my laptop. Currently I found a command to switch power save mode on/off: root@host # iw dev wlan3 set ...
user avatar
  • 101
2 votes
1 answer
3k views

How to discriminate between SSH and SCP for QoS in OpenWRT (and other systems)?

I regularly upload large amounts of data using SCP through my DSL upstream connection, which is limited to 1kbit/s. While I really want interactive SSH sessions to have highest priority, simply ...
user avatar
  • 2,113
4 votes
1 answer
6k views

Is it possible to throttle upload bandwidth per `IP` basis using `tc`, `htb` and `iptables` ? (Download limitation not required)

Problem I've searched internet like anything but couldn't find much about limiting upload. The solutions given are not limiting IP basis like this one but LAN as a whole. +-----+ +------...
user avatar
  • 93
4 votes
1 answer
3k views

How to configure QoS per IP basis?

We have say 4 users in a private network connected to the Internet trough a Linux router with a public IP address that is doing network address translation (NAT). I have to configure QoS to give ...
user avatar
  • 429
1 vote
0 answers
423 views

No "rwnd" option to "ip route" for managing the receive window?

Context: I'm doing some self-guided studying on TCP Window shaping. The scenario I'm trying to control for are clients which will be pulling down large amounts of data in addition to their normal ...
user avatar
  • 15.9k
1 vote
0 answers
165 views

Fair traffic classification using TC

I want to apply a qdisc I developed on myself (quite similar to netem) to several IP-addresses using the filter classifier. No problem this far, I could do so using the prio qdisc or HTB qdisc. But I ...
user avatar
3 votes
1 answer
2k views

QoS with TC qdiscs: is it possible to have ALL outbound connections have x speed limit per unique IP?

I'm trying to setup QoS in my VPS so that I can have any new outbound connection to a unique IP gets limited x speed. For instance: have 5 public IP's requesting data from my VPS. When the VPS sends ...
user avatar
  • 409
3 votes
0 answers
2k views

How can I properly QoS streaming services on OpenWRT

I'm going to start by explaining my naivete, I'm not sure, if netflix via a web browser uses the same protocol (http?) as netflix via a smart tv, for example. I'm using OpenWRT 14.07 currently, and am ...
user avatar
10 votes
3 answers
3k views

Setting traffic class on return packets

I have a network topology: Server <-> router1 <-> router2 <-> router3 <-> edgeRouter <-> "internet" All routers are linux based, and support iptables. The server sets ...
user avatar
  • 101
6 votes
1 answer
4k views

Can't get tc to limit network traffic

Based on this section of the Linux Advanced Routing & Traffic Control HOWTO, I can't get tc to limit the network speed in my computer. The router is a Motorola SurfBoard modem with a few routing ...
user avatar
  • 4,442
0 votes
1 answer
92 views

How can I make my command more susceptible to system slowdowns so as to use it as a visual QoS widget on my desktop?

I had some system slowdown event1 after mistakenly using a command so I thought I could use a desktop "widget" to visually show quality of service or at least show when QoS was degraded and get some ...
user avatar
7 votes
1 answer
5k views

How to change speed limit of running trickle instance

I started a program throttled using trickle as trickle -d 10 -u 5 program. Now I want to change change the throttling speed to -d 50 -u 40. How can I change it without closing the program ? ...
user avatar
  • 1,414
12 votes
2 answers
9k views

Bucket size in tbf

I've read many times about Linux's token bucket filter (tbf) and still I don't fully understand how I should calculate the burst and latency parameters, shame on me :( I suppose that a reasonable ...
user avatar
  • 3,939
1 vote
1 answer
109 views

Having several qdisc for each device, which is the first to process?

I have read about queuing disciplines here http://lartc.org/. Having this traffic shaping policy: .... qdisc pfifo_fast 0: dev ppp0 root bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 qdisc ...
user avatar
  • 285
2 votes
0 answers
273 views

Failing to apply tc filter

I've run the example at ifb both con Centos and on Fedora tc filter add dev eth0 parent 1: protocol ip prio 10 u32 match ip src 192.168.200.200/32 flowid 1:2 action police rate 10kbit burst 90k ...
user avatar
  • 3,939
4 votes
2 answers
29k views

tc show output explanation

I've found useful run watch along tc, for example: [root@router ~]# watch -dc tc -p -s -d qdisc show dev eth0 Every 2,0s: tc -p -s -d qdisc show dev eth0 ...
user avatar
  • 3,939
3 votes
1 answer
2k views

About hfsc parameters

I'm trying to use hfsc, so I've read the HFSC Scheduling with Linux I understand some concepts but shame on me, I don't understand how the values are calculated, for example: The concept of the ...
user avatar
  • 3,939
3 votes
0 answers
774 views

How to setup QoS on router (prioritize VOIP and web browsing over downloading)?

I've got Asus WL500GP-v2 router with renewed Oleg's firmware installed (http://code.google.com/p/wl500g/ , the stable version). I would like to setup some Quality of Service to ensure all users are ...
user avatar
5 votes
4 answers
10k views

how to get network QoS statistics in linux kernel?

Is there a way to get the bandwidth, delay, jitter collision, error rate and loss rate of a certain link through the interface on a local machine? let's say my machine is connected to a network via ...
user avatar
3 votes
1 answer
2k views

Why don't the following commands work to limit traffic to port 21 using tc?

In my quest to find a way to limit outgoing bandwidth for a running instance of bitcoind, I came across this guide that explains how to rate limit traffic to a particular destination IP: tc qdisc add ...
user avatar
  • 355
5 votes
2 answers
3k views

Which set of commands will limit the outgoing data rate to X kbps for traffic to or from port Y?

I have a Raspberry Pi, and I'd like to have bitcoind running on it. This consumes a lot of my outgoing bandwidth at times, so I'd like to make sure it never uses more than 20 KB/s for Bitcoin data. ...
user avatar
  • 355
100 votes
6 answers
210k views

How to limit network bandwidth?

We are hosting an application on remote server. We need to test it with a limited network bandwidth (for users with bad Internet access). Can I limit my internet bandwidth? For instance: 128 KB per ...
user avatar
7 votes
1 answer
2k views

Transfer large files without hogging the bandwidth (is there a BITS equivalent for Linux?)

Is an implementation of Microsoft's Background Intelligent Transfer Service (BITS) available for Linux systems? I'm looking at my options for transferring large files to a remote Linux server over ...
user avatar
  • 73
5 votes
2 answers
8k views

How to limit P2P/torrent traffic on an OpenWrt 10.03 router?

We have a WRT160NL router with OpenWRT 10.03, and a 60-70 Mbit connection (from ISP, don't ask why). This router can do 30-35 Mbit on ethernet(i mean cable)..ok! There are ~7 PC's using this Wireless ...
user avatar
  • 36.2k
1 vote
1 answer
2k views

Control bandwidth with iptables

How can I control bandwidth in RHEL 5 using iptables?
user avatar
  • 2,101
7 votes
1 answer
2k views

Shaping outgoing traffic with iptables

On my laptop, when I run any downloads, torrents, etc, browsing is crippled. I read somewhere that you could configure your iptables powered router to prioritize certain network traffic. Could I do ...
user avatar
  • 23.6k
3 votes
1 answer
5k views

Default mark for packets using iptables

I am trying to set up a QOS script on my Tomato-enabled WRT54G router. The script does the basics of what I need (make sure that a particular machine on my network has lower priority than anything ...
user avatar