[XML] Cisco SAA Jitter/Jitter-error/http template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

jeanvav
Posts: 11
Joined: Fri May 14, 2004 1:16 pm
Location: Phoenix, AZ

Post by jeanvav »

dent, you can just add threshold command and cacti will grab it. Also, if you do not set one up it will default to 5000.

Code: Select all

rtr 7
 type jitter dest-ipaddr 10.10.10.10 dest-port 61 num-packets 50 interval 1
 request-data-size 60
 threshold 30
 tag where are you
 frequency 300
rtr schedule 7 life forever start-time now
koike, have you tried copying any configs in this thread? Note that you have to setup schedule to run forever or something of long value.
koike
Posts: 6
Joined: Fri Jul 02, 2004 2:38 pm

Post by koike »

The router doesn't have the [forever] keyword.
So i try 0 from <0-2147483647>

IOS 12.0(5)T1
dent
Posts: 6
Joined: Tue Mar 16, 2004 3:03 pm

Random thoughts....

Post by dent »

Just some other stuff I've learned about SAA that I thought I'd share in case anyone else is new to this like I was:

You need to turn on 'rtr responder' on both the source and destination routers.

The SAA responder in different IOS versions has different capabilities - for example, if you want one-way delay measurements, you need IOS 12.2(2)T or better. If you want "SAA Engine" 2.x or better, I think you need IOS 12.2(13)T or better.

If you're measuring one-way delay, your two routers need to be time-synchronized (!)
Guest

Post by Guest »

Could someone provide some config examples required to provide the data to populate the graph templates provided?

THanks
dent
Posts: 6
Joined: Tue Mar 16, 2004 3:03 pm

Example config

Post by dent »

OK, in this example a source router (10.1.1.1) will be sending probes to a destination router (10.2.2.2) to simulate a voice call so we can measure jitter (variation in delay). Presumedly, these two routers are connected directly to one another via a T1 or some other WAN link. (Your probes can be several hops apart from each other, but in this example I wanted to measure the jitter over a specific link, not the complete end-to-end path.)

On the source router configure:

Code: Select all

rtr responder
rtr 1
 type jitter dest-ipaddr 10.2.2.2 dest-port 16001 codec g711alaw
 tos 32
 threshold 30
 tag rtr 1
rtr schedule 1 life forever start-time now
On the destination router, configure:

Code: Select all

rtr responder
In my case, both routers are running IOS 12.3, but I think 12.2(15) would work as well.

After this is set up, configure Cacti to query the source router (10.1.1.1) using the tag value from the router config ("rtr 1" in this case) as the index. (You could have multiple SAA probes running on the same router doing different things, so this is how you distinguish between them.)

After some time collecting data, you might see something like the attached graph for a link where QoS is configured on both ends and there are no problems with jitter to mess up your IP Voice calls.

Hope this isn't too simplistic for your needs...
Attachments
jitter_example.png
jitter_example.png (7.83 KiB) Viewed 23268 times
boots
Cacti User
Posts: 55
Joined: Wed Jan 07, 2004 4:59 am
Location: Melbourne Australia

Post by boots »

Hi Dent,

Thanks for the information you provided.

Following this, I get a RTT Max and RTT MIN, but no RTT AVE.

Any suggestions?
stelaras1
Cacti User
Posts: 57
Joined: Wed Nov 03, 2004 10:11 am

Post by stelaras1 »

i am using SAA xml from http://www.eatworms.org.uk/cacti/cisco-saa.php and http://forums.cacti.net/about4136-0-asc-0.html

and i have the following problem.

