{"id":1333,"date":"2010-03-08T01:34:50","date_gmt":"2010-03-08T07:34:50","guid":{"rendered":"http:\/\/gregsowell.com\/?p=1333"},"modified":"2010-03-02T08:53:47","modified_gmt":"2010-03-02T14:53:47","slug":"gathering-information-with-cisco-ip-sla-and-cacti","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=1333","title":{"rendered":"Gathering Information With Cisco IP SLA and Cacti"},"content":{"rendered":"<p><a href=\"http:\/\/www.cablesandkits.com\/?utm_source=gregsowell&#038;utm_medium=banner&#038;utm_content=728x90&#038;utm_campaign=gregsowell\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2.gif\" alt=\"blogbanner2\" title=\"CablesAndKits.com Rocks!\" width=\"637\" height=\"90\" class=\"alignnone size-full wp-image-1098\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2.gif 637w, https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/11\/blogbanner2-300x42.gif 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><br \/>\nModern enterprise networks often span provider networks, be it IPSec tunnels through the internet or a leased MPLS connection.  If one is experiencing problems, how can you definitively diagnose these issues?  There are few tools cheaper and more effective than using <a href=\"http:\/\/www.cisco.com\/en\/US\/docs\/ios\/12_4\/ip_sla\/configuration\/guide\/hsjitter.html\">Cisco&#8217;s IP SLA <\/a>( IP Service Level Agreement), formerly <a href=\"http:\/\/www.cisco.com\/en\/US\/tech\/tk869\/tk769\/technologies_white_paper09186a00801b1a1e.shtml\">SAA and RTTMON<\/a>.<\/p>\n<p>In a nutshell IP SLA is a service that runs between two Cisco routers.  This service generates statistics on:<\/p>\n<li>Jitter\n<li>&#8212;Round Trip Time &#8211; Min\/Max\/Average\n<li>&#8212;Packet Loss &#8211; Source to Destination\/Destination to Source\n<li>&#8212;Packet Late\n<li>&#8212;Packet Out Of Sequence\n<li>VOIP Scoring\n<li>DNS Querying\n<li>DHCP\n<li>HTTP\n<li>TCP Connection\n<p>For my purposes, I use Jitter most frequently.  A common scenario would be to test line quality between IPSec connected locations.<\/p>\n<p><strong>So what will we need?<\/strong><\/p>\n<li>Install of Cacti\n<li><a href=\"http:\/\/forums.cacti.net\/about19542.html\">IP SLA templates<\/a>\n<li>A couple of Cisco routers\n<p>For the Cacti install, I always use CactiEZ.<\/p>\n<p>For my Cisco routers I usually use whatever I can find, generally the cheaper the better.  I&#8217;ve got some 1700s from Ebay for $8 each.  I just recently grabbed some 836s from <a href=\"http:\/\/www.cablesandkits.com\/cisco-836-adsl-over-isdn-router-cisco836k9-clearance-p-4463.html\">Cables and kits for $4.80<\/a> each!<\/p>\n<p>Here&#8217;s our diagram.<br \/>\n<figure id=\"attachment_1338\" aria-describedby=\"caption-attachment-1338\" style=\"width: 725px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/ipsla.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/ipsla.png\" alt=\"\" title=\"ipsla\" width=\"725\" height=\"242\" class=\"size-full wp-image-1338\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/ipsla.png 725w, https:\/\/gregsowell.com\/wp-content\/uploads\/2009\/12\/ipsla-300x100.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><figcaption id=\"caption-attachment-1338\" class=\"wp-caption-text\">See the way the light glistens off the shimmering surface of the router...<\/figcaption><\/figure><\/p>\n<p>So this setup shows two sites that connect with an IPSec connection.  Our users have been seeing what they think is packet loss causing tunnel problems.  The ISPs at both locations claim they are having no issues.  You are currently graphing the internet bandwidth on both WAN interfaces via your cacti box and you see that you aren&#8217;t maxing out your bandwidth.  Sooo, it looks like you are having packet loss within one of your ISPs, but how can you prove it?<\/p>\n<p>What we do is put an IPSLA probe in both locations and one at a neutral location.  We configure SLA server to run on each router, which accepts SLA probe connections.  We then configure all sites to probe each other, and add it to cacti.<\/p>\n<p>Soooo, if we get packet loss from a single site to all other locations, then we know which ISP to call.  On top of that, we will have graphical proof that we can send to the ISP to help prove our point \ud83d\ude42<\/p>\n<h2>IPSLA1<\/h2>\n<p>Setup the jitter probe and have it hit SLA2 every 5 minutes.  The frequency is set in seconds.<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">ip sla monitor 1\r\ntype jitter dest-ipaddr 192.168.2.2 dest-port 10000\r\nfrequency 300\r\nip sla monitor schedule 1 life forever start-time now<\/code><\/pre>\n<h2>IPSLA2<\/h2>\n<p>Setup IPSLA2 to respond to the queries.<\/p>\n<pre class=\"gs-code\"><code class=\"language-plaintext\">ip sla responder<\/code><\/pre>\n<p>Add your graph in cacti and awaaaaaay you go.<br \/>\n<figure id=\"attachment_1570\" aria-describedby=\"caption-attachment-1570\" style=\"width: 597px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/02\/jitter_error_205.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/02\/jitter_error_205.png\" alt=\"\" title=\"jitter_error_205\" width=\"597\" height=\"399\" class=\"size-full wp-image-1570\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/02\/jitter_error_205.png 597w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/02\/jitter_error_205-300x200.png 300w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/a><figcaption id=\"caption-attachment-1570\" class=\"wp-caption-text\">wwwweeeeeeeeeeeee<\/figcaption><\/figure><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modern enterprise networks often span provider networks, be it IPSec tunnels through the internet or a leased MPLS connection. If one is experiencing problems,\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,16,8],"tags":[],"class_list":["post-1333","post","type-post","status-publish","format-standard","hentry","category-cacti","category-cisco","category-networking"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1333"}],"version-history":[{"count":19,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1333\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1333\/revisions\/1591"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}