This article describes how to interpret sp-* interface statistics.
For a physical interface or logical unit, input statistics refer to statistics of the packets entering the interface, while output statistics refer to statistics of the packets leaving the interface. This behavior is reversed for sp-* interfaces.
In sp-* interfaces, statistics are reported from the PFE`s (ingress/egress) perspective.
The configuration below is used to explain how to understand and interpret sp-* interface statistics.
Configuration
service-set next-hop { next-hop-service { inside-service-interface sp-1/2/0.1; <- Interface to internal network outside-service-interface sp-1/2/0.2; <- Interface to remote network } } lab@white# show interfaces sp-1/2/0 Jun 15 05:34:57 unit 1 { family inet; service-domain inside; } unit 2 { family inet; service-domain outside; }
Explanation & Example
For sp-* logical interfaces, the interface statistics are reported from the ingress and egress PFE`s perspective.
Packets leaving the PFE towards the service-pic`s inside sp-* logical interface are represented as output packets, and the packets leaving the service-pic`s outside sp- logical interface towards the egress PFE are represented as input packets.
Inside interface
- Packets leave the ingress PFE and enter the service PIC for processing.
- Counters are reported from the PFE`s perspective.
lab@white# run show interfaces sp-1/2/0.1 extensive Jun 15 06:04:14 Logical interface sp-1/2/0.1 (Index 72) (SNMP ifIndex 671) (Generation 137) Flags: Point-To-Point SNMP-Traps Encapsulation: Adaptive-Services Traffic statistics: Input bytes : 0 Output bytes : 1408 Input packets: 0 Output packets: 11 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 0 0 bps Output bytes : 1408 0 bps <- Bytes entering Input packets: 0 0 pps Output packets: 11 0 pps <- Packets entering Protocol inet, MTU: 9192, Generation: 146, Route table: 0 Flags: Sendbcast-pkt-to-re, Receive-options, Receive-TTL-Exceeded
Inside interface
- Processed packets leave the service PIC towards the egress PFE.
- Counters are reported from the PFE`s perspective.
lab@white# run show interfaces sp-1/2/0.2 extensive Jun 15 06:04:09 Logical interface sp-1/2/0.2 (Index 73) (SNMP ifIndex 672) (Generation 138) Flags: Point-To-Point SNMP-Traps Encapsulation: Adaptive-Services Traffic statistics: Input bytes : 2024 Output bytes : 0 Input packets: 11 Output packets: 0 Local statistics: Input bytes : 0 Output bytes : 0 Input packets: 0 Output packets: 0 Transit statistics: Input bytes : 2024 0 bps <- Bytes leaving Output bytes : 0 0 bps Input packets: 11 0 pps <- Packets leaving Output packets: 0 0 pps Protocol inet, MTU: 9192, Generation: 147, Route table: 0 Flags: Sendbcast-pkt-to-re, Receive-options, Receive-TTL-Exceeded