ארכיון פוסטים מהחודש "מרץ, 2012"

Monitor Jitter with IP SLA and MIB

יום שבת, 10 במרץ, 2012

IP SLA within Cisco IOS provide ability to monitor diffrent parameters

in this article i will provide example for monitoring jitter.
in order to check jitter between on a path between two routers,
one router is setup as pooler this router will send udp packets for testing the path
and the second router will act as a server and will respond to thoose udp packets and
will calculate and report the jittering in the path

for more information visit cisco website http://www.cisco.com/en/US/docs/ios/12_4/ip_sla/configuration/guide/hsthresh.html

Now for configuration
The configuration on the router

ip sla 110
udp-jitter <x.x.x.x> 2000
frequency 30
ip sla schedule 110 life forever start-time now

the configuration on the responder

ip sla responder

as soon as you finish with the configuration give the system 5 minutes
to start pooling SLA, then you can see the test results

Router#show ip sla statistics 110

Round Trip Time (RTT) for Index 110
Type of operation: jitter
Latest RTT: 529 ms
Latest operation start time: 11:29:25.242 MOZ Sat Mar 10 2012
Latest operation return code: OK
RTT Values
Number Of RTT: 10
RTT Min/Avg/Max: 529/529/531 ms
Latency one-way time milliseconds
Number of Latency one-way Samples: 10
Source to Destination Latency one way Min/Avg/Max: 337/337/338 ms
Destination to Source Latency one way Min/Avg/Max: 192/192/193 ms
Jitter time milliseconds
Number of SD Jitter Samples: 9
Number of DS Jitter Samples: 9
Source to Destination Jitter Min/Avg/Max: 0/1/1 ms
Destination to Source Jitter Min/Avg/Max: 0/1/1 ms
Packet Loss Values
Loss Source to Destination: 0 Loss Destination to Source: 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: 93
Number of failures: 0
Operation time to live: Forever

Other option i have found usefull is to monitor the IP SLA with MIB application such
Cacti,

Here are some MIB nodes to pool the values from router and show them on Cacti

9.9.42.1.5.2.1.47.110

Avg 1.3.6.1.4.1.9.9.42.1.5.2.1.47.110
9.9.42.1.5.2.1.7.110 Max
9.9.42.1.5.2.1.47.110 Avg
1.3.6.1.4.1.9.9.42.1.5.2.1.

7.110 Max
47.110 Avg

.26 Packet Lost Source to Destination
.27 Packet Lost Destination To Source

 

קוד עתיק שכתבתי לפני שנים ב Turbo basic

יום חמישי, 1 במרץ, 2012

פעם היו ימים שכדי להריץ קוד היה צריך להריץ exec שנקרא tb.exe

זה היה קומפייל שחור צהוב , השורות של הקוד היו צריכות להכיל מספר בהתחלה לפני הקוד

ולרוב הפקודות הנפוצות היו Goto ואולי כמה  IF ים ו For

ברוחב אותם ימים של ה Turbo Basic (שנת 1993)  אני מצרף קובץ עם סיומת .BAS עתיק שכתבתי פעם

הרי הוא השעון המעורר תוצרת Basic

'Timer prog Alarm in the selective time' 10 Cls Color 9 Locate 1,1 ?"Made by:The god               Version:2.00 Color 15 ?"~~~~~~~~~~~~~~~               ~~~~~~~~~~~~" Color 7 Locate 3,40 : ?TIME$ Color 3 Locate 3,1 Input "Please enter time to alarm:",TIM$

100 'Start loop'     ASK$=INKEY$     IF ASK$="D" Then Shell : Goto 300     If ASK$="d" THen SHell : Goto 300     If ASK$="T" Then Goto 10     If ASK$="t" Then goto 10     If Ask$="E" Then End     If ASK$="e" Then End     If COMMAND$="PC" Then Goto 400     IF TIME$=TIM$ Then Goto 200  Locate 5,1  Color 11      ?"The Time now is:",TIME$     Color 14     Locate 7,12 : ?"Push D To Swap to dos"     Color 13     Locate 8,12 : ?"Push T To change alarm time"     Color 12     Locate 9,12 : ?"Push E To Cancel event"     Goto 100

200 Shell "WAKE.BAT"     End

300 Cls     Color 9     Locate 1,1     ?"Made by:The god               Version:2.00     Color 15     ?"~~~~~~~~~~~~~~~               ~~~~~~~~~~~~"     Color 7     ?"Please enter time to alarm:",TIM$     Goto 100

400 ASK$=INKEY$      IF ASK$="D" Then Shell : Goto 300      If ASK$="d" THen SHell : Goto 300      If ASK$="T" Then Goto 10      If ASK$="t" Then goto 10      If Ask$="E" Then End      If ASK$="e" Then End             IF TIME$=TIM$ Then Goto 500             Locate 5,1             color 11             ?"The Time now is:",TIME$             Color 14             Locate 7,12 : ?"Push D To Swap to dos"             Color 13             Locate 8,12 : ?"Push T To change alarm time"             Color 12             Locate 9,12 : ?"Push E To Cancel event"      Goto 400

500    For D=19 to 1 step -1            For P=100 to 3500 step 100          Sound p,d          Next P          Next D          Goto 500