# Monitoring ANCP

You can display ANCP information with the following commands.

show adjustment-factor

- Use to display the configured values for the adjustment factor applied to the upstream data rate and downstream data rate reported by ANCP for each DSL type. The adjustment factor is used to generate an accurate QoS shaping rate.
- Field descriptions
  - L2C QoS Adjustment Rates—List of all DSL types and the corresponding adjustment factor for each
  - ADSL1—Adjustment factor for the ADSL1 DSL type
  - ADSL2—Adjustment factor for the ADSL2 DSL type
  - ADSL2+—Adjustment factor for the ADSL2+ DSL type
  - VDSL—Adjustment factor for the VDSL DSL type
  - VDSL2—Adjustment factor for the VDSL2 DSL type
  - SDS—Adjustment factor for the SDS DSL type
- Example 1—Displays the adjustment factor for each DSL type

      host1#show adjustment-factor
        L2C QoS Adjustment Rates:
        ADSL1:  45
        ADSL2:  55
        ADSL2+: 100
        VDSL:   100
        VDSL2:  55
        SDS:    100

- Example 2—Displays the adjustment factor for a specific DSL type verification criteria

      host1#show adjustment-factor vdsl2
        VDSL2:11

- See show adjustment-factor.

show l2c

- Use to display information about the ANCP configuration on the router.
- Field descriptions
  - Current timeout—Configured session timeout (in seconds)
  - Qos adaptive mode—Whether QoS adaptive mode is enabled (true) or disabled (false)
  - Wait-for-gsmp-syn—Whether learning is enabled or disabled
  - gsmp-syn-timeout—Configured TCP session timeout (in seconds)
- Example

      host1#show l2c
      L2C:
        Current session timeout: 25 seconds
        Qos adaptive mode: false
        Wait-for-gsmp-syn: Enable
        gsmp-syn-timeout: 18 seconds

show l2c discovery-table

- Use to display ANCP discovery table entries.
- Use the optional delta keyword to display baseline statistics.
- Field descriptions
  - Neighbor—Neighbor name
  - Access-Loop-Id—Access loop identifier
  - Down/Upstream (kbps)—Downstream and upstream rates, in Kbps
  - State—State of the access loop, UP or DOWN
  - Actual-Data-Rate-Upstream—Actual upstream data rate, in Kbps
  - Actual-Data-Rate-Downstream—Actual downstream data rate, in Kbps
  - Attainable-Data-Rate-Upstream—Attainable upstream data rate for this line, in Kbps
  - Attainable-Data-Rate-Downstream—Attainable downstream data rate for this line, in Kbps
  - Line-State—State of the access loop (SHOWTIME or IDLE)
  - Dsl-Type—Type of DSL
  - Total Line Attributes—Total number of line attributes reported
- Example 1

      host1# show l2c discovery-table brief
         Neighbor             Access-Loop-Id         Down/UpStream(kbps) State
      --------------- ------------------------------ ------------------- -----
      ACCESSNODE_10   Accessnode_10 atm 2/2:0.0      8064/1184           UP
      ACCESSNODE_10   Accessnode_10 atm 2/32:0.0     8064/1184           UP
      ACCESSNODE_10   Accessnode_10 atm 2/33:0.0     8064/1184           DOWN
      ACCESSNODE_10   Accessnode_10 atm 2/34:0.0     8064/1184           DOWN

- Example 2—Topology discovery table for a particular end-user-id

      host1#
      show l2c discovery-table end-user-id "Accessnode_10 atm 2/3:0.0"Access-Loop-Id: Dslam_10 atm 2/3:0.0     UP
        Neighbor: ACCESSNODE_10
        Actual-Data-Rate-Upstream: 1152(kbps)
        Actual-Data-Rate-Downstream: 8064(kbps)
        Attainable-Data-Rate-Upstream: 1176(kbps)
        Attainable-Data-Rate-Downstream: 9376(kbps)
        Line-State: 1(SHOWTIME)
        Dsl-Type: 0(Invalid transmission type)
        Total Line Attributes: 6

- Example 3—Topology discovery table for a particular neighbor

      host1# show l2c discovery-table neighbor "Accessnode_10"
      Access-Loop-Id: Dslam_10 atm 10/5:0.0    DOWN
        Neighbor: DSLAM_10
        Line-State: 2(IDLE)
        Dsl-Type: 0(Invalid transmission type)
        Total Line Attributes: 2
      Access-Loop-Id: Dslam_10 atm 10/6:0.0    DOWN
        Neighbor: DSLAM_10
        Line-State: 2(IDLE)
        Dsl-Type: 0(Invalid transmission type)
        Total Line Attributes: 2
      Access-Loop-Id: Dslam_10 atm 10/7:0.0    DOWN
        Neighbor: DSLAM_10
        Line-State: 2(IDLE)
        Dsl-Type: 0(Invalid transmission type)
        Total Line Attributes: 2
      Access-Loop-Id: Dslam_10 atm 2/0:0.0     UP
        Neighbor: DSLAM_10
        Actual-Data-Rate-Upstream: 1184(kbps)
        Actual-Data-Rate-Downstream: 8064(kbps)
        Attainable-Data-Rate-Upstream: 1184(kbps)
        Attainable-Data-Rate-Downstream: 9408(kbps)
        Line-State: 1(SHOWTIME)
        Dsl-Type: 0(Invalid transmission type)
        Total Line Attributes: 6

- See show l2c discovery-table.

show l2c label

- Use to display information about known ANCP labels on the router.
- Use the neighbor-input keyword to display labels for input ports.
- Use the neighbor-output keyword to display labels for output ports.
- Use the brief keyword to show limited information.
- Field descriptions
  - Interface—Interface on which ANCP is configured
  - End-User-Id—Output label associated with the interface
  - Neighbor—Neighbor associated with the interface
  - Max-Branches—Maximum number of branches to which the ANCP interface can subscribe
  - Peer-Attach-Id—Input label associated with the interface
- Example 1

      host1# show l2c label
      Interface: ATM2/0.300
        End-User-Id: Accessnode_10 atm2/2:0.0
        Neighbor: accessnode _1002
        Max-Branches: 5
      Interface: ATM2/0.301
        End-User-Id: Accessnode_10 atm2/3:0.0
        Neighbor: accessnode_1002
        Max-Branches: 5
      Interface: ATM2/0.302
        End-User-Id: Accessnode_10 atm2/4:0.0
        Neighbor: accessnode _1002
        Max-Branches: 5
      Interface: ATM2/0.303
        End-User-Id: Accessnode_10 atm2/5:0.0
        Neighbor: accessnode _1004
        Max-Branches: 5
      Interface: ATM2/0.304
        End-User-Id: Accessnode_10 atm2/6:0.0
        Neighbor: accessnode _1004
        Max-Branches: 5

- Example 2

      host1# show l2c label brief
              Interface                          End-User-Id                        Neighbor
      -------------------------         -------------------------                  ----------------
      ATM4/0.300                         Accessnode_10 atm2/2:0.0                  accessnode_1002
      ATM4/0.301                         Accessnode_10 atm2/3:0.0                  accessnode_1002
      ATM4/0.302                         Accessnode_10 atm2/4:0.0                  accessnode_1002
      ATM4/0.303                         Accessnode_10 atm2/5:0.0                  accessnode_1004
      ATM4/0.304                         Accessnode_10 atm2/6:0.0                  accessnode_1004
      Interface                        Peer-Attach-Id
      -------------------------    -------------------------
      ATM4/0.11                    Accessnode_10 atm3/2:0.10
      ATM4/0.12                    Accessnode_10 atm3/3:0.10
      ATM4/0.13                    Accessnode_10 atm3/4:0.10
      ATM4/0.14                    Accessnode_10 atm3/5:0.10

