<?xml version="1.0"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<?rfc toc="yes"?>

<!--
     ASCII to XML transformation by Invisible Worlds, Inc.
     http://invisible.net/
     Last transformation: 03-Feb-1999, 02:08:02

     Cannonical version of this document is at:
     http://info.internet.isi.edu/in-notes/rfc/files/rfc2012.txt

     Implementors should verify all content with
     cannonical version.  Failure to do so may result in
     protocol failures.
-->

<rfc number="2012"
     category="std"
     updates="1213">
<front>
<title abbrev="TCP MIB">SNMPv2 Management Information Base for the Transmission Control Protocol using SMIv2</title>
<author initials="K." surname="McCloghrie" fullname="Keith McCloghrie">
<organization>Cisco Systems, Inc.</organization>
<address>
<postal>
<street>170 West Tasman Drive</street>
<street>San Jose</street>
<street>CA  95134-1706</street>
<country>US</country>
</postal>
<phone>+1 408 526 5260</phone>
<email>kzm@cisco.com</email>
</address>
</author>
<date month="November" year="1996"/>
<area>Transport</area>
<area>Management</area>
<keyword>TCP</keyword>
<keyword>Management Information Base</keyword>
<keyword>control protocol</keyword>
<keyword>simple network management protocol version 2</keyword>
<keyword>structure of management information version 2</keyword>
<keyword>transmission control protocol</keyword>
<note title="IESG Note">
<t>
   The IP, UDP, and TCP MIB modules currently support only IPv4.  These
   three modules use the IpAddress type defined as an OCTET STRING of
   length 4 to represent the IPv4 32-bit internet addresses.  (See RFC
   1902, SMI for SNMPv2.)  They do not support the new 128-bit IPv6
   internet addresses.
</t>
</note>
</front>
<middle>
<!-- RFC original section: (1.) -->
<section title="Introduction">
<t>
   A management system contains: several (potentially many) nodes, each
   with a processing entity, termed an agent, which has access to
   management instrumentation; at least one management station; and, a
   management protocol, used to convey management information between
   the agents and management stations.  Operations of the protocol are
   carried out under an administrative framework which defines
   authentication, authorization, access control, and privacy policies.
</t>
<t>
   Management stations execute management applications which monitor and
   control managed elements.  Managed elements are devices such as
   hosts, routers, terminal servers, etc., which are monitored and
   controlled via access to their management information.
</t>
<t>
   Management information is viewed as a collection of managed objects,
   residing in a virtual information store, termed the Management
   Information Base (MIB).  Collections of related objects are defined
   in MIB modules.  These modules are written using a subset of OSI&apos;s
   Abstract Syntax Notation One (ASN.1) <xref target="_XREF_1"/>, termed the Structure of
   Management Information (SMI) <xref target="_XREF_2"/>.
</t>
<t>
   This document is the MIB module which defines managed objects for
   managing implementations of the Transmission Control Protocol (TCP)
   <xref target="_XREF_3"/>.
</t>
<t>
   The managed objects in this MIB module were originally defined using
   the SNMPv1 framework as a part of MIB-II <xref target="_XREF_4"/>.  This document defines
   the same objects for TCP using the SNMPv2 framework.
</t>
</section>
<!-- RFC original section: (2.) -->
<section title="Definitions">
<figure><artwork>
TCP-MIB DEFINITIONS ::= BEGIN


IMPORTS
    MODULE-IDENTITY, OBJECT-TYPE, Integer32, Gauge32,
    Counter32, IpAddress, mib-2        FROM SNMPv2-SMI
    MODULE-COMPLIANCE, OBJECT-GROUP    FROM SNMPv2-CONF;


tcpMIB MODULE-IDENTITY
    LAST-UPDATED &quot;9411010000Z&quot;
    ORGANIZATION &quot;IETF SNMPv2 Working Group&quot;
    CONTACT-INFO
            &quot;        Keith McCloghrie


             Postal: Cisco Systems, Inc.
                     170 West Tasman Drive
                     San Jose, CA  95134-1706
                     US


             Phone:  +1 408 526 5260
             Email:  kzm@cisco.com&quot;


    DESCRIPTION
            &quot;The MIB module for managing TCP implementations.&quot;
    REVISION      &quot;9103310000Z&quot;
    DESCRIPTION
            &quot;The initial revision of this MIB module was part of MIB-
            II.&quot;
    ::= { mib-2 49 }


-- the TCP group


tcp      OBJECT IDENTIFIER ::= { mib-2 6 }


tcpRtoAlgorithm OBJECT-TYPE
    SYNTAX      INTEGER {
                    other(1),    -- none of the following
                    constant(2), -- a constant rto
                    rsre(3),     -- MIL-STD-1778, Appendix B
                    vanj(4)      -- Van Jacobson&apos;s algorithm [5]
                }
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The algorithm used to determine the timeout value used for
            retransmitting unacknowledged octets.&quot;
    ::= { tcp 1 }


