display segment-routing traffic-statistics

Function

The display segment-routing traffic-statistics command displays traffic statistics about a specified SR LSP (SR-MPLS BE).

Format

display segment-routing traffic-statistics [ ip-address mask-length ] [ verbose ]

display segment-routing traffic-statistics [ ip-address mask-length ] flex-algo [ flexAlgoId ] [ verbose ]

Parameters

Parameter Description Value
ip-address

Specifies the IP address of an interface.

The value is in dotted decimal notation.

mask-length

Specifies the mask length.

The value is 32.

verbose

Displays detailed traffic statistics.

-

flex-algo flexAlgoId

Specifies a Flex-Algo ID.

The value is an integer ranging from 128 to 255.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
segr read

Usage Guidelines

Usage Scenario

To check traffic statistics about a specified SR LSP, run the display segment-routing traffic-statistics command.

To clear traffic statistics before re-collection, run the reset segment-routing traffic-statistics command.

Example

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

# Display Flex-Algo LSP traffic statistics.
<HUAWEI> display segment-routing traffic-statistics flex-algo
-------------------------------------------------------------------------------------------------------------------------
FLEX-ALGO LSP Traffic Statistics Information
-------------------------------------------------------------------------------------------------------------------------
FEC                In/Out Label    Out Interface                  Out Packets/Bytes                        flex-algo
4.4.4.4/32          NULL/3         GE0/1/1.1                      1000/3000                                128
4.4.4.4/32          20099/3        GE0/1/1.1                      1000/3000                                128
4.4.4.4/32          NULL/3         GE0/1/1.2                      1000/3000                                128
4.4.4.4/32          20099/3        GE0/1/1.2                      1000/3000                                128
4.4.4.4/32          NULL/3         GE0/1/1.1                      1000/3000                                156
4.4.4.4/32          20127/3        GE0/1/1.1                      1000/3000                                156
4.4.4.4/32          NULL/3         GE0/1/1.2                      1000/3000                                156
4.4.4.4/32          20127/3        GE0/1/1.2                      1000/3000                                156
-------------------------------------------------------------------------------------------------------------------------
# Display detailed SR LSP traffic statistics.
<HUAWEI> display segment-routing traffic-statistics verbose
2018-12-24 14:42:08.328
-------------------------------------------------------------------------------
SR-BE Traffic Statistics Information
-------------------------------------------------------------------------------
FEC          : 2.2.2.9/32          Current Time : 14:42:08
LSR Type     : Ingress             In Label     : 20921
Out Label    : 20021               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 1991 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets

FEC          : 2.2.2.9/32          Current Time : 14:42:08
LSR Type     : Transit             In Label     : 20921
Out Label    : 20021               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 1991 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets

FEC          : 1.1.1.7/32          Current Time : 14:42:08
LSR Type     : Ingress             In Label     : 20968
Out Label    : 20068               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 0 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets

FEC          : 1.1.1.7/32          Current Time : 14:42:08
LSR Type     : Transit             In Label     : 20968
Out Label    : 20068               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 0 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets

FEC          : 1.1.1.8/32          Current Time : 14:42:08
LSR Type     : Ingress             In Label     : 20971
Out Label    : 20071               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 1991 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets

FEC          : 1.1.1.8/32          Current Time : 14:42:08
LSR Type     : Transit             In Label     : 20971
Out Label    : 20071               Out Interface: GE0/1/0.2002
Nexthop      : 10.2.3.4
Last 300 seconds    output rate 0 bits/sec, 0 packets/sec
Realtime 1991 seconds    output rate 0 bits/sec, 0 packets/sec
Output: 0 bytes,    0 packets
# Display detailed Flex-Algo LSP traffic statistics.
<HUAWEI> display segment-routing traffic-statistics flex-algo verbose
-------------------------------------------------------------------------------
FLEX-ALGO LSP Traffic Statistics Information
-------------------------------------------------------------------------------
FEC          : 4.4.4.4/32          Current Time : 2020-12-04 03:36:59
LSR Type    : Ingress            In Label    : NULL
Out Label    : 3                  Out Interface: GE0/1/1.1
Nexthop      : 10.0.0.4            flex-algo    : 128
Last 300 seconds output rate 2400 bits/sec, 100 packets/sec
Realtime 30 seconds output rate 2400 bits/sec, 100 packets/sec
Output: 3000 bytes, 1000 packets

FEC          : 4.4.4.4/32          Current Time : 2020-12-04 03:36:59
LSR Type    : Transit            In Label    : 20099
Out Label    : 3                  Out Interface: GE0/1/1.1
Nexthop      : 10.0.0.4            flex-algo    : 128
Last 300 seconds output rate 2400 bits/sec, 100 packets/sec
Realtime 30 seconds output rate 2400 bits/sec, 100 packets/sec
Output: 3000 bytes, 1000 packets

-------------------------------------------------------------------------------
# Display SR LSP traffic statistics.
<HUAWEI> display segment-routing traffic-statistics
2018-12-24 14:08:57.88
-------------------------------------------------------------------------------
SR-BE Traffic Statistics Information
-------------------------------------------------------------------------------
FEC                 In/Out Label    Out Interface                   Out Packets/Bytes
10.2.2.9/32         20921/20021     GE0/1/0.2002                    0/0
10.1.1.7/32         20968/20068     GE0/1/0.2002                    0/0
10.1.1.8/32         20971/20071     GE0/1/0.2002                    0/0
-------------------------------------------------------------------------------
Table 1 Description of the display segment-routing traffic-statistics command output
Item Description
flex-algo

Flex-Algo.

FEC

Forwarding equivalence class (FEC).

In/Out Label

Value of the incoming or outgoing label.

Out Interface

Outbound interface.

Out Packets/Bytes

Number of sent packets/bytes.

Out Label

Outgoing label.

Current Time

Current time.

LSR Type

LSR type, which can be ingress, transit, or egress.

In Label

Incoming label.

Nexthop

Next hop.

Last

Last query interval.

output rate

Rate at which packets or bytes were sent in the latest 30 seconds.

output rate

Packet sending rate.

Realtime

Query interval.

Output

Output traffic.

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