Community discussions

MikroTik App
Cartman
Member Candidate
Member Candidate
Topic Author
Posts: 104
加入: Wed Jul 23, 2008 6:14 pm

Grant minimum bandwidth

Tue Oct 29, 2013 2:57 pm

Hello World !!!

I would like to grant an amount of bandwidth to my hotspot users.
Independent from how many users are logged in, each user should have
a download bandwidth of 512k guaranteed. The upper limitation is done
by Mikrotik-Data-Rate attribute from the radius server.
I have one RB/1000 (ROS6.5) conencted to two 16Mbit lines with an external loadbalancer.
有不超过20个用户same time, so the lower limit should work.
Another problem is, if the BW is guaranteed, can I also grant to have connections available
for the users ?

How can I realize that ?

Read some PCQ information, but there is no setting for guaranteed bandwidth.

My problem is, that three or four P2P users kill the performance of the system.
Available bandwidth or CPU are not the reason, but the number of open conenctions
is too high to let other users use the internet.
These other users are'nt able the do a DNS lookup, so I have to cut the number of connections
and grant some bandwidth to all customers.

Already tried firewall filters like
Code:Select all
chain=forward action=drop protocol=tcp connection-limit=5,32
on top of the filter rules list, but that does not affect anything. User still have up to 68 TCP
connections, and when I delete them, they are up again after about five seconds.
And the counter stays at 0.
In the mangle table I have some rules for different ports, but it seems like the whole P2P
traffic uses TCP ports 80 and 443 which I do not want to block.

Is there an effective, and maybe efficient, way to restrict P2P traffic ?
I already read a lot about that, but the conclusion was always that this is not possible.
Top
Cartman
Member Candidate
Member Candidate
Topic Author
Posts: 104
加入: Wed Jul 23, 2008 6:14 pm

Re: Grant minimum bandwidth

Wed Nov 06, 2013 6:00 pm

Anyone ?
Top
User avatar
Caci99
Forum Guru
Forum Guru
Posts: 1073
加入: Wed Feb 21, 2007 2:26 pm
Location:Tirane
Contact:

Re: Grant minimum bandwidth

Wed Nov 06, 2013 11:17 pm

To guarantee the minimum bandwidth you need to specify the value of limit-at in the queue. In the hotspot user profile I don't see any option to add that value.

So, I think you can play with address lists. Add the users in address lists and leave the limits on the profile empty so it will not create simple queues (I guess). Then use the address lists to mark the packets in mangle. After that, with the mark packets, use queue tree with pcq. Now pcq can distribute the bandwidth evenly at fixed rate and also add limit-at limits.
Top

Who is online

Users browsing this forum:3graf,Bing [Bot],DeviceLocksmith,nabus,rtrombetta,Semrush [Bot],urknalland 2 guests