SmartMIB Small Solution:

TCP Session General Traffic, Retransmissions, and
Response-Time Delay Statistics


(SM-SmallSol0017)

Solution’s SOSL Based management process script:

 

The solution defines the following main module:

 

MainTcpTraffic:

This is the main module that controls and instantiates the ‘TcpTraffic1’ and ‘TcpTraffic2’ modules.

 

 

The details of the main module and the transient service module are provided below:

 


 

MODULE MainTcpTraffic ();

DESCRIPTION " Process";

BEGIN

 

             MODULE-CALL Tcptraffic1();       

 

             POLL-FREQ

            {         

                       MODULE-CALL Tcptraffic2();

                       WAIT (6000);                

            };

END

 


 

MODULE TcpTraffic1 ();

DESCRIPTION "OSPF Interfaces Table Process";

BEGIN

            ALL-DEV BY DEV

            {

                        SET-INDEX TcpConnTable

                                ( tcpConnLocalAddress   [ tcpConnLocalAddress, IP;

                                                                    tcpConnLocalPort, INT;

                                                                    tcpConnRemAddress, IP;

                                                                    tcpConnRemPort, INT ] );

 

                        WITH-INDEX TcpConnTable 

                        {

                                    POLL (   tcpConnState;

                                                ciscoTcpConnInBytes;

                                                ciscoTcpConnOutBytes;

                                                ciscoTcpConnInPkts;

                                                ciscoTcpConnOutPkts;

                                                ciscoTcpConnSRTT;

                                                ciscoTcpConnRetransPkts;

                                                ciscoTcpConnFastRetransPkts ); 

                        };

            };

END

 


 

MODULE TcpTraffic2 ();

DESCRIPTION "tcp traffic2 module";

