Community discussions

MikroTik App
 
thermant
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Complicated HTTP bandwidth limiting. Help!

Sun Oct 26, 2008 4:19 am

Hi guys,

OK, first lemme just ask this one question:
Are ALL traffic generated from browsing the net go through port 80 (HTTP)? Oh, and HTTPS for secure sites (what port number is that again)? No download, FTP, nothing else. Just plain simple browsing.

Now, to lay out the background situation:
I have about 40 clients in my office, and I want to limit the bandwidth used when the clients browse the net (no downloads allowed when browsing). Let's say that I have 1.5MB total bandwidth, and I want to allocate 512k to web browsing.
Which one is the better practice according to you:
1. Setting the bandwidth to be shared by all clients (512k for all 40 clients)
2. Setting a limit for each client (say, 16k/client)

My office have about 10 programs that needs to connect to their maker's servers to download updates & data files on a regular basis. The problem is, some of these programs use port 80 to download these patches, and I do not want them to use the 512k that is allocated for browsing. For this purpose, I want the programs to use the remaining 1MB bandwidth. In fact, I don't want to limit them in any way, they can use whatever bandwidth is available (of the 1MB) to get these patches.

Now on to the question:
How do I set this up? I've tried reading the manual, but I still can't get a satisfying result... :?

Anyone willing to help?

Thanks.
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Re: Complicated HTTP bandwidth limiting. Help!

Sun Oct 26, 2008 5:42 am

A Quick Idea,

Mangle and mark HTTP Packets, Use Queue Tree to Define the Speed Limit of HTTP.

PCQ Will Help you out for Limiting Bandwidth Per Computer/User
 
User avatar
Egate
Long time Member
Long time Member
Posts: 555
Joined: Thu May 15, 2008 10:43 am
Location: South Africa

Re: Complicated HTTP bandwidth limiting. Help!

Sun Oct 26, 2008 8:49 pm

Would suggest simple queue with burst. Set max limit for 16k and burst limit 1 meg. Time around 10 sec with burst threshold 512k. This will cause your web pages to open up snappy but as soon as you open a web page for more than approx 5 sec (download) you will be limited to 16k. Only down side is you wont be able to brows when downloading. Of cause, you have to play with values that is best for you. Also will have to set up queue for each user.
 
thermant
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Complicated HTTP bandwidth limiting. Help!

Sun Oct 26, 2008 8:54 pm

@ashish:
OK. That's what I got too from reading similar previous posts.

Well, back to the manual then. <sigh>

Just one question though:
Like I said, there will be 2 kinds of traffic going through port 80 (HTTP): the regular web browsing and the patches. Can I use queue tree to separate these two? Or is this where the packet marking comes into play?

@Egate:
That's what I originally had in mind. But using that method, wouldn't the patches that uses port 80 be slowed down as well once it went past the 10-sec threshold?

Thanks.
I'll be back. ^_^
 
djohan
just joined
Posts: 10
Joined: Mon Jun 11, 2007 5:09 am

Re: Complicated HTTP bandwidth limiting. Help!

Wed Oct 29, 2008 9:24 pm

Bulding a proxy server is a good idea for clients who love to surf, I think.
 
BobcatGuy
Member Candidate
Member Candidate
Posts: 240
Joined: Thu Apr 19, 2007 7:41 am

Re: Complicated HTTP bandwidth limiting. Help!

Sun Nov 23, 2008 9:55 am

Im not proficient in simple queues but....................

My understanding of queues was for quality control, not limiting, why not make a rule that gives priority to the server/computers IP address that gets these updates, so when there is NO update traffic going on, the rest of the computers will have full bandwidth (shared) and when the servers get the updates they have priority over other traffic.

But the real question is, how many updates can their be in a day, if the software constantly gets updates during the day, I would suggest getting rid of it... sounds like a microsoft product!

:-)

Who is online

Users browsing this forum: cyb2 and 18 guests