< Home

flow ipv4 tcp

Function

The flow ipv4 tcp command configures a target TCP flow to be monitored by an eMDI instance.

The undo flow ipv4 tcp command deletes a target TCP flow monitored by an eMDI instance.

By default, no target flow is configured in an eMDI instance.

Format

flow ipv4 tcp source source-ip-address destination destination-ip-address [ vlan vlan-id | source-port source-port-number | destination-port destination-port-number ]*

undo flow ipv4 tcp source source-ip-address destination destination-ip-address [ vlan vlan-id | source-port source-port-number | destination-port destination-port-number ]*

undo flow

Parameters

Parameter Description Value

source source-ip-address

Specifies the source IP address of a target flow.

The value is in dotted decimal notation.

destination destination-ip-address

Specifies the destination IP address of a target flow.

The value is in dotted decimal notation.

vlan vlan-id

Specifies the VLAN ID of a target flow.

The value is an integer in the range from 1 to 4094.

source-port source-port-number

Specifies the source port number of a target flow.

The value is an integer in the range from 1 to 65535.

destination-port destination-port-number

Specifies the destination port number of a target flow.

The value is an integer in the range from 1 to 65535.

Views

eMDI instance view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

As a key element in an eMDI instance, a target flow to be monitored must be configured before the eMDI instance is started.

A target flow is the object monitored by an eMDI instance, and can be defined by any combinations of multiple attributes such as source IP address, destination IP address, VLAN ID, source port number, and destination port number. Specifying more attributes makes the target flow more accurate. Therefore, it is recommended that you specify more attributes to improve precision of monitoring results.

Precautions

  • An eMDI instance can monitor only one target flow. If multiple target flows are configured in an eMDI instance, only the last configured one takes effect.
  • In a video surveillance scenario, specify the number of the port connected to IPCs to ensure uniqueness of the target flow. Otherwise, the monitoring results will be affected in multi-flow scenarios.
  • After an eMDI instance is started, the target flow monitored by the eMDI instance cannot be modified. To modify the target flow, run the stop command to stop the eMDI instance first.
  • If 0.0.0.0 is specified by source source-ip-address or destination destination-ip-address, the source or destination IP address of the target flow can be any IP address. Examples are as follows:
    • If source-ip-address is set to 0.0.0.0 and destination-ip-address is set to 10.1.1.1, flows sourced from any IP address and destined for 10.1.1.1 are monitored.
    • If source-ip-address is set to 10.1.1.1 and destination-ip-address is set to 0.0.0.0, flows sourced from 10.1.1.1 and destined for any IP address are monitored.
    • If both source-ip-address and destination-ip-address are set to 0.0.0.0, the system does not check the source or destination IP addresses of the target flow to be monitored.

Example

# Set the source and destination IP addresses of the target TCP flow to be monitored by eMDI instance 2 to 10.0.0.1 and 10.0.0.2, respectively.

<HUAWEI> system-view
[HUAWEI] emdi
[HUAWEI-emdi] emdi instance 2
[HUAWEI-emdi-instance-2] flow ipv4 tcp source 10.0.0.1 destination 10.0.0.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >