Всем доброго времени суток.
Подсобрал тут немного статистики с полисингом.
Код:
# создание профилей
create access_profile profile_id 1 profile_name 1 ip destination_ip_mask 255.255.255.255
create access_profile profile_id 2 profile_name 2 ip source_ip_mask 255.255.255.255
# правила
# 5Мб
config access_profile profile_id 1 add access_id 6 ip destination_ip 10.1.2.110 port 1:1 permit
config access_profile profile_id 2 add access_id 6 ip source_ip 10.1.2.110 port 1:6 permit
config flow_meter profile_id 1 access_id 6 rate 5120 burst_size 2048 rate_exceed drop_packet
config flow_meter profile_id 2 access_id 6 rate 5120 burst_size 2048 rate_exceed drop_packet
# 20Мб
config access_profile profile_id 1 add access_id 8 ip destination_ip 10.1.2.100 port 1:1 permit
config access_profile profile_id 2 add access_id 8 ip source_ip 10.1.2.100 port 1:8 permit
config flow_meter profile_id 1 access_id 8 rate 20480 burst_size 2048 rate_exceed drop_packet
config flow_meter profile_id 2 access_id 8 rate 20480 burst_size 2048 rate_exceed drop_packet
# 30Мб
config access_profile profile_id 1 add access_id 7 ip destination_ip 10.1.2.77 port 1:1 permit
config access_profile profile_id 2 add access_id 7 ip source_ip 10.1.2.77 port 1:7 permit
config flow_meter profile_id 1 access_id 7 rate 31000 burst_size 2048 rate_exceed drop_packet
config flow_meter profile_id 2 access_id 7 rate 31000 burst_size 2048 rate_exceed drop_packet
# 40Мб
config access_profile profile_id 1 add access_id 5 ip destination_ip 10.1.2.22 port 1:1 permit
config access_profile profile_id 2 add access_id 5 ip source_ip 10.1.2.22 port 1:5 permit
config flow_meter profile_id 1 access_id 5 rate 40960 burst_size 2048 rate_exceed drop_packet
config flow_meter profile_id 2 access_id 5 rate 40960 burst_size 2048 rate_exceed drop_packet
И вот такие вот результаты тестирования:
5Мб/сЦитата:
iperf (upload):
UDP - 4,85 Mbps
TCP - 100 Kbps
download c Яндекса TCP - 3,8 Mbps
download с локального сервера - 23 KBps
20Мб/сНе шейпит, порт верный, ip верный
30Мб/сЦитата:
iperf (upload):
TCP 22.7 Mbits/sec
UDP 1.05 Mbits/sec
download с Яндекса - 3,7МБайт/с
Спидтест:
даунлоад: 29,40
аплод: 84,91
40Мб/сЦитата:
iperf (upload):
TCP - 11.8 Mbits/sec
UDP - 38.7 Mbits/sec
download c Яндекса - 4,6 МБ/сек
спидтест:
download: 40,62
upload: 40,60
И вот чему верить то?
В продакшн такой полисер запускать страшно.