LDP traffic statistics show the volume of traffic that has passed through a particular FEC on a router.
When you configure the traffic-statistics statement at the [edit protocols ldp] hierarchy level, the LDP traffic statistics are gathered periodically and written to a file. You can configure how often statistics are collected (in seconds) by using the interval option. The default collection interval is 5 minutes. You must configure an LDP statistics file; otherwise LDP traffic statistics are not gathered. If the LSP goes down, the LDP statistics are reset.
To collect LDP traffic statistics, include the traffic-statistics statement:
-
traffic-statistics {
- file filename <files number>
<replace> <size size>
- <world-readable | no-world-readable>;
- interval interval;
- no-penultimate-hop;
- }
For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.
This section includes the following topics: