Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Josh Luthman
FFR this works for me...

/ip firewall mangle
add action=mark-packet chain=prerouting comment="capture first meg of http"
\
connection-bytes=0-100 disabled=no new-packet-mark=firstmeg \
passthrough=yes port=80 protocol=tcp
add action=mark-packet chain=prerouting comment="capture 1meg to 10meg http"
\
connection-bytes=101-1000 disabled=no new-packet-mark=next10meg
\
passthrough=yes port=80 protocol=tcp
add action=mark-packet chain=prerouting comment=\
"capture http bigger then 10meg" disabled=no
new-packet-mark=bigdownloads \
passthrough=yes port=80 protocol=tcp

Don't forget to make the queues!

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer


On Thu, Dec 11, 2008 at 12:12 AM, Alim Salipin <[EMAIL PROTECTED]> wrote:

> Josh Luthman wrote:
>
>> It sounds like you want to use bursts to make pages load snappy but
>> pulling the reins back when they do large downloads.
>>
>> Look in the /queue section
>>
>> On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
>>
>>
>>> Josh Luthman wrote:
>>>
>>>
 It could just be me but I find your question very difficult to
 understand.

 Are you asking how to capture HTTP traffic differently then any other
 traffic?

 On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:



> Hi all,
>
>
> I'm a newbie in mikrotik.
> Does anybody know how to different download con/packet and
> browsing con/packet ?
>
> Thx.
>
> --
>
>
> Best Regards,
>
>
> Alim Salipin
> IT Infrastructure Division
> PT. GALVA
> Jl. Hayam Wuruk No. 27
> Jakarta - Pusat, 10120.
> Ph.  021-3456650
> Fax. 021-3456651
>
>
>
> ___
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
>
>
>



>>> oopss... sorry for the bad language, not quiet good in english :)
>>> Some of users used internet conn for downloading files and the others
>>> used it for
>>> browsing normally website. Cos d/l files consumes much bandwith, I wanna
>>> try to limit
>>> the traffic connection (assumed that both of connection using the same
>>> port 80) using
>>> queue tree. any suggestion are highly appreciated.
>>> Thx a in advance.
>>>
>>>
>>> --
>>>
>>>
>>> Best Regards,
>>>
>>>
>>> Alim Salipin
>>> IT Infrastructure Division
>>> PT. GALVA
>>> Jl. Hayam Wuruk No. 27
>>> Jakarta - Pusat, 10120.
>>> Ph.  021-3456650
>>> Fax. 021-3456651
>>>
>>>
>>>
>>> ___
>>> Mikrotik mailing list
>>> Mikrotik@mail.butchevans.com
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>> RouterOS
>>>
>>>
>>>
>>
>>
>>
>>
> Thank's for the suggestion..
>
> --
>
>
> Best Regards,
>
>
> Alim Salipin
> IT Infrastructure Division
> PT. GALVA
> Jl. Hayam Wuruk No. 27
> Jakarta - Pusat, 10120.
> Ph.  021-3456650
> Fax. 021-3456651
>
>
>
> ___
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
> RouterOS
>
-- next part --
An HTML attachment was scrubbed...
URL: 

___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Alim Salipin

Josh Luthman wrote:

It sounds like you want to use bursts to make pages load snappy but
pulling the reins back when they do large downloads.

Look in the /queue section

On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
  

Josh Luthman wrote:


It could just be me but I find your question very difficult to understand.

Are you asking how to capture HTTP traffic differently then any other
traffic?

On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:

  

Hi all,


I'm a newbie in mikrotik.
Does anybody know how to different download con/packet and
browsing con/packet ?

Thx.

--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
RouterOS





  

oopss... sorry for the bad language, not quiet good in english :)
Some of users used internet conn for downloading files and the others
used it for
browsing normally website. Cos d/l files consumes much bandwith, I wanna
try to limit
the traffic connection (assumed that both of connection using the same
port 80) using
queue tree. any suggestion are highly appreciated.
Thx a in advance.


--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS





  

Thank's for the suggestion..

--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Alim Salipin

Butch Evans wrote:

On Thu, 2008-12-11 at 10:58 +0700, Alim Salipin wrote:

  
Some of users used internet conn for downloading files and the others 
used it for browsing normally website. Cos d/l files consumes much 
bandwith, I wanna try to limit the traffic connection (assumed 
that both of connection using the same port 80) using queue tree. 
any suggestion are highly appreciated.



I can offer an approach, though I won't build the entire application for
you.  


The mangle chain offers a match parameter called "connection-bytes".
You can use that option to match something like:

protocol=tcp connection-bytes=0-100 new-packet-mark=firstmeg
protocol=tcp connection-bytes=101-900 new-packet-mark=next8meg
protocol=tcp new-packet-mark=largerdownloads

Something like that would mark bytes 0-1M as "firstmeg", then the next 8
meg as "next8meg" and everything above that (everything else) as
"largerdownloads".  You can, then, build your queues and other packet
marks.

  

Thank's Butch it works... :)

--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Josh Luthman
It sounds like you want to use bursts to make pages load snappy but
pulling the reins back when they do large downloads.

Look in the /queue section

