Page 1 of 1

What is the Best way to Control Bandwidth???

Posted: Mon Dec 05, 2005 9:29 am
by soso
Hi Guys

What is the Best way to Control Bandwidth???

if i have 70 users and i have shared internet Connection with

1024down/128up

Posted: Mon Dec 05, 2005 11:24 am
by soso
Plz yancho if u can get to me More detalis , i want make MikroTik Server and i want best way to control my bandwidth plzz

i will wait u .

thanks

Posted: Mon Dec 05, 2005 11:25 am
by normis
have you looked at the examples here:
http://www.mikrotik.com/docs/ros/2.9/root/queue

?

Posted: Mon Dec 05, 2005 12:42 pm
by soso
iam Tried this example but i have problem.


Equal bandwidth sharing among users
This example shows how to equally share 10Mibps download and 2Mibps upload among active users in the network 192.168.0.0/24. If Host A is downloading 2 Mibps, Host B gets 8 Mibps and vice versa. There might be situations when both hosts want to use maximum bandwidth (10 Mibps), then they will receive 5 Mibps each, the same goes for upload. This setup is also valid for more than 2 users.



At first, mark all traffic, coming from local network 192.168.0.0/24 with a mark users:

/ip firewall mangle add chain=forward src-address=192.168.0.0/24 \
action=mark-connection new-connection-mark=users-con
/ip firewall mangle add connection-mark=users-con action=mark-packet \
new-packet-mark=users chain=forward
Now we will add 2 new PCQ types. The first, called pcq-download will group all traffic by destination address. As we will attach this queue type to the Local interface, it will create a dynamic queue for each destination address (user) which is downloading to the network 192.168.0.0/24. The second type, called pcq-upload will group the traffic by source address. We will attach this queue to the Public interface so it will make one dynamic queue for each user who is uploading to Internet from the local network 192.168.0.0/24.

/queue type add name=pcq-download kind=pcq pcq-classifier=dst-address
/queue type add name=pcq-upload kind=pcq pcq-classifier=src-address
Finally, make a queue tree for download traffic:

/queue tree add name=Download parent=Local max-limit=10240000
/queue tree add parent=Download queue=pcq-download packet-mark=users
And for upload traffic:

/queue tree add name=Upload parent=Public max-limit=2048000
/queue tree add parent=Upload queue=pcq-upload packet-mark=users