[Contents] [Prev] [Next] [Index] [Report an Error]

# Setting the Baseline for MPLS Statistics

You can use the baseline mpls commands to set a statistics baseline for MPLS operations. The router implements the baseline by setting the statistics to zero and then subtracting this baseline when you retrieve baseline-relative statistics.

Use the delta keyword with the show mpls commands to display baselined statistics.

Tasks to set a baseline for MPLS statistics are:

- Setting a Baseline for MPLS Major Interface Statistics
- Enabling and Setting a Baseline for MPLS Forwarding Table Statistics
- Enabling and Setting a Baseline for MPLS Next-Hop Table Statistics
- Setting a Baseline for MPLS Tunnel Statistics
- Enabling Statistics Collection for Policies Attached to MPLS Tunnels

## Setting a Baseline for MPLS Major Interface Statistics

To set a statistics baseline for MPLS major interfaces:

- Issue the baseline mpls interface command for a specific MPLS major interface.
  `
  host1#baseline mpls interface boston5
  `

There is no no version.

The following statistics are maintained for each MPLS major interface:

receive packets and octets | transmit packets and octets
receive discarded packets | transmit discarded packets
receive error packets | transmit error packets
failed label lookups |

## Enabling and Setting a Baseline for MPLS Forwarding Table Statistics

To enable and set a statistics baseline for MPLS forwarding table entries:

1. Issue the mpls statistics label command to enable the statistics for a specific MPLS in label.
   `
   host1#mpls statistics label 123
   `
2. Issue the baseline mpls label command for a specific MPLS in label.
   `
   host1#baseline mpls label 123
   `

By default, statistics are enabled for incoming labels and RSVP-TE or LDP outgoing labels, but not for others such as BGP outgoing labels. Statistics are not stored in NVS.

When enabled, the following statistics are maintained for each forwarding table entry:

receive packets and octets | receive discarded packets | receive error packets

There is no no version for the baseline mpls label command. However, you can disable the forwarding table statistics.

To disable the statistics for a specific MPLS in label:

- Issue the no mpls statistics label command.
  `
  host1#no mpls statistics label 123
  `

## Enabling and Setting a Baseline for MPLS Next-Hop Table Statistics

To enable and set a statistics baseline for MPLS next-hop table entries:

1. Issue the mpls statistics next-hop command to enable the statistics for a specific MPLS next hop.
   `
   host1#mpls statistics next-hop 1046
   `
2. Issue the baseline mpls next-hop command for a specific MPLS next hop.
   `
   host1#baseline mpls next-hop 1046
   `

By default, statistics are enabled for next hops depending on the protocol that created the MPLS next hop. Statistics are not stored in NVS.

When enabled, the following statistics are maintained for each next-hop table entry:

out packets and bytes | out discarded packets | out error packets

There is no no version for the baseline mpls next-hop command. However, you can disable the next-hop table statistics.

To disable the statistics for a specific MPLS next hop:

- Issue the no mpls statistics next-hop command.
  `
  host1#no mpls statistics next-hop 1046
  `

## Setting a Baseline for MPLS Tunnel Statistics

To set a statistics baseline for MPLS tunnel statistics:

- Issue the baseline mpls tunnel command.
  `
  host1#baseline mpls tunnel tunnel5
  `

There is no no version.

## Enabling Statistics Collection for Policies Attached to MPLS Tunnels

To enable collection of the following statistics for each policy attached to a tunnel:

- Issue the mpls statistics policy command.
  `
  host1#mpls statistics policy tunnel5
  `

Statistics are not stored in NVS. When enabled, the following statistics are maintained for each policy:

packets and bytes | classifier group | EXP bits value

To disable collection of policy statistics for a specific MPLS tunnel:

- Issue the no mpls statistics policy command.
  `
  host1#no mpls statistics policy tunnel5
  `

#### Related Topics

- baseline mpls interface
- baseline mpls label
- baseline mpls next-hop
- baseline mpls tunnel
- mpls statistics label
- mpls statistics next-hop
- mpls statistics policy

[Contents] [Prev] [Next] [Index] [Report an Error]