display bfd statistics session

Function

The display bfd statistics session command displays statistics about BFD sessions.

Format

display bfd statistics session all [ for-ip | for-lsp | for-te | for-pw | for-vsi-pw ]

display bfd statistics session static [ for-ip | for-lsp | for-te | for-pw | for-vsi-pw ]

display bfd statistics session dynamic

display bfd statistics session discriminator discr-value

display bfd statistics session peer-ip { peer-ip [ vpn-instance vpn-instance-name ] | default-ip }

display bfd statistics session static-auto

display bfd statistics session ldp-lsp peer-ip peer-ip [ nexthop nexthop-ip [ interface { interface-name | interface-type interface-number } ] ]

display bfd statistics session mpls-te interface { interface-type interface-number | interface-name } [ te-lsp ]

display bfd statistics session peer-ipv6 peer-ipv6 [ vpn-instance vpn-instance-name ]

display bfd statistics session all for-ipv6

display bfd statistics session static for-ipv6

display bfd statistics session pw interface { interface-name | interface-type interface-number } [ secondary ]

display bfd statistics session vsi-pw vsi vsi-name peer peer-ip [ vc-id vc-id ]

display bfd statistics session bgp-tunnel peer-ip peer-ip

display bfd statistics session sr-be-tunnel peer-ip peer-ip

display bfd statistics session { segment-list | srv6-segment-list } segment-list-id

display bfd statistics session flex-algo-tunnel peer-ip peer-ip

Parameters

Parameter Description Value
for-ip

Displays statistics about the BFD sessions for monitoring IP links.

-

for-lsp

Displays statistics about the BFD sessions for monitoring LDP LSPs.

-

for-te

Displays statistics about the BFD sessions for monitoring TE tunnels.

-

for-pw

Displays statistics about the BFD sessions for monitoring PWs.

-

for-vsi-pw

Displays statistics about the BFD sessions for monitoring VSI PWs.

-

all

Displays statistics about all BFD sessions.

-

static

Displays statistics about static BFD sessions.

-

dynamic

Displays statistics about dynamic and statically self-negotiated BFD sessions.

-

discriminator discr-value

Displays statistics about the BFD sessions with a specified local discriminator.

The value is an integer ranging from 1 to 4294967295.

peer-ip peer-ip

