ip path detection send-packet

Function

The ip path detection send-packet command configures a device to send IPv4 or IPv6 path detection packets.

Format

ip path detection send-packet src-mac src-mac-address dst-mac dst-mac-address [ pe-vlan pe-vlan-id [ 8021p 8021p-value ] [ ce-vlan ce-vlan-id ] ] src-ip src-ip-addr dst-ip dst-ip-address protocol { icmp | { tcp | udp [ gtp-u gtp-teid teid-value ] | sctp } src-port src-port-value dst-port dst-port-value } dscp dscp-value [ vpn-instance vpn-name ] interface { ifType ifNum | ifName } testid test-id

ip path detection send-packet src-mac src-mac-address dst-mac dst-mac-address [ pe-vlan pe-vlan-id [ 8021p 8021p-value ] [ ce-vlan ce-vlan-id ] ] src-ipv6 src-ipv6-addr dst-ipv6 dst-ipv6-addr protocol { icmp | { tcp | udp [ gtp-u gtp-teid teid-value ] | sctp } src-port src-port-value dst-port dst-port-value } dscp dscp-value [ vpn-instance vpn-name ] interface { ifType ifNum | ifName } testid test-id

Parameters

Parameter Description Value
dst-mac dst-mac-address

Specifies a destination MAC address.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

pe-vlan pe-vlan-id

Specifies the outer VLAN ID.

The value is an integer that ranges from 1 to 4094.

8021p 8021p-value

Specifies an IEEE802.1P value.

The value is an integer that ranges from 0 to 7.

ce-vlan ce-vlan-id

Specifies the inner VLAN ID.

The value is an integer that ranges from 1 to 4094.

src-ip src-ip-addr

Specifies a source IPv4 address.

The value is in dotted decimal notation.

dst-ip dst-ip-address

Specifies a destination IPv4 address.

The value is in dotted decimal notation.

protocol

Specifies a protocol type.

The options are as follows:

  • ICMP
  • TCP
  • UDP
  • GTP
  • SCTP
gtp-teid teid-value

Specifies the TEID value of GTP packets.

The value is an integer that ranges from 0 to 4294967295.

src-port src-port-value

Specifies the source port number.

The value is an integer that ranges from 1 to 65535.

dst-port dst-port-value

Specifies the destination port number.

The value is an integer that ranges from 1 to 65535.

dscp dscp-value

Specifies a DSCP value.

The value is an integer that ranges from 0 to 63.

vpn-instance vpn-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

interface ifName

Specifies the name of an interface.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported.

ifType

Specifies the type of an interface.

The value is a string of 1 to 32 case-sensitive characters, spaces not supported.

ifNum

Specifies the number of an interface.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported.

testid test-id

Specifies the ID of a test session.

The value is an integer that ranges from 0 to 4294967295.

src-mac src-mac-address

Specifies a source MAC address.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

src-ipv6 src-ipv6-addr

Specifies a source IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

dst-ipv6 dst-ipv6-addr

Specifies a destination IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pathdetect write

Usage Guidelines

Usage Scenario

In the telco cloud VXLAN scenario, a probe packet with the same 5-tuple information as that of the service flow is constructed on the ingress node and is added with a special DSCP value for the devices through which the service flow passes to identify. This helps restore the device path through which the service flow passes.

This command can be used to send IPv4 or IPv6 path detection packets.

Precautions

  • Path detection packets are not terminated by the egress node of the VXLAN network. After receiving a detection packet, the egress node of the VXLAN network sends it to the target server or VM.
  • If GTP protocol packets are to be sent, the source or destination port number must be 2152.
  • This command does not generate a configuration file.

Example

# Configure the device to send IPv6 path detection packets.
<HUAWEI> system-view
[~HUAWEI] ip path detection send-packet src-mac 00e0-fc12-3456 dst-mac 00e0-fc12-7890 src-ip 2001:db8:1::1 dst-ip 2001:db8:1::2 protocol udp src-port 1000 dst-port 2000 dscp 3 vpn-instance vpntest interface GigabitEthernet0/1/0 testid 2
# Configure the device to send IPv4 path detection packets.
<HUAWEI> system-view
[~HUAWEI] ip path detection send-packet src-mac 00e0-fc12-3456 dst-mac 00e0-fc12-7890 src-ip 10.1.1.1 dst-ip 10.2.2.2 protocol udp src-port 1000 dst-port 2000 dscp 3 vpn-instance vpntest interface GigabitEthernet0/1/0 testid 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic