{"id":912,"date":"2012-08-07T22:08:00","date_gmt":"2012-08-07T14:08:00","guid":{"rendered":"http:\/\/note.systw.net\/note\/?p=912"},"modified":"2023-11-07T22:11:26","modified_gmt":"2023-11-07T14:11:26","slug":"cisco-ip-sla","status":"publish","type":"post","link":"https:\/\/systw.net\/note\/archives\/912","title":{"rendered":"Cisco IP SLA"},"content":{"rendered":"\n<p><strong>IP SLA(IP service-level,IP\u670d\u52d9\u7b49\u7d1a\u5354\u5b9a)<\/strong><br>\u53ef\u7e8c\u76e3\u6e2c\u7db2\u8def\u7684\u54c1\u8cea,\u4e26\u5c07\u7d71\u8a08\u7d50\u679c\u5132\u5b58\u5728RTTMON MIB\u88e1\uff0c\u8b93\u5176\u4ed6\u7db2\u7ba1\u7a0b\u5f0f\u80fd\u5f9e\u8a72MIB\u7d71\u8a08\u8cc7\u6599<br>\u4f7f\u7528operations(\u904b\u4f5c\u5143)\u7684\u6982\u5ff5,\u6bcf\u500boperations\u5b9a\u7fa9\u4e00\u7d44\u4e0d\u540c\u7684\u76e3\u6e2c\u4efb\u52d9<br>\u88ab\u76e3\u6e2c\u7aef\u53ef\u4ee5\u4e0d\u9700\u4efb\u4f55\u7684\u7279\u6b8a\u8edf\u9ad4\u5c31\u53ef\u4ee5\u6b63\u5e38\u904b\u4f5c<\/p>\n\n\n\n<p>\u5e38\u7528\u7684\u76e3\u6e2c\u985e\u578b\u5305\u62ec\u4ee5\u4e0b<br>ICMP (echo, jitter)<br>RTP (VoIP)<br>TCP connection (establishes TCP connections)<br>UDP (echo, jitter)<br>DNS<br>DHCP<br>HTTP<br>FTP<\/p>\n\n\n\n<p>\u8a2d\u5b9aIP SLA<br><strong>(config)# ip sla &lt; sla-id&gt;<\/strong><br><strong>(config-ip-sla)# &lt; sla-type [paramater]&gt;<\/strong><br>\u5176\u4e2d&lt; sla-type [paramater]&gt;,\u5e38\u898b\u7684\u6709\u4ee5\u4e0b<br>icmp-echo &lt; dst&gt; [source-ip &lt; src&gt;|source-interface &lt; int&gt;]<br><strong>(config)# ip sla schedule &lt; sla-id&gt; [life option][time option][ageout &lt; sec&gt;][recurring]<\/strong><br>\u5176\u4e2d<br>[life option]\u53ef\u4f7f\u7528\u4ee5\u4e0b<br>\u3000forever \u6c38\u9060\u57f7\u884c<br>\u3000&lt; sec&gt;\u3000\u57f7\u884c\u5e7e\u79d2\u5f8c\u505c\u6b62<br>[time option]\u53ef\u4f7f\u7528\u4ee5\u4e0b<br>\u3000start-time &lt; hh:mm[:ss]&gt; [month day|day month]<br>\u3000pending<br>\u3000now\u3000\u7acb\u5373\u57f7\u884c<br>\u3000after &lt; hh:mm:ss&gt;<\/p>\n\n\n\n<p>\u6307\u5b9a\u983b\u7387<br><strong>(config-ip-sla)# frequency &lt; sec&gt;<\/strong><\/p>\n\n\n\n<p>ex:<br>\u4f7f\u7528icmp-echo\u76e3\u6e2c10.1.3.99<br>(config)# ip sla 11<br>(config-ip-sla)# icmp-echo 10.1.3.99 source-ip 10.1.1.9<br>(config-ip-sla)# frequency 60<br>!<br>(config)# ip sla schedule 11 start-time now life forever<\/p>\n\n\n\n<p><br><strong># show ip sla configuration<\/strong><br>IP SLAs Infrastructure Engine-II<br>Entry number: 11 \/\/\u904b\u4f5c\u5143\u4ee3\u78bc\u70ba11<br>Owner:<br>Tag:<br>Type of operation to perform: echo<br>Target address\/Source address: 10.1.3.99\/10.1.1.9 \/\/\u76e3\u6e2c\u7684\u76ee\u6a19\u4f4d\u7f6e<br>Type Of Service parameter: 0x0<br>Request size (ARR data portion): 28<br>Operation timeout (milliseconds): 5000<br>Verify data: No<br>Vrf Name:<br>Schedule:<br>\u3000Operation frequency (seconds): 60 (not considered if randomly scheduled)\u3000\/\/\u4f5c\u696d\u983b\u7387\u70ba60sec<br>\u3000Next Scheduled Start Time: Start Time already passed<br>\u3000Group Scheduled : FALSE<br>\u3000Randomly Scheduled : FALSE<br>\u3000Life (seconds): Forever<br>\u3000Entry Ageout (seconds): never<br>\u3000Recurring (Starting Everyday): FALSE<br>\u3000Status of entry (SNMP RowStatus): Active<br>Threshold (milliseconds): 5000 (not considered if react RTT is configured)<br>Distribution Statistics:<br>\u3000Number of statistic hours kept: 2<br>\u3000Number of statistic distribution buckets kept: 1<br>\u3000Statistic distribution interval (milliseconds): 20<br>History Statistics:<br>\u3000Number of history Lives kept: 0<br>\u3000Number of history Buckets kept: 15<br>\u3000History Filter Type: None<br>Enhanced History:<\/p>\n\n\n\n<p>\u986f\u793aip sla\u4f86\u6e90\u6240\u6536\u96c6\u5230\u7684\u8cc7\u8a0a<br><strong>#show ip sla monitor statistics<\/strong><br>Round trip time (RTT) Index 1<br>Latest RTT: 168 ms<br>Latest operation start time: *16:10:52.453 UTC Sun Mar 4 2012<br>Latest operation return code: OK<br>Number of successes: 13<br>Number of failures: 1<br>Operation time to live: Forever&nbsp;<\/p>\n\n\n\n<p>\u986f\u793aip sla\u56de\u61c9\u5668\u6240\u6536\u96c6\u5230\u7684\u8cc7\u8a0a<br><strong># show ip sla monitor responder<\/strong><br>IP SLA Monitor Responder is: Enabled<br>Number of control message received: 15 Number of errors: 1<br>Recent sources:<br>\u3000192.168.1.11 [00:38:01.807 UTC Fri Mar 2 2012]<br>\u3000192.168.1.11 [00:37:01.783 UTC Fri Mar 2 2012]<br>\u3000192.168.1.11 [00:36:01.791 UTC Fri Mar 2 2012]<br>\u3000192.168.1.11 [00:35:01.791 UTC Fri Mar 2 2012]<br>\u3000192.168.1.11 [00:34:01.779 UTC Fri Mar 2 2012]<br>Recent error sources:<br>\u3000192.168.1.11 [00:24:01.807 UTC Fri Mar 2 2012] RTT_FAIL<br>tcpConnect Responder:<br>\u3000IP Address Port<br>\u300010.1.1.4&nbsp;<\/p>\n\n\n\n<p><br><strong># show ip sla statistics 11<\/strong><br>IPSLAs Latest Operation Statistics<br>IPSLA operation id: 11\u3000\u3000\u3000\u3000\u3000\u3000\/\/\u904b\u4f5c\u5143\u4ee3\u78bc\u70ba11<br>\u3000Latest RTT: 8 milliseconds\u3000\u3000\u3000\/\/\u904b\u4f5c\u5143\u6700\u5f8c\u7684\u56de\u50b3\u6642\u9593<br>Latest operation start time: *19:58:08.395 UTC Mon Sep 14 2009<br>Latest operation return code: OK\u3000\u3000\/\/\u904b\u4f5c\u5143\u6700\u5f8c\u7684\u56de\u50b3\u4ee3\u78bc\u70baok<br>Number of successes: 22\u3000\u3000\u3000\/\/22\u90fd\u6709\u6210\u529f\u5f97\u5230\u56de\u61c9<br>Number of failures: 0<br>Operation time to live: Forever<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP SLA(IP service-level,IP\u670d\u52d9\u7b49\u7d1a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[32],"tags":[],"class_list":["post-912","post","type-post","status-publish","format-standard","hentry","category-cisco-network"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/comments?post=912"}],"version-history":[{"count":0,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/posts\/912\/revisions"}],"wp:attachment":[{"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/media?parent=912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/categories?post=912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systw.net\/note\/wp-json\/wp\/v2\/tags?post=912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}