Evaluate 2-Step QoS Rules

Hey everyone,

Many years ago I wrote a 2-step QoS script to help home users manage their limited upload bandwidth.

I’ve recently discovered that I somehow completely missed my intention to prioritize the TCP 3-way handshake and ACKs, so I’ve just refactored the ruleset and improved it.

I posted it to Github now to make it easier to maintain.

I was hoping a few could have a look, especially around the area of “P1” where I’ve added the TCP 3-way handshake and ACKs, to see if there are any more optimizations I could make to it.

That’s the only part of the ruleset that examines every packet; if there is any further way to optimize it, I would like to hear your suggestions.

I am thinking that on the lowest-end of routers, serving relatively high-speed Internet connections, simply disabling that part of the script would be enough to save significant CPU, and not have any dramatic effects.

Thanks for looking, and I await your suggestions.