tcpRtoMin OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       &quot;milliseconds&quot;
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The minimum value permitted by a TCP implementation for the
            retransmission timeout, measured in milliseconds.  More
            refined semantics for objects of this type depend upon the
            algorithm used to determine the retransmission timeout.  In
            particular, when the timeout algorithm is rsre(3), an object
            of this type has the semantics of the LBOUND quantity
            described in RFC 793.&quot;
    ::= { tcp 2 }


tcpRtoMax OBJECT-TYPE
    SYNTAX      Integer32
    UNITS       &quot;milliseconds&quot;
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The maximum value permitted by a TCP implementation for the


            retransmission timeout, measured in milliseconds.  More
            refined semantics for objects of this type depend upon the
            algorithm used to determine the retransmission timeout.  In
            particular, when the timeout algorithm is rsre(3), an object
            of this type has the semantics of the UBOUND quantity
            described in RFC 793.&quot;
    ::= { tcp 3 }


tcpMaxConn OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The limit on the total number of TCP connections the entity
            can support.  In entities where the maximum number of
            connections is dynamic, this object should contain the value
            -1.&quot;
    ::= { tcp 4 }


tcpActiveOpens OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of times TCP connections have made a direct
            transition to the SYN-SENT state from the CLOSED state.&quot;
    ::= { tcp 5 }


tcpPassiveOpens OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of times TCP connections have made a direct
            transition to the SYN-RCVD state from the LISTEN state.&quot;
    ::= { tcp 6 }


tcpAttemptFails OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of times TCP connections have made a direct
            transition to the CLOSED state from either the SYN-SENT
            state or the SYN-RCVD state, plus the number of times TCP
            connections have made a direct transition to the LISTEN
            state from the SYN-RCVD state.&quot;
    ::= { tcp 7 }


tcpEstabResets OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of times TCP connections have made a direct
            transition to the CLOSED state from either the ESTABLISHED
            state or the CLOSE-WAIT state.&quot;
    ::= { tcp 8 }


tcpCurrEstab OBJECT-TYPE
    SYNTAX      Gauge32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of TCP connections for which the current state
            is either ESTABLISHED or CLOSE- WAIT.&quot;
    ::= { tcp 9 }


tcpInSegs OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The total number of segments received, including those
            received in error.  This count includes segments received on
            currently established connections.&quot;
    ::= { tcp 10 }


tcpOutSegs OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The total number of segments sent, including those on
            current connections but excluding those containing only
            retransmitted octets.&quot;
    ::= { tcp 11 }


tcpRetransSegs OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The total number of segments retransmitted - that is, the
            number of TCP segments transmitted containing one or more
            previously transmitted octets.&quot;


    ::= { tcp 12 }


-- the TCP Connection table


-- The TCP connection table contains information about this
-- entity&apos;s existing TCP connections.


tcpConnTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF TcpConnEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            &quot;A table containing TCP connection-specific information.&quot;
    ::= { tcp 13 }


tcpConnEntry OBJECT-TYPE
    SYNTAX      TcpConnEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
            &quot;A conceptual row of the tcpConnTable containing information
            about a particular current TCP connection.  Each row of this
            table is transient, in that it ceases to exist when (or soon
            after) the connection makes the transition to the CLOSED
            state.&quot;
    INDEX   { tcpConnLocalAddress,
              tcpConnLocalPort,
              tcpConnRemAddress,
              tcpConnRemPort }
    ::= { tcpConnTable 1 }


TcpConnEntry ::= SEQUENCE {
        tcpConnState          INTEGER,
        tcpConnLocalAddress   IpAddress,
        tcpConnLocalPort      INTEGER,
        tcpConnRemAddress     IpAddress,
        tcpConnRemPort        INTEGER
    }