BEGIN

            ALL-DEV BY DEV

            {

                        SET-INDEX TcpConnTable

                                ( tcpConnState   [ tcpConnLocalAddress, IP;

                                                          tcpConnLocalPort, INT;

                                                          tcpConnRemAddress, IP;

                                                          tcpConnRemPort, INT     ]);

 

                        WITH-INDEX TcpConnTable 

                        {

                                    DEFINE ciscoTcpConnInBytesT1 MAP INT;

                                    DEFINE ciscoTcpConnOutBytesT1 MAP INT;

                                    DEFINE ciscoTcpConnInPktsT1 MAP INT;

                                    DEFINE ciscoTcpConnOutPktsT1 MAP INT;

                                    DEFINE ciscoTcpConnSRTTT1 MAP INT;

                                    DEFINE ciscoTcpConnRetransPktsT1 MAP INT;

                                    DEFINE ciscoTcpConnFastRetransPktsT1 MAP INT;

 

                                    DEFINE tcpConnState DB INT;

                                    DEFINE ciscoTcpConnInBytes DB INT;

                                    DEFINE ciscoTcpConnOutBytes DB INT;

                                    DEFINE ciscoTcpConnInPkts DB INT;

                                    DEFINE ciscoTcpConnOutPkts DB INT;

                                    DEFINE ciscoTcpConnSRTT DB INT;

                                    DEFINE ciscoTcpConnRetransPkts DB INT;

                                    DEFINE ciscoTcpConnFastRetransPkts DB INT;

 

                                    ciscoTcpConnInBytesT1 = ciscoTcpConnInBytes;

                                    ciscoTcpConnOutBytesT1 = ciscoTcpConnOutBytes;

                                    ciscoTcpConnInPktsT1 = ciscoTcpConnInPkts;

                                    ciscoTcpConnOutPktsT1 = ciscoTcpConnOutPkts;

                                    ciscoTcpConnSRTTT1 = ciscoTcpConnSRTT;

                                    ciscoTcpConnRetransPktsT1 = ciscoTcpConnRetransPkts;

                                    ciscoTcpConnFastRetransPktsT1 = ciscoTcpConnFastRetransPkts;

 

                                    #######################################

                                    # Cleaning up the database from the excess transient

                                    # First-Run values:

                                    #######################################

 

                                    RMV  (   ciscoTcpConnInBytes;

                                                ciscoTcpConnOutBytes;

                                                ciscoTcpConnInPkts;

                                                ciscoTcpConnOutPkts;

                                                ciscoTcpConnSRTT;

                                                ciscoTcpConnRetransPkts;

                                                ciscoTcpConnFastRetransPkts );

 

                                    #######################################

                                    # Populating the Database with the Second-Run values:

                                    #######################################

 

                                    POLL (   tcpConnState;

                                                ciscoTcpConnInBytes;

                                                ciscoTcpConnOutBytes;

                                                ciscoTcpConnInPkts;

                                                ciscoTcpConnOutPkts;

                                                ciscoTcpConnSRTT;

                                                ciscoTcpConnRetransPkts;

                                                ciscoTcpConnFastRetransPkts ); 

                                    #######################################

                                    # Defining the Second-Run Variables:

                                    #######################################

 

                                    DEFINE ciscoTcpConnInBytesT2 MAP INT;

                                    DEFINE ciscoTcpConnOutBytesT2 MAP INT;

                                    DEFINE ciscoTcpConnInPktsT2 MAP INT;

                                    DEFINE ciscoTcpConnOutPktsT2 MAP INT;

                                    DEFINE ciscoTcpConnSRTTT2 MAP INT;

                                    DEFINE ciscoTcpConnRetransPktsT2 MAP INT;

                                    DEFINE ciscoTcpConnFastRetransPktsT2 MAP INT;

 

                                    DEFINE ciscoTcpConnInBytes DB INT;

                                    DEFINE ciscoTcpConnOutBytes DB INT;

                                    DEFINE ciscoTcpConnInPkts DB INT;

                                    DEFINE ciscoTcpConnOutPkts DB INT;

                                    DEFINE ciscoTcpConnSRTT DB INT;

                                    DEFINE ciscoTcpConnRetransPkts DB INT;

                                    DEFINE ciscoTcpConnFastRetransPkts DB INT;

 

                                    #######################################

                                    # Populating the Variables with the Second-Run

                                    # values:

                                    #######################################

 

                                    ciscoTcpConnInBytesT2 = ciscoTcpConnInBytes;

                                    ciscoTcpConnOutBytesT2 = ciscoTcpConnOutBytes;

                                    ciscoTcpConnInPktsT2 = ciscoTcpConnInPkts;

                                    ciscoTcpConnOutPktsT2 = ciscoTcpConnOutPkts;

                                    ciscoTcpConnSRTTT2 = ciscoTcpConnSRTT;

                                    ciscoTcpConnRetransPktsT2 = ciscoTcpConnRetransPkts;

                                    ciscoTcpConnFastRetransPktsT2 = ciscoTcpConnFastRetransPkts;

 

                                    CounterData(     DeltaTcpConnInBytes,

                                                            ciscoTcpConnInBytesT1,

                                                            ciscoTcpConnInBytesT2);

 

                                    CounterData(     DeltaTcpConnOutBytes,

                                                            ciscoTcpConnOutBytesT1,

                                                            ciscoTcpConnOutBytesT2);

 

                                    CounterData(     DeltaTcpConnInPkts,

                                                            ciscoTcpConnInPktsT1,

                                                            ciscoTcpConnInPktsT2);

 

                                    CounterData(     DeltaTcpConnInPkts,

                                                            ciscoTcpConnInPktsT1,

                                                            ciscoTcpConnInPktsT2);

 

                                    CounterData(     DeltaTcpConnOutPkts,

                                                            ciscoTcpConnOutPktsT1,

                                                            ciscoTcpConnOutPktsT2);

 

                                    CounterData(     DeltaTcpConnSRTT,

                                                            ciscoTcpConnSRTTT1,

                                                            ciscoTcpConnSRTTT2);

 

                                    CounterData(     DeltaTcpConnRetransPkts,

                                                            ciscoTcpConnRetransPktsT1,

                                                            ciscoTcpConnRetransPktsT2);

                        };

            };

END

 


TCP Session General Traffic Statistics Index Page

Previous Page Page 4/6 Next Page


[Small Solutions], [Professional Solutions], [Security Solutions], [Development Solutions]

[Home], [About], [Solutions Center], [NMS Market], [Products & Services],
[Management Technology], [Technical Support], [Contact us], [Site Map]