Menú principal

Qos

Publicado por dargoros, Junio 16, 2013, 07:43:43 PM

Tema anterior - Siguiente tema

si_faisal

loquitoslack

you can also use the simple way, use webhtb for manage traffic

http://www.webhtb.ro/

modified webhtb with squid & zph tos (indonesian language)
http://opensource.telkomspeedy.com/forum/viewtopic.php?id=5530

saludos
greetings from Indonesia

ingjaab

??? QoS versi 6 con proxy raptor para un core solo  ???

http://mum.mikrotik.com/presentations/HR13/valens.pdf
Mueres siendo un héroe, o vives lo suficiente para convertirte en villano

luis24

No estoy de acuerdo en copiar y pegar reglas...Puede servir como también puede hacer un desastre en la Red...Hay que ver cada caso en particular ya que cada Red es totalmente diferente...para la gente que usa Simple Queue deben cambiar el parent Global Out por la Interface real de Salida.

freedarwuin

Cita de: si_faisal en Agosto 09, 2013, 10:58:31 PM
i just want to share my QoS configuration,

it can classify and prioritize traffic so the user can have a better internet experience
this can work in routing mode (put this rules in R1) or brigde mode (transparent traffic shaper)

the thunder/raptorcache hit full bandwitdh is NOT in this rules



this code below :
/ip firewall mangle
Código (mk) [Seleccionar]
/ip firewall mangle
add action=jump chain=forward comment="SERVICE CLASSIFIER" jump-target=\
   services-classifier protocol=tcp
add action=jump chain=forward jump-target=services-classifier protocol=udp
add action=jump chain=forward jump-target=services-classifier protocol=!ospf
add action=mark-connection chain=services-classifier comment=ICMP \
   new-connection-mark=cm_icmp protocol=icmp
add action=mark-packet chain=services-classifier connection-mark=cm_icmp \
   new-packet-mark=pm_icmp passthrough=no
add action=mark-connection chain=services-classifier comment=SSH dst-port=22 \
   new-connection-mark=cm_ssh protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_ssh protocol=tcp src-port=22
add action=mark-packet chain=services-classifier connection-mark=cm_ssh \
   new-packet-mark=pm_ssh passthrough=no
add action=mark-connection chain=services-classifier comment="DNS TCP" \
   dst-port=53 new-connection-mark=cm_dns protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_dns protocol=tcp src-port=53
add action=mark-packet chain=services-classifier connection-mark=cm_dns \
   new-packet-mark=pm_dns passthrough=no
add action=mark-connection chain=services-classifier comment="SKYPE TCP" \
   dst-port=!80 layer7-protocol=skypetoskype new-connection-mark=cm_skype \
   protocol=tcp
add action=mark-connection chain=services-classifier dst-port=!80 \
   layer7-protocol=skype new-connection-mark=cm_skype protocol=tcp
add action=mark-packet chain=services-classifier connection-mark=cm_skype \
   new-packet-mark=pm_skype passthrough=no
add action=mark-connection chain=services-classifier comment=PROXMOX \
   dst-port=8006 new-connection-mark=cm_proxmox protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_proxmox protocol=tcp src-port=8006
add action=mark-packet chain=services-classifier connection-mark=cm_proxmox \
   new-packet-mark=pm_proxmox passthrough=no
add action=mark-connection chain=services-classifier comment=FTP dst-port=21 \
   new-connection-mark=cm_ftp protocol=tcp
add action=mark-packet chain=services-classifier connection-mark=cm_ftp \
   new-packet-mark=pm_ftp passthrough=no
add action=mark-connection chain=services-classifier comment="THE DUDE" \
   dst-port=2210,2211 new-connection-mark=cm_dude protocol=tcp
add action=mark-connection chain=services-classifier dst-port=2210,2211 \
   new-connection-mark=cm_dude protocol=tcp
add action=mark-packet chain=services-classifier connection-mark=cm_dude \
   new-packet-mark=pm_dude passthrough=no