tcpConnState OBJECT-TYPE
    SYNTAX      INTEGER {
                    closed(1),
                    listen(2),
                    synSent(3),
                    synReceived(4),
                    established(5),
                    finWait1(6),


                    finWait2(7),
                    closeWait(8),
                    lastAck(9),
                    closing(10),
                    timeWait(11),
                    deleteTCB(12)
                }
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
            &quot;The state of this TCP connection.


            The only value which may be set by a management station is
            deleteTCB(12).  Accordingly, it is appropriate for an agent
            to return a `badValue&apos; response if a management station
            attempts to set this object to any other value.


            If a management station sets this object to the value
            deleteTCB(12), then this has the effect of deleting the TCB
            (as defined in RFC 793) of the corresponding connection on
            the managed node, resulting in immediate termination of the
            connection.


            As an implementation-specific option, a RST segment may be
            sent from the managed node to the other TCP endpoint (note
            however that RST segments are not sent reliably).&quot;
    ::= { tcpConnEntry 1 }


tcpConnLocalAddress OBJECT-TYPE
    SYNTAX      IpAddress
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The local IP address for this TCP connection.  In the case
            of a connection in the listen state which is willing to
            accept connections for any IP interface associated with the
            node, the value 0.0.0.0 is used.&quot;
    ::= { tcpConnEntry 2 }


tcpConnLocalPort OBJECT-TYPE
    SYNTAX      INTEGER (0..65535)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The local port number for this TCP connection.&quot;
    ::= { tcpConnEntry 3 }


tcpConnRemAddress OBJECT-TYPE


    SYNTAX      IpAddress
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The remote IP address for this TCP connection.&quot;
    ::= { tcpConnEntry 4 }


tcpConnRemPort OBJECT-TYPE
    SYNTAX      INTEGER (0..65535)
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The remote port number for this TCP connection.&quot;
    ::= { tcpConnEntry 5 }


tcpInErrs OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The total number of segments received in error (e.g., bad
            TCP checksums).&quot;
    ::= { tcp 14 }


tcpOutRsts OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
            &quot;The number of TCP segments sent containing the RST flag.&quot;
    ::= { tcp 15 }


-- conformance information


tcpMIBConformance OBJECT IDENTIFIER ::= { tcpMIB 2 }


tcpMIBCompliances OBJECT IDENTIFIER ::= { tcpMIBConformance 1 }
tcpMIBGroups      OBJECT IDENTIFIER ::= { tcpMIBConformance 2 }


-- compliance statements


tcpMIBCompliance MODULE-COMPLIANCE
    STATUS  current
    DESCRIPTION
            &quot;The compliance statement for SNMPv2 entities which
            implement TCP.&quot;
    MODULE  -- this module


        MANDATORY-GROUPS { tcpGroup
                           }
    ::= { tcpMIBCompliances 1 }


-- units of conformance


tcpGroup OBJECT-GROUP
    OBJECTS   { tcpRtoAlgorithm, tcpRtoMin, tcpRtoMax,
                tcpMaxConn, tcpActiveOpens,
                tcpPassiveOpens, tcpAttemptFails,
                tcpEstabResets, tcpCurrEstab, tcpInSegs,
                tcpOutSegs, tcpRetransSegs, tcpConnState,
                tcpConnLocalAddress, tcpConnLocalPort,
                tcpConnRemAddress, tcpConnRemPort,
                tcpInErrs, tcpOutRsts }
    STATUS    current
    DESCRIPTION
            &quot;The tcp group of objects providing for management of TCP
            entities.&quot;
    ::= { tcpMIBGroups 1 }


END
</artwork></figure>
</section>
<!-- RFC original section: (3.) -->
<section title="Acknowledgements">
<t>
   This document contains a modified subset of RFC 1213.
</t>
</section>
<!-- RFC original section: (4.) -->
<section title="References (BOILERPLATE)">
<t>
This RFC contained boilerplate in this section which has been moved
to the RFC2223-compliant unnumbered section &quot;References.&quot;
</t>
</section>
<!-- RFC original section: (5.) -->
<section title="Security Considerations">
<t>
   Security issues are not discussed in this memo.
</t>
</section>
<!-- RFC original section: (6.) -->
<section title="Editor&apos;s Address (BOILERPLATE)">
<t>
This RFC contained boilerplate in this section which has been moved
to the RFC2223-compliant unnumbered section &quot;Author&apos;s Address.&quot;
</t>
</section>
</middle>
<back>
<!-- BEGIN INCLUDE REFERENCES ** DO NOT REMOVE -->
<references>
<reference anchor="_XREF_1">
<front>
<title abbrev="Information processing systems - Open Systems">Information processing systems - Open Systems Interconnection -Specification of Abstract Syntax Notation One (ASN.1), International Organization for Standardization.  International Standard 8824</title>
<author>
<organization/>
</author>
<date month="December" year="1987"/>
</front>
</reference>
<reference anchor="_XREF_2">
<front>
<title abbrev="Structure of Management Information">Structure of Management Information for version 2 of the Simple Network Management Protocol (SNMPv2,  Cisco Systems</title>
<author initials="K." surname="McCloghrie" fullname="K. McCloghrie">
<organization/>
</author>
<date month="January" year="1996"/>
</front>
<seriesInfo>RFC 1902</seriesInfo>
</reference>
<reference anchor="_XREF_3">
<front>
<title abbrev="Transmission Control Protocol - DARPA">Transmission Control Protocol - DARPA Internet Program Protocol Specification,  DARPA</title>
<author initials="J." surname="Postel" fullname="J. Postel">
<organization/>
</author>
<date month="September" year="1981"/>
</front>
<seriesInfo>STD 7</seriesInfo>
<seriesInfo>RFC 793</seriesInfo>
</reference>
<reference anchor="_XREF_4">
<front>
<title abbrev="Management Information Base for Network">Management Information Base for Network Management of TCP/IP-based internets: MIB-II</title>
<author initials="K." surname="McCloghrie" fullname="K. McCloghrie">
<organization/>
</author>
<author initials="M." surname="Rose" fullname="M. Rose">
<organization/>
</author>
<date month="March" year="1991"/>
</front>
<seriesInfo>STD 17</seriesInfo>
<seriesInfo>RFC 1213</seriesInfo>
</reference>
<reference anchor="_XREF_5">
<front>
<title abbrev="Congestion Avoidance and Control">Congestion Avoidance and Control,  SIGCOMM Stanford, California</title>
<author initials="V." surname="Jacobson" fullname="V. Jacobson">
<organization/>
</author>
<date month="" year="1988"/>
</front>
</reference>
</references>
<!-- END INCLUDE REFERENCES ** DO NOT REMOVE -->
</back>
</rfc>
