Community discussions

MikroTik App
 
ujjal66
just joined
Topic Author
Posts: 5
Joined: Thu Apr 30, 2009 2:29 pm

Need Help for Bandwidth Management

Tue Dec 22, 2009 10:01 am

I have a RB450G MikroTik router board. In that I have created 4 group to distribute bandwidth to 4 individual company. Each group has more than 20 user to which I have assigned different B/W. Now I want to manage B/W in such a ways that if any user under any group wants to browse he will get certain amount of (suppose 64kbps) B/W and if he D/L something then he will get lower (suppose 50 kbps) B/W.

Now can anyone please help me to do this.

Thanks in advance.
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Need Help for Bandwidth Management

Tue Dec 22, 2009 10:41 pm

 
ujjal66
just joined
Topic Author
Posts: 5
Joined: Thu Apr 30, 2009 2:29 pm

Re: Need Help for Bandwidth Management

Wed Dec 23, 2009 7:32 am

Thank you Mr.Evans for your reply. But I was not looking for this solution.May be I did not explained clearly.

Let say for example I have a group with IP 192.168.1.0/24 and under this group I have 20 users starting IP from 192.168.1.11-192.168.1.20. Now I have assigned each of this users with 64kbps upload speed and 128kbps download speed.As users are getting 128kbps download speed they are doing all time download.

Now I want to do is that if a user wants to browse he will get full 128kbps speed but when ever he will gives download he will get 80/100 kbps speed for download.

How can I do this.

Thanks in advance again.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Need Help for Bandwidth Management

Wed Dec 23, 2009 7:49 am

What do you mean by 'download', given that web pages and pictures are downloaded to a client's machine to display them? Are you talking about P2P? Large files?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Need Help for Bandwidth Management

Wed Dec 23, 2009 2:39 pm

it's rather about burst than p2p =)
 
User avatar
butche
Trainer
Trainer
Posts: 428
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Need Help for Bandwidth Management

Wed Dec 23, 2009 8:43 pm

I don't know if there is a good example in the wiki regarding bursting, but that is what you are looking for. I don't have any information on my blog, yet, either. I will try to work on something in that regard. Anyone else know of some examples? You may want to search this forum for bursting examples.
 
ujjal66
just joined
Topic Author
Posts: 5
Joined: Thu Apr 30, 2009 2:29 pm

Re: Need Help for Bandwidth Management

Sat Dec 26, 2009 6:11 am

I have found a solution and tested and it is working.


/ip address
add address=192.168.110.1/24 broadcast=192.168.110.255 comment="" disabled=no \
interface=Local network=192.168.110.0
add address=Real IP for MikroTik broadcast= comment="" disabled=no \
interface=Real network=

/ip firewall address-list
add address=192.168.110.11 comment="" disabled=no list=64-128
add address=192.168.110.12 comment="" disabled=no list=32-64


/ip firewall mangle
add action=mark-packet chain=forward comment="" connection-bytes=1-510000 \
disabled=no dst-address-list=64-128 new-packet-mark=Browsing_64 \
passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=forward comment="" connection-bytes=510000-0 \
disabled=no dst-address-list=64-128 new-packet-mark=Download_64 \
passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=forward comment="" connection-bytes=1-510000 \
disabled=no dst-address-list=32-64 new-packet-mark=Browsing_32 \
passthrough=yes protocol=tcp src-port=80
add action=mark-packet chain=forward comment="" connection-bytes=510000-0 \
disabled=no dst-address-list=32-64 new-packet-mark=Download_32 \
passthrough=yes protocol=tcp src-port=80


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=128k \
max-limit=128k name=Browsing-128 packet-mark=Browsing_64 parent=Local \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=80k \
max-limit=80k name=Download-128 packet-mark=Download_64 parent=Local \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=64k \
max-limit=64k name=Browsing-64 packet-mark=Browsing_32 parent=Local \
priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=48k \
max-limit=48k name=Download-64 packet-mark=Download_32 parent=Local \
priority=8 queue=default

Who is online

Users browsing this forum: freemannnn, Semrush [Bot], synchro, vbkp and 85 guests