Community discussions

MikroTik App
 
bronco1980
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 63
Joined: Wed Jul 22, 2009 5:02 pm

Cache Hits Control

Tue Feb 25, 2014 12:24 am

Hallo Guys,

I'm using pppoe for my clients and static simple queue to control the bandwidth, lately I'm facing a problem when the cache-hits is unlimited which leads to slowness in browsing and congestion in the network!

is there a solution to control the bandwidth coming from the cache server per ip?
 
User avatar
aacable
Member
Member
Posts: 435
Joined: Wed Sep 17, 2008 11:58 am
Location: ISLAMIC Republic of PAKISTAN
Contact:

Re: Cache Hits Control

Tue Feb 25, 2014 8:37 am

Create a PCQ base simple queue to restrict cache hit packets delivery to users on per ip basis (/32)
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: Cache Hits Control

Tue Feb 25, 2014 1:04 pm

1st of all you must mark the packet in mangle for cache hit for ex as: Cache_Hits
then in queue type :

ros code

add kind=pcq name="Cache Hit" pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=2M pcq-src-address6-mask=64 pcq-total-limit=7000
here we give each user 2M if its from cache hit

then in queue tree :

ros code

add max-limit=50M name="2M for Cache Hit" packet-mark=Cache_Hits parent=global queue="Cache Hit"
here the Max limit for all users will be only 50M
Last edited by ronix on Tue Feb 25, 2014 1:12 pm, edited 1 time in total.