add action=mark-connection chain=services-classifier comment=HTTP dst-port=\
   80,3128,8080 new-connection-mark=cm_http protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_http protocol=tcp src-port=80,3128,8080
add action=mark-packet chain=services-classifier comment="HTTP PRIO #3" \
   connection-bytes=0-128000 connection-mark=cm_http new-packet-mark=\
   pm_http_prio3 passthrough=no protocol=tcp
add action=mark-packet chain=services-classifier comment="HTTP PRIO #4" \
   connection-bytes=128001-1024000 connection-mark=cm_http new-packet-mark=\
   pm_http_prio4 passthrough=no protocol=tcp
add action=mark-packet chain=services-classifier comment="HTTP PRIO #5" \
   connection-bytes=1024001-4096000 connection-mark=cm_http new-packet-mark=\
   pm_http_prio5 passthrough=no protocol=tcp
add action=mark-packet chain=services-classifier comment="HTTP PRIO #6" \
   connection-bytes=4096001-20480000 connection-mark=cm_http \
   new-packet-mark=pm_http_prio6 passthrough=no protocol=tcp
add action=mark-packet chain=services-classifier comment="HTTP PRIO #8" \
   connection-bytes=20480001-0 connection-mark=cm_http new-packet-mark=\
   pm_http_prio8 passthrough=no protocol=tcp
add action=mark-connection chain=services-classifier comment=HTTPS dst-port=\
   443 new-connection-mark=cm_https protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_https protocol=tcp src-port=443
add action=mark-packet chain=services-classifier connection-mark=cm_https \
   new-packet-mark=pm_https passthrough=no
add action=mark-connection chain=services-classifier comment=EMAIL dst-port=\
   25,110,143,465,585,993,995 new-connection-mark=cm_email protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_email protocol=tcp src-port=25,110,143,465,585,993,995
add action=mark-packet chain=services-classifier connection-mark=cm_email \
   new-packet-mark=pm_email passthrough=no
add action=mark-connection chain=services-classifier comment=STREAMING \
   dst-port=1935 new-connection-mark=cm_streaming protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_streaming protocol=tcp src-port=1935
add action=mark-packet chain=services-classifier connection-mark=cm_streaming \
   new-packet-mark=pm_streaming passthrough=no
add action=mark-connection chain=services-classifier comment=\
   "YAHOO MESSENGER" dst-port=5050 new-connection-mark=cm_ym protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_ym protocol=tcp src-port=5050
add action=mark-packet chain=services-classifier connection-mark=cm_ym \
   new-packet-mark=pm_ym passthrough=no
add action=mark-connection chain=services-classifier comment=TEAMVIEWER \
   dst-port=5938 new-connection-mark=cm_teamviewer protocol=tcp
add action=mark-connection chain=services-classifier dst-port="" \
   new-connection-mark=cm_teamviewer protocol=tcp src-port=5938
add action=mark-packet chain=services-classifier connection-mark=\
   cm_teamviewer new-packet-mark=pm_teamviewer passthrough=no
add action=mark-connection chain=services-classifier comment=WINBOX dst-port=\
   8291 new-connection-mark=cm_winbox protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_winbox protocol=tcp src-port=8291
add action=mark-packet chain=services-classifier connection-mark=cm_winbox \
   new-packet-mark=pm_winbox passthrough=no
add action=mark-connection chain=services-classifier comment=VNC dst-port=\
   5900-5950 new-connection-mark=cm_vnc protocol=tcp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_vnc protocol=tcp src-port=5900-5950
add action=mark-packet chain=services-classifier connection-mark=cm_vnc \
   new-packet-mark=pm_vnc passthrough=no
add action=mark-connection chain=services-classifier comment="P2P TORRENT" \
   new-connection-mark=cm_p2p p2p=all-p2p
add action=mark-packet chain=services-classifier connection-mark=cm_p2p \
   new-packet-mark=pm_p2p passthrough=no
