test-packet start interface

Function

The test-packet start interface command configures an interface to send testing packets.

By default, no testing packets is sent.

Format

test-packet start interface { interface-name | interface-type interface-number } [ -c count | -p speed | -s size ] *

Parameters

Parameter Description Value
interface-type

Specifies the type of an outbound interface that sends testing packets.

The value can be Ethernet or GE.

interface-number

Specifies the number of an outbound interface that sends testing packets.

-

-c count

Specifies the number of sent testing packets.

The value is an integer ranging from 1 to 65535. The default value is 5.

-p speed

Specifies the rate at which testing packets are sent.

The value is an integer ranging from 1 to 5, in Mbit/s. The default value is 1 Mbit/s.

-s size

Specifies the size of a testing packet.

The value is an integer ranging from 64 to 1518, in bytes. The default value is 64 bytes.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
efm execute

Usage Guidelines

Usage Scenario

After remote loopback is enabled on a device, the test-packet start interface command can be used to configure the interface in the active mode to send testing packets. Based on returned testing packets, you can evaluate the connectivity and performance of the link.

Prerequisites

Remote loopback has been enabled on an interface.

Follow-up Procedure

To stop sending testing packets, press Ctrl+C.

After running the test-packet start interface command to send testing packets, you can run the display test-packet result command to view the test results.

Precautions

  • Testing packets sent by an interface with the test-packet start interface command configured are a type of Ethernet packets constructed to test link quality. This command is used together with EFM OAM remote loopback to test packet loss ratios over links.
  • During test packet transmission, no testing packet parameter can be modified.

Example

# Configure GE 0/1/0 to send testing packets.
<HUAWEI> system-view
[~HUAWEI] efm enable
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] efm enable
[*HUAWEI-GigabitEthernet0/1/0] com
[~HUAWEI-GigabitEthernet0/1/0] efm loopback start
[~HUAWEI-GigabitEthernet0/1/0] quit
[~HUAWEI] test-packet start interface GigabitEthernet0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic