Community discussions

MikroTik App
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

bandwidth managment

Thu Feb 09, 2006 9:15 pm

Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Re: bandwidth managment

Thu Feb 09, 2006 10:20 pm

Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
What version on MT have you installled?
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Thu Feb 09, 2006 10:25 pm

PCQ is designed to share bandwidth equally amongst users - that's not what you want to do, right?

Read up the manual, I think using simple queues you should be able to limit your three clients easily.

Best regards,
Christian Meis
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Re: bandwidth managment

Thu Feb 09, 2006 11:23 pm

Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!
What version on MT have you installled?
2.9.8
 
myasin
just joined
Posts: 10
Joined: Mon Dec 19, 2005 2:36 pm
Location: Somalia

any Solution for this

Wed Feb 22, 2006 1:39 pm

Any Solution for this... plz let me know .. i have problem...

in same.. of this


Myasin
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Wed Feb 22, 2006 6:17 pm

Hi,

The following example limits bandwidth per user at 128K and within that 56K of p2p:

First mark p2p traffic

ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-out p2p=all-p2p action=accept

ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept


than create queue type with rate limit and tree for p2p


queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address

queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address

queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8

queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8


Mark the rest of the traffic

ip firewall mangle add action=accept mark-flow=all

Create queue type with rate limit and queue tree

queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address

queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address

queue tree add parent=global-in queue=PCQ-Down flow=all priority=1

queue tree add parent=global-out queue=PCQ-Up flow=all priority=1


This works for me without any problem, but only in version 2.8, in 2.9 it's different configuration, I have the solution for that also.

regards

Faton
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Wed Feb 22, 2006 9:18 pm

hello thank can configuration can u please also past the one for 2.9 i use 2.9 thanks in advances
 
User avatar
macgaiver
Forum Guru
Forum Guru
Posts: 1764
Joined: Wed May 18, 2005 5:57 pm
Location: Sol III, Sol system, Sector 001, Alpha Quadrant

Re: bandwidth managment

Thu Feb 23, 2006 10:29 am

Hello!My network is connected 15 local lan users!How to limit the local users by ip/subnet ?
My isp:10mbit full duplex
How to limit the banwidth ip address?
192.168.2.1 512kbits/512kbits
192.168.2.2 1024kbits/1024kbits
192.168.2.3 768kbits/768kbits
The Pcq example not work!
Help!

If you have only 15 users. Just create 15 simple queues

/queue simple
add name="queue1" target-addresses=192.168.2.1/32 max-limit=512000/512000
add name="queue1" target-addresses=192.168.2.2/32 max-limit=1024000/1024000
...

If you would like to offer more traffic to the users if it is unused at the moment:


/queue simple
add name="main_queue" interface=local max-limit=10000000/10000000

add name="queue1" target-addresses=192.168.2.1/32 parent=main_queue direction=both priority=2 limit-at=512000/512000 max-limit=2000000/2000000
add name="queue2" target-addresses=192.168.2.2/32 parent=main_queue direction=both priority=3 limit-at=1024000/1024000 max-limit=3000000/3000000
...



So this way if 192.168.2.1 is the only one active user in the network - he will get up to 2M traffic

Think about bursts too.
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Sat Feb 25, 2006 4:36 am

Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances

Hi,

The following example limits bandwidth per user at 128K and within that 56K of p2p:

First mark p2p traffic

ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept

ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept


than create queue type with rate limit and tree for p2p


queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address

queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address

queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8

queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8


Mark the rest of the traffic

ip firewall mangle add action=accept mark-flow=all

Create queue type with rate limit and queue tree

queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address

queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address

queue tree add parent=global-in queue=PCQ-Down flow=all priority=1

queue tree add parent=global-out queue=PCQ-Up flow=all priority=1


This works for me without any problem, but only in version 2.8, in 2.9 it's different configuration, I have the solution for that also.

regards

Faton
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Sat Feb 25, 2006 5:03 am

Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances

Hi,

The following example limits bandwidth per user at 128K and within that 56K of p2p:

First mark p2p traffic

ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept

ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept


than create queue type with rate limit and tree for p2p


queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address

queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address

queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8

queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8


Mark the rest of the traffic

ip firewall mangle add action=accept mark-flow=all

Create queue type with rate limit and queue tree

queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address

queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address

queue tree add parent=global-in queue=PCQ-Down flow=all priority=1

queue tree add parent=global-out queue=PCQ-Up flow=all priority=1


This works for me without any problem, but only in version 2.8, in 2.9 it's different configuration, I have the solution for that also.

regards

Faton
3/4kbps is too little bandwith... try a little more... about 30 Kbps...

Regards

--
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Sat Feb 25, 2006 5:50 am

Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?

Hello all thanks for the good work you all are doing with this forum, please i still need some help on bandwdith i 256/512 from my ISP and i have up to 80 users and some time more on my network i use simple queqe to do the bandwith sharing with 3/4kbps and some users 10/16kbps but they cant use it to browse how do i slove this problem please i need help, thanks in Advances

Hi,

The following example limits bandwidth per user at 128K and within that 56K of p2p:

First mark p2p traffic

ip firewall mangle add src-address=10.0.0.0/24 mark-flow=p2p-oon my net ut p2p=all-p2p action=accept

ip firewall mangle add dst-address=10.0.0.0/24 mark-flow=p2p-in p2p=all-p2p action=accept


than create queue type with rate limit and tree for p2p


queue type add name=p2p-in kind=pcq pcq-rate=56000 pcq-classifier=src-address

queue type add name=p2p-out kind=pcq pcq-rate=56000 pcq-classifier=dst-address

queue tree add name=p2p-in parent=global-in flow=p2p-in queue=p2p-in priority=8

queue tree add name=p2p-out parent=global-out flow=p2p-out queue=p2p-out priority=8


Mark the rest of the traffic

ip firewall mangle add action=accept mark-flow=all

Create queue type with rate limit and queue tree

queue type add name=PCQ-Down kind=pcq pcq-rate=131072 pcq-classifier=dst-address

queue type add name=PCQ-Up kind=pcq pcq-rate=131072 pcq-classifier=src-address

queue tree add parent=global-in queue=PCQ-Down flow=all priority=1

queue tree add parent=global-out queue=PCQ-Up flow=all priority=1


This works for me without any problem, but only in version 2.8, in 2.9 it's different configuration, I have the solution for that also.

regards

Faton
3/4kbps is too little bandwith... try a little more... about 30 Kbps...

Regards

--
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
 
cibernet
Long time Member
Long time Member
Posts: 610
Joined: Fri Jan 28, 2005 7:22 pm
Location: Marcos Juárez, Córdoba, Argentina
Contact:

Sat Feb 25, 2006 6:24 am

Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?
Are you talking about 30 kilo bits or 30 kilo bytes???

Regards

--
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
 
onowojemma
Member Candidate
Member Candidate
Posts: 129
Joined: Sun Sep 11, 2005 5:27 pm
Location: Nigeria

Sun Feb 26, 2006 7:09 pm

I think it 30kilo byte he is talking off,like what i did was to multiple 1024*3 =3kilo byte so it now going to be 1024*30=30kilo byte but that will finsh up what i got from my ISP it means i can only have 17 system on the network of 256/512 but the cost of runing it will be too much
i think the redhat linux does it better than mikrotik then,
So please if u still has help let me know thanks
Thanks for the reply but base on what i side i get from my ISP will that not be too much bandwidth per user 30kbps?
Are you talking about 30 kilo bits or 30 kilo bytes???

Regards

--
José Ignacio Acosta
Cibernet Comunicaciones / Mikronet
Joaquín V. González
Salta - Argentina
http://www.mikronet.com.ar
http://www.cibernetcom.com.ar
 
User avatar
fatonk
Member
Member
Posts: 438
Joined: Tue Feb 22, 2005 11:06 am
Location: Mitrovica/Kosova

Mon Feb 27, 2006 10:48 am

Hi,

Upon request of onowojemma, I'm posting the queue rules for ver.2.9.x

ip firewall mangle add chain=forward p2p=all-p2p action=mark-connection new-connection-mark=p2p_conn

ip firewall mangle add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p

ip firewall mangle add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=other



queue type add name=p2p-Down kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

queue type add name=p2p-Up kind=pcq pcq-rate=56000 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000

queue type add name=Down kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=dst-address pcq-total-limit=2000

queue type add name=Up kind=pcq pcq-rate=131072 pcq-limit=50 pcq-classifier=src-address pcq-total-limit=2000



queue tree add name=p2p-up parent=WAN packet-mark=p2p limit-at=0 queue=p2p-Up priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=p2p-Down parent=LAN packet-mark=p2p limit-at=0 queue=p2p-Down priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=Upload parent=WAN packet-mark=other limit-at=0 queue=Up priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

queue tree add name=Download parent=LAN packet-mark=other limit-at=0 queue=Down priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s

Regards,

Faton
 
User avatar
kapulan
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Tue Feb 07, 2006 7:48 pm
Location: Hungary

Tue Feb 28, 2006 12:58 am

Thx for your all advence!Work! 8)

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], jaclaz and 45 guests