add action=mark-connection chain=services-classifier comment="OTHER TCP" \
   new-connection-mark=cm_other-tcp protocol=tcp
add action=mark-packet chain=services-classifier connection-mark=cm_other-tcp \
   new-packet-mark=pm_other-tcp passthrough=no
add action=mark-connection chain=services-classifier comment=" UDP" dst-port=\
   53 new-connection-mark=cm_dns protocol=udp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_dns protocol=udp src-port=53
add action=mark-packet chain=services-classifier connection-mark=cm_dns \
   new-packet-mark=pm_dns passthrough=no
add action=mark-connection chain=services-classifier comment=NTP dst-port=123 \
   new-connection-mark=cm_ntp protocol=udp
add action=mark-packet chain=services-classifier connection-mark=cm_ntp \
   new-packet-mark=pm_ntp passthrough=no
add action=mark-connection chain=services-classifier comment=\
   "YAHOO MESSENGER UDP" dst-port=3478 new-connection-mark=cm_ym_udp \
   protocol=udp src-port=1024-5000
add action=mark-connection chain=services-classifier dst-port=1024-5000 \
   new-connection-mark=cm_ym_udp protocol=udp src-port=3478
add action=mark-packet chain=services-classifier connection-mark=cm_ym_udp \
   new-packet-mark=pm_ym_udp
add action=mark-connection chain=services-classifier comment=SIP/VOIP \
   dst-port=5060 new-connection-mark=cm_voip protocol=udp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_voip protocol=udp src-port=5060
add action=mark-packet chain=services-classifier connection-mark=cm_voip \
   new-packet-mark=pm_voip
add action=mark-connection chain=services-classifier comment=SNMP dst-port=\
   161,162 new-connection-mark=cm_snmp protocol=udp
add action=mark-connection chain=services-classifier new-connection-mark=\
   cm_snmp protocol=udp src-port=161,162
add action=mark-packet chain=services-classifier connection-mark=cm_snmp \
   new-packet-mark=pm_snmp passthrough=no
add action=mark-connection chain=services-classifier comment="SKYPE UDP L7" \
   layer7-protocol=skype new-connection-mark=cm_skype_udp protocol=udp
add action=mark-connection chain=services-classifier layer7-protocol=\
   skypetoskype new-connection-mark=cm_skype_udp protocol=udp
add action=mark-packet chain=services-classifier connection-mark=cm_skype_udp \
   new-packet-mark=pm_skype_udp passthrough=no
add action=mark-connection chain=services-classifier comment="OTHER UDP" \
   new-connection-mark=cm_other-udp protocol=udp
add action=mark-packet chain=services-classifier connection-mark=cm_other-udp \
   new-packet-mark=pm_other-udp passthrough=no
add action=return chain=services-classifier


Queue Tree Configuration - in this example, bandwitdh is set for 5 Mbps.
please change according to your network
keep in mind that maximum sum of limit-at of the child, cannot larger that the parent max-limit value

