Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    show ppp statistics

    Syntax

    show ppp statistics<detail><memory><recovery>

    Release Information

    Command introduced in Junos OS Release 7.5.

    Description

    Display PPP interface statistics information.

    Options

    detail
    —

    (Optional) Display the detailed statistics.

    memory
    —

    (Optional) Display PPP process memory statistics.

    recovery
    —

    (Optional) Display recovery state of PPP after a GRES or restart. It is safe to force another GRES or restart only when the recovery state indicates the recovery is done.

    Note: When you issue this command option during the recovery process, the command may time out or fail silently rather than display output. Recovery is not complete until the command displays Recovery state: recovery done.

    Required Privilege Level

    view

    List of Sample Output

    show ppp statistics
    show ppp statistics detail
    show ppp statistics recovery (Safe to Restart)
    show ppp statistics recovery (Unsafe to Restart)

    Output Fields

    Table 1 lists the output fields for the show ppp statistics command. Output fields are listed in the approximate order in which they appear.

    Table 1: show ppp statistics Output Fields

    Field Name

    Field Description

    Level of Output

    Total sessions

    Number of PPP sessions on an interface.

    none detail

    Sessions in disabled phase

    Number of PPP sessions disabled. Number of sessions where the link is either administratively or physically down. Once the PPP process learns from the kernel that Layer 2 is ready to send and receive traffic, it will do a phase transition from disabled to established. When LCP and NCP transitions through states, links transition to the establish phase when terminate packets are exchanged or some other failure, such as authentication or expiration of a timer occurs.

    none detail

    Sessions in establish phase

    Number of PPP sessions in establish phase. In order to establish communications over a point-to-point link, each end of the PPP link must first send LCP packets to configure and test the data link.

    none detail

    Sessions in authenticate phase

    Number of PPP sessions in authenticate phase. Each end of the PPP link must first send LCP packets to configure the data link during the link establishment phase. After the link has been established, PPP provides for an optional authentication phase before proceeding to the Network-Layer Protocol (NLP) phase.

    none detail

    Sessions in network phase

    Number of PPP sessions in the network phase. After a link has been established and optional facilities have been negotiated as needed by the LCP, PPP must send Network Control Protocol (NCP) packets to choose and configure one or more network-layer protocols, such as IP, IPX, or AppleTalk. Once each of the chosen network-layer protocols has been configured, datagrams from each network-layer protocol can be sent over the link.

    none detail

    Bundles in pending phase

    Number of unique bundles to which PPP links are referring.

    none detail

    Type

    Type of structure for which memory is allocated.

    • Queued rtsock msgs—Queued route socket messages. When a PPP process is unable to send a route socket message to the kernel (typically because of congestion of the route socket interface), the message is queued for deferred processing.
    • PPP session—Active PPP session. Stores all the information for a PPP session, such as authentication, sequence number, LCP session, and NCP session information.
    • Interface address—Interface address associated with a PPP connection. Stores the information about the interface address that PPP obtains from the kernel.
    • Destination profile—Stores the destination profile information associated with an interface address.
    • ML link settings—Stores information about an MLPPP link, such as the bundle name and compressed real-time transport protocol (CRTP) settings.
    • IPCP blocked address—When addresses are blocked in an address pool (for example, when the interface address is within the range of an address pool, it will be implicitly blocked), this structure is used to store the address in the pool.
    • PPP session trace—A PPP session trace is allocated for record keeping for each session listed at the [set protocols ppp monitor-session] hierarchy level.
    • IFL redundancy state—Stores redundancy state information needed for high availability (HA) operation.
    • Protocol family—Stores the information about the protocol family that PPP obtains from the kernel.

    detail

    Type (continued)

    • ML bundle settings—Multilink bundle settings. Stores the context information for a MLPPP bundle.
    • PPP LCP session—PPP Link Control Protocol session, used for establishing, configuring, and testing the data-link connection. Stores the information for an LCP session, such as negotiated options, current state, and statistics.
    • PPP NCP session—PPP Network Control Protocol (NCP) phase in the PPP link connection process. Stores the information for an NCP session, such as negotiated options, current state, address family, and statistics.
    • Physical interface—Stores the information about the physical interface that PPP obtains from the kernel.
    • Access profile—Stores the information found at the [edit access profile] hierarchy level for each profile.
    • ML wait entry—Created when there are MLPPP links joining a bundle. before its addition to the PPP process. Links are saved here, and when the bundle is added, are properly assigned to the bundle.
    • Group profile—Stores information set in the PPP stanza of a group profile, such as the primary and secondary Domain Name System (DNS), primary and secondary NDNS, and address pool name.
    • Profile client—Stores the per-client information of the access profile (information obtained from the [set access profile name client client-name] hierarchy level.
    • PPP Auth session—PPP authentication session. Stores all the session-specific authentication protocol parameters.
    • Logical interface—Stores the information about the logical interface that PPP obtains from the kernel.
    • Non-tagged—Generic catch-all for allocations not of a particular structure type.

    detail

    Type

    If you specify the memory keyword, the following memory statistics are displayed for Ethernet interfaces on M120 and M320 routers.

    • authenticate—Stores information common to all PPP authentication protocols.
    • linkInterface—Stores information about PPP link interfaces.
    • pap—Stores information about PPP PAP authentication protocol. Includes authenticator and authenticate state machines.
    • lcp—PPP Link Control Protocol session. Used for establishing, configuring and testing the data-link connection. Stores information for LCP session, such as negotiated options, state, and statistics.
    • chap—Stores information about PPP CHAP authentication protocol. Includes authenticator and authenticate state machines.
    • eapBuffer—Stores runtime authentication information for EAP.
    • eap—Stores information about PPP EAP authentication protocol. Includes authenticator and authenticate state machines.
    • authNone—Stores information about no PPP authentication. Includes the authenticator state machine.
    • networkInterface—Stores information about NCP portions of PPP protocol.
    • ipNcp—PPP IPCP session information. Used for configuring, negotiating, and establishing IPCP protocol. Stores the current state, and configured and negotiated options.
    • ipv6Ncp—PPP IPv6CP session information. Used for configuring, negotiating, and establishing IPv6CP protocol. Stores the current state, and configured and negotiated options.
    • osiNcp—PPP OSICP session information. Used for configuring, negotiating, and establishing OSICP protocol. Stores the current state, and configured and negotiated options.
    • mplsNcp—PPP MPLSCP session information. Used for configuring, negotiating, and establishing MPLSCP protocol. Stores the current state.
    • trace—Stores information for PPP debugging.

    memory

    Total

    Total memory allocations.

    detail

    Size

    Size of the structure.

    detail

    Active

    Number of instances of the structure that are used.

    detail

    Free

    Number of instances of the structure that are on the free list. Types with a number in the Free column are pooled structures, and are typically types that are often used.

    detail

    Limit

    Maximum number of instances that can be on the free list. Types with a number in the Limit column are pooled structures, and are typically types that are often used.

    detail

    Total size

    Total amount of memory being used by a type of structure (includes active and free instances).

    detail

    Requests

    Number of allocation requests made by a type of structure.

    detail

    Failures

    Number of failed allocations.

    detail

    Recovery state

    State of PPP recovery after a GRES or restart:

    • recovery done—All sessions have recovered; it is safe to force another GRES or restart.
    • recovery cleanup pending—Not all PPP sessions have recovered; it is not safe to force another GRES or restart.

    none

    Subscriber sessions pending retention

    Number of PPP subscriber sessions that are in the process of being recovered.

    none

    Subscriber sessions recovered OK

    Number of PPP subscriber sessions that have recovered after a GRES or restart.

    none

    Subscriber sessions recovery failed

    Number of PPP subscriber sessions that have failed to recover after a GRES or restart.

    none

    Sample Output

    show ppp statistics

    user@host> show ppp statistics
    Session statistics from PPP process
      Total sessions: 0 
        Sessions in disabled phase    : 0
        Sessions in establish phase   : 0
        Sessions in authenticate phase: 0 
        Sessions in network phase     : 0
        Bundles in pending phase      : 0
    
    Session statistics from PPP universal edge process
      Total subscriber sessions: 32 
        Subscriber sessions in disabled phase    : 32
        Subscriber sessions in establish phase   : 0
        Subscriber sessions in authenticate phase: 0 
        Subscriber sessions in network phase     : 0

    show ppp statistics detail

    user@host> show ppp statistics detail
    Session statistics from PPP process
      Total sessions: 0 
        Sessions in disabled phase    : 0
        Sessions in establish phase   : 0
        Sessions in authenticate phase: 0 
        Sessions in network phase     : 0
        Bundles in pending phase      : 0
    Type                   Size  Active  Free  Limit  Total size  Requests Failures
    Queued rtsock msgs       28      0      0  65535           0         0
    PPP session              60      0                         0         0
    Interface address        64      0      0  65535           0         0
    Destination profile      65      0                         0         0
    ML link settings         68      0                         0         0
    IPCP blocked address     68      0                         0         0
    PPP session trace        76      0                         0         0
    IFL redundancy state     76      0                         0         0
    Protocol family          84      0      0  65535           0         0
    ML bundle settings      108      0                         0         0
    PPP LCP session         120      0                         0         0
    PPP NCP session         124      0                         0         0
    Physical interface      124    170      0  65535       21080       170
    Access profile          132      0                         0         0
    ML wait entry           144      0      0     20           0         0
    Group profile           164      0                         0         0
    Profile client          272      0                         0         0
    PPP Auth session        356      0                         0         0
    Logical interface       524      0      0  65535           0         0
    Non-tagged                                                 8         2
    Total                                                  21088       172       0
    
    Session statistics from PPP universal edge process
      Total subscriber sessions: 32 
        Subscriber sessions in disabled phase    : 32
        Subscriber sessions in establish phase   : 0
        Subscriber sessions in authenticate phase: 0 
        Subscriber sessions in network phase     : 0
    Type                   Size  Active  Free  Limit  Total size Requests Failures
    authenticate            224       1    99  16384         224        0        0
    linkInterface           152       1    99  16384         152        0        0
    pap                     256       1    99  16384         256        0        0
    lcp                     272       1    99  16384         272        0        0
    chap                    284       0     0  16384           0        0        0
    eapBuffer              1464       0     0  16384           0        0        0
    eap                     276       0     0  16384           0        0        0
    authNone
    networkInterface        220       1    99  16384         220        0        0
    ipNcp                   256       1    99  16384         256        0        0
    ipv6Ncp                 204       0     0  16384           0        0        0
    osiNcp                  192       0     0  16384           0        0        0
    mplsNcp                 188       0     0  16384           0        0        0
    trace                  2052       0    16     16           0        0        0
    Total                                                   1380        0        0
    

    show ppp statistics recovery (Safe to Restart)

    user@host> show ppp statistics recovery
    Recovery statistics from PPP universal edge process
      Recovery state: recovery done
        Subscriber sessions recovered OK      : 32001
        Subscriber sessions recovery failed   : 0

    show ppp statistics recovery (Unsafe to Restart)

    user@host> show ppp statistics recovery
    Recovery statistics from PPP universal edge process
      Recovery state: recovery cleanup pending
        Subscriber sessions pending retention : 32001
        Subscriber sessions recovered OK      : 0
        Subscriber sessions recovery failed   : 0

    Published: 2013-03-14