Перейти до

Динамический Шейпинг с QoS Mikrotik


Рекомендованные сообщения

День добрый всем!!! Уважаемые спецы прошу помощи в следующей задаче.

 

Есть радио сегмент сети 3 БС приблизительно 30-40 пользователей распределенных по БС все сходиться в центр и рулиться на 450G routerboarde на борде поднят шейпер реализованный на HTB очередях. Очередя вроде бы работают нормально, но вот QoS не работает.

 

 

Реализовано все по схеме весь трафик прогоняем Mangle в адрес листе прописаны IP адреса которым присваивается класс трафика в PCQ класам присвоена скорость после все загоняеться в Queue Tree в котором вро де бы как должен выполняться QOS и отдаваться клиентам.

 

/ip firewall mangle

add action=mark-connection chain=forward comment=320K_Minimal_Down disabled=\

no dst-address-list=Minimal_class new-connection-mark=minimal_conn_down \

passthrough=yes

add action=mark-packet chain=forward comment="" connection-mark=\

minimal_conn_down disabled=no new-packet-mark=minimal_trafic_down \

passthrough=no

add action=mark-connection chain=forward comment=320K_Minimal_Up disabled=no \

new-connection-mark=minimal_conn_up passthrough=yes src-address-list=\

Minimal_class

add action=mark-packet chain=forward comment="" connection-mark=\

minimal_conn_up disabled=no new-packet-mark=minimal_trafic_up \

passthrough=no

add action=mark-connection chain=forward comment=512K_Standart_Down disabled=\

no dst-address-list=Standart_class new-connection-mark=standart_conn_down \

passthrough=yes

add action=mark-packet chain=forward comment="" connection-mark=\

standart_conn_down disabled=no new-packet-mark=standart_trafic_down \

passthrough=no

add action=mark-connection chain=forward comment=512K_Standart_Up disabled=no \

new-connection-mark=standart_conn_up passthrough=yes src-address-list=\

Standart_class

add action=mark-packet chain=forward comment="" connection-mark=\

standart_conn_up disabled=no new-packet-mark=standart_trafic_up \

passthrough=no

add action=mark-connection chain=forward comment=1M_Buisnas_Down disabled=no \

dst-address-list=Buisnes_class new-connection-mark=buisnes_conn_down \

passthrough=yes

add action=mark-packet chain=forward comment="" connection-mark=\

buisnes_conn_down disabled=no new-packet-mark=buisnes_trafic_down \

passthrough=no

add action=mark-connection chain=forward comment=1M_Buisnas_Up disabled=no \

new-connection-mark=buisnes_conn_up passthrough=yes src-address-list=\

Buisnes_class

add action=mark-packet chain=forward comment="" connection-mark=\

buisnes_conn_up disabled=no new-packet-mark=buisnes_trafic_up \

passthrough=no

add action=mark-connection chain=forward comment=2M_Super_Down disabled=no \

dst-address-list=Super_class new-connection-mark=super_conn_down \

passthrough=yes

add action=mark-packet chain=forward comment="" connection-mark=\

super_conn_down disabled=no new-packet-mark=super_trafic_down \

passthrough=no

add action=mark-connection chain=forward comment=2M_Super_Up disabled=no \

new-connection-mark=super_conn_up passthrough=yes src-address-list=\

Super_class

add action=mark-packet chain=forward comment="" connection-mark=super_conn_up \

disabled=no new-packet-mark=super_trafic_up passthrough=no

add action=mark-packet chain=prerouting comment=DNS################# \

disabled=no dst-port=53,123 new-packet-mark=QoS_1_Up passthrough=no \

protocol=udp

add action=mark-packet chain=prerouting comment=ICPM disabled=no \

new-packet-mark=QoS_1_Up passthrough=yes protocol=icmp

add action=mark-packet chain=prerouting comment=CS disabled=no dst-port=\

27014-27026 new-packet-mark=QoS_1_Up passthrough=no protocol=udp

add action=mark-packet chain=prerouting comment=WINBOX disabled=no dst-port=\

8291 new-packet-mark=QoS_1_Up passthrough=no protocol=tcp

add action=mark-packet chain=prerouting comment=DUDE disabled=no dst-port=\

2210 new-packet-mark=QoS_1_Up passthrough=no protocol=tcp

add action=mark-packet chain=prerouting comment=TEAMWIVER disabled=no \

dst-port=5938 new-packet-mark=QoS_1_Up passthrough=no protocol=tcp

add action=mark-packet chain=prerouting comment=CARD_SHARING disabled=no \

dst-port=10003 new-packet-mark=QoS_2_Up passthrough=no protocol=udp

add action=mark-packet chain=prerouting comment=HTTP disabled=no \

dst-address-list=web0 dst-port=80,443 new-packet-mark=QoS_3_Up \

passthrough=no protocol=tcp