Código (mk) [Seleccionar]
/queue tree
add max-limit=5M name=INTERNET parent=global-out priority=3
add limit-at=256k max-limit=5M name=PRIO#1 parent=INTERNET priority=1
add limit-at=512k max-limit=4M name=PRIO#2 parent=INTERNET priority=2
add limit-at=384k max-limit=3M name=PRIO#3 parent=INTERNET priority=3
add limit-at=256k max-limit=2M name=PRIO#4 parent=INTERNET priority=4
add limit-at=256k max-limit=2M name=PRIO#5 parent=INTERNET priority=5
add limit-at=128k max-limit=1536k name=PRIO#6 parent=INTERNET priority=6
add limit-at=96k max-limit=1M name=PRIO#7 parent=INTERNET priority=7
add limit-at=128k max-limit=1M name=PRIO#8 parent=INTERNET
add name=icmp packet-mark=pm_icmp parent=PRIO#1 priority=1
add name=dns packet-mark=pm_dns parent=PRIO#1 priority=1
add name=ssh packet-mark=pm_ssh parent=PRIO#1 priority=1
add name=vnc packet-mark=pm_vnc parent=PRIO#2 priority=2
add name=winbox packet-mark=pm_winbox parent=PRIO#2 priority=2
add name=ntp packet-mark=pm_ntp parent=PRIO#2 priority=2
add name=skype packet-mark=pm_skype parent=PRIO#2 priority=2
add name=email packet-mark=pm_email parent=PRIO#3 priority=3
add name=https packet-mark=pm_https parent=PRIO#4 priority=4
add name=http_small packet-mark=pm_http_prio3 parent=PRIO#3 priority=3
add name=ftp packet-mark=pm_ftp parent=PRIO#4 priority=4
add name=other-tcp packet-mark=pm_other-tcp parent=PRIO#8
add name=other-udp packet-mark=pm_other-udp parent=PRIO#8
add name=pve-mgmnt packet-mark=pm_proxmox parent=PRIO#2 priority=2
add name=snmp packet-mark=pm_snmp parent=PRIO#2 priority=2
add name=thedude packet-mark=pm_dude parent=PRIO#2 priority=2
add name=http_heavy packet-mark=pm_http_prio8 parent=PRIO#7 priority=7 queue=\
   pcq-http
add name=p2p-torrent packet-mark=pm_p2p parent=PRIO#8
add name=http_medium packet-mark=pm_http_prio5 parent=PRIO#5 priority=5 \
   queue=pcq-http
add name=http_large packet-mark=pm_http_prio6 parent=PRIO#6 priority=6 queue=\
   pcq-http
add name=http_light packet-mark=pm_http_prio4 parent=PRIO#4 priority=4 queue=\
   pcq-http
add name=voip packet-mark=pm_voip parent=PRIO#2 priority=2
add name=stream-rtmp packet-mark=pm_streaming parent=PRIO#3 priority=3
add name=skype-udp packet-mark=pm_skype_udp parent=PRIO#2 priority=2
add name=teamviewer packet-mark=pm_teamviewer parent=PRIO#2 priority=2
add name=ym-tcp packet-mark=pm_ym parent=PRIO#2 priority=2
add name=ym-udp packet-mark=pm_ym_udp parent=PRIO#2 priority=2


in routeros v6 change parent global-out to global
Código (mk) [Seleccionar]
add max-limit=5M name=INTERNET parent=global priority=3

Queue Types
Código (mk) [Seleccionar]
/queue type
set 0 pfifo-limit=500
add kind=sfq name=default-sfq sfq-perturb=8
add kind=pcq name=pcq-http pcq-burst-time=16s pcq-classifier=dst-address \
   pcq-dst-address6-mask=64 pcq-limit=500 pcq-src-address6-mask=64 \
   pcq-total-limit=20000
set 9 pfifo-limit=100


hope this help
greetings from Indonesia
:)


Los coloque y no me funciono me tardeaba mucho para abrir Google nada mas se imaginan el resto de los clientes yo que estoy ilimitados y mis clientes si peor aun

luis24

Por eso repito,no copien y peguen...deben analizar que hace cada regla y como se marca,todo depende del tipo de servicio que deseen brindar...cualquier cosa que necesiten puedo colaborar con un Qos acorde a su Red.....Saludos.

ingjaab

Cita de: luis24 en Agosto 21, 2013, 07:14:08 AM
No estoy de acuerdo en copiar y pegar reglas...Puede servir como también puede hacer un desastre en la Red...Hay que ver cada caso en particular ya que cada Red es totalmente diferente...para la gente que usa Simple Queue deben cambiar el parent Global Out por la Interface real de Salida.
haber como lo cambio global out si no exite solo dice global nada mas si uso version 6
Mueres siendo un héroe, o vives lo suficiente para convertirte en villano

luis24

Ponete en Contacto y te doy una mano....Saludos.

