Привет всем, я пытаюсь настроить QoS для одних и тех же сервисов и ограничить полосу пропускания. QoS я делаю с помощью mangle+queue tree, а ограничение полосы пропускания — с помощью простых очередей. Но когда я активирую queue tree, трафик моих клиентов больше не соответствует простым очередям. Главный вопрос: могу ли я использовать простые очереди и queue tree одновременно??? Первый способ — ограничить максимальную загрузку и выгрузку для каждого клиента, а второй — выполнять контроль QoS. Ниже я показываю пример конфигурации, которую я пытаюсь использовать:
Mangle:
`/ ip firewall mangle add chain=prerouting protocol=tcp dst-port=5061 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="VoIP" disabled=no
add chain=prerouting protocol=udp dst-port=5061 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=19000-20000 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=udp dst-port=19000-20000 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=VOIP_CON action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=udp dst-port=53 action=mark-connection new-connection-mark=DNS_CON passthrough=yes comment="DNS" disabled=no
add chain=prerouting protocol=udp dst-port=53 action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="HTTP" disabled=no
add chain=prerouting protocol=tcp dst-port=443 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=8080 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=HTTP_CON action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=1863 action=mark-connection new-connection-mark=MSN_CON passthrough=yes comment="MSN" disabled=no
add chain=prerouting protocol=tcp dst-port=1863 connection-mark=MSN_CON action=mark-packet new-packet-mark=MEDIA_ALTA passthrough=no comment="" disabled=no
add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=P2P_CON passthrough=yes comment="P2P" disabled=no
add chain=prerouting connection-mark=P2P_CON action=mark-packet new-packet-mark=P2P passthrough=no comment="" disabled=no
add chain=prerouting action=mark-connection new-connection-mark=OUTROS_CON passthrough=yes comment="Restante do tr fego" disabled=no
add chain=prerouting connection-mark=OUTROS_CON action=mark-packet new-packet-mark=MEDIA_BAIXA passthrough=yes comment="" disabled=no
Queue tree:
`/ queue tree add name="8-P2P" parent=global-out packet-mark=P2P limit-at=128000 queue=default priority=8 max-limit=512000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="1-Alta" parent=global-out packet-mark=ALTA limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="3-M dia alta" parent=global-out packet-mark=MEDIA_ALTA limit-at=0 queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="5-M dia baixa" parent=global-out packet-mark=MEDIA_BAIXA limit-at=0 queue=default priority=5 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="7-Baixa" parent=global-out packet-mark=BAIXA limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
Simple queues (одна для каждого клиента):
add name="Vinicius" target-addresses=200.YYY.XXX.99/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=64000/300000 max-limit=64000/300000 total-queue=default disabled=no
add name="Ezequiel" target-addresses=200.YYY.XXX.79/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=64000/300000 max-limit=64000/300000 total-queue=default disabled=no
add name="Leandro" target-addresses=200.YYY.XXX.102/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=128000/400000 max-limit=128000/400000 total-queue=default disabled=no
add name="Supermercado" target-addresses=200.YYY.XXX.89/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=130000/400000 max-limit=130000/400000 total-queue=default disabled=no
add name="Wanderleia" target-addresses=200.YYY.XXX.214/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=128000/400000 max-limit=128000/400000 total-queue=default disabled=no
Почему трафик проходит только через queue tree и не через простые очереди???
Спасибо
Mangle:
`/ ip firewall mangle add chain=prerouting protocol=tcp dst-port=5061 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="VoIP" disabled=no
add chain=prerouting protocol=udp dst-port=5061 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=19000-20000 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=udp dst-port=19000-20000 action=mark-connection new-connection-mark=VOIP_CON passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=VOIP_CON action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=udp dst-port=53 action=mark-connection new-connection-mark=DNS_CON passthrough=yes comment="DNS" disabled=no
add chain=prerouting protocol=udp dst-port=53 action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=80 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="HTTP" disabled=no
add chain=prerouting protocol=tcp dst-port=443 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=8080 action=mark-connection new-connection-mark=HTTP_CON passthrough=yes comment="" disabled=no
add chain=prerouting connection-mark=HTTP_CON action=mark-packet new-packet-mark=ALTA passthrough=no comment="" disabled=no
add chain=prerouting protocol=tcp dst-port=1863 action=mark-connection new-connection-mark=MSN_CON passthrough=yes comment="MSN" disabled=no
add chain=prerouting protocol=tcp dst-port=1863 connection-mark=MSN_CON action=mark-packet new-packet-mark=MEDIA_ALTA passthrough=no comment="" disabled=no
add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=P2P_CON passthrough=yes comment="P2P" disabled=no
add chain=prerouting connection-mark=P2P_CON action=mark-packet new-packet-mark=P2P passthrough=no comment="" disabled=no
add chain=prerouting action=mark-connection new-connection-mark=OUTROS_CON passthrough=yes comment="Restante do tr fego" disabled=no
add chain=prerouting connection-mark=OUTROS_CON action=mark-packet new-packet-mark=MEDIA_BAIXA passthrough=yes comment="" disabled=no
Queue tree:
`/ queue tree add name="8-P2P" parent=global-out packet-mark=P2P limit-at=128000 queue=default priority=8 max-limit=512000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="1-Alta" parent=global-out packet-mark=ALTA limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="3-M dia alta" parent=global-out packet-mark=MEDIA_ALTA limit-at=0 queue=default priority=3 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="5-M dia baixa" parent=global-out packet-mark=MEDIA_BAIXA limit-at=0 queue=default priority=5 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name="7-Baixa" parent=global-out packet-mark=BAIXA limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
Simple queues (одна для каждого клиента):
add name="Vinicius" target-addresses=200.YYY.XXX.99/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=64000/300000 max-limit=64000/300000 total-queue=default disabled=no
add name="Ezequiel" target-addresses=200.YYY.XXX.79/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=64000/300000 max-limit=64000/300000 total-queue=default disabled=no
add name="Leandro" target-addresses=200.YYY.XXX.102/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=1 queue=default/default limit-at=128000/400000 max-limit=128000/400000 total-queue=default disabled=no
add name="Supermercado" target-addresses=200.YYY.XXX.89/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=130000/400000 max-limit=130000/400000 total-queue=default disabled=no
add name="Wanderleia" target-addresses=200.YYY.XXX.214/32 dst-address=0.0.0.0/0 interface=all parent=none direction=both priority=8 queue=default/default limit-at=128000/400000 max-limit=128000/400000 total-queue=default disabled=no
Почему трафик проходит только через queue tree и не через простые очереди???
Спасибо
