MGCP-MIB-QUALITY DEFINITIONS ::= BEGIN

IMPORTS
     MODULE-IDENTITY, 
    OBJECT-TYPE, 
    Integer32, 
    Counter32, 
    IpAddress, 
    NOTIFICATION-TYPE
		FROM SNMPv2-SMI
    TimeStamp,
    TruthValue,
    DisplayString 	
                FROM SNMPv2-TC
    xgcpObjects
		FROM MGCP-MIB-SMI;

xgcpMGCQualityTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF xgcpMGCQualityEntry
    MAX-ACCESS  not-accessible
    STATUS	current
    DESCRIPTION
	"This table contains the voice quality of a given Gateway
	application.  It is indexed by the applTable index from
	mibII.27"
    ::= { xgcpObjects 4 }

xgcpMGCQualityEntry OBJECT-TYPE
    SYNTAX	xgcpMGCQualityEntry
    MAX-ACCESS	not-accessible
    STATUS	current
    DESCRIPTION
	"The row of the xgcpMGCQualityTable contains information about
	a single MGCP application."
    INDEX  { applIndex }
    ::= { xgcpMGCQualityTable 1 }

xgcpMGCQualityEntry ::= SEQUENCE {
		    xgcpLowerBoundForPacketLoss		Integer32,
		    xgcpHigherBoundForPacketLoss	Integer32,
		    xgcpLowerBoundForJitter		Integer32,
		    xgcpHigherBoundForJitter		Integer32,
		    xgcpLowerBoundForLatency		Integer32,
		    xgcpHigherBoundForLatency		Integer32
		}

xgcpLowerBoundForPacketLoss  OBJECT-TYPE
    SYNTAX      Integer32 (1..3000)
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"This object specifies the lower bound for voice
         quality packet loss per 100,000 packets. Voice quality 
         packet loss may happen due to network congestion or due
         to network overload.

         When packet loss(number of packet per 100,000) is high 
         enough to reach lower bound(e.g. 1500) and then higher 
         bound(e.g. 2500) the first time, a MGCP/SGCP Notify 
         message is sent to the Media Gateway Controller. 
   
         Subsequent hits of the higher bound results in a 
         MGCP/SGCP Notify message being sent to the Media Gateway 
         Controller only after the lower bound is hit.


           |                Ntfy 
           |    Ntfy  Ntfy   |        Ntfy
           |     |     |     v         |
           |     v     v      *   *    v
           +     * *   *     * * * *   *     <---  higher bound
           |    *   * * *  *    *   * * *
           +   *     *   *           *   *   <---- lower bound
           |  *                           *
           | *                             * 
           |*
           +------------------------------------ 

	 The default value of this object is 1000.
        "
    ::= { xgcpMGCQualityTable 2 }  

xgcpHigherBoundForPacketLoss  OBJECT-TYPE
    SYNTAX      Integer32 (5000..25000)
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"This object specifies the higher bound for voice quality 
         packet loss per 100,000 packets. Voice quality packet loss 
         may happen due to network congestion or due to network 
         overload.

	 The default value of this object is 10,000.
        "
    ::= { xgcpMGCQualityTable 3 }  

xgcpLowerBoundForJitter  OBJECT-TYPE
    SYNTAX      Integer32 (4..60)
    UNITS       "milliseconds"
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is the lower bound for Quality Alert for 
         Jitter.

         Jitter is an estimate of the statistical variance of the RTP 
         data packet interval-rival time measured in milliseconds and 
         expressed as an unsigned integer.

         When jitter(milliseconds) is long enough to reach lower 
         bound(e.g.30 ) and then higher bound(e.g. 150) the first 
         time, a MGCP/SGCP Notify message is sent to the Media 
         Gateway Controller. 
   
         Subsequent hits of the higher bound results in a 
         MGCP/SGCP Notify message being sent to the Media Gateway 
         Controller only after the lower bound is hit.

	 The default value of this object is 30.
        "
    ::= { xgcpMGCQualityTable 4 }  

xgcpHigherBoundForJitter  OBJECT-TYPE
    SYNTAX      Integer32 (100..200)
    UNITS       "milliseconds"
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is the higher bound for Quality Alert for 
         Jitter.

         Jitter is an estimate of the statistical variance of the RTP 
         data packet interval-rival time measured in milliseconds and 
         expressed as an unsigned integer.

	 The default value of this object is 150.
        "
    ::= { xgcpMGCQualityTable 5 }  


xgcpLowerBoundForLatency  OBJECT-TYPE
    SYNTAX      Integer32 (125..200)
    UNITS       "milliseconds"
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is the higher bound for Quality Alert for 
	 latency.  

	 QA latency is an estimate of the network delay, expressed 
         in milliseconds. This is the average value of the difference 
         between the Network Time Protocol (NTP) timestamp indicated 
         by the senders of the RTCP messages and the NTP timestamp 
         of the receivers, measured when these messages are received. 

         When latency (milliseconds) is long enough to reach lower 
         bound (e.g.150 ) and then higher bound(e.g. 300) the first 
         time, a MGCP/SGCP Notify message is sent to the Media 
         Gateway Controller. 
   
         Subsequent hits of the higher bound results in a 
         MGCP/SGCP Notify message being sent to the Media Gateway 
         Controller only after the lower bound is hit.

	 The default value of this object is 150.
        "
    ::= { xgcpMGCQualityTable 6 }  


xgcpHigherBoundForLatency  OBJECT-TYPE
    SYNTAX      Integer32 (250..400)
    UNITS       "milliseconds"
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
        "This object is the higher bound for Quality Alert for 
	 latency.  

	 QA latency is an estimate of the network delay, expressed 
         in milliseconds. This is the average value of the difference 
         between the NTP timestamp indicated by the senders of the 
	 RTCP messages and the NTP timestamp of the receivers, 
         measured when these messages are received. 


	 The default value of this object is 300.
        "
    ::= { xgcpMGCQualityTable 7 }  

END
