Hot answers tagged

4 votes

Traffic shaping: tc filter catch all filter

The question is rather old, but just in case someone comes across a similar problem. Parameter all can be used for protocol instead of ip to also filter for other traffic like arp. tc filter add dev ...
  • 141
4 votes

How to determine number of open sockets? VM Resource Issues

To watch live MySQL opened connections through UNIX socket, run (as root): watch -n1 'netstat -np | grep -i mysqld'
  • 190
4 votes
Accepted

Attempting to shape traffic for both IPv4 and IPv6 results in a conflict

The filter priority isn't family specific. So, your commands to create filters should look like: /sbin/tc filter add dev eth0 parent 1:0 prio 1 protocol ip handle 1/0xF fw flowid 1:1 /sbin/tc filter ...
3 votes

Windows Server 2012 Policy-Based QoS

I think you are misunderstanding how QoS works. Lets say you have two applications running on a server (app A and app B) and either one is maxing the bandwidth. You decide you want to make sure App A ...
  • 3,713
3 votes

Delaying packets with libnetfilter_queue

You don't need to do NF_DROP verdict on incoming packet and resend it via raw socket. You can hold packet in your own queue, and verdict it later (say, after some delay). I wrote a simple traffic ...
  • 31
3 votes

How to determine number of open sockets? VM Resource Issues

with ss netstat is deprecated, its replacement is ss. For your case, ss -pun might be useful that shows UDP (-u) sockets with process information (-p) and doesn't turn port numbers into service ...
3 votes
Accepted

WLAN QoS setting: WMM vs SSID?

From @akostadinov's answer: "One can create multiple SSIDs in the router. Then assign a different QoS value for each SSID." The SSID here means that you'll have the QoS set based on the SSID ...
2 votes

How do you configure QoS for Skype?

If your computers are on a Windows domain , you can use group policy QoS settings to assign DSCP values to traffic generated by the Skype executable file (skype.exe)(actually, you can do the same with ...
  • 21
2 votes

Traffic shaping: tc filter attached to an HTB class?

It is possible. I believe tc(8) man is not comprehensive. Citing from man7.org/tc(8): tc filters If tc filters are attached to a class, they are consulted first for relevant instructions. ...
  • 21
2 votes
Accepted

Windows 2003 R2 traffic shaping & QOS

Windows Server 2003 R2 has already hit mainstream support end-of-life a few years ago, and is scheduled for complete end-of-life in a few months. I would not use it for anything, much less a router ...
  • 15.5k
2 votes

Dummynet Filtering not working on FreeBSD 10

It's all because of net.inet.ip.dummynet.io_fast=1. This variable turned on fast packet processing: while bandwidth is not exhausted, all packets are forwarded directly through the bridge. Shaper is ...
  • 6,894
2 votes

Do I need VLAN for VOIP phone if my network switches supports IEEE P802.1p QoS?

I recommend using a separate VLAN whether you use QOS or not. A separate VLAN allows you to set different DHCP options (such as Boot Server) for your phones without affecting your workstations.
  • 21
2 votes

Do I need VLAN for VOIP phone if my network switches supports IEEE P802.1p QoS?

Do you trust your workstations to not submit data with a fake QoS header just to get more speed? You can not avoid that but on a VLAN you can prioritize the VLAN. Also, on windows doing QoS on the ...
  • 51k
2 votes

Internet bandwidth split with HP1810-8G, using "DSCP QoS policies" and VLANs

What is the specific model of the router provided from your internet provider? Do you get a few static ip's with your internet package or just dynamic? I am using a CISCO ASA series to do a very ...
2 votes

Need help understanding a bandwidth restriction on a Cisco ASA

Regarding your question on the policing/limiting : The input and output are being policed to 1000000 bits per second with a maximum burst of 1500 bytes. The burst value is the max number of bytes in ...
  • 491
2 votes
Accepted

Setting ToS/QoS for VoIP on Mikrotik

Run Tools > Torch using the latest versions of Mikrotik (which include DSCP/TOS in the Torch tool) during a voip call to find out the DSCP/TOS for those packets. Update: If you are using an older ...
  • 2,432
2 votes
Accepted

How the Traffic Classes get defined

Your question is too abstract. it depends. If you are referring to the number of hardware queues, then yes, this is determined by the underlying hardware (like in Cisco, Juniper). But queues can be ...
  • 8,410
2 votes
Accepted

How to set VLAN PCP value?

The intel ixgbe driver was the problem.Updating it to the latest version solved the problem.
2 votes

Cannot set DSCP on Windows 10 Pro via group policy

The QoS policy created by gpedit only creates policies for the "domain" network profile. To create a policy for a different network profile, use the cmdlet New-NetQoSPolicy. Be aware that in Win10 ...
2 votes

QoS - How to detect Youtube HTML5 video over port 443?

Add a classification to throttle traffic on port 443 after 512kb have been downloaded to a specific internal address. or you can set the destination address to any. it will look like this in the end ...
2 votes

Bandwidth limit for multiple network destinations with a default (slow) match with Linux TC

Finally got it working. These lines show what I'm doing: tc qdisc del dev vmn0 root tc qdisc add dev vmn0 root handle 1: htb default 11 r2q 83 tc class add dev vmn0 parent 1: classid 1:1 htb rate ...
  • 76
2 votes
Accepted

ASA QoS for VoIP traffic

Usually, you want to police the priority queue (VoIP). Give it a guaranteed minimum bandwidth, and police everything above that bandwidth. Not policing the priority queue lets the priority traffic end ...
  • 3,198
2 votes

IPTables: drop packets with a certain DCSP value

There is an iptables module dscp that seems to do what you need. If you don't have any rules in current iptables setup, you can do something like: iptables -A FORWARD -m dscp --dscp 1 -j ACCEPT ...
  • 36.1k
2 votes

Why doesn't this "tc filter" rule classify the traffic at intended?

Whats Your kernel version? I'm trying to configure similar thing, and becoming to have strong feeling that kernel debian 4.15.0-23-generic is broken. Problem is not with HTB itself, but with ...
2 votes

Linux Traffic Control: How to prioritize traffic using bridge and qdisc?

I've read the source code of the bridging and the prio queue scheduler. And I've got some results: The prio qdisc uses the skb->priority field to classify packets with the priomap. By default the ...
2 votes

WLAN QoS setting: WMM vs SSID?

I found answer in another language (thanks google translate). Basically one can create multiple SSIDs in the router. Then assign a different QoS value for each SSID. There is a list with the meaning ...
  • 1,138
1 vote

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

ToS field is an indication of how to prioritize or route the packet, you now have to specify a policy to explain what you want to do with these packets. Note that the ToS field will only be useful on ...
1 vote

Is Quality of Service my ISP's responsibility?

There's no easy way to solve the problem you describe. QoS is largely about controlling packets going out of your network not so much coming in. Most ISPs won't do a thing about QoS either because ...
  • 165

Only top scored, non community-wiki answers of a minimum length are eligible