On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
> Josh Luthman wrote:
>> It could just be me but I find your question very difficult to understand.
>>
>> Are you asking how to capture HTTP traffic differently then any other
>> traffic?
>>
>> On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
>>
>>> Hi all,
>>>
>>>
>>> I'm a newbie in mikrotik.
>>> Does anybody know how to different download con/packet and
>>> browsing con/packet ?
>>>
>>> Thx.
>>>
>>> --
>>>
>>>
>>> Best Regards,
>>>
>>>
>>> Alim Salipin
>>> IT Infrastructure Division
>>> PT. GALVA
>>> Jl. Hayam Wuruk No. 27
>>> Jakarta - Pusat, 10120.
>>> Ph.  021-3456650
>>> Fax. 021-3456651
>>>
>>>
>>>
>>> ___
>>> Mikrotik mailing list
>>> Mikrotik@mail.butchevans.com
>>> http://www.butchevans.com/mailman/listinfo/mikrotik
>>>
>>> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik
>>> RouterOS
>>>
>>>
>>
>>
>>
> oopss... sorry for the bad language, not quiet good in english :)
> Some of users used internet conn for downloading files and the others
> used it for
> browsing normally website. Cos d/l files consumes much bandwith, I wanna
> try to limit
> the traffic connection (assumed that both of connection using the same
> port 80) using
> queue tree. any suggestion are highly appreciated.
> Thx a in advance.
>
>
> --
>
>
> Best Regards,
>
>
> Alim Salipin
> IT Infrastructure Division
> PT. GALVA
> Jl. Hayam Wuruk No. 27
> Jakarta - Pusat, 10120.
> Ph.  021-3456650
> Fax. 021-3456651
>
>
>
> ___
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Butch Evans
On Thu, 2008-12-11 at 10:58 +0700, Alim Salipin wrote:

> oopss... sorry for the bad language, not quiet good in english :)

No problem.  I'd bet your English is better than my (insert any other
language here).  ;-)

> Some of users used internet conn for downloading files and the others 
> used it for browsing normally website. Cos d/l files consumes much 
> bandwith, I wanna try to limit the traffic connection (assumed 
> that both of connection using the same port 80) using queue tree. 
> any suggestion are highly appreciated.

I can offer an approach, though I won't build the entire application for
you.  

The mangle chain offers a match parameter called "connection-bytes".
You can use that option to match something like:

protocol=tcp connection-bytes=0-100 new-packet-mark=firstmeg
protocol=tcp connection-bytes=101-900 new-packet-mark=next8meg
protocol=tcp new-packet-mark=largerdownloads

Something like that would mark bytes 0-1M as "firstmeg", then the next 8
meg as "next8meg" and everything above that (everything else) as
"largerdownloads".  You can, then, build your queues and other packet
marks.

-- 

* Butch Evans   * Professional Network Consultation*
* http://www.butchevans.com/* Network Engineering  *
* http://www.wispa.org/ * WISPA Board Member   *
* http://blog.butchevans.com/   * Wired or Wireless Networks   *



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Alim Salipin

Josh Luthman wrote:

It could just be me but I find your question very difficult to understand.

Are you asking how to capture HTTP traffic differently then any other traffic?

On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
  

Hi all,


I'm a newbie in mikrotik.
Does anybody know how to different download con/packet and
browsing con/packet ?

Thx.

--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS





  

oopss... sorry for the bad language, not quiet good in english :)
Some of users used internet conn for downloading files and the others 
used it for
browsing normally website. Cos d/l files consumes much bandwith, I wanna 
try to limit
the traffic connection (assumed that both of connection using the same 
port 80) using

queue tree. any suggestion are highly appreciated.
Thx a in advance.


--


Best Regards,


Alim Salipin
IT Infrastructure Division
PT. GALVA
Jl. Hayam Wuruk No. 27
Jakarta - Pusat, 10120.
Ph.  021-3456650
Fax. 021-3456651



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Butch Evans
On Wed, 2008-12-10 at 20:25 -0500, Josh Luthman wrote:
> It could just be me but I find your question very difficult to understand.

Rest assured, it's not just you.  ;-)

-- 

* Butch Evans   * Professional Network Consultation*
* http://www.butchevans.com/* Network Engineering  *
* http://www.wispa.org/ * WISPA Board Member   *
* http://blog.butchevans.com/   * Wired or Wireless Networks   *



___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS


Re: [Mikrotik] howto different d/l con and browsing con?

2008-12-10 Thread Josh Luthman
It could just be me but I find your question very difficult to understand.

Are you asking how to capture HTTP traffic differently then any other traffic?

On 12/10/08, Alim Salipin <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
> I'm a newbie in mikrotik.
> Does anybody know how to different download con/packet and
> browsing con/packet ?
>
> Thx.
>
> --
>
>
> Best Regards,
>
>
> Alim Salipin
> IT Infrastructure Division
> PT. GALVA
> Jl. Hayam Wuruk No. 27
> Jakarta - Pusat, 10120.
> Ph.  021-3456650
> Fax. 021-3456651
>
>
>
> ___
> Mikrotik mailing list
> Mikrotik@mail.butchevans.com
> http://www.butchevans.com/mailman/listinfo/mikrotik
>
> Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
___
Mikrotik mailing list
Mikrotik@mail.butchevans.com
http://www.butchevans.com/mailman/listinfo/mikrotik

Visit http://blog.butchevans.com/ for tutorials related to Mikrotik RouterOS