< Home

flow (IPFPM-DCP instance view)

Function

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.

Format

# Define a unidirectional flow.
  • 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 ] } *

# Define a bidirectional symmetrical flow.
  • 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 }

Parameters

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.
-

Views

IPFPM-DCP instance view

Default Level

2: Configuration level

Usage Guidelines

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

An instance can have only one target flow configured, either unidirectional or bidirectional. A bidirectional target flow is logically two unidirectional flows in opposite directions.
  • 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.

  • If the target flow in an instance is bidirectional, two situations are available:
    • If the bidirectional target flow is symmetrical, you can specify bidirectional to configure the bidirectional target flow characteristics, and you must specify the source and destination IP addresses. By default, the characteristics specified are used for the forward flow, and the reverse of those are used for the backward flow. Specifically, the source and destination IP addresses and port numbers specified for the forward flow are used respectively as the destination and source IP addresses and port numbers for the backward flow.
    • If the bidirectional target flow is asymmetrical, you must configure forward and backward in two command instances to configure the forward and backward flow characteristics.

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.

Example

# Configure a target flow of measurement instance 1 on a DCP.

<HUAWEI> system-view
[HUAWEI] nqa ipfpm dcp
[HUAWEI-nqa-ipfpm-dcp] instance 1
[HUAWEI-nqa-ipfpm-dcp-instance-1] flow bidirectional protocol udp source-port 1025 source 10.1.1.1 destination 10.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >