Tomato QOS - Classified rules show as unclassified

carbide

Honorable
Oct 29, 2013
82
0
10,640
Hi!

I've just bought a Netgear R7000 to use the VPN feature on the router rather than using the VPN software on every device.

The R7000 is connected to the standard sky router/modem by ethernet.

so far, the VPN works fine, but I want to use QOS so as I can let people stream whilst I continue to get the best latency for voip/game.

I'm using the toastman standard setup, which, from studying for while, pretty much covers every bit of traffic/port that I could think of needing.

the problem? all rules are classified with the correct filter - www, http, game, bulk etc. etc. but when I turn the whole QOS on, and monitor the graph, everything is (well, 99%) unclassified. I think it's something really simple I've overlooked, but can't figure it out right now!

thoughts?
 
Not sure what you are doing. The QoS markings are a complete waste of time....unless I suppose if you mark on the end devices. If you send the QoS markings to a ISP they are immediately removed. Just think if they were honored everyone would set their traffic to be more important that everyone elses. QoS packet marking is only useful in a internal enterprise network and these consumer routers are not used anyway so I am unclear why they even have any support at all for packet marking.

What you need to do is classify the traffic based on port. Then you must make a rule that restricts the traffic. High.medium.low stuff is worthless since it means very little. It also does not restrict inbound/download traffic which tends to be where issues are. Pretty much you must put hard limits on the traffic rates for each class for the QoS to be effective. The concept of guaranteed bandwidth can not work on inbound traffic because the ISP is in control.

What you have to do is attempt to limit all other traffic that is not your game traffic to say for example 10m. If you had a 15m internet this would leave 5m for your game. It is very tricky to get this to work because what you are actually doing is trying to trigger the error mechanism in the end clients you are trying to limit. You want them to request less traffic. A example would be how youtube will drop the resolution if it is getting loss.

Problem that does not always work for example if the youtube users forces a resolution and just lives with the packet loss. The data will still be send to your router using up the bandwidth and you will just not give it to the end user. That does not really solve the bandwidth issues unless the end user takes action to prevent.

It does mostly work but it takes very careful tuning.
 

carbide

Honorable
Oct 29, 2013
82
0
10,640
I've been reading through:http://tomatousb.org/tut:using-tomato-s-qos-system

I don't think I'm sending QOS markings to an ISP, I *think* I'm allocating rules to classes - so,

rule is: tcp port 80, 443
class is: high
desc. is: www

I think, as I read, provided I set these rules and classes, I'm doing exactly what you're saying - limiting traffic to avoid buffer becoming full, allowing my highest priority packets to still be able to get to the front of the queue.

The real question was, why won't they show as anything other than unclassified? if they're all unclassified, it's the same as QOS being off anyway!
 
Be very careful that concept only works on outbound traffic. You have no control over the queue in the ISP routers.

Not sure how these rules work...i normally get mad and write my own iptables rules. This is what the gui is doing anyway. Not sure if you can display the gui generated iptable rules or not. You have to be very careful about matching ports. It must match the destination port...at least for outbound traffic.

Hard to say I normally limit mine via ip address. There normally is one machine that is important and the others are less important.

I normally put in a generic catch all rule to force unknown classes to some low level class.

Still I bet is is gui doing something strange, there are strange limitation about the order you place things in. Not sure I have not used tomato for a couple years.