RRD file cannot be created and when i check Data Sources for this query i see in Index Type--> "Data query data sources must be created through New Graph" and there in No Index Value.
I have also noticed that when i check a rtr record in Data Query (Cisco - SAA Response Times or Data Query [Cisco - SAA Statistics) it does not go in grey (inactive) state but remain black , which means i can pick it again.


any ideas please...

thank you
Haakon
Posts: 6
Joined: Tue Jul 19, 2005 10:04 am

Post by Haakon »

I'm relatively new to Cacti so please bear with me.
There is one thing i don't understand. I've imported the file cacti_data_query_cisco_saa_632.xml which seem to work fine. This template defines a data template and graph templates(?) This file also contains reference to cisco_saa.xlm which I also downloaded. This file contains the snmp information, which lead me to believe that I need both files in order to get this to work?

Under graph management I'm now able to add a graph with one of the graph templates defined in cacti_data_query_cisco_saa_632.xml. I'm also able to choose the different data sources for each graph item. There is now return from the RRDTool when i turn on graph debug mode, which is the case on some of the pre-defines ones.

I've also defined a Data Query for my host running the SAA agent. This query returns no values/data
Data Query Debug Information:
+ Running data query [19].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/cacti_data_query_cisco_saa_632.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ ''
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/cacti_data_query_cisco_saa_632.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/cacti_data_query_cisco_saa_632.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/cacti_data_query_cisco_saa_632.xml'

I've runed a standard snmpgetnext from command line using one of the OID's defined in the cisco_saa.xml, and this works fine.

Have I missed something?
------------------------
I'm running Cacti on FD4
Haakon
Posts: 6
Joined: Tue Jul 19, 2005 10:04 am

Post by Haakon »

Anyone?
yousry elfowey
Posts: 2
Joined: Wed Sep 28, 2005 7:09 am
Location: Egypt

Graphing

Post by yousry elfowey »

Hi,

Can anyone help me in graphing the following :
- Jitter ( All values ) OIDS
-RTT ( All Values ) OIDS

I need also to know the threshold of a better performance.
Haakon
Posts: 6
Joined: Tue Jul 19, 2005 10:04 am

Post by Haakon »

Found out that the rrd files was not created. When rrd's are created manually, it all works fine.
yousry elfowey: Regarding the thresholds. Jitter performance depend on your Cisco QoS setting and SAA set up. Using test packets on high priority ports gives you 'better' values than on non priority ports.
RTT/Latency depend on QoS/SAA set up, but also your transmission media.

SAA gives you a number if jitter values:

Jitter Values:
NumOfJitterSamples: 99
MinOfPositivesSD: 1 MaxOfPositivesSD: 9
NumOfPositivesSD: 18 SumOfPositivesSD: 44 Sum2PositivesSD: 242
MinOfNegativesSD: 1 MaxOfNegativesSD: 10
NumOfNegativesSD: 15 SumOfNegativesSD: 43 Sum2NegativesSD: 261
MinOfPositivesDS: 1 MaxOfPositivesDS: 18
NumOfPositivesDS: 23 SumOfPositivesDS: 64 Sum2PositivesDS: 552
MinOfNegativesDS: 1 MaxOfNegativesDS: 19
NumOfNegativesDS: 21 SumOfNegativesDS: 62 Sum2NegativesDS: 648

This script queries +SDmax, +DSmax, -SDmax, -DSmax.
Using this, your graphs will reflect 'worst case jitter'. Mean jitter should should be calculated like this:

SumOfPositivesSD/NumOfPositivesSD
SumOfNegativesSD/NumOfNegativesSD
SumOfPositivesDS/NumOfPositivesDS
SumOfNegativesDS/NumOfNegativesDS

Download the RTTMON MIB and use a MIB browser to find your OID's

http://www.assure24.com/product/3036-sn ... wnload.htm
yousry elfowey
Posts: 2
Joined: Wed Sep 28, 2005 7:09 am
Location: Egypt

Post by yousry elfowey »

Hello,

Here is my configuration

ip sla monitor responder
ip sla monitor 2
type jitter dest-ipaddr 160.34.2.15 dest-port 14384 num-packets 3000
request-data-size 172
ip sla monitor schedule 2 life forever start-time now


and here is the collected statisctics

Round trip time (RTT) Index 2
Latest RTT: 0 ms
Latest operation start time: 10:50:01.255 EGY Thu Oct 13 2005
Latest operation return code: OK
Over thresholds occurred: FALSE
RTT Values
Number Of RTT: 785
RTT Min/Avg/Max: 1/1/1 ms
Latency one-way time milliseconds
Number of one-way Samples: 0
Source to Destination one way Min/Avg/Max: 0/0/0 ms
Destination to Source one way Min/Avg/Max: 0/0/0 ms
Source to Destination one way Sum/Sum2: 0/0
Destination to Source one way Sum/Sum2: 0/0
Jitter time milliseconds
Number of Jitter Samples: 387
Source to Destination Jitter Min/Avg/Max: 1/1/1 ms
Destination to Source Jitter Min/Avg/Max: 1/1/1 ms
Source to destination positive jitter Min/Avg/Max: 1/1/1 ms
Source to destination positive jitter Number/Sum/Sum2: 92/92/92
Source to destination negative jitter Min/Avg/Max: 1/1/1 ms
Source to destination negative jitter Number/Sum/Sum2: 90/90/90
Destination to Source positive jitter Min/Avg/Max: 1/1/1 ms
Destination to Source positive jitter Number/Sum/Sum2: 83/83/83
Destination to Source negative jitter Min/Avg/Max: 1/1/1 ms
Destination to Source negative jitter Number/Sum/Sum2: 84/84/84
Interarrival jitterout: 0 Interarrival jitterin: 0
Packet Loss Values
Loss Source to Destination: 2 Loss Destination to Source: 2186
Out Of Sequence: 89 Tail Drop: 27 Packet Late Arrival: 2213
Voice Score Values
Calculated Planning Impairment Factor (ICPIF): 0
Mean Opinion Score (MOS): 0
Number of successes: 2
Number of failures: 0
Operation time to live: Forever
Operational state of entry: Active
Last time this entry was reset: Never

I need to know what is Number Of RTT: 785 ( i think 3000 Pkt sent every 60 Sec.
I need to understands what is happening.
I think router send 3000 Pck to simulate voice packet every 60 sec with interpacket interval 20 ms, is this correct ?
i need to understand statistics in more details.

I hope someone can help me understanding what is going on.
Haakon
Posts: 6
Joined: Tue Jul 19, 2005 10:04 am

Post by Haakon »

asen
Posts: 2
Joined: Thu Dec 01, 2005 7:28 am
Location: Frankfurt, Germany
Contact:

Problems with IMPORT

Post by asen »

Hi Guys,

our ISP provided us a Router with CISCO SAA / RTT Functionality. The RTT / SAA Parameters are provided per Class of Service, so we would be able to measure Jitter, RTT & Packet Loss per Class of Service.

So far so good!

I found this thread about SAA, downloaded the templates from this thread (see attached files).

I am new to Cacti, so please keep this in mind! :-)

I tried to import the files attached via CACTI -> IMPORT TEMPLATE function. The IMPORT of tthe File "cacti_data_query_cisco_saa_632.xml" was successfull, but I am not able to IMPORT the File "cisco_saa.xml", CACTI doenst Report any Error, just reloads the SITE without any comment.

Can anyone help me with this? What do I make wrong?

Thanks inadvance for your Help Guys!

Cheers,
asen
Attachments
cacti_data_query_cisco_saa_632.xml
(79.94 KiB) Downloaded 1351 times
cisco_saa.xml
(10.85 KiB) Downloaded 1524 times
jwhiteaker
Posts: 2
Joined: Tue Dec 06, 2005 1:40 pm

Post by jwhiteaker »

Hi Asen!

I ran into the same issue...

I don't know if this was truly the "fix" or not, but I discovered that the cisco_saa.xml file was not in the ../resource/snmp_queries folder. I don't know why the import fails, but I merely copied the file manually to that location, and I'm now getting SAA graphs/info. Again, I'm not a programmer so I don't truly know if things are working as they should. I'll have to play with this config a bit more, however, it *seems* that things are indeed working after the manual copy. Good luck!

-Jason
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests