IP SLA(IP service-level,IP服務等級協定)
可續監測網路的品質,並將統計結果儲存在RTTMON MIB裡,讓其他網管程式能從該MIB統計資料
使用operations(運作元)的概念,每個operations定義一組不同的監測任務
被監測端可以不需任何的特殊軟體就可以正常運作
常用的監測類型包括以下
ICMP (echo, jitter)
RTP (VoIP)
TCP connection (establishes TCP connections)
UDP (echo, jitter)
DNS
DHCP
HTTP
FTP
設定IP SLA
(config)# ip sla < sla-id>
(config-ip-sla)# < sla-type [paramater]>
其中< sla-type [paramater]>,常見的有以下
icmp-echo < dst> [source-ip < src>|source-interface < int>]
(config)# ip sla schedule < sla-id> [life option][time option][ageout < sec>][recurring]
其中
[life option]可使用以下
forever 永遠執行
< sec> 執行幾秒後停止
[time option]可使用以下
start-time < hh:mm[:ss]> [month day|day month]
pending
now 立即執行
after < hh:mm:ss>
指定頻率
(config-ip-sla)# frequency < sec>
ex:
使用icmp-echo監測10.1.3.99
(config)# ip sla 11
(config-ip-sla)# icmp-echo 10.1.3.99 source-ip 10.1.1.9
(config-ip-sla)# frequency 60
!
(config)# ip sla schedule 11 start-time now life forever
# show ip sla configuration
IP SLAs Infrastructure Engine-II
Entry number: 11 //運作元代碼為11
Owner:
Tag:
Type of operation to perform: echo
Target address/Source address: 10.1.3.99/10.1.1.9 //監測的目標位置
Type Of Service parameter: 0x0
Request size (ARR data portion): 28
Operation timeout (milliseconds): 5000
Verify data: No
Vrf Name:
Schedule:
Operation frequency (seconds): 60 (not considered if randomly scheduled) //作業頻率為60sec
Next Scheduled Start Time: Start Time already passed
Group Scheduled : FALSE
Randomly Scheduled : FALSE
Life (seconds): Forever
Entry Ageout (seconds): never
Recurring (Starting Everyday): FALSE
Status of entry (SNMP RowStatus): Active
Threshold (milliseconds): 5000 (not considered if react RTT is configured)
Distribution Statistics:
Number of statistic hours kept: 2
Number of statistic distribution buckets kept: 1
Statistic distribution interval (milliseconds): 20
History Statistics:
Number of history Lives kept: 0
Number of history Buckets kept: 15
History Filter Type: None
Enhanced History:
顯示ip sla來源所收集到的資訊
#show ip sla monitor statistics
Round trip time (RTT) Index 1
Latest RTT: 168 ms
Latest operation start time: *16:10:52.453 UTC Sun Mar 4 2012
Latest operation return code: OK
Number of successes: 13
Number of failures: 1
Operation time to live: Forever
顯示ip sla回應器所收集到的資訊
# show ip sla monitor responder
IP SLA Monitor Responder is: Enabled
Number of control message received: 15 Number of errors: 1
Recent sources:
192.168.1.11 [00:38:01.807 UTC Fri Mar 2 2012]
192.168.1.11 [00:37:01.783 UTC Fri Mar 2 2012]
192.168.1.11 [00:36:01.791 UTC Fri Mar 2 2012]
192.168.1.11 [00:35:01.791 UTC Fri Mar 2 2012]
192.168.1.11 [00:34:01.779 UTC Fri Mar 2 2012]
Recent error sources:
192.168.1.11 [00:24:01.807 UTC Fri Mar 2 2012] RTT_FAIL
tcpConnect Responder:
IP Address Port
10.1.1.4
# show ip sla statistics 11
IPSLAs Latest Operation Statistics
IPSLA operation id: 11 //運作元代碼為11
Latest RTT: 8 milliseconds //運作元最後的回傳時間
Latest operation start time: *19:58:08.395 UTC Mon Sep 14 2009
Latest operation return code: OK //運作元最後的回傳代碼為ok
Number of successes: 22 //22都有成功得到回應
Number of failures: 0
Operation time to live: Forever