The flow command configures the target flow characteristics for an IP Flow Performance Measurement (IP FPM) instance.
The undo flow command deletes the target flow characteristics of an IP FPM instance.
By default, no characteristics are configured for the target flow of an IP FPM instance.
flow { forward | backward | bidirectional } { dscp dscp-value | source src-ip-address [ src-mask-length ] | destination dest-ip-address [ dest-mask-length ] | protocol { { tcp | udp } { source-port src-port-number1 [ to src-port-number2 ] | destination-port dest-port-number1 [ to dest-port-number2 ] } * | { protocol-number | protocol-number | protocol-number } } } *
undo flow { forward | backward | bidirectional }
Parameter | Description | Value |
---|---|---|
forward |
Indicates the forward target flow. |
- |
backward |
Indicates the backward target flow. |
- |
bidirectional |
Indicates the symmetrical bidirectional target flow. If the target flow is symmetrical bidirectional, set the parameter src-ip-address to specify a source IP address and the parameter dest-ip-address to specify a destination IP address for the target flow. |
- |
dscp dscp-value |
Specifies the DSCP value of the target flow. |
The value is an integer ranging from 0 to 63. |
source src-ip-address |
Specifies the source IP address of the target flow. |
This value is in dotted decimal notation. |
src-mask-length |
Specifies the mask length of the source IP address of the target flow. |
The value is an integer ranging from 1 to 32. |
destination dest-ip-address |
Specifies the destination IP address of the target flow. |
This value is in dotted decimal notation. |
dest-mask-length |
Specifies the mask length of the destination IP address of the target flow. |
The value is an integer ranging from 1 to 32. |
protocol |
Indicates the protocol type of the target flow. |
- |
tcp |
Indicates that the protocol type of the target flow is TCP. |
- |
udp |
Indicates that the protocol type of the target flow is UDP. |
- |
source-port src-port-number1 |
Specifies the start source port number of the target flow. |
The value is an integer ranging from 1 to 65535. |
to src-port-number2 |
Specifies the end source port number of the target flow. |
The value is an integer ranging from 1 to 65535. src-port-number2 must be greater than src-port-number1. |
to dest-port-number2 |
Specifies the end destination port number of the target flow. |
The value is an integer ranging from 1 to 65535. dest-port-number2 must be greater than dest-port-number1. |
destination-port dest-port-number1 |
Specifies the start destination port number of the target flow. |
The value is an integer ranging from 1 to 65535. |
protocol-number |
Indicates the protocol number of the target flow. |
The value is an integer ranging from 1 to 5, 7 to 16, or 18 to 255. The value 6 indicates TCP, and the value 17 indicates UDP. |
Usage Scenario
To define target flows and ensure measurement accuracy, run the flow command to configure target flow characteristics.
One or more fields in IP headers can be specified to identify target flows. The field can be the source IP address or prefix, destination IP address or prefix, protocol type, source port number, destination port number, or ToS. The more fields specified, the more accurately flows can be identified. Specifying as many fields as possible is recommended to maximize the measurement accuracy.Configuration Impact
An IP FPM instance can have only one target flow configured, either unidirectional or bidirectional. A bidirectional target flow is logically two unidirectional flows in opposite directions.
Precautions
Target flows in different IP FPM instances cannot have the same characteristics. The forward and backward target flows in an IP FPM instance cannot have the same characteristics neither.