Sei sulla pagina 1di 4

Bonos 2013

Optimizacin del control de trfico para ISP Mikrotik RouterOS 5 rbol PCQ.
Cuando se trata de limitar el trfico Mikrotik ofrece una cola simple. En general,
s, es muy conveniente en una fila en un lmite en ambas direcciones. Pero
cuando las direcciones de nuestros usuarios para mejorar la posicin de partida
es complicada en el control del trfico en primer lugar.
El principal problema viene del hecho de que cada paquete lineino revisar
todas las reglas de la cola simple y cuando son 100 todo est bien, pero que
crece a recursos de la CPU 1.000 o ms en marcha. La primera seal de que es
stoinosti elevado e irregulares en respuesta a un ping a la mquina ya travs.
La segunda y ms clara seal dropeneto paquetes.
El problema no proviene del nmero de usuarios que tienen y la cantidad de
trfico que van a hacer, sino por el nmero de paquetes que pasan a travs de
las reglas de la cola.
Un caso de la realidad tienen tienen un equipo con ms de 1.000 user de la
cola simple, que al parecer tiene problemas que he mencionado anteriormente.

Una vez que llegamos aqu tenemos dos opciones, ya sea comprar hardware
nuevo y ms potente, o para tratar de optimizar el control de trfico.
En general, imaginemos que tenemos 7 velocidades diferentes y son 256k,
384k, 256k, 700k, 1M, 2M y 3M. Slo tenemos dos interfaces de red LAN son
los usuarios de Internet y de Internet(WAN).
Los usuarios tendrn que agregar por IP Firewall Address-List con direccin IP
nica
En general, todo esto es de alguna manera parece muy complicado hacer cola
simple, pero te aseguro que no es y una vez que vea la mquina o RB un 30%
menos ocupado que encuentra que el trabajo vali la pena. ping toma la
normalidad dropeo desaparecido totalmente, los dos ncleos se cargan por
igual y visiblemente router de manejar la situacin y est claro que hay ms
reglas se pueden tomar.
Paginas de referencias:
http://wiki.mikrotik.com/wiki/Manual:HTB
http://mum.mikrotik.com/presentations/CZ09/QoS_Megis.pdf

Las reglas que se aplican son estas:

ip firewall mangle add chain=forward src-address-list=Plan-3M action=markconnection new-connection-mark=Plan-3M passthrough=yes


comment="Clients Plan-3Mbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-3M action=markpacket new-packet-mark=Plan-3M passthrough=no disabled=no
queue type add name="PCQ_down_Plan-3M" kind=pcq pcq-rate=3M pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-3M" kind=pcq pcq-rate=3M pcqclassifier=src-address
queue tree add name=Download parent=LAN queue=default priority=1
queue tree add name=down_Plan-3M parent=Download packet-mark=Plan-3M
queue=PCQ_down_Plan-3M
queue tree add name=Upload parent=WAN queue=default priority=1
queue tree add name=Plan-3M parent=Upload packet-mark=Plan-3M
queue=PCQ_up_Plan-3M
ip firewall mangle add chain=forward src-address-list=Plan-2M action=markconnection new-connection-mark=Plan-2M passthrough=yes
comment="Clients Plan-2Mbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-2M action=markpacket new-packet-mark=Plan-2M passthrough=no disabled=no
queue type add name="PCQ_down_Plan-2M" kind=pcq pcq-rate=2M pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-2M" kind=pcq pcq-rate=2M pcqclassifier=src-address
queue tree add name=down_Plan-2M parent=Download packet-mark=Plan-2M
queue=PCQ_down_Plan-2M
queue tree add name=Plan-2M parent=Upload packet-mark=Plan-2M
queue=PCQ_up_Plan-2M
ip firewall mangle add chain=forward src-address-list=Plan-1M action=markconnection new-connection-mark=Plan-1M passthrough=yes
comment="Clients Plan-1Mbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-1M action=markpacket new-packet-mark=Plan-1M passthrough=no disabled=no
queue type add name="PCQ_down_Plan-1M" kind=pcq pcq-rate=1M pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-1M" kind=pcq pcq-rate=1M pcq-

classifier=src-address
queue tree add name=down_Plan-1M parent=Download packet-mark=Plan-1M
queue=PCQ_down_Plan-1M
queue tree add name=Plan-1M parent=Upload packet-mark=Plan-1M
queue=PCQ_up_Plan-1M
ip firewall mangle add chain=forward src-address-list=Plan-700k action=markconnection new-connection-mark=Plan-700k passthrough=yes
comment="Clients Plan-700kbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-700k
action=mark-packet new-packet-mark=Plan-700k passthrough=no
disabled=no
queue type add name="PCQ_down_Plan-700k" kind=pcq pcq-rate=700k pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-700k" kind=pcq pcq-rate=700k pcqclassifier=src-address
queue tree add name=down_Plan-700k parent=Download packet-mark=Plan700k queue=PCQ_down_Plan-700k
queue tree add name=Plan-700k parent=Upload packet-mark=Plan-700k
queue=PCQ_up_Plan-700k
ip firewall mangle add chain=forward src-address-list=Plan-512k action=markconnection new-connection-mark=Plan-512k passthrough=yes
comment="Clients Plan-512kbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-512k
action=mark-packet new-packet-mark=Plan-512k passthrough=no
disabled=no
queue type add name="PCQ_down_Plan-512k" kind=pcq pcq-rate=512k pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-512k" kind=pcq pcq-rate=512k pcqclassifier=src-address
queue tree add name=down_Plan-512k parent=Download packet-mark=Plan512k queue=PCQ_down_Plan-512k
queue tree add name=Plan-512k parent=Upload packet-mark=Plan-512k
queue=PCQ_up_Plan-512k
ip firewall mangle add chain=forward src-address-list=Plan-384k action=markconnection new-connection-mark=Plan-384k passthrough=yes
comment="Clients Plan-384kbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-384k
action=mark-packet new-packet-mark=Plan-384k passthrough=no
disabled=no
queue type add name="PCQ_down_Plan-384k" kind=pcq pcq-rate=384k pcqclassifier=dst-address

queue type add name="PCQ_up_Plan-384k" kind=pcq pcq-rate=384k pcqclassifier=src-address


queue tree add name=down_Plan-384k parent=Download packet-mark=Plan384k queue=PCQ_down_Plan-384k
queue tree add name=Plan-384k parent=Upload packet-mark=Plan-384k
queue=PCQ_up_Plan-384k
ip firewall mangle add chain=forward src-address-list=Plan-256k action=markconnection new-connection-mark=Plan-256k passthrough=yes
comment="Clients Plan-256kbits" disabled=no
ip firewall mangle add chain=forward connection-mark=Plan-256k
action=mark-packet new-packet-mark=Plan-256k passthrough=no
disabled=no
queue type add name="PCQ_down_Plan-256k" kind=pcq pcq-rate=256k pcqclassifier=dst-address
queue type add name="PCQ_up_Plan-256k" kind=pcq pcq-rate=256k pcqclassifier=src-address
queue tree add name=down_Plan-256k parent=Download packet-mark=Plan256k queue=PCQ_down_Plan-256k
queue tree add name=Plan-256k parent=Upload packet-mark=Plan-256k
queue=PCQ_up_Plan-256k

Potrebbero piacerti anche