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?
1st of all you must mark the packet in mangle for cache hit for ex as: Cache_Hits
then in queue type :
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=7000here we give each user 2M if its from cache hit
then in queue tree :
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