Displays statistics about the BFD sessions bound to a specified peer IP address.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Displays statistics about the BFD sessions bound to a specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters, which do not contain spaces. The VPN instance name cannot be _public_. The character string can contain spaces if it is enclosed with double quotation marks (").

default-ip

Displays statistics about the BFD session about a multicast address.

-

static-auto

Displays statistics about the static BFD sessions with automatically negotiated discriminators.

-

ldp-lsp

Displays statistics about the BFD sessions for monitoring LDP LSPs.

-

nexthop nexthop-ip

Displays statistics about the BFD sessions with a specified next hop IP address.

The value is in dotted decimal notation.

interface interface-type interface-number

Specifies the type and number of an interface bound to a BFD session.

-

mpls-te

Displays statistics about the BFD sessions for monitoring MPLS TE tunnels.

-

te-lsp

Displays statistics about the BFD sessions for monitoring the primary LSP bound to the TE tunnel.

-

peer-ipv6 peer-ipv6

Displays statistics about the BFD sessions bound to a specified peer IPv6 address.

The value is in 32-digit hexadecimal notation.

for-ipv6

Displays statistics about the BFD sessions for monitoring IPv6 links.

-

pw

Displays statistics about the BFD sessions for monitoring PWs.

-

secondary

Displays statistics about the BFD session for monitoring a secondary PW.

-

vsi-pw

Displays statistics about the BFD sessions for monitoring VSI PWs.

-

vsi vsi-name

Specifies the VSI name.

The value is a string of 1 to 31 case-insensitive characters.

vc-id vc-id

Specifies the ID of a Layer 2 VC.

The value is an integer ranging from 1 to 4294967295.

bgp-tunnel

Displays statistics about a BFD session that monitors a BGP Tunnel.

-

sr-be-tunnel

Displays statistics about a BFD session that monitors a SR-MPLS BE Tunnel.

-

segment-list segment-list-id

Displays statistics about a BFD session that monitors the SR-MPLS TE Policy.

The value is an integer ranging from 1 to 4294967295.

srv6-segment-list segment-list-id

Displays statistics about a BFD session that monitors the SRv6 TE Policy.

The value is an integer ranging from 1 to 4294967295.

flex-algo-tunnel

Displays statistics about a BFD session that monitors a Flex-Algo Tunnel.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bfd read

Usage Guidelines

Usage Scenario

To view statistics about BFD sessions, run the display bfd statistics session command.

Precautions

  • If a static BFD session with automatically negotiated discriminators and a dynamic BFD session have the same configurations, you can view that the shared BFD session belongs to both the static session and the dynamic session in terms of the BFD session type.
  • Run the reset bfd statistics command to clear statistics about received and sent BFD packets before collecting statistics about BFD sessions by running the display bfd statistics session command.
  • The display bfd statistics session dynamic command displays statistics about both dynamic and static sessions. The statically self-negotiated sessions are treated as dynamic sessions.

Example

The actual command output varies according to the device. The command output here is only an example.

# Displays statistics about a BFD session that monitors a Flex-Algo Tunnel.
<HUAWEI> display bfd statistics session flex-algo-tunnel peer-ip 10.1.1.1
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
  State : Up                     Name : dyn_16385
--------------------------------------------------------------------------------
  Session Type                        : Dynamic
  Bind Type                           : FLEX_ALGO_TUNNEL
  Local/Remote Discriminator          : 16385/67372036
  Received Packets                    : 7
  Send Packets                        : 1
  Received Bad Packets                : 0
  Send Bad Packets                    : 0
  Down Count                          : 0
  ShortBreak Count                    : 0
  Send Lsp Ping Count                 : 0
  Create Time                         : 2020-10-27 06:21:55
  Last Down Time                      : -
  Total Time From Last DOWN           : ---D:--H:--M:--S
  Last Up Time                        : 2020-10-27 06:22:00
  Last Up Lasting Time                : 000D:01H:34M:39S
  Total Time From Create              : 000D:01H:34M:43S
--------------------------------------------------------------------------------

     Total Session Number :  1
# Display statistics about BFD SRv6 TE Policy sessions.
<HUAWEI> display bfd statistics session srv6-segment-list 5
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
  State : Up                     Name : dyn_16395
--------------------------------------------------------------------------------
  Session Type                        : Dynamic 
  Bind Type                           : SID_LIST  
  Local/Remote Discriminator          : 16395/100000000 
  Received Packets                    : 3746146
  Send Packets                        : 3746146
  Received Bad Packets                : 0
  Send Bad Packets                    : 0
  Down Count                          : 0
  ShortBreak Count                    : 0
  Send Lsp Ping Count                 : 0
  Create Time                         : 2020-04-21 11:29:40  
  Last Down Time                      : - 
  Total Time From Last DOWN           : ---D:--H:--M:--S 
  Last Up Time                        : 2020-04-21 11:29:46 
  Last Up Lasting Time                : 000D:10H:24M:23S 
  Total Time From Create              : 000D:10H:24M:30S
--------------------------------------------------------------------------------
     Total Session Number :  1
# Display statistics about BFD SR-MPLS TE Policy sessions.
<HUAWEI> display bfd statistics session segment-list 10
(w): State in WTR
(*): State is invalid
--------------------------------------------------------------------------------
  (One Hop)   State : Up        Name : dyn_17821
--------------------------------------------------------------------------------
  Session Type                 : Dynamic
  Bind Type                    : SID_LIST
  Local/Remote Discriminator   : 17821/17823
  Received Packets             : 7140086
  Send Packets                 : 7140089
  Received Bad Packets         : 0
  Send Bad Packets             : 0                             
  Down Count                   : 1
  ShortBreak Count             : 0
  Send Lsp Ping Count          : 0
  Create Time                  : 1993-04-27 02:54:37  
  Last Down Time               : - 
  Total Time From Last DOWN    : ---D:--H:--M:--S
  Last Up Time                 : 1993-04-27 02:54:38 
  Last Up Lasting time         : 000D:02H:40M:58S
  Total Time From Create       : 000D:00H:30M:01S
--------------------------------------------------------------------------------
     Total Session Number :  1
# Display statistics about all BFD sessions.
<HUAWEI> display bfd statistics session all
(w): State in WTR 
(*): State is invalid
--------------------------------------------------------------------------------
  (Multi Hop) State : Down       Name : atob     
--------------------------------------------------------------------------------
  Session Type                        : Static
  Bind Type                           : IP
  Local/Remote Discriminator          : 1/2
  Received Packets                    : 0         
  Send Packets                        : 306      
  Received Bad Packets                : 0         
  Send Bad Packets                    : 0        
  Down Count                          : 0
  ShortBreak Count                    : 0
  Send Lsp Ping Count                 : 0
  Create Time                         : 2012-11-17 21:04:06        
  Last Down Time                      : 0000/00/00 00:00:00 
  Down Status Lasting Time            : ---D:--H:--M:--S 
  Last Up Time                        : 2012-11-17 21:14:50 
  Last Up Lasting Time                : ---D:--H:--M:--S
  Total Time From Create              : 000D:00H:10M:44S
--------------------------------------------------------------------------------

     Total Session Number :  1
Table 1 Description of the display bfd statistics session command output
Item Description
State

Current status of the BFD session. The value can be:

  • Up: The BFD session is in the Up state.
  • Down: The BFD session is in the Down state.
  • AdminDown: The BFD session is in the AdminDown state. After the shutdown (BFD session view) command is run, the BFD session is in the AdminDown state.
  • Init: The BFD session is in the Init state.
  • Up(w): The BFD session is Up but is in the WTR state.
  • Up(*)/Down(*): The BFD session status is invalid.
Name

BFD session name.

Session Type

Ways of establishing BFD sessions. The value can be:

  • Static: statically established BFD session.
  • Dynamic: dynamically triggered BFD session.
  • Static_Auto: static BFD session with automatically negotiated discriminators.
  • Entire_Dynamic: entirely dynamically triggered BFD session. This type of sessions can be created after BFD sessions are created passively on the egress of an LSP.
Bind Type

BFD session binding types. The value can be:

  • LDP_LSP: The BFD session detects an LDP LSP.
  • TE_TUNNEL: The BFD session is bound to a TE tunnel.
  • TE_LSP: The BFD session detects an LSP that is bound to a TE tunnel.
  • IP: The BFD session detects a link.
  • SR_BE_TUNNEL: The BFD session detects faults in an SR-MPLS BE tunnel.
  • SID_LIST: The BFD session detects SR TE Policies.
  • FLEX_ALGO_TUNNEL: The BFD session detects a Flex-Algo Tunnel.
Local/Remote Discriminator

Local discriminator and remote discriminator of the BFD session.

Received Packets

Number of BFD packets received by the local end. This field can be cleared using the reset bfd statistics command.

Received Bad Packets

Number of received error packets.

Send Packets

Number of BFD packets sent by the local end. This field can be cleared using the reset bfd statistics command.

Send Bad Packets

Number of packets that fail to be sent.

Send Lsp Ping Count

Number of LSP ping packets sent by the local end.

Down Count

Number of times that the BFD session goes Down.

Down Status Lasting Time

Time elapsed since the last BFD session went Down.

ShortBreak Count

Number of times that the BFD session is transiently interrupted.

Create Time

Time when the BFD session was created.

Last Down Time

Time when the BFD session was last Down.

Last Up Time

Time of the last Up BFD session.

Last Up Lasting Time

Duration of the last Up BFD session.

Total Time From Create

Time elapsed since the BFD session was created.

Total Session Number

Number of BFD sessions.

Total Time From Last Down

Time elapsed since the last BFD session went Down.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >