Community discussions

MikroTik App
 
vipata
just joined
Topic Author
Posts: 17
Joined: Tue Jul 09, 2013 3:52 pm

Queues. Sharing bandwidth between two networks.

Tue Jul 09, 2013 3:54 pm

Hi,

I'm trying to share my bandwidth (6M) between two networks. Those 6M must be broken down in 1M for the network A and 5M for the network B, but if it exists the possibility, each of them should be able to reach the total 6M, guaranteeing the each network's minimum bandwidth.

Inside each network, I would like to share its available bandwidth with the users using PCQ.

How should I configure the mangle and the queues to achieve that goal?

Regards,

Vicente
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Queues. Sharing bandwidth between two networks.

Wed Jul 10, 2013 10:49 am

in the mangle, mark-packet by network A and B.

in the queue-tree set the parent your local interface for download.
add 2 rule, network A and B.

for network A
limit-at: 1 M
max-limit: 6M

for lnetwork B
limit-at: 5M
max-limit: 6M.


for limit and share the BW, add your PCQ rules, and set the child with this.
 
vipata
just joined
Topic Author
Posts: 17
Joined: Tue Jul 09, 2013 3:52 pm

Re: Queues. Sharing bandwidth between two networks.

Wed Jul 10, 2013 10:55 am

Thank you,

I'll try your solution.
 
vipata
just joined
Topic Author
Posts: 17
Joined: Tue Jul 09, 2013 3:52 pm

Re: Queues. Sharing bandwidth between two networks.

Wed Jul 10, 2013 11:15 am

Excuse me,

What kind of queue do I have to set for the parent? I'm using the default queue type. You can see the configuration that I'm using bellow.

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=6M name=\
queue-download packet-mark="" parent="ether1 WAN" priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=1M max-limit=6M name=\
queue-Aitana packet-mark=paquetes-Aitana parent=queue-download priority=8 queue=pcq-download
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=5M max-limit=6M name=\
queue-WiFi packet-mark=paquetes-usuarios parent=queue-download priority=8 queue=pcq-download

And, If I wanted to set the same kind of configuration for the upload link, I would only have to set the pcq-upload, wouldn't I?

Thanks,
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Queues. Sharing bandwidth between two networks.

Fri Jul 12, 2013 7:16 am

your queue-tree is ok, but set the parent with pcq too and the parent for download is your local interface.

for the upload is the same but for upload the parent is your wan interface.
 
vipata
just joined
Topic Author
Posts: 17
Joined: Tue Jul 09, 2013 3:52 pm

Re: Queues. Sharing bandwidth between two networks.

Fri Jul 12, 2013 10:34 am

Thanks,

The problem is that I have two interfaces, an ethernet port for one network, and a bridge for the other one. Perhaps I'd have to use a more global interface as global-in; what do you think?

Who is online

Users browsing this forum: alisakhan001, Bing [Bot], CGF, GoogleOther [Bot], mantouboji, pidro and 57 guests