Привет, у меня проблема с очередями. Использую NAT на источнике с маскированием. Настроил mangle файрвола для маркировки "всех" пакетов и пакетов "p2p". У меня есть две очереди, обе PCQ, одна применяется к global-in, а другая к global-out. Они ограничены до 1.544 Мбит каждая, чтобы соответствовать факту, что они подключены к T1 линии, и, следовательно, выступают моими "Master" входящими и исходящими очередями. Они работают нормально. Я пробовал использовать простые очереди, но они оказываются не такими точными, оставляя 10-20% пропускной способности неиспользованными. Затем у меня есть 5 простых очередей, по одной для каждой из пяти NAT'ed сетей C, которые есть у меня внутри MT. Каждая из них использует метку p2p из mangle файрвола, чтобы ограничить трафик p2p до 128 Кбит/с вниз и 64 Кбит/с вверх. Проблема в том, что 5 простых очередей не работают, когда активированы 2 queue trees. Трафик P2P проходит мимо простых очередей до предела queue trees. Когда я временно отключаю queue trees, простые очереди срабатывают и начинают правильно ограничивать трафик p2p. Есть ли способ принудительно ограничить максимальную скорость T1 линии для всего трафика, одновременно ограничивая трафик p2p так, как я задумал? Я включил части моей конфигурации, относящиеся к моей проблеме.
Спасибо заранее.
/ ip address add address=192.168.2.200/24 network=192.168.2.0 broadcast=192.168.2.255 interface=ether1 comment=“” disabled=no
/ ip address add address=10.0.40.1/24 network=10.0.40.0 broadcast=10.0.40.255 interface=ether2 comment=“” disabled=no
/ ip address add address=10.0.43.1/24 network=10.0.43.0 broadcast=10.0.43.255 interface=ether3 comment=“” disabled=no
/ ip address add address=10.0.44.1/24 network=10.0.44.0 broadcast=10.0.44.255 interface=wlan1 comment=“” disabled=no
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=p2p passthrough=yes comment=“” disabled=no
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all passthrough=yes comment=“” disabled=no
/ ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade comment=“” disabled=no
/ ip firewall connection tracking set enabled=yes tcp-syn-sent-timeout=1m tcp-syn-received-timeout=1m tcp-established-timeout=1d tcp-fin-wait-timeout=10s tcp-close-wait-timeout=10s tcp-last-ack-timeout=10s tcp-time-wait-timeout=10s tcp-close-timeout=10s udp-timeout=10s udp-stream-timeout=3m icmp-timeout=10s generic-timeout=10m
/ ip firewall service-port
/ queue type set default name=“default” kind=pfifo pfifo-limit=50
set ethernet-default name=“ethernet-default” kind=pfifo pfifo-limit=50
set wireless-default name=“wireless-default” kind=sfq sfq-perturb=5 sfq-allot=1514
set synchronous-default name=“synchronous-default” kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
set hotspot-default name=“hotspot-default” kind=sfq sfq-perturb=5 sfq-allot=1514
add name=“wireless-pcq” kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=“” pcq-total-limit=2000
add name=“default-small” kind=pfifo pfifo-limit=10
/ queue simple add name=“p2p 10.0.40.0 Class” dst-address=10.0.40.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.41.0 Class” dst-address=10.0.41.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.42.0 Class” dst-address=10.0.42.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.43.0 Class” dst-address=10.0.43.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.44.0 Class” dst-address=10.0.44.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
/ queue tree add name=“Master Queue In 1.544Mb” parent=global-in packet-mark=all limit-at=1048576 queue=wireless-pcq priority=8 max-limit=1619001 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name=“Master Queue Out 1.544Mb” parent=global-out packet-mark=all limit-at=1048576 queue=wireless-pcq priority=8 max-limit=1619001 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
Спасибо заранее.
/ ip address add address=192.168.2.200/24 network=192.168.2.0 broadcast=192.168.2.255 interface=ether1 comment=“” disabled=no
/ ip address add address=10.0.40.1/24 network=10.0.40.0 broadcast=10.0.40.255 interface=ether2 comment=“” disabled=no
/ ip address add address=10.0.43.1/24 network=10.0.43.0 broadcast=10.0.43.255 interface=ether3 comment=“” disabled=no
/ ip address add address=10.0.44.1/24 network=10.0.44.0 broadcast=10.0.44.255 interface=wlan1 comment=“” disabled=no
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=p2p passthrough=yes comment=“” disabled=no
/ ip firewall mangle add chain=prerouting action=mark-packet new-packet-mark=all passthrough=yes comment=“” disabled=no
/ ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade comment=“” disabled=no
/ ip firewall connection tracking set enabled=yes tcp-syn-sent-timeout=1m tcp-syn-received-timeout=1m tcp-established-timeout=1d tcp-fin-wait-timeout=10s tcp-close-wait-timeout=10s tcp-last-ack-timeout=10s tcp-time-wait-timeout=10s tcp-close-timeout=10s udp-timeout=10s udp-stream-timeout=3m icmp-timeout=10s generic-timeout=10m
/ ip firewall service-port
/ queue type set default name=“default” kind=pfifo pfifo-limit=50
set ethernet-default name=“ethernet-default” kind=pfifo pfifo-limit=50
set wireless-default name=“wireless-default” kind=sfq sfq-perturb=5 sfq-allot=1514
set synchronous-default name=“synchronous-default” kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
set hotspot-default name=“hotspot-default” kind=sfq sfq-perturb=5 sfq-allot=1514
add name=“wireless-pcq” kind=pcq pcq-rate=0 pcq-limit=50 pcq-classifier=“” pcq-total-limit=2000
add name=“default-small” kind=pfifo pfifo-limit=10
/ queue simple add name=“p2p 10.0.40.0 Class” dst-address=10.0.40.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.41.0 Class” dst-address=10.0.41.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.42.0 Class” dst-address=10.0.42.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.43.0 Class” dst-address=10.0.43.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
add name=“p2p 10.0.44.0 Class” dst-address=10.0.44.0/24 interface=all parent=none direction=both priority=8 queue=default-small/default-small limit-at=64000/64000 max-limit=64000/128000 total-queue=default-small p2p=all-p2p disabled=no
/ queue tree add name=“Master Queue In 1.544Mb” parent=global-in packet-mark=all limit-at=1048576 queue=wireless-pcq priority=8 max-limit=1619001 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
add name=“Master Queue Out 1.544Mb” parent=global-out packet-mark=all limit-at=1048576 queue=wireless-pcq priority=8 max-limit=1619001 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no
