Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Looking for some help with TC (Traffic Control)
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Looking for some help with TC (Traffic Control)

MunMun Member

So here is what I am trying to do.

I want three traffic "buckets" for which IPs will be assigned into.

The first bucket bulk carrier I want to be filler. I want all over traffic to get priority of this. It isn't time crucial traffic and I want it to take as long as it needs, and fill in the gaps of what I am not using.

The second bucket High Speed I want to be the top priority. This I want to have instant priority over everything else. This is for things like my voice / gaming servers.

Finally I want a general bucket. These are for things that don't fit in either, and just need to have a higher priority over the bulk carrier, but less then the high speed bucket.

Here is a config I made after doing some reading, but it doesn't work as I intended. I think it is due to using 'cbq' instead of something like 'pfifo'. I also don't fully understand the prio flags, or what 16 is as I can't find what prio 16 is in any documentation. ( I was following a few examples, which are really overly complicated.)

#main connection
tc qdisc add dev eth0 root handle 1: cbq avpkt 10000 bandwidth 100mbit 

#bulk carrier *backups*
tc class add dev eth0 parent 1: classid 1:1 cbq rate 40mbit allot 1500 prio 1 bounded isolated 
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 107.xxx.xxx.134 flowid 1:1

#High speed
tc class add dev eth0 parent 1: classid 1:2 cbq rate 10mbit allot 1500 prio 3 bounded isolated
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 23.xxx.xxx.198  flowid 1:2
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip src 23.xxx.xxx.198 flowid 1:2

#general connection
tc class add dev eth0 parent 1: classid 1:3 cbq rate 90mbit allot 1500 prio 5 bounded isolated
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 0.0.0.0/0 flowid 1:3

Any help would be appreciated!!

Comments

Sign In or Register to comment.