add action=mark-packet chain=prerouting comment="" disabled=no dst-port=\

80,443 new-packet-mark=QoS_3_Up packet-size=0-666 passthrough=no \

protocol=tcp tcp-flags=syn

add action=mark-packet chain=prerouting comment="" disabled=no dst-port=\

80,443 new-packet-mark=QoS_3_Up packet-size=0-123 passthrough=no \

protocol=tcp tcp-flags=ack

add action=mark-packet chain=prerouting comment=HTTP_DOWNLOAD \

connection-bytes=500000-0 disabled=no dst-port=80,443 new-packet-mark=\

QoS_6_Up passthrough=no protocol=tcp

add action=mark-packet chain=prerouting comment="" connection-bytes=0-500000 \

disabled=no dst-port=80,443 new-packet-mark=QoS_6_Up passthrough=no \

protocol=tcp

add action=mark-packet chain=prerouting comment=P2P disabled=no \

new-packet-mark=QoS_8_Up p2p=all-p2p passthrough=no

add action=mark-packet chain=prerouting comment="" disabled=no \

layer7-protocol=bittorrent new-packet-mark=QoS_8_Up passthrough=no

add action=mark-packet chain=prerouting comment=ALL_PACKET disabled=no \

new-packet-mark=QoS_8_Up passthrough=no

add action=log chain=forward comment="" disabled=no log-prefix=""

 

/queue type

set default kind=pfifo name=default pfifo-limit=50

set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50

set wireless-default kind=sfq name=wireless-default sfq-allot=1514 \

sfq-perturb=5

set synchronous-default kind=red name=synchronous-default red-avg-packet=1000 \

red-burst=20 red-limit=60 red-max-threshold=50 red-min-threshold=10

set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=\

5

add kind=pcq name=PCQ_down_320k pcq-classifier=dst-address pcq-limit=50 \

pcq-rate=320000 pcq-total-limit=2000

add kind=pcq name=PCQ_up_320k pcq-classifier=src-address pcq-limit=50 \

pcq-rate=320000 pcq-total-limit=2000

add kind=pcq name=PCQ_down_521k pcq-classifier=dst-address pcq-limit=50 \

pcq-rate=512000 pcq-total-limit=2000

add kind=pcq name=PCQ_up_512k pcq-classifier=src-address pcq-limit=50 \

pcq-rate=512000 pcq-total-limit=2000

add kind=pcq name=PCQ_down_1M pcq-classifier=dst-address pcq-limit=50 \

pcq-rate=1000000 pcq-total-limit=2000

add kind=pcq name=PCQ_up_1M pcq-classifier=src-address pcq-limit=50 pcq-rate=\

1000000 pcq-total-limit=2000

add kind=pcq name=PCQ_down_2M pcq-classifier=dst-address pcq-limit=50 \

pcq-rate=2000000 pcq-total-limit=2000

add kind=pcq name=PCQ_up_2M pcq-classifier=src-address pcq-limit=50 pcq-rate=\

2000000 pcq-total-limit=2000

set default-small kind=pfifo name=default-small pfifo-limit=10

 

/queue tree

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=QoS_In parent=global-in priority=8

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=PRIO8_In packet-mark=QoS_8_Up parent=QoS_In priority=8 \

queue=default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=PRIO1_In packet-mark=QoS_1_Up parent=QoS_In priority=1 \

queue=default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=PRIO6_In packet-mark=QoS_6_Up parent=QoS_In priority=6 \

queue=default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=PRIO3_In packet-mark=QoS_3_Up parent=QoS_In priority=3 \

queue=default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=PRIO2_In packet-mark=QoS_2_Up parent=QoS_In priority=2 \

queue=default

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=Total_Download parent=global-out priority=8

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=Total_Upload parent=global-out priority=8

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=standart_download packet-mark=standart_trafic_down \

parent=Total_Download priority=5 queue=PCQ_up_512k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=buisnas_download packet-mark=buisnes_trafic_down parent=\

Total_Download priority=8 queue=PCQ_down_1M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=buisnas_upload packet-mark=buisnes_trafic_up parent=\

Total_Upload priority=8 queue=PCQ_up_1M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=standart_upload packet-mark=standart_trafic_up parent=\

Total_Upload priority=5 queue=PCQ_up_512k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=supert_upload packet-mark=super_trafic_up parent=\

Total_Upload priority=1 queue=PCQ_up_2M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=super_download packet-mark=super_trafic_down parent=\

Total_Download priority=1 queue=PCQ_down_2M

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=minimal_download packet-mark=minimal_trafic_down parent=\

Total_Download priority=3 queue=PCQ_up_320k

add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \

max-limit=0 name=minimal_upload packet-mark=minimal_trafic_up parent=\

Total_Upload priority=3 queue=PCQ_up_320k

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

×
×
  • Створити нове...