rifranco202325

Cita de: luis24 en Agosto 24, 2013, 08:14:02 PM
Ponete en Contacto y te doy una mano....Saludos.

men  tu tienes para la comparticion de los clientes

leandro1979

Buenas Noches

Les dejo mi aportación
son 100% modificables para cualquier red y muy simples de entender
Espero les sea de utilidad para que entiendan como funciona un  qos
y recuerden lo siempre lo complicado es lo mejor aveces lo sencillo resulta mas util

Saludos Cordiales,
Leandro Segovia

PD. La ether1 es por donde entra el internet o conexion a tu borde depende como lo utilices

/ip firewall mangle
add action=mark-packet chain=prerouting comment=QoS_1 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_1_In passthrough=no protocol=tcp \
    src-port=80,53,443,3074,1863,22,8291,3389,21
add action=mark-packet chain=postrouting disabled=no dst-port=\
    80,53,443,3074,1863,22,8291,3389,21 new-packet-mark=QoS_1_Out \
    out-interface=ether1 passthrough=no protocol=tcp tcp-flags=syn
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_1_In passthrough=no protocol=udp src-port=\
    53,88,3074,1863
add action=mark-packet chain=postrouting disabled=no dst-port=53,88,3074,1863 \
    new-packet-mark=QoS_1_Out out-interface=ether1 passthrough=no protocol=\
    udp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_1_In passthrough=no protocol=icmp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_1_Out out-interface=ether1 passthrough=no protocol=icmp
add action=mark-packet chain=prerouting comment=QoS_2 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_2_In passthrough=no protocol=tcp \
    src-port=110,25,995,465,587,113
add action=mark-packet chain=postrouting disabled=no dst-port=\
    110,25,995,465,587,113 new-packet-mark=QoS_2_Out out-interface=ether1 \
    passthrough=no protocol=tcp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_2_In passthrough=no protocol=udp src-port=123,113
add action=mark-packet chain=postrouting disabled=no dst-port=123,113 \
    new-packet-mark=QoS_2_Out out-interface=ether1 passthrough=no protocol=\
    udp
add action=mark-packet chain=prerouting comment=Qos_7 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_7_In passthrough=no protocol=tcp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no protocol=tcp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_7_In passthrough=no protocol=udp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no protocol=udp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_7_In passthrough=no
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no
add action=mark-packet chain=prerouting comment=QoS_8 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_8_In p2p=all-p2p passthrough=no
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_8_Out out-interface=ether1 p2p=all-p2p passthrough=no


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_Download packet-mark="" parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_1_In packet-mark=QoS_1_In parent=QoS_Download \
    priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_2_In packet-mark=QoS_2_In parent=QoS_Download \
    priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_7_In packet-mark=QoS_7_In parent=QoS_Download \
    priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_8_In packet-mark=QoS_8_In parent=QoS_Download \
    priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_Upload packet-mark="" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_1_Out packet-mark=QoS_1_Out parent=QoS_Upload \
    priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_2_Out packet-mark=QoS_2_Out parent=QoS_Upload \
    priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_7_Out packet-mark=QoS_7_Out parent=QoS_Upload \
    priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_8_Out packet-mark=QoS_8_Out parent=QoS_Upload \
    priority=8 queue=default

ingjaab

Mueres siendo un héroe, o vives lo suficiente para convertirte en villano

rifranco202325

HOLA AMIGOS AKI DEJANDO MI GRANITO DE ARENA ESPERO Q LE SIRVA A MUCHOS DE USTEDES
/ip firewall mangle
add action=mark-packet chain=postrouting connection-mark=squid-connection disabled=no new-packet-mark=squid-packs passthrough=yes
add action=mark-connection chain=prerouting comment="HOME 2.1Mbps/700k-A" disabled=no dst-address-list="HOME 2Mbps8-1-A" new-connection-mark=HOME-RJ_2Mbps_in passthrough=yes
add action=mark-connection chain=forward disabled=no new-connection-mark=HOME-RJ_2Mbps_out passthrough=yes src-address-list="HOME 2Mbps8-1-A"
add action=mark-packet chain=prerouting connection-mark=HOME-RJ_2Mbps_in disabled=no new-packet-mark=HOME-FM_2Mbps_in passthrough=no
add action=mark-packet chain=forward connection-mark=HOME-RJ_2Mbps_out disabled=no new-packet-mark=HOME-FM_2Mbps_out passthrough=no

/queue type
add kind=sfq name=RJ_QoS sfq-allot=1514 sfq-perturb=5
add kind=pcq name=2.1MB-Down pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=dst-address pcq-dst-address-mask=32 pcq-dst-address6-mask=128 pcq-limit=50 \
    pcq-rate=2100k pcq-src-address-mask=32 pcq-src-address6-mask=128 pcq-total-limit=2000
add kind=pcq name=2.1MB-Up pcq-burst-rate=0 pcq-burst-threshold=0 pcq-burst-time=10s pcq-classifier=src-address pcq-dst-address-mask=32 pcq-dst-address6-mask=128 pcq-limit=50 \
    pcq-rate=2100k pcq-src-address-mask=32 pcq-src-address6-mask=128 pcq-total-limit=2000




/ques tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Rj_Main_DOWN packet-mark="" parent=global-out priority=5
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 max-limit=0 name=Rj_Main_UP packet-mark="" parent=global-out priority=5
add burst-limit=0 burst-threshold=2100k burst-time=10s comment="Group HOME 2Mbps/2Mbps Download" disabled=no limit-at=700k max-limit=2100k name="HOME 2Mbps8-1-A_DOWN" packet-mark=\
    HOME-FM_2Mbps_in parent=Rj_Main_DOWN priority=8 queue=2.1MB-Down
add burst-limit=0 burst-threshold=2100k burst-time=10s comment="Group HOME 2Mbps/2Mbps Upload" disabled=no limit-at=700k max-limit=2100k name="HOME 2Mbps8-1-A_UP" packet-mark=\
    HOME-FM_2Mbps_out parent=Rj_Main_UP priority=8 queue=700k-Up

PUES SI ALGO NO ESTA BIEN PUES AYUDEMEN A CORREGIR PERO A MI ME TRABAJA BIEN
Y DE IGUALMANERA NO DEJEN DE PONER UN LIKE

















rifranco202325

y no se porq no salieron las imagenes porq si estaban para la prueba.............

si lo ponen en otro foro no olvidar de agradecer a rifranco202325

RASTAMAN

Cita de: leandro1979 en Septiembre 03, 2013, 08:18:39 PM
Buenas Noches

Les dejo mi aportación
son 100% modificables para cualquier red y muy simples de entender
Espero les sea de utilidad para que entiendan como funciona un  qos
y recuerden lo siempre lo complicado es lo mejor aveces lo sencillo resulta mas util

Saludos Cordiales,
Leandro Segovia

PD. La ether1 es por donde entra el internet o conexion a tu borde depende como lo utilices

/ip firewall mangle
add action=mark-packet chain=prerouting comment=QoS_1 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_1_In passthrough=no protocol=tcp \
    src-port=80,53,443,3074,1863,22,8291,3389,21
add action=mark-packet chain=postrouting disabled=no dst-port=\
    80,53,443,3074,1863,22,8291,3389,21 new-packet-mark=QoS_1_Out \
    out-interface=ether1 passthrough=no protocol=tcp tcp-flags=syn
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_1_In passthrough=no protocol=udp src-port=\
    53,88,3074,1863
add action=mark-packet chain=postrouting disabled=no dst-port=53,88,3074,1863 \
    new-packet-mark=QoS_1_Out out-interface=ether1 passthrough=no protocol=\
    udp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_1_In passthrough=no protocol=icmp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_1_Out out-interface=ether1 passthrough=no protocol=icmp
add action=mark-packet chain=prerouting comment=QoS_2 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_2_In passthrough=no protocol=tcp \
    src-port=110,25,995,465,587,113
add action=mark-packet chain=postrouting disabled=no dst-port=\
    110,25,995,465,587,113 new-packet-mark=QoS_2_Out out-interface=ether1 \
    passthrough=no protocol=tcp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_2_In passthrough=no protocol=udp src-port=123,113
add action=mark-packet chain=postrouting disabled=no dst-port=123,113 \
    new-packet-mark=QoS_2_Out out-interface=ether1 passthrough=no protocol=\
    udp
add action=mark-packet chain=prerouting comment=Qos_7 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_7_In passthrough=no protocol=tcp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no protocol=tcp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_7_In passthrough=no protocol=udp
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no protocol=udp
add action=mark-packet chain=prerouting disabled=no in-interface=ether1 \
    new-packet-mark=QoS_7_In passthrough=no
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_7_Out out-interface=ether1 passthrough=no
add action=mark-packet chain=prerouting comment=QoS_8 disabled=no \
    in-interface=ether1 new-packet-mark=QoS_8_In p2p=all-p2p passthrough=no
add action=mark-packet chain=postrouting disabled=no new-packet-mark=\
    QoS_8_Out out-interface=ether1 p2p=all-p2p passthrough=no


/queue tree
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_Download packet-mark="" parent=global-in priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_1_In packet-mark=QoS_1_In parent=QoS_Download \
    priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_2_In packet-mark=QoS_2_In parent=QoS_Download \
    priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_7_In packet-mark=QoS_7_In parent=QoS_Download \
    priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_8_In packet-mark=QoS_8_In parent=QoS_Download \
    priority=8 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_Upload packet-mark="" parent=global-out priority=8
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_1_Out packet-mark=QoS_1_Out parent=QoS_Upload \
    priority=1 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_2_Out packet-mark=QoS_2_Out parent=QoS_Upload \
    priority=2 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_7_Out packet-mark=QoS_7_Out parent=QoS_Upload \
    priority=7 queue=default
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=QoS_8_Out packet-mark=QoS_8_Out parent=QoS_Upload \
    priority=8 queue=default



mi hermano disculpe pero no tiene ningun limite estas colas

centronick

Cita de: RASTAMAN en Diciembre 11, 2013, 01:50:28 PM

mi hermano disculpe pero no tiene ningun limite estas colas

Donde me funciona mejor en un balanceador mikrotik o el administrador mikrotik

y mas que todo cual es la funcion de todas estas reglas

Gracias

WebNewbie

Para aquellos que tienen en su configuración a Internet a través de una interfaz pppoe, se habrán dado cuenta que hay dos reglas dinámicas creadas cuando se inicia una conexión a internet dentro de Mangle. Estas 2 reglas tienen que estar al inicio para que el QoS de si_faisal funcione.

Primero desactivamos el valor por defecto de una conexión pppoe-out:
/ppp profile set default name="default" change-tcp-mss=no

Luego creamos nuestra propia MSS:

/ip firewall mangle
add chain=forward in-interface=all-ppp protocol=tcp \
tcp-mss=1411-65535 tcp-flags=syn action=change-mss new-mss=1410 place-before=0
add chain=forward out-interface=all-ppp protocol=tcp \
tcp-mss=1411-65535 tcp-flags=syn action=change-mss new-mss=1410 place-before=1

Luego lo mueves al principio de todas las demás reglas existentes en Manglo.

Ojo que para poner el valor de new-mss debes considerarlo según http://www.mikrotik.com/download/MUM-crachiolo.zip

tomando como modelo el siguiente codigo:
/ip firewall mangle add chain=forward protocol=tcp in-interface=all-ppp tcp-flags=syn tcp-mss={Whatever the MTU is, subtract 40 and add 1}-65535 action=change-mss passthrough=yes new-mss={Whatever the MTU is, subtract 40}