- Example 3

      host1# show l2c label neighbor-input brief
              Interface                Peer-Attach-Id
      -------------------------    -------------------------
      ATM4/0.11                    Accessnode_10 atm3/2:0.10
      ATM4/0.12                    Accessnode_10 atm3/3:0.10
      ATM4/0.13                    Accessnode_10 atm3/4:0.10
      ATM4/0.14                    Accessnode_10 atm3/5:0.10

- See show l2c label.

show l2c neighbor

- Use to display information about all known ANCP neighbors or specified ANCP neighbors on the router along with their configurations.
- Use the brief keyword to display limited information.
- Use the summary keyword to display the number of active neighbors.
- Field descriptions
  - Neighbor Name—Name associated with the neighbor
  - Neighbor Id—ID associated with the neighbor
  - Maximum Branches—Maximum number of branches this neighbor can have
  - Topology Discovery—Whether topology discovery is enabled (true) or disabled (false)
  - Maximum Discovery Entries—Maximum number of discovery table entries allowed
  - Ip address—IP address of the neighbor
  - TCP port—TCP port associated with this neighbor
  - Connection Time—Date and time at which this neighbor was connected
  - Add Branches Sent—Number of add branch messages sent to this neighbor
  - Delete Branches Sent—Number of delete branch messages sent to this neighbor
  - Line-configurations—Number of line configurations sent to this neighbor
  - OAM Loopback Requests Sent—Number of OAM loopback requests sent to this neighbor
  - OAM Loopback Responses Received—Number of OAM loopback responses received from this neighbor
  - Protocol State—Protocol state of this neighbor
  - Number of configured neighbors—Number of configured ANCP neighbors
  - Number of Neighbors in GSMP_ESTAB state—Number of ANCP neighbors that are in an established GSMP state
  - Number of neighbors in GSMP_EMPTY state—Number of ANCP neighbors that are in an unestablished GSMP state
- Example 1

      host1#show l2c neighbor name accessnode_1002
      Neighbor Name: accessnode_1002
        Neighbor Id: 0abc.0abc.1002
        Maximum Branches: 10
        Topology Discovery: true
        Maximum  Discovery Entries: 10000
        Ip address: 1.1.1.2
        TCP port: 1025
        Connection Time: 03/02/2006 11:06:16
        Add Branches Sent: 0
        Delete Branches Sent: 0
        Line-configurations: 0
        OAM Loopback Requests Sent: 0
        OAM Loopback Responses Received: 0
        Protocol State: GSMP_ESTAB

- Example 2

      host1#show l2c neighbor brief
              Name           Mac Address     Remote Address   Protocol State
      -------------------- ---------------- ---------------- ----------------
      accessnode1          0abc.0abc.0abc   null             EMPTY

- Example 3

      host1(config)#show l2c neighbor summary
      L2C:
        Number of configured Neighbors: 1
        Number of Neighbors in GSMP_ESTAB state: 1
        Number of neighbors in GSMP_EMPTY state: 0

- See show l2c neighbor.

show l2c statistics

- Use to display information about the ANCP statistics.
- Field descriptions
  - Current session timeout—Configured session timeout (in seconds)
  - Discovery—State of topology discovery (Enabled or Disabled)
  - Number of configured routers—Number of ANCP configured routers
  - Number of neighbors—Number of ANCP neighbors
  - Number of active neighbors—Number of active ANCP neighbors
  - Number of end-user-ids—Number of ANCP end user IDs (output labels)
  - Number of peer-attachment-ids—Number of ANCP peer attachment IDs (input labels)
  - Number of add-branches—Number of ANCP branches added
  - Number of delete-branches—Number of ANCP branches deleted
- Example

      host1#show l2c statistics
      L2C:
      Current session timeout: 25 seconds
        Discovery: Enabled
        Number of configured routers: 1
        Number of neigbhors: 5
        Number of active neighbors: 1
        Number of end-user-ids: 25
        Number of peer-attachment-ids: 39
        Number of add-branches: 0
        Number of delete-branches: 0

- See show l2c statistics.