flow (IPFPM-DCP instance view)

Function

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.

Format

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 }

Parameters

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.

Views

IPFPM-DCP instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipfpm write

Usage Guidelines

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.

  • If the target flow in an IP FPM instance is unidirectional, only forward can be specified.
  • If the target flow in an IP FPM 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. 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.

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.

Example

# Configure the target flow characteristics for IP FPM instance 1.
<HUAWEI> system-view
[~HUAWEI] nqa ipfpm dcp
[*HUAWEI-nqa-ipfpm-dcp] instance 1
[*HUAWEI-nqa-ipfpm-dcp-instance-1] flow forward source 10.10.10.10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >