Пошук по сайту
Результати пошуку за тегами 'queue'.
Найдено 3 результата
-
Добрый день. Имеется микротик 750жл с 90пппое клиентами в пике, шейпит всех клиентов 1-4 мбита. Под вечер в час пик когда трафик начинает превышать 30 мбит загрузка процессора доходит до 100%. В профайле говорит что 25-30% ресурса уходит на шейпер. Так как половина клиентов подключены лайт5ыми хотел убрать шейпер на них, что бы они сами себе ограничивали скорость, так вот шейпит он почему то не четко. Если 750ый четко показывает 1мбит, то когда создаю правило на лайт5ом, трафик достигает 1.5 мбита, и так на любой скорости, в среднем добавляет 0.5 мбита. Как заставить его шейпить правильно? Может кто сталкивался, заранее спасибо. Шейпит 750ый Шейпит сам
-
Доброго дня, коллеги. Есть такая ситуация: Установлена атс FreePBX 11.4 из готового дистрибутива с freepbx.org. Все работает ок. По умолчанию астериск пишет данные по звонкам в очереди в файл queues.log. Хочется, что бы писало тоже самое в мускуль. Собственно, погуглив, было сделано примерно вот это: http://middev.blogspot.ru/2012/05/asterisk-18-queuelog.html Таблица сделана, опции в конфигах проставлены, вроде все сделано по инструкции. Но - не пишет в мускуль этот лог =( Собственно, вопрос: делал ли кто у себя логирование очередей в мускуль? Если да, поделитесь инфой\конфигом, пжст.
-
В общем после пользования приоритета трафика около 3 лет на nas микротик, с переходом на nas freebsd ubilling ощутимо сказывается на пользовании. Поскольку сеть маленькая , в глубинке и почти все клиенты на точках , то 3м в трубе заполнить на раз, два и последующие запросы , игры или просто серфинг, пинг ого. Биллинг работает как часы , без нареканий. Привязал очереди к уже готовым трубам для каждого ip , перепробовал множество вариаций , но пока не могу запустить , может кто ткнет где не туда смотрю? К каждой трубе для каждого пользователя привязал 4 очереди с разными портами (потом можно добавить и по размеру файлов) . Очереди как бы заполняются , но скорость (например 3m) для каждого pipe почему то общая и для других ip , но по идее должна быть для каждого . Это одна из нескольких конфигураций , возможно кто подскажет где не так? Копию рабочего биллинга установил на виртуалку для оттачивания , чтобы клиенты не прибили за эксперименты! #onconnect #SPEED CONTROL ${fwcmd} pipe `expr $ID + 18101` config bw $SPEED$SCOUNT mask dst-ip 0xffffffff ${fwcmd} pipe `expr $ID + 101` config bw $UPSPEED$SCOUNT mask src-ip 0xffffffff # WAN -> LAN ${fwcmd} queue 111 config weight $wot queue 50 pipe `expr $ID + 18101` mask dst-ip 0xffffffff ${fwcmd} queue 112 config weight $http queue 50 pipe `expr $ID + 18101` mask dst-ip 0xffffffff ${fwcmd} queue 113 config weight $tcp queue 50 pipe `expr $ID + 18101` mask dst-ip 0xffffffff ${fwcmd} queue 114 config weight $all queue 50 pipe `expr $ID + 18101` mask dst-ip 0xffffffff # LAN -> WAN ${fwcmd} queue 211 config weight $wot queue 50 pipe `expr $ID + 101` mask src-ip 0xffffffff ${fwcmd} queue 212 config weight $http queue 50 pipe `expr $ID + 101` mask src-ip 0xffffffff ${fwcmd} queue 213 config weight $tcp queue 50 pipe `expr $ID + 101` mask src-ip 0xffffffff ${fwcmd} queue 214 config weight $all queue 50 pipe `expr $ID + 101` mask src-ip 0xffffffff #firewall.conf # WAN -> LAN ${FwCMD} add 13011 queue 111 ip from any ${wot} to any via ${LAN_IF} out ${FwCMD} add 13022 queue 112 ip from any ${http} to any via ${LAN_IF} out ${FwCMD} add 13033 queue 113 ip from any ${tcp} to any via ${LAN_IF} out ${FwCMD} add 13044 queue 114 ip from any not ${wot},${http},${tcp} to any via ${LAN_IF} out # LAN -> WAN ${FwCMD} add 13055 queue 211 ip from any to any ${wot} via ${LAN_IF} in ${FwCMD} add 13066 queue 212 ip from any to any ${http} via ${LAN_IF} in ${FwCMD} add 13077 queue 213 ip from any to any ${tcp} via ${LAN_IF} in ${FwCMD} add 13088 queue 214 ip from any to any not ${wot},${http},${tcp} via ${LAN_IF} in root@billing:~ # ipfw queue show q00213 50 sl. 0 flows (64 buckets) sched 101 weight 33 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000 q00212 50 sl. 2 flows (64 buckets) sched 101 weight 50 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000 BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp 6 ip 10.10.100.6/0 0.0.0.0/0 132 5762 0 0 0 14 ip 10.10.100.2/0 0.0.0.0/0 29 1330 0 0 0 q00214 50 sl. 1 flows (64 buckets) sched 101 weight 1 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000 14 ip 10.10.100.2/0 0.0.0.0/0 60 4800 0 0 0 q00211 50 sl. 0 flows (64 buckets) sched 101 weight 100 lmax 0 pri 0 droptail mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000 q00111 50 sl. 0 flows (64 buckets) sched 18101 weight 100 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 q00114 50 sl. 1 flows (64 buckets) sched 18101 weight 1 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 22 ip 0.0.0.0/0 10.10.100.2/0 45 2664 0 0 0 q00113 50 sl. 0 flows (64 buckets) sched 18101 weight 33 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 q00112 50 sl. 1 flows (64 buckets) sched 18101 weight 50 lmax 0 pri 0 droptail mask: 0x00 0x00000000/0x0000 -> 0xffffffff/0x0000 18 ip 0.0.0.0/0 10.10.100.6/0 107 73002 15 10860 0 root@billing:~ # ipfw show 00004 58 3793 allow ip from table(2) to 10.10.100.1 dst-port 53 via em0 00004 58 10586 allow ip from 10.10.100.1 to table(2) src-port 53 via em0 00004 0 0 allow ip from table(2) to me dst-port 80 via em0 00004 0 0 allow ip from me to table(2) src-port 80 via em0 00005 0 0 fwd 127.0.0.1,80 ip from table(47) to not me dst-port 80 00005 0 0 fwd 127.0.0.1,80 ip from 172.32.0.0/20 to not me dst-port 80 00005 0 0 reset ip from 172.32.0.0/20 to any dst-port 443 00006 0 0 reset ip from table(47) to any dst-port 443,444 00006 0 0 allow ip from me to 172.32.0.0/20 via em0 out 00006 0 0 allow ip from 172.32.0.0/20 to me via em0 in 00101 28 1840 allow ip from me to 10.10.100.0/24 via em0 out 00102 1 328 allow ip from 10.10.100.0/24 to me via em0 in 06000 25885 13463718 nat 1 ip from table(2) to not table(9) out xmit em1 06001 23082 18714879 nat 1 ip from any to me in recv em1 13011 0 0 queue 111 ip from any 53,9081,9100,9090,8086,3724,9091,8087,6112,6881-6999 to any via em0 out 13022 22702 18675566 queue 112 ip from any 80,443,3128,8080,8081 to any via em0 out 13033 0 0 queue 113 ip from any 20,21,22,23,25,110,179,2222,3389 to any via em0 out 13044 276 18704 queue 114 ip from any not 53,9081,9100,9090,8086,3724,9091,8087,6112,6881-6999,80,443,3128,8080,8081,20,21,22,23,25,110,179,2222,3389 to any via em0 out 13055 0 0 queue 211 ip from any to any dst-port 53,9081,9100,9090,8086,3724,9091,8087,6112,6881-6999 via em0 in 13066 25736 13635783 queue 212 ip from any to any dst-port 80,443,3128,8080,8081 via em0 in 13077 0 0 queue 213 ip from any to any dst-port 20,21,22,23,25,110,179,2222,3389 via em0 in 13088 397 37455 queue 214 ip from any to any not dst-port 53,9081,9100,9090,8086,3724,9091,8087,6112,6881-6999,80,443,3128,8080,8081,20,21,22,23,25,110,179,2222,3389 via em0 in 14000 0 0 pipe tablearg ip from table(3) to any via em0 in 14001 0 0 pipe tablearg ip from any to table(4) via em0 out 65533 0 0 deny ip from table(2) to any via em0 65535 4667 857482 allow ip from any to any
