The flow command configures a target flow in a measurement instance on a DCP.
The undo flow command deletes the target flow from a measurement instance on a DCP.
By default, no target flow is configured in a measurement instance on a DCP.
When the protocol of a target flow is TCP or UDP, run the following command:
flow { forward | backward } { protocol { tcp | udp } { source-port src-port-number1 [ to src-port-number2 ] | destination-port dest-port-number1 [ to dest-port-number2 ] } * | dscp dscp-value | source src-ip-address [ src-mask-length ] | destination dest-ip-address [ dest-mask-length ] } *
When the protocol of a target flow is not TCP or UDP, run the following command:
flow { forward | backward } { protocol protocol-number | dscp dscp-value | source src-ip-address [ src-mask-length ] | destination dest-ip-address [ dest-mask-length ] } *
When the protocol of a target flow is TCP or UDP, run the following command:
flow bidirectional { protocol { tcp | udp } { source-port src-port-number1 [ to src-port-number2 ] | destination-port dest-port-number1 [ to dest-port-number2 ] } * | dscp dscp-value | source src-ip-address [ src-mask-length ] | destination dest-ip-address [ dest-mask-length ] } *
When the protocol of a target flow is not TCP or UDP, run the following command:
flow bidirectional { protocol protocol-number | dscp dscp-value | source src-ip-address [ src-mask-length ] | destination dest-ip-address [ dest-mask-length ] } *
# Cancel the configured target flow.
undo flow { forward | backward | bidirectional }
Parameter | Description | Value |
---|---|---|
forward | Indicates the forward flow. | - |
backward | Indicates the backward flow. | - |
protocol { tcp | udp } | Indicates that the protocol of a target flow is TCP or UDP. | - |
source-port src-port-number1 | Specifies the start source port number of a target flow. | The value is an integer that ranges from 1 to 65535. |
src-port-number2 | Specifies the end source port number of a target flow. | The value is an integer that ranges from 1 to 65535. src-port-number2 must be larger than src-port-number1. |
destination-port dest-port-number1 | Specifies the start destination port number of a target flow. | The value is an integer that ranges from 1 to 65535. |
dest-port-number2 | Specifies the end destination port number of a target flow. | The value is an integer that ranges from 1 to 65535. dest-port-number2 must be larger than dest-port-number1. |
dscp dscp-value | Specifies the value of a Differentiated Services CodePoint (DSCP) of a target flow. | The value is an integer that ranges from 0 to 63. |
source src-ip-address | Specifies the source IP address of a target flow. Only unicast IP addresses are supported. | The value is in dotted decimal notation. |
src-mask-length | Specifies the mask length of the source IP address of a target flow. | The value is an integer that ranges from 1 to 32. |
destination dest-ip-address | Specifies the destination IP address of a target flow. Only unicast IP addresses are supported. | The value is in dotted decimal notation. |
dest-mask-length | Specifies the mask length of the destination IP address of a target flow. | The value is an integer that ranges from 1 to 32. |
protocol protocol-number | Specifies the protocol type of a target flow. | The value is an integer ranging from 1 to 5, 7 to 16,
or 18 to 255. NOTE:
The value 6 indicates TCP and the value 17 indicates UDP. |
bidirectional | Indicates the bidirectional symmetrical flow. NOTE:
If the target flow is symmetrical bidirectional, set src-ip-address to specify a source IP address and dest-ip-address to specify a destination IP address for
the target flow. |
- |
Usage Scenario
The target flow must be specified before each measurement.
A target flow is the objective in iPCA measurement, and can be defined by any combinations of source IP address, destination IP address, protocol type, DSCP value, source port number, and destination port number. Specifying more attributes can make the target flow accurate. Therefore, it is recommended that you specify more attributes to improve precision of measurement results.
Precautions
If the target flow in an instance is unidirectional, you can specify forward to configure a forward flow or backward to configure a backward flow.
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.