tlp

Function

The tlp command configures a Target Logical Port (TLP) for an IP Flow Performance Measurement (IP FPM) instance and specifies the TLP role.

The undo tlp command deletes a TLP of an IP FPM instance.

By default, no TLP is configured for an IP FPM instance in a load-balancing scenario.

Format

tlp tlp-id { in-point | out-point } { ingress | egress } [ vpn-label vpn-label [ lsp-label lsp-label ] ] [ backward-vpn-label backward-vpn-label [ backward-lsp-label backward-lsp-label ] ]

tlp tlp-id mid-point flow { forward | backward } { ingress | egress } [ vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 { lsp-label2 | any } ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] ]

tlp tlp-id mid-point flow bidirectional { ingress | egress } [ forward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 { lsp-label2 | any } ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] ] [ backward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 { lsp-label2 | any } ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] ]

tlp tlp-id index index-id mid-point flow { forward | backward } { ingress | egress } vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 lsp-label2 ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ]

tlp tlp-id index index-id mid-point flow bidirectional { ingress | egress } { forward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 lsp-label2 ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] | backward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 lsp-label2 ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] | forward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 lsp-label2 ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] backward vpn-label vpn-label [ lsp-label lsp-label [ lsp-label2 lsp-label2 ] ] [ flow-label ] [ control-word ] [ l2vpn [ tpid tpid ] ] }

tlp tlp-id in-point ingress

tlp tlp-id out-point egress

undo tlp tlp-id [ index index-id ]

Parameters

Parameter Description Value
tlp-id

Specifies a TLP ID.

The value is an integer ranging from 1 to 16777215.

in-point

Specifies a TLP as an in-point.

The system sets the measurement flags of target flows on an in-point.

-

out-point

Specifies a TLP as an out-point.

The system clears the measurement flags of target flows on an out-point.

-

ingress

Indicates the upstream target flow.

-

egress

Indicates the downstream target flow.

-

vpn-label vpn-label

Specifies a VPN label.

The value is an integer ranging from 0 to 1048575.

lsp-label lsp-label

Specifies the first-layer LSP label.

The value is an integer ranging from 0 to 1048575.

backward-vpn-label backward-vpn-label

Specifies a VPN label for the backward target flow.

The value is an integer ranging from 0 to 1048575.

backward-lsp-label backward-lsp-label

Specifies an LSP label for the backward target flow.

The value is an integer ranging from 0 to 1048575.

mid-point

Specifies a TLP as a mid-point.

-

flow

Indicates the target flow.

-

forward

Indicates the forward target flow.

-

backward

Indicates the backward target flow.

-

lsp-label2 lsp-label2

Specifies the second-layer LSP label.

The value is an integer ranging from 0 to 1048575.

flow-label

Enables the flow label function.

-

control-word

Enables the control word function.

The control word carries the sequence number and control information in the Layer 2 frame header. It is used to pad packets to prevent the packets from being too short.

-

l2vpn

Specifies an L2VPN.

-

tpid tpid

Specifies the ID of a load balancing path.

The value is an hexadecimal number ranging from 600 to FFF.

bidirectional

Indicates the bidirectional target flow.

-

any

Matches any label.

-

index index-id

Specifies the ID of a load balancing path.

The value is an integer ranging from 1 to 16.

Views

IPFPM-DCP instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipfpm write

Usage Guidelines

Usage Scenario

To locate faults in IP FPM performance statistics scenarios, run the tlp command to configure TLPs in an IP FPM instance. TLPs are measurement points along the path of the target flow and compile and output the statistics. TLPs can be in-points, mid-points, or out-points.

In a TE load-balancing scenario, set the any parameter to solve the problem where only one TLP can be configured for a Layer 3 interface (each target flow of a TLP supports the configuration of a group of label stacks).

In a load-balancing scenario where different paths share the same interface or path segment, the shared interface has the same 5-tuple information but be assigned different label stacks. To configure label stack information for multi-path load balancing and prevent detection errors in this scenario, run the tlp index command.

Prerequisites

IP Flow Performance Measurement (IP FPM) instance has been created.

Precautions

A TLP that functions as the in-point for the forward target flow is the out-point for the backward target flow. The TLP role specified in the tlp command applies only to the forward target flow, and the reverse of the specified role is used for the backward target flow.

Mid-points apply only to IP FPM hop-by-hop performance statistics scenarios. Therefore, you must configure flow to specify the target flow direction when configuring a TLP as a mid-point.

A TLP cannot function as both the in-point and out-point for the same unidirectional target flow.

In the same instance, the TLP of a VE/GVE sub-interface and the TLP of another physical interface must be in different directions. Otherwise, data about the same target flow will be collected twice, affecting statistics accuracy.

Example

# Configure a TLP for IP FPM instance 1 and specify the TLP role.
<HUAWEI> system-view
[~HUAWEI] nqa ipfpm dcp
[*HUAWEI-nqa-ipfpm-dcp] instance 1
[*HUAWEI-nqa-ipfpm-dcp-instance-1] tlp 100 in-point ingress
# Configure a TLP for an IP FPM instance in a load-balancing scenario.
<HUAWEI> system-view
[~HUAWEI] nqa ipfpm dcp
[*HUAWEI-nqa-ipfpm-dcp] instance 1
[*HUAWEI-nqa-ipfpm-dcp-instance-1] tlp 100 index 2 mid-point flow forward ingress vpn-label 1
# Configure the TE label of TLP
<HUAWEI> system-view
[~HUAWEI] nqa ipfpm dcp
[*HUAWEI-nqa-ipfpm-dcp] instance 1
[*HUAWEI-nqa-ipfpm-dcp-instance-1] tlp 1 mid-point flow forward ingress vpn-label 12345 lsp-label 23456 lsp-label2 any
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >