Cisco IP SLA
Материал из Xgu.ru
IP SLA позволяет создавать тесты.
Один из самых простых примеров теста: проверка доступности ресурса с помощью простого “ping” (отправки ICMP-запроса и ожидания ICMP-ответа).
Тесты также могут быть и более сложными. Например, проверка качества канала по таким характеристикам как jitter и delay.
Содержание |
[править] Параметры
Рекомендации Cisco по настройке параметров (frequency, timeout, threshold) для тестов IP SLA UDP jitter:
- (frequency seconds) > ((timeout milliseconds) + N)
- (timeout milliseconds) > (threshold milliseconds)
где N = (num-packets number-of-packets) * (interval interpacket-interval)
Рекомендации Cisco по настройке параметров (frequency, timeout, threshold) для других тестов IP SLA:
- (frequency seconds) > (timeout milliseconds) > (threshold milliseconds)
[править] Threshold
Параметр threshold используется для указания верхнего порогового значения времени.
Значение по умолчанию 5000ms. Значение threshold не должно превышать значение параметра timeout.
Значение параметра threshold для операции:
- IP SLA UDP jitter:
- устанавливает верхнее пороговое значение для среднего значения jitter
- для других операций:
- устанавливает верхнее пороговое значение для измерения RTT (round-trip time)
IP SLA, соответственно, высчитывает количество раз, когда среднее значение jitter или RTT превышало указанное значение threshold.
[править] Responder
В зависимости от теста, на стороне получателя может быть, или любое устройство с соответствующим сервисом, или оборудование Cisco.
IP SLA, за время существования, сменил несколько вариантов настройки. Поэтому, настройка в другой версии IOS может отличаться от указанной.
[править] Операции
[править] ICMP echo
ip sla 1 icmp-echo 8.8.8.8 source-interface FastEthernet0/0 threshold 1000 timeout 1500 frequency 3 ip sla schedule 1 life forever start-time now
Часто такого рода тесты привязываются с помощью track к другим объектам. Например, к статическим маршрутам.
[править] ICMP path
[править] UDP echo
[править] UDP-Jitter
ip sla 55 udp-jitter 12.13.0.13 16384 num-packets 2000 request-data-size 200 tos 46 ip sla schedule 55 life forever start-time now ntp server 10.0.0.2
ntp server 10.0.0.2 ip sla responder
[править] Команды просмотра
[править] Версия
router1#sh ip sla application
IP Service Level Agreements
Version: Round Trip Time MIB 2.2.0, Infrastructure Engine-III
Supported Operation Types:
icmpEcho, path-echo, path-jitter, udpEcho, tcpConnect, http
dns, udpJitter, dhcp, ftp, VoIP, rtp, lsp Group, icmpJitter
lspPing, lspTrace, 802.1agEcho VLAN, Port
802.1agJitter VLAN, Port, pseudowirePing, udpApp, wspApp
Supported Features:
IPSLAs Event Publisher
IP SLAs low memory water mark: 20345496
Estimated system max number of entries: 14901
Estimated number of configurable operations: 11582
Number of Entries configured : 4
Number of active Entries : 4
Number of pending Entries : 0
Number of inactive Entries : 0
Time of last change in whole IP SLAs: *17:12:16.479 UTC Sun Feb 15 2015
[править] Проверка тестов
router1#sh ip sla summary
IPSLAs Latest Operation Summary
ID Type Destination Stats Return Last
(ms) Code Run
----------- ---------- --------------- ------ ---------- -----------------
*1 icmp-echo 8.8.8.8 RTT=1 OK 1 second ago
*2 icmp-echo 8.8.4.4 RTT=1 OK 2 seconds ago
*3 icmp-echo 4.4.4.4 RTT=1 OK 1 second ago
*55 udp-jitter 12.13.0.13 RTT=1 OK 1 minute, 17 seconds ago
[править] Просмотр статистики
Для теста icmp-echo:
router1#sh ip sla statistics 1
IPSLAs Latest Operation Statistics
IPSLA operation id: 1
Latest RTT: 1 milliseconds
Latest operation start time: 17:24:31 UTC Tue Feb 17 2015
Latest operation return code: OK
Number of successes: 749
Number of failures: 0
Operation time to live: Forever
Для теста udp-jitter:
router1#sh ip sla statistics 55
IPSLAs Latest Operation Statistics
IPSLA operation id: 55
Type of operation: udp-jitter
Latest RTT: 1 milliseconds
Latest operation start time: 17:20:16 UTC Tue Feb 17 2015
Latest operation return code: OK
RTT Values:
Number Of RTT: 2000 RTT Min/Avg/Max: 1/1/88 milliseconds
Latency one-way time:
Number of Latency one-way Samples: 1106
Source to Destination Latency one way Min/Avg/Max: 0/0/87 milliseconds
Destination to Source Latency one way Min/Avg/Max: 1/0/5 milliseconds
Jitter Time:
Number of SD Jitter Samples: 1999
Number of DS Jitter Samples: 1999
Source to Destination Jitter Min/Avg/Max: 0/1/87 milliseconds
Destination to Source Jitter Min/Avg/Max: 0/1/5 milliseconds
Packet Loss Values:
Loss Source to Destination: 0
Source to Destination Loss Periods Number: 0
Source to Destination Loss Period Length Min/Max: 0/0
Source to Destination Inter Loss Period Length Min/Max: 0/0
Loss Destination to Source: 0
Destination to Source Loss Periods Number: 0
Destination to Source Loss Period Length Min/Max: 0/0
Destination to Source Inter Loss Period Length Min/Max: 0/0
Out Of Sequence: 0 Tail Drop: 0
Packet Late Arrival: 0 Packet Skipped: 0
Voice Score Values:
Calculated Planning Impairment Factor (ICPIF): 0
Mean Opinion Score (MOS): 0
Number of successes: 5
Number of failures: 0
Operation time to live: Forever