- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Flow group commands | 109.10 KB |
display telemetry flow-group flow-table
telemetry flow-group aging-time
telemetry flow-group delay-threshold
telemetry flow-group max-entry
Flow group commands
display telemetry flow-group
Use display telemetry flow-group to display the configuration and application status of flow groups.
Syntax
In standalone mode:
display telemetry flow-group [ group-id | name group-name ] [ slot slot-number ]
In IRF mode:
display telemetry flow-group [ group-id | name group-name ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-id: Specifies a flow group by its ID. The value range for this argument is 1 to 7.
name group-name: Specifies a flow group by its name, a case-sensitive string of 1 to 63 characters.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the configuration and application status on the active MPU. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the configuration and application status on the global active MPU. (In IRF mode.)
Usage guidelines
If you do not specify the group-id or name group-name option, this command displays the configuration and application status of all flow groups.
Examples
# (In standalone mode.) Display the configuration of flow group 1 and its application status in slot 3.
<Sysname> display telemetry flow-group 1 slot 3
Flow group 2 named aaa (Successful)
ACL : 2001
Template :
destination-ip
destination-port
source-ip
source-port
Mode : Common-MOD
Configured aging time: 15 minutes
Rate limit: -
Max entry : -
Delay threshold: 32 nanoseconds
Field |
Description |
Flow group 2 named aaa (Successful) |
ID, name, and application status of the flow group. Values for the application status include: · Successful—The flow group is applied successfully. · Failed—The flow group fails to be applied for some reasons other than incomplete flow group configuration. · Inactive—The flow group has not been administratively applied. · Incomplete—The flow group fails to be applied because its configuration is incomplete. |
Active aging time |
The aging time that actually takes effect. This field is displayed for only flow groups in elephant/mice flow mode. |
Rate limit |
This field is not supported in the current software version. Maximum rate of packets to the CPU in pps. A hyphen (-) indicates that no rate limit is configured. |
Max entry |
Maximum number of flow entries generated. A hyphen (-) indicates that no entry limit is configured. |
display telemetry flow-group flow-table
Use display telemetry flow-group flow-table to display the flow entries generated by flow groups.
Syntax
In standalone mode:
display telemetry flow-group flow-table [ [ group-id | name group-name ] | delay-monitor | mod-delay-monitor | mod | mice-elephant-flow ] [ destination-ip { dst-ipv4 | dst-ipv6 } | destination-port dst-port | protocol protocol | source-ip { src-ipv4 | src-ipv6 } | source-port src-port ] * { slot slot-number }
In IRF mode:
display telemetry flow-group flow-table [ [ group-id | name group-name ] | delay-monitor | mod-delay-monitor | mod | mice-elephant-flow ] [ destination-ip { dst-ipv4 | dst-ipv6 } | destination-port dst-port | protocol protocol | source-ip { src-ipv4 | src-ipv6 } | source-port src-port ] * { chassis chassis-number slot slot-number }
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
group-id: Specifies a flow group by its ID. The value range for this argument is 1 to 7.
name group-name: Specifies a flow group by its name, a case-sensitive string of 1 to 63 characters.
mod: Specifies flow groups in MOD mode and flow groups in simple MOD mode.
mice-elephant-flow: Specifies flow groups in elephant/mice flow mode.
delay-monitor: Specifies flow groups in delay monitoring mode.
mod-delay-monitor: Specifies flow groups in common MOD+delay monitoring mode.
destination-ip { dst-ipv4 | dst-ipv6 }: Specifies the destination IPv4 or IPv6 address.
destination-port dst-port: Specifies the destination port number.
protocol protocol: Specifies the network layer protocol.
source-ip { src-ipv4 | src-ipv6 }: Specifies the source IPv4 or IPv6 address.
source-port src-port: Specifies the source port number.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the flow entries on all cards. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify this option, the command displays the flow entries on all cards in the IRF fabric. (In IRF mode.)
Usage guidelines
If you do not specify flow groups, this command displays the flow entries generated by each flow group.
If you specify the mice-elephant-flow keyword, this command displays the flow entries generated for elephant flows. For more information about elephant flows and mice flows, see elephant and mice flows distinguishing in ACL and QoS Configuration Guide.
Examples
# Display the flow entries generated by flow group 1 for slot 3.
<Sysname> display telemetry flow-group flow-table 1 slot 3
Slot: 3
Flow group 1 (name: abc)
Mode: MOD
================================================================================
Src IP Dst IP Pro SPort DPort Aging Packets
In Src IP In Dst IP InP InSP InDP VXLAN ID Bytes
Drop Reason
================================================================================
192.168.1.86 192.168.10.2 6 20 30 12m10s 10
- - - - - - 12400
unknown-vlan
# Display the flow entries generated by flow group 7 for slot 1.
<Sysname> display telemetry flow-group flow-table 7 slot 1
Slot: 1
Flow group 7
Mode: MOD, Delay monitor
================================================================================
Src IP Dst IP Pro SPort DPort Aging Packets
In Src IP In Dst IP InP InSP InDP VXLAN ID Bytes
Drop Reason Delay In Interface Out Interface
================================================================================
- 192.0.0.1 - - - 1m0s 639611
- - - - - - 81870208
- 576 XGE3/0/1 XGE3/0/2
Table 2 Command output
Field |
Description |
Mode |
Flow group mode: · Mice elephant flow—Elephant/mice flow mode. · MOD—MOD mode or simple MOD mode. |
Packet |
The elephant/mice flow mode does not support this field. Packet count. |
In Src IP |
This field is not supported in the current software version. Inner source IP address of VXLAN packets. |
In Dst IP |
This field is not supported in the current software version. Inner destination IP address of VXLAN packets. |
InP |
This field is not supported in the current software version. Inner network layer protocol. |
InSP |
This field is not supported in the current software version. Inner source port number. |
InDP |
This field is not supported in the current software version. Inner destination port number. |
VXLAN ID |
This field is not supported in the current software version. VXLAN ID. |
Bytes |
The elephant/mice flow mode does not support this field. Byte count. |
Drop Reason |
Packet drop reason: · car-exceeded—CAR exceeded. · higig-header-error—HiGig header error. · invalid-tpid—Invalid TPID. · ip-multicast-error—IP multicast packet error. · ipv4-dip-miss—The destination IPv4 address of a packet does not match a route or matches the default route. · ipv4-l3-header-error—IPv4 header error. · ipv6-dip-miss—The destination IPv6 address of a packet does not match a route or matches the default route. · parity-error—Parity error. · tunnel-header-error—Tunnel packet header error. · unknown-vlan—Unknown VLAN. · error0—Unknown reason. |
Delay |
Packet forwarding delay in microseconds. |
In Interface |
Input interface of packets. |
Out Interface |
Output interface of packets. |
if-match acl
Use if-match acl to specify an ACL for a flow group.
Use undo if-match acl to remove an ACL from a flow group.
Syntax
if-match acl [ ipv6 | mac ] { acl-number | name acl-name }
undo if-match acl
Default
No ACL is specified for a flow group.
Views
Flow group view
Predefined user roles
network-admin
mdc-admin
Parameters
ipv6: Specifies the IPv6 ACL type.
mac: Specifies the Layer 2 ACL type.
acl-number: Specifies the ACL number. The following are available value ranges:
· 2000 to 2999 for basic ACLs.
· 3000 to 3999 for advanced ACLs.
· 4000 to 4999 for Layer 2 ACLs.
name acl-name: Specifies the ACL name, a case-insensitive string of 1 to 63 characters. The ACL name must start with an English letter.
Usage guidelines
When specifying an ACL, follow these restrictions and guidelines:
· If the specified ACL does not exist or does not have any rules, no traffic will match the ACL.
· In the specified ACL, a rule with the vpn-instance keyword specified takes effect only on VPN packets, and a rule without the vpn-instance keyword specified takes effect on both packets in the public network and VPN packets.
When specifying an ACL by its number, follow these rules:
· To specify an IPv4 ACL, specify only its number.
· To specify an IPv6 ACL or Layer 2 ACL, you must specify both its type and number.
When specifying an ACL by its name, follow these rules:
· To specify an IPv4 ACL, specify only its name.
· To specify an IPv6 ACL or Layer 2 ACL, you must specify both its type and name.
A flow group takes effect only on the traffic that matches the specified ACL.
Only one ACL can be specified for a flow group.
Examples
# Specify ACL 3000 in flow group 1.
<Sysname> system-view
[Sysname] telemetry flow-group 1
[Sysname-telemetry-flow-group-1] if-match acl 3000
Related commands
acl (ACL and QoS Command Reference)
telemetry flow-group
telemetry apply flow-group
Use telemetry apply flow-group to apply a flow group.
Use undo telemetry apply flow-group to remove the application of a flow group.
Syntax
telemetry apply flow-group { group-id | name group-name }
undo telemetry apply flow-group { group-id | name group-name }
Default
No flow group is applied.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies a flow group by its ID. The value range for this argument is 1 to 7.
name group-name: Specifies a flow group by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
Only one flow group can be applied.
Examples
# Apply flow group 1.
<Sysname> system-view
[Sysname] telemetry apply flow-group 1
Related commands
telemetry flow-group
telemetry flow-group
Use telemetry flow-group to create a flow group and enter its view, or enter the view of an existing flow group.
Use undo telemetry flow-group to delete a flow group.
Syntax
telemetry flow-group group-id [ name group-name ] [ mode { delay-monitor | mod-delay-monitor | simple-mod | mice-elephant-flow } ]
undo telemetry flow-group { group-id | name group-name }
Default
No flow groups exist.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies a flow group ID. The value range for this argument is 1 to 7.
name group-name: Specifies a flow group name, a case-sensitive string of 1 to 63 characters. The name must be globally unique and cannot start with system-defined-.
mode: Specifies a flow group mode. The default is MOD mode.
· mice-elephant-flow: Specifies the elephant/mice flow mode.
· simple-mod: Specifies the simple MOD mode.
· delay-monitor: Specifies the delay monitoring mode.
· mod-delay-monitor: Specifies the common MOD+delay monitoring mode.
Usage guidelines
The flow entries generated by a flow group can be used by other features. A flow group can be in one of the following modes:
· Common MOD mode—Used by MOD. This mode occupies hardware resources but has a lower burden on the CPU.
· Simple MOD mode—Used by MOD. This mode has a higher burden on the CPU but saves hardware resources.
· Elephant/mice flow mode—Used by the elephant and mice flows distinguishing feature.
· Delay monitoring mode—Generates flow entries when a packet exceeds the delay threshold and reports the event through gRPC. To use this mode, you must configure the gRPC dial-out mode and specify sensor path telemetryftrace/genevent in a sensor group. For more information about gRPC, see Telemetry Configuration Guide.
· Common MOD+delay monitoring mode—Provides basic data for MOD and monitors delay threshold violation events. To use this mode, you must configure both MOD and the gRPC dial-out mode, and specify sensor path telemetryftrace/genevent in a sensor group.
You cannot name or rename an existing flow group and cannot modify the mode of an existing flow group.
To delete an applied flow group, first remove the application and then delete the flow group.
Examples
# Create flow group 1 in MOD mode and enter its view.
<Sysname> system-view
[Sysname] telemetry flow-group 1
[Sysname-telemetry-flow-group-1]
# Create flow group 3 in simple MOD mode and enter its view.
<Sysname> system-view
[Sysname] telemetry flow-group 3 mode simple-mod
[Sysname-telemetry-flow-group-3]
telemetry flow-group aging-time
Use telemetry flow-group aging-time to set the aging time for flow entries.
Use undo telemetry flow-group aging-time to restore the default.
Syntax
telemetry flow-group aging-time aging-time
undo telemetry flow-group aging-time
Default
The aging time for flow entries is 15 minutes.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
aging-time: Specifies the aging time for flow entries in minutes. The value range for this argument is 1 to 16.
Examples
# Set the aging time for flow entries to 20 minutes.
<Sysname> system-view
[Sysname] telemetry flow-group aging-time 20
telemetry flow-group delay-threshold
Use telemetry flow-group delay-threshold to set the packet forwarding delay threshold.
Use undo telemetry flow-group delay-threshold to restore the default.
Syntax
telemetry flow-group delay-threshold threshold
undo telemetry flow-group delay-threshold
Default
The packet forwarding delay threshold is not set, and all packets are monitored. If you have configured the delay monitoring mode or common MOD+delay monitoring mode, flow entries are generated for all matching packets.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
threshold: Specifies the packet forwarding delay threshold in nanoseconds. The value range for this argument is 32 to 1000000000.
Usage guidelines
This command takes effect on only flow groups in delay monitoring mode and flow groups in common MOD+delay monitoring mode.
Examples
# Set the packet forwarding delay threshold to 100 nanoseconds.
<Sysname> system-view
[Sysname] telemetry flow-group delay-threshold 100
telemetry flow-group max-entry
Use telemetry flow-group max-entry to set the maximum number of flow entries generated.
Use undo telemetry flow-group max-entry to restore the default.
Syntax
telemetry flow-group max-entry max-entries
undo telemetry flow-group max-entry
Default
By default, the number of flow entries is not limited.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
max-entries: Specifies the maximum number of flow entries generated. The value range for this argument is 1 to 8192.
Usage guidelines
When the maximum number of flow entries is reached, the device does not generate new flow entries until old flow entries are aged out.
Examples
# Set the maximum number of flow entries generated to 100.
<Sysname> system-view
[Sysname] telemetry flow-group max-entry 100
template
Use template to configure a flow entry generation rule.
Use undo template to delete a flow entry generation rule.
Syntax
template { destination-ip | destination-port | protocol | source-ip | source-port | vxlan { inner-destination-ip | inner-destination-port | inner-protocol | inner-source-ip | inner-source-port | vxlan-id } * } *
undo template
Default
No flow entry generation rule is configured.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
destination-ip: Generates flow entries based on the destination IP address.
destination-port: Generates flow entries based on the destination port number.
protocol: Generates flow entries based on the Layer 3 protocol type.
source-ip: Generates flow entries based on the source IP address.
source-port: Generates flow entries based on the source port number.
vxlan: Generates flow entries for VXLAN packets.
· inner-destination-ip: Generates flow entries based on the inner destination IP address.
· inner-destination-port: Generates flow entries based on the inner destination port number.
· inner-protocol: Generates flow entries based on the inner Layer 3 protocol type.
· inner-source-ip: Generates flow entries based on the inner source IP address.
· inner-source-port: Generates flow entries based on the inner source port number.
· vxlan-id: Generates flow entries based on the VXLAN ID.
Usage guidelines
This command enables the device to identify traffic and generate flow entries based on the specified header fields.
On the SC modules prefixed with LSCM2, SD interface modules, and SF interface modules, if an IPv4 ACL has been specified for the flow group, only the destination-ip, source-ip, and vxlan inner-destination-ip keywords in this command can be configured.
Examples
# Configure flow group 1 to generated flow entries based on the source IP address, destination IP address, source port number, and destination port number.
<Sysname> system-view
[Sysname] telemetry flow-group 1
[Sysname-telemetry-flow-group-1] template destination-ip destination-port source-ip source-port
Related commands
telemetry flow-group