CloudEngine S5700 V600R022C01 Configuration Guide - Interface Management

Ethernet Interface Configuration

Ethernet Interface Configuration

Overview of Ethernet Interfaces

Definition

An Ethernet interface is a medium used to connect communication devices and transmit data on an Ethernet network.

According to the electrical attribute, an Ethernet interface can be one of the following:
  • Electrical interface
  • Optical interface

Purpose

Ethernet interfaces provide a wide range of rates and are widely used to meet the requirements of multiple industries for high bandwidth, low costs, high security and reliability, and wide interconnection.

Understanding Ethernet Interfaces

Basic Concepts of the Ethernet Physical Layer

CSMA/CD

CSMA/CD definition: Carrier sense multiple access with collision detection (CSMA/CD) is a media access control (MAC) method used most notably on the early Ethernet where multiple stations, such as computers and peripherals, are connected through a shared physical line. Because the stations can only access the shared line in half-duplex mode, CSMA/CD is used for collision detection and avoidance. Details are as follows:

  • CS: carrier sense. Before transmitting data, a station checks to see if the line is idle. By doing so, chances of collision are decreased.

  • MA: multiple access. The data sent by a station can be received by multiple other stations at the same time.

  • CD: collision detection. A collision occurs if two stations transmit electrical signals simultaneously, because the signals are superimposed, doubling the normal voltage amplitude. The stations stop transmitting after sensing the conflict, and resume after a random amount of time.

CSMA/CD implementation: A station continuously checks whether the shared line is idle. If so, the station sends data. Otherwise, the station waits until the line is idle. If two stations send data simultaneously, a conflict occurs on the line, and the signal becomes unstable. After detecting an instability, the station immediately stops sending data but sends a series of interference pulses.

The pulses inform other stations that a conflict has occurred on the line. After detecting a conflict, the station waits for a random period, and then resumes the data transmission.

Minimum Frame Length

Due to the CSMA/CD algorithm limits, an Ethernet frame cannot be shorter than 64 bytes. This length is determined based on the maximum transmission distance and the collision detection mechanism. The use of a minimum frame length prevents conflicts from occurring in situations in which a station (for example, station A) finishes sending the last bit of a frame, but the first bit has not yet arrived at a faraway station (for example, station B). In this scenario, station B senses that the line is idle and begins to send data.

The upper layer protocol must ensure that each frame's Data field contains at least 46 bytes. In this way, the Data field with a 14-byte Ethernet frame header and 4-byte check code at the end of the frame equals the required minimum frame length of 64 bytes. If the Data field is less than 46 bytes, the upper layer must pad the gap. The maximum length of a frame's Data field has been set to 1500 bytes, as required by the memory cost and buffer of low-cost LAN controllers in 1979.

Maximum Transmission Distance

The maximum transmission distance depends on factors such as line quality and signal attenuation.

Duplex Modes

The Ethernet physical layer can work in either half- or full-duplex mode.

  • Half-duplex mode: Data can only be sent or received at any time.

    • The CSMA/CD mechanism is used.

    • The maximum transmission distance is limited.

  • Full-duplex mode: Data can be sent and received simultaneously. It has resolved conflicts, eliminated the need for CSMA/CD, and has the following features:

    • The maximum throughput is theoretically twice that of the half-duplex mode.

    • This mode extends the maximum transmission distance of the half-duplex mode.

Auto-Negotiation

Auto-negotiation definition: Auto-negotiation is a capability that enables devices at both ends of a physical link to automatically negotiate a working mode by exchanging information. The negotiated parameters include the half- or full-duplex mode and transmission speed. After the negotiation, the devices operate in negotiated mode.

Auto-negotiation implementation: The auto-negotiation mechanism applies to twisted pair cables only. When no data is transmitted over a twisted pair cable, the cable is not idle. Instead, it keeps transmitting the normal link pulses (NLPs) at a low frequency. Any Ethernet adapter with interfaces for twisted pair cables can identify these pulses. After lower-frequency pulses — fast link pulses (FLPs) — are inserted into the NLPs, the devices at both ends can also identify the pulses. By using FLPs to convey a small amount of data, the devices achieve auto-negotiation. Figure 4-1 shows the pulse insertion process.

Figure 4-1 Pulse insertion

Auto-negotiation priorities on Ethernet duplex links are listed as follows in descending order:

  • 1000M full-duplex

  • 1000M half-duplex

  • 100M full-duplex

  • 100M half-duplex

  • 10M full-duplex

  • 10M half-duplex

A configuration register in a device's network adapter saves the working modes that the adapter supports. For example, if a network adapter supports 100M and 10M working modes, the corresponding content is set in the corresponding register. After the network adapter is powered on, if auto-negotiation is allowed, the network adapter reads its configuration register, encodes the content, and sends it through FLPs. At the same time, it receives auto-negotiation data from the peer. It then compares the received data with the data in its configuration register and selects the optimal working mode. For example, if the device and its peer both support 100M full-duplex, the working mode 100M full-duplex is selected; if the peer supports only 10M full-duplex, the working mode 10M full-duplex is selected. If they do not share any capabilities, auto-negotiation fails, and they cannot communicate.

If auto-negotiation succeeds, the Ethernet adapter activates the link to transmit data. If auto-negotiation fails, the link cannot be used.

Auto-negotiation is implemented through physical layer coding and does not require any special data packets or bring upper-layer protocol overheads.

Interface auto-negotiation rules: Two connected interfaces can communicate with each other only when they work in the same mode.
  • If both interfaces work in the same non-auto-negotiation mode, the interfaces can communicate.
  • If both interfaces work in auto-negotiation mode, the interfaces can communicate through negotiation. The negotiated working mode depends on the interface with a lower capability. For example, if one interface works in full-duplex mode and the other in half-duplex mode, the negotiated working mode is half-duplex. If a local interface works in auto-negotiation mode and the remote interface works in a non-auto-negotiation mode, the negotiated working mode of the local interface depends on the working mode of the remote interface.
  • Table 4-1 describes the auto-negotiation rules for interfaces of the same type.

    Table 4-1 Auto-negotiation rules for interfaces of the same type (local interface working in auto-negotiation mode)

    Interface Type

    Working Mode of the Remote Interface

    Auto-Negotiation Result

    Description

    FE electrical interface

    10M half-duplex

    10M half-duplex

    If the remote interface works in 10M full-duplex or 100M full-duplex mode, the working modes of the two interfaces are different after auto-negotiation, and packets may be dropped. Therefore, if the remote interface works in 10M full-duplex or 100M full-duplex mode, configure the local interface to work in the same mode.

    10M full-duplex

    10M half-duplex

    100M half-duplex

    100M half-duplex

    100M full-duplex

    100M half-duplex

    GE electrical interface

    FE auto-negotiation

    100M full-duplex

    If the remote interface works in 10M full-duplex or 100M full-duplex mode, the working modes of the two interfaces are different after auto-negotiation, and packets may be dropped. Therefore, if the remote interface works in 10M full-duplex or 100M full-duplex mode, configure the local interface to work in the same mode.

    10M half-duplex

    10M half-duplex

    10M full-duplex

    10M half-duplex

    100M half-duplex

    100M half-duplex

    100M full-duplex

    100M half-duplex

    1000M full-duplex

    1000M full-duplex

    According to the auto-negotiation rules described in Table 4-1, if an interface works in auto-negotiation mode and the connected interface works in a non-auto-negotiation mode, packets may be dropped, or auto-negotiation may fail. To prevent such problems, configure two connected interfaces to work in the same mode to ensure that they can communicate properly.

    If interface hardware complies with auto-negotiation standards, it is recommended that Ethernet interfaces work in auto-negotiation mode.

    Manually setting interface rates and duplex modes usually complicates network planning and maintenance, and improper settings will affect or even interrupt the network communication.

    FE and higher-rate optical interfaces support only the full-duplex mode. When devices are directly connected using GE optical interfaces, auto-negotiation is enabled on the optical interfaces to detect unidirectional fiber faults. If one of two fibers is faulty, the fault information is synchronized on both ends through auto-negotiation to ensure that the interfaces on both ends go down. After the fault is rectified, the interfaces go up again through auto-negotiation.

Basic Concepts of the Ethernet Data Link Layer

Hierarchical Structure of the Ethernet Data Link Layer

In Ethernet, the following access modes are used according to the duplex mode:

  • CSMA/CD is used in half-duplex mode.

  • Data is sent and received directly in full-duplex mode without having to detect if the line is idle.

The duplex mode, either half or full, is a physical layer concept, whereas the access mode, varying with the duplex mode, is a data link layer concept. The two layers are related on the Ethernet.

Because of this relationship, a specific data link layer is required for different operation modes at the physical layer. This causes some issues for the design and application of the Ethernet.

To address this issue, some organizations and vendors have proposed dividing the data link layer into two sub-layers: logical link control (LLC) and media access control (MAC). In this case, different physical layers correspond to different MAC sub-layers, and the LLC sub-layer becomes totally independent, as shown in Figure 4-2.

Figure 4-2 Hierarchical structure of the Ethernet data link layer

MAC Sub-layer

The MAC sub-layer is responsible for the following:
  • Accessing physical links

    The MAC sub-layer is associated with the physical layer so that different MAC sub-layers provide access to different physical layers.

    Ethernet has two types of MAC sub-layers:

    • Half-duplex MAC: provides access to the physical layer in half-duplex mode.

    • Full-duplex MAC: provides access to the physical layer in full-duplex mode.

    The two types of MAC sub-layers are integrated in a network adapter. After the network adapter is initialized, auto-negotiation is performed to choose an operation mode, and according to which, a MAC sub-layer is chosen.

  • Identifying stations at the data link layer

    The MAC sub-layer reserves MAC addresses to uniquely identify stations at the data link layer.

  • Transmitting data at the data link layer

    After receiving data from the LLC sub-layer, the MAC sub-layer adds MAC addresses and control information to the data before transmitting it to the physical link. In this process, the MAC sub-layer provides functions such as the check function.

    Data transmission at the data link layer is as follows:

    1. The upper layer delivers data to the MAC sub-layer.

    2. The MAC sub-layer stores the data in a buffer.

    3. The MAC sub-layer adds the destination and source MAC addresses to the data and calculates the length of the data frame to form an Ethernet frame.

    4. The Ethernet frame is sent to the peer according to the destination MAC address.

    5. The peer compares the destination MAC address with entries in the MAC address table.

      • If there is a matching entry, the frame is accepted.

      • If there is no matching entry, the frame is discarded.

Ethernet Frame Structure

Ethernet II and IEEE 802.3 frames are the most common frames on a LAN. In TCP/IP, the Ethernet II frame format is defined in RFC 894, and the IEEE 802.3 frame format is defined in RFC 1042. Currently, the Ethernet II (also called Ethernet DIX) frame format is more widely used. Compared with IEEE 802.3 service access point (SAP) and Sub-Network Access Protocol (SNAP), Ethernet II is more suitable for transmitting a large amount of data. However, Ethernet II lacks control over the data link layer, and is therefore unsuitable for transmitting data that requires strict control.

Ethernet II Frames

Ethernet II frames are the most common types of frames and are generally used by the IP protocol. Figure 4-3 shows the Ethernet II frame format.

Figure 4-3 Ethernet II frame format

An Ethernet II frame has the following fields:

  • DMAC: destination MAC address, which specifies the receiver of the frame.

  • SMAC: source MAC address, which specifies the sender of the frame.

  • Type: The 2-byte Type field identifies the upper layer protocol in the Data field. The receiver can interpret the meaning of the Data field according to the Type field.

    Multiple protocols can coexist on a LAN. The hexadecimal values in the Type field of an Ethernet II frame specify these protocols.

    • 0800 indicates IP.

    • 0806 indicates the Address Resolution Protocol (ARP).

    • 0835 indicates the Reverse Address Resolution Protocol (RARP).

    • 8137 indicates Internetwork Packet Exchange (IPx) and Sequenced Packet Exchange (SPx).

  • Data: The minimum length of the Data field is 46 bytes, ensuring that the frame is at least 64 bytes. A 46-byte Data field is required even if a station transmits 1 byte of data.

    If the length of this field is less than 46 bytes, 0s are used for padding.

    The maximum length of the Data field is 1500 bytes.

  • CRC: The cyclic redundancy check (CRC) field provides an error detection mechanism.

    Each sending device calculates a CRC code from the DMAC, SMAC, Type, and Data fields. The CRC code is then filled into the 4-byte CRC field.

IEEE 802.3 Frames

Figure 4-4 shows the IEEE 802.3 frame format.

Figure 4-4 IEEE 802.3 frame format

The format of an IEEE 802.3 frame is similar to that of an Ethernet II frame. In an IEEE 802.3 frame, however, the Type field is changed to the Length field, and the LLC field and SNAP field occupy 8 bytes of the Data field.

  • Length: specifies the number of bytes of the Data field.

  • LLC: consists of three sub-fields – Destination Service Access Point (DSAP), Source Service Access Point (SSAP), and Control.

  • SNAP: consists of the Org Code field and Type field. Three bytes of the Org Code field are all 0s. The Type field functions the same as that in Ethernet II frames.

For descriptions of other fields, see Ethernet II frames.

According to the values of DSAP and SSAP, an IEEE 802.3 frame can be as follows:

  • If DSAP and SSAP are both 0xff, the IEEE 802.3 frame becomes a NetWare-Ethernet frame carrying NetWare data.

  • If DSAP and SSAP are both 0xaa, the IEEE 802.3 frame becomes an Ethernet_SNAP frame.

    An Ethernet_SNAP frame can be used for multi-protocol transmission. Therefore, SNAP can be considered as an extension of the Ethernet protocol and allows vendors to invent their own Ethernet transmission protocols.

    The Ethernet_SNAP standard is defined by IEEE 802.1 to help ensure compatibility between the operations of an IEEE 802.3 LAN and Ethernet.

  • Other values of DSAP and SSAP indicate pure IEEE 802.3 frames.

LLC Sub-layer

As described, the MAC sub-layer supports both IEEE 802.3 and Ethernet II frames. In the latter, the Type field identifies the upper layer protocol. In this case, the LLC sub-layer is not needed, and only the MAC sub-layer is required.

In an IEEE 802.3 frame, useful features are defined at the LLC sub-layer in addition to the traditional services of the data link layer. These features are specified by the sub-fields of DSAP, SSAP, and Control.

For example, the LLC sub-layer supports the following types of P2P data transmission services:

  • Connectionless service. Currently implemented by Ethernet.

  • Connection-oriented service. Specifically, a connection is set up before data is transmitted, thereby ensuring reliability.

  • Connectionless service with data acknowledgment. Specifically, a connection is not required before data transmission. However, an acknowledgment mechanism is adopted to improve reliability.

The following is an example to describe SSAP and DSAP applications. Assuming that terminals A and B use connection-oriented services, data is transmitted through the following process:

  1. A sends a frame to B to request a connection.

  2. After receiving the frame, if B has enough resources, it returns an acknowledgment message that contains a SAP. The SAP identifies the connection required by A.

  3. After receiving the acknowledgment message, A knows that B has set up a local connection between them. After creating a SAP, A sends a message containing the SAP to B. The connection is then set up.

  4. The LLC sub-layer of A encapsulates the data to be transmitted into a frame. The DSAP field is filled in with the SAP sent by B, and the SSAP field is filled in with that created by A. The LLC sub-layer of A then transfers the data to its MAC sub-layer.

  5. The MAC sub-layer of A adds the MAC address and Length fields to the frame, before transferring it to the data link layer.

  6. After receiving the frame at the MAC sub-layer of B, the MAC sub-layer transfers the frame to the LLC sub-layer, which identifies the connection that the frame belongs to according to the DSAP field.

  7. After checking and acknowledging the frame based on the connection type, the LLC sub-layer of B transfers the frame to the upper layer.

  8. After data transmission is complete, A sends B a frame, instructing B to tear down the connection. At this time, the communication ends.

Configuration Precautions for Ethernet Interface

Licensing Requirements

Ethernet interfaces are not under license control.

Hardware Requirements

Table 4-2 Hardware requirements

Series

Models

S5735-L-V2 series

S5735-L10T4X-A-V2/S5735-L10T4X-TA-V2/S5735-L16T4S-A-V2/S5735-L16T4X-QA-V2/S5735-L24P4S-A-V2/S5735-L24P4XE-A-V2/S5735-L24P4XE-TA-V2/S5735-L24T4S-A-V2/S5735-L24T4X-QA-V2/S5735-L24T4XE-A-V2/S5735-L24T4XE-D-V2/S5735-L48LP4S-A-V2/S5735-L48LP4XE-A-V2/S5735-L48P4XE-A-V2/S5735-L48T4S-A-V2/S5735-L48T4XE-A-V2/S5735-L48T4XE-TA-V2/S5735-L48T4XE-D-V2/S5735-L8P2T4X-A-V2/S5735-L8P2T4X-TA-V2/S5735-L8P4S-A-V2/S5735-L8P4X-QA-V2/S5735-L8T4S-A-V2/S5735-L8T4X-QA-V2

S5735-S-V2 series

S5735-S24P4XE-V2/S5735-S24T4XE-V2/S5735-S24U4XE-V2/S5735-S48P4XE-V2/S5735-S48T4XE-V2/S5735-S48U4XE-V2

S5732-H-V2 series

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S5735I-S-V2 series

S5735I-S24T4XE-V2/S5735I-S24T4XE-T-V2/S5735I-S24U4XE-V2/S5735I-S24U4XE-T-V2/S5735I-S8T4SN-V2/S5735I-S8T4XN-T-V2/S5735I-S8T4XN-V2/S5735I-S8U4XN-V2

S6730-H-V2 series

S6730-H28X6CZ-V2/S6730-H24X6C-V2/S6730-H48X6C-V2/S6730-H48X6CZ-V2/S6730-H48Y6C-V2

Feature Requirements

Table 4-3 Feature requirements

Feature

Feature Requirements

Series

Models

Port

In the interconnection scenario, the negotiation modes, duplex modes, and rates of the two ends of a link must be the same. Otherwise, the interconnection may fail.

S5735-S-V2 series

S5735-L-V2 series

S5732-H-V2 series

S5735I-S-V2 series

S6730-H-V2 series

S5735-S24P4XE-V2/S5735-S24T4XE-V2/S5735-S24U4XE-V2/S5735-S48P4XE-V2/S5735-S48T4XE-V2/S5735-S48U4XE-V2

S5735-L10T4X-A-V2/S5735-L10T4X-TA-V2/S5735-L16T4S-A-V2/S5735-L16T4X-QA-V2/S5735-L24P4S-A-V2/S5735-L24P4XE-A-V2/S5735-L24P4XE-TA-V2/S5735-L24T4S-A-V2/S5735-L24T4X-QA-V2/S5735-L24T4XE-A-V2/S5735-L24T4XE-D-V2/S5735-L48LP4S-A-V2/S5735-L48LP4XE-A-V2/S5735-L48P4XE-A-V2/S5735-L48T4S-A-V2/S5735-L48T4XE-A-V2/S5735-L48T4XE-TA-V2/S5735-L48T4XE-D-V2/S5735-L8P2T4X-A-V2/S5735-L8P2T4X-TA-V2/S5735-L8P4S-A-V2/S5735-L8P4X-QA-V2/S5735-L8T4S-A-V2/S5735-L8T4X-QA-V2

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S5735I-S24T4XE-V2/S5735I-S24T4XE-T-V2/S5735I-S24U4XE-V2/S5735I-S24U4XE-T-V2/S5735I-S8T4SN-V2/S5735I-S8T4XN-T-V2/S5735I-S8T4XN-V2/S5735I-S8U4XN-V2

S6730-H24X6C-TV2/S6730-H24X6C-V2/S6730-H28X6CZ-TV2/S6730-H28X6CZ-V2/S6730-H48X6C-TV2/S6730-H48X6C-V2/S6730-H48X6CZ-TV2/S6730-H48X6CZ-V2/S6730-H48Y6C-TV2/S6730-H48Y6C-V2

Port

When the auto-negotiation enabling status of two directly connected ports is set to different values, the port may go up abnormally . If the port goes up in this case, it may work abnormally, for example, packet loss or error packet generation occurs. It is recommended that the auto-negotiation enabling status of the two interconnected ports be set to the same value.

S5735-S-V2 series

S5735-L-V2 series

S5732-H-V2 series

S5735I-S-V2 series

S6730-H-V2 series

S5735-S24P4XE-V2/S5735-S24T4XE-V2/S5735-S24U4XE-V2/S5735-S48P4XE-V2/S5735-S48T4XE-V2/S5735-S48U4XE-V2

S5735-L10T4X-A-V2/S5735-L10T4X-TA-V2/S5735-L16T4S-A-V2/S5735-L16T4X-QA-V2/S5735-L24P4S-A-V2/S5735-L24P4XE-A-V2/S5735-L24P4XE-TA-V2/S5735-L24T4S-A-V2/S5735-L24T4X-QA-V2/S5735-L24T4XE-A-V2/S5735-L24T4XE-D-V2/S5735-L48LP4S-A-V2/S5735-L48LP4XE-A-V2/S5735-L48P4XE-A-V2/S5735-L48T4S-A-V2/S5735-L48T4XE-A-V2/S5735-L48T4XE-TA-V2/S5735-L48T4XE-D-V2/S5735-L8P2T4X-A-V2/S5735-L8P2T4X-TA-V2/S5735-L8P4S-A-V2/S5735-L8P4X-QA-V2/S5735-L8T4S-A-V2/S5735-L8T4X-QA-V2

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S5735I-S24T4XE-V2/S5735I-S24T4XE-T-V2/S5735I-S24U4XE-V2/S5735I-S24U4XE-T-V2/S5735I-S8T4SN-V2/S5735I-S8T4XN-T-V2/S5735I-S8T4XN-V2/S5735I-S8U4XN-V2

S6730-H24X6C-TV2/S6730-H24X6C-V2/S6730-H28X6CZ-TV2/S6730-H28X6CZ-V2/S6730-H48X6C-TV2/S6730-H48X6C-V2/S6730-H48X6CZ-TV2/S6730-H48X6CZ-V2/S6730-H48Y6C-TV2/S6730-H48Y6C-V2

Port

For the S6730-H-V2 Series:

1. If the port split configuration carried by a board (cached in the board's memory) is different from the user-configured one on the board, the board restarts once.

2. If the port split mode is switched offline, the new port split mode takes effect only after the board restarts.

S6730-H-V2 series

S6730-H24X6C-V2/S6730-H28X6CZ-V2/S6730-H48X6C-V2/S6730-H48X6CZ-V2

Port

When the physical configuration (such as negotiation, FEC, and speed) of a port is changed, the working mode of the port is changed, or the port starts registration with traffic, various types of error packets may be generated on the port.

S5735-S-V2 series

S5735-L-V2 series

S5732-H-V2 series

S5735I-S-V2 series

S6730-H-V2 series

S5735-S24P4XE-V2/S5735-S24T4XE-V2/S5735-S24U4XE-V2/S5735-S48P4XE-V2/S5735-S48T4XE-V2/S5735-S48U4XE-V2

S5735-L10T4X-A-V2/S5735-L10T4X-TA-V2/S5735-L16T4S-A-V2/S5735-L16T4X-QA-V2/S5735-L24P4S-A-V2/S5735-L24P4XE-A-V2/S5735-L24P4XE-TA-V2/S5735-L24T4S-A-V2/S5735-L24T4X-QA-V2/S5735-L24T4XE-A-V2/S5735-L24T4XE-D-V2/S5735-L48LP4S-A-V2/S5735-L48LP4XE-A-V2/S5735-L48P4XE-A-V2/S5735-L48T4S-A-V2/S5735-L48T4XE-A-V2/S5735-L48T4XE-TA-V2/S5735-L48T4XE-D-V2/S5735-L8P2T4X-A-V2/S5735-L8P2T4X-TA-V2/S5735-L8P4S-A-V2/S5735-L8P4X-QA-V2/S5735-L8T4S-A-V2/S5735-L8T4X-QA-V2

S5732-H24S4X6QZ-TV2/S5732-H24S4X6QZ-V2/S5732-H24UM4Y2CZ-TV2/S5732-H24UM4Y2CZ-V2/S5732-H44S4X6QZ-TV2/S5732-H44S4X6QZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-V2

S5735I-S24T4XE-V2/S5735I-S24T4XE-T-V2/S5735I-S24U4XE-V2/S5735I-S24U4XE-T-V2/S5735I-S8T4SN-V2/S5735I-S8T4XN-T-V2/S5735I-S8T4XN-V2/S5735I-S8U4XN-V2

S6730-H24X6C-TV2/S6730-H24X6C-V2/S6730-H28X6CZ-TV2/S6730-H28X6CZ-V2/S6730-H48X6C-TV2/S6730-H48X6C-V2/S6730-H48X6CZ-TV2/S6730-H48X6CZ-V2/S6730-H48Y6C-TV2/S6730-H48Y6C-V2

Default Settings for Ethernet Interfaces

Table 4-4 describes the default settings for Ethernet interfaces.

Table 4-4 Default settings for Ethernet interfaces

Parameter

Default Setting

Duplex mode

Full-duplex

Auto-negotiation

Enabled

Flow control

Disabled

Traffic statistics collection on Layer 2 physical interfaces

Enabled (IPv4 and IPv6 traffic statistics collection: disabled)

Traffic statistics collection on Layer 3 physical interfaces

Disabled

Transmission medium type of optical interfaces

Not pre-configured

Loopback detection

Disabled

Configuring MEth Management Interface Attributes

Context

The MEth management interface is a special Ethernet interface used to log in to a device to perform configuration and management. This interface does not transmit services.

T S5735-L-V2 series, and S5735-S-V2 series do not support the MEth management interface view. Any service interface can be used as a management interface.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the MEth management interface view.

    interface meth 0/0/0

  3. Configure an IP address for the MEth management interface.

    ip address ip-address { mask | mask-length } [ sub ][tag tag-value]

  4. (Optional) Disable auto-negotiation and set a working speed for the MEth management interface.

    negotiation disable
    speed { 10 | 100 | 1000 }

    If interface hardware complies with auto-negotiation standards, it is recommended that Ethernet interfaces work in auto-negotiation mode.

    Manually setting interface rates usually complicates network planning and maintenance, and improper settings will affect or even interrupt the network communication.

Configuring a Port Group

Context

To configure commands on multiple interfaces in batches, you can add them to a port group. This reduces errors caused by separate configurations on each interface and saves manpower. Port groups are classified as permanent or temporary port groups. Their functions are similar, as described in Table 4-5.

Table 4-5 Differences between permanent and temporary port groups

Port Group

Whether to Automatically Delete the Port Group

Whether the display port-group Command Is Used for Query

Whether to Generate a Configuration File

Permanent port group

No (deleted using the undo port-group command)

Yes

Yes

Temporary port group

Yes

No

No

The command executed in the port group view takes effect only when the member interfaces support the command configuration. Therefore, batch configurations may not take effect for all member interfaces. For example, a port group consists of optical and electrical interfaces. If you run the port transceiver-power-low trigger error-down command in the port group view, the configuration takes effect only on the optical interfaces.

Procedure

  • Configure a permanent port group.
    1. Enter the system view.

      system-view

    2. Create a permanent port group and enter its view.

      port-group port-group-name

    3. Add interfaces to the permanent port group.

      group-member { interface-type-start interface-number-start [ to interface-type-end interface-number-end ] } &<1-10>

  • Configure a temporary port group.
    1. Enter the system view.

      system-view

    2. Create a temporary port group and add interfaces to this group.

      port-group group-member { interface-type-start interface-number-start [ to interface-type-end interface-number-end ] } &<1-10>

      or

      interface range { interface-type-start interface-number-start [ to interface-type-end interface-number-end ] } &<1-10>

Verifying the Configuration

Run the display port-group [ all | port-group-name ] command to check information about all port groups or a specified one.

The port group function enables batch configuration, but the port group configuration cannot be checked or saved. To check configurations of member interfaces in a port group, run the display this command in the member interface view.

Follow-up Procedure

In the port group view, you can deliver the following configurations to member interfaces in batches as required:

You can configure both interface attribute commands and service commands in the port group view. For details about the service commands, see the related documentation.

Configuring Layer 2/Layer 3 Mode Switching on an Ethernet Interface

Context

Based on the hardware structure, some interfaces can be switched between working in Layer 2 or 3 mode, whereas others cannot.

Determine whether to switch the working mode of an interface between Layer 2 and Layer 3 based on the interface type.

Eth-Trunk member interfaces do not support the configuration of switching between Layer 2 and Layer 3 modes.

This configuration is supported only by the S6730-H-V2 and S5732-H-V2 series

Procedure

  • Switch the working mode of a single Ethernet interface to Layer 2 in the Ethernet interface view.
    1. Enter the system view.

      system-view

    2. Enter the Ethernet interface view.

      interface interface-type interface-number

    3. Switch the working mode of the interface to Layer 2.

      portswitch

      The mode switching function takes effect when the interface only has attribute configurations, such as shutdown and description configurations, or configurations supported by both Layer 2 and Layer 3 modes. Before switching the working mode, ensure that the configurations on the interface still support the new working mode. If unsupported configurations exist on the interface, delete the configurations before running the portswitch command.

  • Switch the working mode of a single Ethernet interface to Layer 3 in the Ethernet interface view.
    1. Enter the system view.

      system-view

    2. Enter the Ethernet interface view.

      interface interface-type interface-number

    3. Switch the working mode of the interface to Layer 3.

      undo portswitch

      The mode switching function takes effect when the interface only has attribute configurations, such as shutdown and description configurations, or configurations supported by both Layer 2 and Layer 3 modes. Configurations that are not supported by the target working mode cannot exist on the interface. If unsupported configurations exist on the interface, delete the configurations before running the undo portswitch command.

    4. (Optional) Disable the protocol status of the interface.

      shutdown network-layer
      When users require that only the protocol status of an interface becomes down whereas the physical and link layer status remains unchanged for troubleshooting optical modules or fibers, run the shutdown network-layer command to disable the interface's protocol status. After faults are rectified at the physical and link layers, run the undo shutdown network-layer command to reactivate the interface's protocol status.

      The shutdown network-layer and protocol up-delay-time commands cannot be configured together.

  • Switch the working modes of Ethernet interfaces to Layer 2 in batches in the system view.
    1. Enter the system view.

      system-view

    2. Switch the working modes of Ethernet interfaces to Layer 2 in batches.

      portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

  • Switch the working modes of Ethernet interfaces to Layer 3 in batches in the system view.
    1. Enter the system view.

      system-view

    2. Switch the working modes of Ethernet interfaces to Layer 3 in batches.

      undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check the current interface status. If the Switch Port field is displayed in the command output, the interface is a Layer 2 interface; if the Route Port field is displayed, it is a Layer 3 interface.

Configuring an Ethernet Interface to Work in Auto-negotiation Mode

Context

On a network, devices may have different transmission capabilities and must negotiate a proper data transmission capability to communicate with each other. The auto-negotiation function enables connected devices at both ends of a physical link to exchange information so that they can automatically choose the same working parameters and work at the maximum transmission capability that both devices support.

The parameters negotiated automatically include the duplex and FEC modes as well as the working rate. If the negotiation succeeds, the involved devices work in the same duplex and FEC modes, and at the same rate. If auto-negotiation is disabled on the devices, the operating parameters must be manually set.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the Ethernet interface view.

    interface interface-type interface-number

  3. Configure the Ethernet interface to work in auto-negotiation mode.

    undo negotiation disable

    If interface hardware complies with auto-negotiation standards, it is recommended that Ethernet interfaces work in auto-negotiation mode.

    Manually setting interface rates usually complicates network planning and maintenance, and improper settings will affect or even interrupt the network communication.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check whether auto-negotiation is enabled on the interface based on the Negotiation field in the command output.

Configuring General Attributes for Ethernet Optical or Electrical Interfaces

Understanding General Attributes

Interface Rate

In auto-negotiation mode, interfaces at both ends of a link negotiate an interface rate.

If the automatically negotiated interface rate does not meet requirements or the peer device does not support auto-negotiation, you need to manually set an interface rate in non-auto-negotiation mode. The interface rates set on both ends of a link must be the same.

Interface IFG

The inter-frame gap (IFG) is used to differentiate two Ethernet frames, as shown in Figure 4-5. It can affect the packet forwarding capability on an interface.

The packet forwarding capability, also called interface throughput, refers to the data forwarding capability on an interface, which is expressed in packets per second (pps). The packet forwarding capability is calculated based on the number of 64-byte data packets (smallest packets) sent in a certain period. During calculation, the lengths of the preamble and IFG must be taken into account.

It is recommended that the default IFG of 12 bytes is used. If you set the IFG to a smaller value, after receiving one data frame, a device may not be well prepared to receive the next one. This could result in frame loss. If the length of a data frame to be sent exceeds 8000 bytes, it is recommended that you change the IFG to 16 bytes.

Figure 4-5 IFG

Traffic Statistics Collection

You can check the running status and traffic statistics of an interface by running the display interface command. The Last 300 seconds input rate and Last 300 seconds output rate fields in the command output indicate the inbound and outbound traffic rates on the interface in the last 300 seconds.

  • To obtain the total number of bytes (including the number of packet bytes and the fixed lengths of the IFG and preamble) passing through an interface per second, configure collection of traffic statistics that include the IFG and preamble. The interface's traffic rate is then calculated as follows: Interface's traffic rate = (Original packet length + IFG length + Preamble length) x Number of packets passing through the interface per second
  • To obtain only the number of packet bytes (excluding the fixed lengths of the IFG and preamble) passing through an interface per second, configure collection of traffic statistics that exclude the IFG and preamble. The interface's traffic rate is then calculated as follows: Interface's traffic rate = Original packet length x Number of packets passing through the interface per second

Jumbo Frame Length Allowed on an Interface

Ethernet frames longer than 1518 bytes and VLAN frames longer than 1522 bytes are called jumbo frames.

When exchanging a large amount of data (for example, when transmitting files), Ethernet interfaces may receive jumbo frames whose length exceeds that of common packets. However, if the length of the received Jumbo frame exceeds the default data frame length, it is directly discarded by the device. To address this issue, you can adjust the jumbo frame length allowed on an interface.

After adjustment, the common Ethernet frame length no longer restricts the allowed packet length limit. In this way, flexible packet forwarding can be achieved. Jumbo frames also improve bandwidth utilization. When transmitting data packets, common Ethernet frames introduce a lot of overheads such as IFGs and headers. In contrast, jumbo frames reduce this number and therefore improve bandwidth utilization.

The jumbo frame lengths allowed on interfaces cannot all be set to the maximum value, as extra packet encapsulation must be considered. After an interface receives protocol packets such as VLAN packets, it encapsulates packet headers containing certain bytes to the packets. The length of the outgoing packets then exceeds that of the incoming packets, which may cause packet loss. To prevent this, the packet header length must be considered when you configure the maximum frame length on an interface.

Alarm Threshold for Outbound/Inbound Bandwidth Usage

You can configure a threshold for outbound/inbound bandwidth usage. When this threshold is exceeded, an alarm is generated. This helps you to expand bandwidth in advance and prevent service interruptions. For best effect, the threshold must be set to an appropriate value. If it is too high, for example, 95%, you may not have enough time to expand the bandwidth after the alarm is generated, which may cause service interruptions.

Alarms for Sudden Traffic Rate Changes on Interfaces

To notify users that the incoming or outgoing traffic rate on an interface suddenly increases or decreases, the device supports hwInputRateChangeOverThresholdNotice or hwOutputRateChangeOverThresholdNotice alarm.

Control-Flap

The flapping of routing protocols and other protocols caused by frequent changes of the interface status affects the stability of the whole network. To resolve this problem, you can configure the control-flap function.

Only Layer 3 interfaces support the control-flap function.

Delay to Report Interfaces' Physical Status Changes

An Ethernet interface can be physically up or down. When the physical status of an interface changes, the device where the interface resides notifies upper-layer protocol modules, such as the routing and forwarding modules, of the change to guide packet receiving and forwarding. In addition, the device automatically generates traps and logs to remind users to perform the corresponding operations on physical links.

After you configure a delay in reporting changes in interfaces' physical status, the device will not detect physical status changes during that delay. After the delay, if the physical status has not resumed its original status, the physical status changes are reported to the device.

Link Flapping Causing Interfaces to Enter the Error-Down State

A device sets the status of an interface to error-down when it detects a fault on the interface. An interface in error-down state cannot send or receive packets, and the interface indicator is off. Link flapping is one possible cause of an interface entering the error-down state. To address this issue, link flapping protection shuts down the interfaces whose physical status frequently alternates between up and down, thereby preventing network topologies from frequently changing and affecting user communication. For example, if the physical status of the active link's interface frequently alternates between up and down, services are frequently switched between the active and standby links. This increases the load on the device and may cause service data loss. To prevent this issue, configure link flapping protection on the active link's interface. If this function is configured and the device detects that the physical status of the active link's interface frequently changes, the device shuts down this interface to trigger an active/standby link switchover. The standby link then takes over to steadily transmit services. The link flapping protection function involves the following parameters:

  • Number of link flaps: One interface up/down transition is recorded as one link flap.

  • Link flapping detection interval: a period during which a device counts the number of link flaps.

If the number of link flaps on an interface reaches a preset threshold within a link flapping interval, a device disables the interface and records its status as ERROR DOWN(link-flap).

Threshold for the Number of Received CRC Error Packets that Cause an Interface to Enter the Error-Down State

A device sets the status of an interface to error-down when it detects a fault on the interface. An interface in error-down state cannot send or receive packets, and the interface indicator is off. Receiving excessive CRC error packets is one of the possible causes of an interface entering the Error-Down state. If this function is not enabled, an interface that encounters a fault may be still up, preventing traffic from being switched to a configured backup link. To avoid impact on services, you can configure the interface to enter the error-down state when it receives excessive CRC error packets. When the number of received error packets on the interface exceeds the upper alarm threshold, the device disables the interface and records its status as error-down. Services are then switched to the backup link immediately.

Configuring General Attributes

Procedure

  1. Enter the system view.

    system-view

  2. Configure required general attributes for Ethernet interfaces in the system view.

    Table 4-6 Configuring general attributes for Ethernet interfaces in the system view

    Operation

    Command

    Description

    Configure an interface rate. Specifically, configure a 40GE interface to work at 100 Gbit/s. Only the S6730-H-V2 series supports this configuration.

    port mode 100ge interface { interface-type1 interface-number1 [ to interface-type2 interface-number2 ] } &<1-18>

    By default, a 40GE interface works at 40 Gbit/s after a 40GE optical module is inserted into the interface, but does not go up after a 100GE optical module is inserted into the interface.

  3. Enter the Ethernet interface view.

    interface interface-type interface-number

  4. Configure required general attributes for Ethernet interfaces in the interface view.

    Table 4-7 Configuring general attributes for Ethernet interfaces in the interface view

    Operation

    Command

    Description

    Configure an interface rate. In auto-negotiation mode, a GE electrical interface works at 10 Mbit/s, 100 Mbit/s, or 1 Gbit/s.

    Run the following commands in sequence:

    1. undo negotiation disable
    2. speed auto { 10 | 100 | 1000 }

    By default, interfaces work at the maximum supported rate. That is, a GE electrical interface works at 1 Gbit/s.

    Configure an interface rate. In non-auto-negotiation mode, a GE electrical interface works at 10 Mbit/s, 100 Mbit/s, or 1 Gbit/s.

    Run the following commands in sequence:

    1. negotiation disable
    2. speed { 10 | 100 | 1000 }

    By default, interfaces work at the maximum supported rate. That is, a GE electrical interface works at 1 Gbit/s.

    Configure an interface rate. Specifically, configure a 10GE interface to work at 100 Mbit/s or 1 Gbit/s.

    Run the following commands in sequence:

    1. negotiation disable
    2. speed { 100 | 1000 }

    By default, interfaces work at the maximum supported rate. That is, a 10GE interface works at 10 Gbit/s.

    An optical-to-electrical conversion module must be installed on a 10GE optical interface to convert it into an electrical interface.

    Configure an interface rate. Specifically, configure a 25GE interface to work at 10 Gbit/s.

    port mode 10G

    A 25GE interface automatically works at 10 Gbit/s when a 10GE medium is installed or at 25 Gbit/s when a 25GE variable-rate medium is installed.

    Configure an interface rate. Specifically, configure a 25GE interface to work at 1 Gbit/s.

    port mode GE

    By default, a 25GE interface automatically works at 10 Gbit/s when a 10GE medium is installed or at 25 Gbit/s when a 25GE variable-rate medium is installed.

    Only 25GE interfaces on the S6730-H48Y6C-V2 can be configured to work in GE mode. Interfaces 1 to 8, 9 to 12, 13 to 16, 17 to 24, 25 to 28, 29 to 36, 37 to 44, and 45 to 48 form eight interface groups. After the port mode GE command is run on any interface in an interface group, all interfaces in that group are configured to work at 1 Gbit/s. In this case, to enable an interface in the group to go up, you must install a GE medium on that interface. Otherwise, the interface will enter the Error-Down state.

    Configure an interface rate. Specifically, configure a MultiGE interface to work at 100 Mbit/s, 1 Gbit/s, 2.5 Gbit/s, 5 Gbit/s, or 10 Gbit/s in non-auto-negotiation mode.

    Run the following commands in sequence:

    1. negotiation disable
    2. speed { 10 | 100 | 1000 | 2500 | 5000 | 10000 }

    By default, interfaces work at the maximum supported rate.

    Configure an interface rate. Specifically, configure a MultiGE interface to work at 100 Mbit/s, 1 Gbit/s, 2.5 Gbit/s, 5 Gbit/s, or 10 Gbit/s in auto-negotiation mode.

    Run the following commands in sequence:

    1. undo negotiation disable
    2. speed auto { 100 | 1000 | 2500 | 5000 | 10000 } *

    By default, a MultiGE interface works at the maximum rate negotiated between the local and remote devices.

    Configure flow control on an interface.

    flow-control [ input | output ]

    By default, flow control is disabled on Ethernet interfaces. If neither input nor output is specified, flow control is enabled in both the inbound and outbound directions.

    Ensure that no loop or loopback interface exists on the traffic path passing through the interface. Otherwise, traffic may fail to be forwarded after flow control is enabled.

    Configure an IFG.

    ifg ifg-value

    By default, an IFG is 12 bytes.

    Configure collection of traffic statistics that take the IFG and preamble into account.

    set flow-statistics include-interframe

    By default, the IFG and preamble are taken into account when traffic statistics are collected on interfaces.

    Set the jumbo frame length allowed on an interface.

    jumboframe enable value

    By default, the maximum jumbo frame length allowed by an interface is 9216 bytes.

    The jumbo frame configurations in the Eth-Trunk interface view take effect for all its member interfaces. When an interface is added to an Eth-Trunk interface, the interface inherits the jumbo frame configurations on the Eth-Trunk interface. When a member interface is removed from the Eth-Trunk interface, the default jumbo frame configurations are restored on the member interface.

    Configure an alarm threshold for outbound/inbound bandwidth usage.

    trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]

    By default, the alarm thresholds for the outbound and inbound bandwidth usage are both 90.

    To prevent alarms from being frequently generated and cleared, set a large difference between the values of bandwidth-in-use and resume-threshold.

    Configure alarm thresholds for sudden traffic rate changes on interfaces.

    Run the following commands:
    • set flow-change-ratio interval interval-value
    • set flow-change-ratio { input-threshold | output-threshold } upper-limit threshold-value
    • set flow-change-ratio start-check bandwidth-usage value

    In the statistics collection period specified using the set flow-change-ratio interval interval-value command:

    • If the traffic rate increase (percentage) exceeds the threshold specified using the set flow-change-ratio { input-threshold | output-threshold } upper-limit threshold-value command and the interface bandwidth usage after the traffic rate increase exceeds the threshold specified using the set flow-change-ratio start-check bandwidth-usage value command, an alarm is generated.
    • If the traffic rate decrease (percentage) exceeds the threshold specified using the set flow-change-ratio { input-threshold | output-threshold } upper-limit threshold-value command and the interface bandwidth usage before the traffic rate decrease exceeds the threshold specified using the set flow-change-ratio start-check bandwidth-usage value command, an alarm is generated.

    Configure the control-flap function.

    control-flap [ suppress reuse ceiling decay-ok decay-ng ]

    By default, the control-flap function is disabled on interfaces.

    Before configuring the control-flap function, configure the physical attributes for the interface.

    The value of suppress is 1000 times the suppress threshold of the interface. It ranges from 1 to 20000. The default value is 2000. The value of suppress must be greater than the value of reuse but smaller than the value of ceiling.

    The value of reuse is 1000 times the reuse threshold of the interface. It ranges from 1 to 20000. The default value is 750. The value of reuse must be smaller than the value of suppress.

    The value of ceiling is 1000 times the suppress penalty value of the interface. It ranges from 1001 to 20000. The default value is 6000. The value of ceiling must be greater than the value of suppress.

    The value of decay-ok is the time taken to decay the penalty value to half when the interface is up. It ranges from 1 to 900 seconds. The default value is 54 seconds.

    The value of decay-ng is the time taken to decay the penalty value to half when the interface is down. It ranges from 1 to 900 seconds. The default value is 54 seconds.

    Only Layer 3 interfaces support the control-flap function.

    The Null0 interface and loopback interfaces do not support the control-flap function.

    You can run the display control-flap [ interface { interface-name | interface-type interface-number } ] command to check the running status of and statistics related to the control-flap function on an interface. If no interface is specified, the information about all interfaces is displayed. Based on the information, you can adjust control-flap parameters.

    You can run the reset control-flap { penalty | counter } interface { interface-name | interface-type interface-number } command to clear the running status of and statistics related to the control-flap function on an interface.

    Configure a delay in reporting interfaces' physical status changes.

    carrier { down-hold-time hold-down | up-hold-time hold-up }

    By default, the delay in reporting an up event and that in reporting a down event are both 0 ms.

    Configure an interface to enter the error-down state when the number of link flaps reaches a specified threshold within a specified interval.

    Run the following commands in sequence:
    1. port link-flap { interval interval-value threshold threshold-value | interval interval-value | threshold threshold-value } [ second-interval second-interval-value second-threshold second-threshold-value ]
    2. quit
    3. port link-flap trigger error-down

    By default, only one group of parameters are supported. Specifically, the link flapping detection interval is 10s, and the maximum number of link flaps within this interval is 5.

    For details about how to check and clear the error-down state, see Configuring an Interface to Enter the Error-Down State When the Receive Optical Power Is Low.

    Configure an interface to enter the error-down state when the number of received CRC error packets exceeds the threshold.

    Run the following commands in sequence:
    1. trap-threshold crc-statistics threshold-value interval interval-value
    2. port crc-statistics trigger error-down

    For the first command: By default, the alarm threshold for the number of CRC error packets is 3 and the interval for collecting statistics about CRC error packets is 10 seconds.

    For the second command: By default, an interface does not enter the error-down state when the number of received CRC error packets exceeds the threshold.

    For details about how to check and clear the error-down state, see Configuring an Interface to Enter the Error-Down State When the Receive Optical Power Is Low.

Configuring Attributes for Ethernet Optical Interfaces

Pre-configuring a Transmission Medium Type for an Optical Interface

Context

Some functions can be configured on an optical interface only after the interface connects to a transmission medium (such as an optical module or copper module). Therefore, optical interfaces must connect to transmission media before configuration of these functions. Sometimes the installation and configuration personnel are different. The configuration personnel can configure services only after the installation personnel install the transmission media on interfaces, lengthening the time of service deployment. To shorten the service deployment time, the configuration personnel can pre-configure a transmission medium type on optical interfaces and then configure functions on the interfaces. These functions subsequently take effect after the installation personnel install the correct transmission media on the interfaces. This way, configuration can be more flexible.

A transmission medium type can be pre-configured for an optical interface only when the interface does not connect to a transmission medium. If the type of the installed transmission medium is the same as the pre-configured one, the interface has met the condition to go up, and the later configurations can take effect. If the types are different, the installed transmission medium type is preferentially used.

  • If the pre-configured transmission medium is a high-speed cable but an optical module is installed, the optical module may burn. Ensure that the installed transmission medium is the same as the pre-configured transmission medium.

  • If the type of the installed optical module is unknown, a device cannot identify the optical module. Only when the pre-configured transmission medium and the installed optical module have the same bandwidth can the interface go up. To ensure that the interface works properly, you are advised to use Huawei-certified optical modules.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

    Enter the corresponding interface view based on the interface type to be configured.

  3. Pre-configure a transmission medium type for the interface.

    device transceiver transceiver-type

    By default, no transmission medium type is pre-configured for interfaces.

  4. (Optional) Bring up the current interface.

    undo shutdown

    Perform this step only when the current optical interface is shut down.

Verifying the Configuration

Run the display this command in the interface view to check information about the pre-configured transmission medium.

Configuring FEC

Context

Forward error correction (FEC) is a bit error correction technology that adds correction information to data packets at the transmit end, and corrects bit errors generated during transmission of data packets at the receive end based on the correction information. While FEC improves the signal quality, it also increases the delay of signal transmission. You can enable or disable this function as required.

Devices support the following FEC modes: Base-R FEC, RS-FEC, and none FEC.
  • Base-R FEC: The Base-R FEC function can be enabled or disabled on 25GE interfaces working at 25 Gbit/s.
  • RS-FEC: The RS-FEC function can be enabled or disabled on 25GE interfaces working at 25 Gbit/s and 100GE interfaces working at 100 Gbit/s.
  • None FEC: FEC is disabled.

FEC is a function requiring auto-negotiation on an interface. If auto-negotiation is enabled, the local and remote interfaces negotiate whether to enable or disable FEC. If auto-negotiation is disabled, the default FEC mode is used. You can configure Base-R FEC, RS-FEC, or none FEC (disabling FEC) on an interface based on the interface's support for FEC. If FEC is enabled at one end of a link, it must also be enabled at the other end of the link. If the interfaces at both ends of a link support both Base-R FEC and RS-FEC, the interfaces work in RS-FEC mode after auto-negotiation.

The FEC enabling configuration is mutually exclusive with auto-negotiation and interface rate configurations on an interface, and is automatically deleted when auto-negotiation is enabled or a rate is configured on the interface.

  • The default FEC mode on an interface varies according to the device model and connection medium. You can run the display interface command in any view or the display this interface command in the interface view to check whether the FEC function is enabled on an interface based on the Fec field in the command output.

  • Interfaces at both ends of a link must work in the same FEC mode; otherwise, the interfaces do not go up. If their FEC modes are different, configure the same FEC mode on the interfaces when they work in non-auto-negotiation mode.
  • The FEC mode can be changed only after auto-negotiation is disabled.

  • When interfaces are connected using 25GE media, enable the FEC function at both ends of each involved link to reduce the transmission bit error rate and error packets on each link.
  • Only the S6730-H-V2 series and S5732-H-V2 series support the FEC configuration.

Procedure

  • Enable the Base-R FEC function.
    1. Enter the system view.

      system-view

    2. Enter the Ethernet interface view.

      interface interface-type interface-number

    3. Enable the Base-R FEC function.

      fec mode base-r

  • Enable the RS-FEC function.
    1. Enter the system view.

      system-view

    2. Enter the Ethernet interface view.

      interface interface-type interface-number

    3. Enable the RS-FEC function.

      fec mode rs

  • Disable the FEC function.
    1. Enter the system view.

      system-view

    2. Enter the Ethernet interface view.

      interface interface-type interface-number

    3. Disable the FEC function.

      fec mode none

      The fec mode none command disables the FEC function, and the undo fec mode command restores the default FEC status. If the default FEC status is "disabled" for an optical module, the fec mode none and undo fec mode commands both can be used to disable FEC.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check the FEC information of the interface based on the Fec field in the command output.

Configuring Unidirectional Single-Fiber Communication

Context

Unidirectional single-fiber communication enables a device to send but not receive packets or, conversely, to receive but not send packets. A single fiber means that two optical modules are connected by only one fiber, and unidirectional communication means that packets can be sent in only one direction. For example, during network management and maintenance, the administrator needs to send traffic to a specified server for analysis. This may pose a security risk if the server is able to send the traffic to other devices. The unidirectional single-fiber communication function can address this issue.

An optical module typically consists of a transmit (TX) end and a receive (RX) end, which can be respectively connected to the RX and TX ends of another module using fibers. A device transmits and receives packets through two independent fibers. If the unidirectional single-fiber communication function is disabled, two devices cannot communicate with each other through a single fiber. After this function is configured, the devices can use one fiber to communicate with each other.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

  3. (Optional) Pre-configure a medium type for the interface.

    device transceiver transceiver-type

    You can configure single-fiber communication on an interface only after an optical module (not a single-fiber bidirectional optical module) is inserted into the interface. If no optical module is inserted into the interface, you can run this command to pre-configure the medium type of the interface as fiber.

  4. Perform either of the following operations based on requirements: (The two commands cannot be used together. If both commands are configured, only the later one takes effect.)

    • Enable the unidirectional single-fiber communication function.
      single-fiber enable

      By default, the unidirectional single-fiber communication function is disabled. After this command is run on an interface, the interface will be in down state if no optical module is inserted, or if a single-fiber bidirectional optical module, MPO optical module, or high-speed cable is inserted into the interface. This command enables the function of only sending or receiving packets based on the connection mode of the optical module.

    • Configure the single-fiber receiving function.
      single-fiber rx

      By default, the single-fiber receiving function is disabled. After the command is run, the interface goes up only when the optical modules at both ends are present and can receive optical signals properly. The command takes effect only when the RX port of the optical module is connected on the local end.

Configuring an Interface to Enter the Error-Down State When the Receive Optical Power Is Low

Context

A device records the status of an interface as Error-Down when it detects a fault on the interface. An interface in Error-Down state cannot receive or send packets and the interface indicator is off. Low receive optical power is one of the possible causes of an interface entering the Error-Down state, which may subsequently lead to issues such as packet loss. If this function is not enabled, an interface that encounters a fault may be still up, preventing traffic from being switched to a configured backup link. To avoid impact on services, you can configure the interface to change to the Error-Down state when the receive optical power is low. After this configuration is complete, when the receive optical power on the interface falls below the lower alarm threshold, the device disables the interface and records the interface status as ERROR DOWN(transceiver-power-low). Services are then switched to the backup link immediately.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

  3. Configure the interface to enter the Error-Down state when the receive optical power is low.

    port transceiver-power-low trigger error-down

    By default, the function is disabled.

Verifying the Configuration

Run the display error-down recovery [ interface interface-type interface-number ] command in any view to check information about the interface in Error-Down state.

Follow-up Procedure

If an interface is in Error-Down state, you are advised to find out the cause first.

An interface in Error-Down state can be recovered using either of the following methods:
  • Manual recovery (after an Error-Down event occurs):

    If few interfaces need to be recovered, run the shutdown and undo shutdown commands in the interface view, or restart the interface by running the restart command in the interface view.

  • Automatic recovery (before an Error-Down event occurs):

    If a large number of interfaces need to be recovered, manual recovery is time consuming, and some interfaces may be omitted. To avoid these problems, run the error-down auto-recovery cause transceiver-power-low interval command in the system view to enable automatic interface recovery and set the delay time for recovery. You can run the display error-down recovery command to view information about automatic interface recovery.

    This method does not take effect on interfaces that are already in Error-Down state. It takes effect only on interfaces that enter the Error-Down state after this configuration is complete.

Configuring Attributes for Ethernet Electrical Interfaces

Configuring the Duplex Mode

Context

You can configure the duplex mode of an Ethernet electrical interface working in either auto-negotiation or non-auto-negotiation mode.

  • In auto-negotiation mode, interfaces on both ends of a link negotiate their duplex mode. If the negotiated duplex mode is not the required one, you can manually change the duplex mode. For example, two interfaces support both full duplex mode and half duplex mode. If the two interfaces negotiate to work in half duplex mode, but they are required to work in full duplex mode, you can set the full duplex mode for the two interfaces.

  • In non-auto negotiation mode, you can set the required duplex mode for interfaces manually.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

  3. Set a duplex mode for the interface.

    • Configure a duplex mode for an interface in auto-negotiation mode.
      undo negotiation disable
      duplex auto { half | full }
    • Configure a duplex mode for an interface in non-auto-negotiation mode.
      negotiation disable
      speed { 10 | 100 }
      duplex { half | full }

      By default, an interface works in full duplex mode.

Configuring a Load Balancing Mode for Internal Communication Interfaces

Context

A device consists of two forwarding chips, which communicate with each other through internal communication interfaces. By default, the load balancing mode of internal communication interfaces is as follows:

  • Layer 2 packets are load balanced based on sbsp, dst-mac, and src-mac.
  • Layer 3 packets are load balanced based on sbsp, src-ip, dst-ip, src-port, and dst-port.

In a stack scenario, you are advised to configure the same load balancing mode for internal communication interfaces and stack interfaces. If different modes are used, the hash factors for load balancing may be different from the configured ones when packets pass through internal communication interfaces.

This function is supported only on the S6730-H-V2 and S5732-H-V2.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the load balancing template view for internal communication interfaces.

    load-balance inner-connect

  3. Configure a load balancing mode for packets on internal communication interfaces.

    • Configure a load balancing mode for Layer 2 packets.
      l2 { sbsp | dst-mac | src-mac | eth-type | outer-vlan | inner-vlan } *
    • Configure a load balancing mode for Layer 3 packets.
      l3 { sbsp | outer-vlan | inner-vlan | src-ip | dst-ip | protocol | src-port | dst-port } *

Maintaining Ethernet Interfaces

Configuring Loopback Detection on an Interface

Context

Before testing some special functions such as locating an Ethernet fault, enable loopback detection on the desired Ethernet interface to check whether the interface is working properly. If no fault occurs on the Ethernet interface, the physical and protocol statuses of the interface are always up after loopback detection is enabled. If a fault occurs, the statuses remain down.

The loopback detection function affects other functions and may prevent the interface or link from working properly. When the test is complete, run the undo loopback command to disable loopback detection. The original configuration is restored after loopback detection is disabled.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

  3. Configure loopback detection on the Ethernet interface.

    loopback internal

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check the current interface status. The Loopback field in the command output shows the loopback status.

Enabling Traffic Statistics Collection on a Physical Interface

Context

To check the network status or locate network faults, you can enable traffic statistics collection on interfaces.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the interface view.

    interface interface-type interface-number

  3. Enable traffic statistics collection on the interface

    statistics { ipv4 | ipv6 } enable [ inbound | outbound ]

    By default, IPv4 and IPv6 traffic statistics collection is disabled on interfaces.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number ] ] command in any view or the display this interface command in the interface view to check traffic statistics on the interface.

Configuring 5-Tuple-based Interface Traffic Statistics Collection

Context

A 5-tuple refers to the five fields contained in packets: source and destination IP addresses, source and destination port numbers, and protocol type. The 5-tuple generally varies with traffic flows on different interfaces.

To check statistics of packets with a specified 5-tuple and learn the traffic forwarding path for fault locating, configure 5-tuple-based interface traffic statistics collection.

This configuration is supported only by the S6730-H-V2 and S5732-H-V2 series.

Procedure

  1. Enter the system view.

    system-view

  2. Configure 5-tuple-based interface traffic statistics collection.

    port forwarding-path path-id pathnum { src-ip src-ip-data [ srcip-mask-len ] | dst-ip dst-ip-data [ dstip-mask-len ] | protocol { protocolnum | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * statistics precedence precedencenum

    By default, 5-tuple-based interface traffic statistics collection is not configured.

Verifying the Configuration

Run the display port forwarding-path path-id pathnum statistics command in any view to check statistics about the traffic that contains a specified 5-tuple.

Displaying the Outbound Interface of the Traffic with a Specified 5-Tuple

Context

The 5-tuple information of packets includes the source IP address, destination IP address, source port number, destination port number, and protocol type. Traffic transmitted on interfaces often carries different 5-tuple information, source MAC addresses, and destination MAC addresses. If the outbound interface of packets is an Eth-Trunk interface or packets have multiple ECMP next hops, you can view the outbound interface of packets with the specified 5-tuple, source MAC address, and destination MAC address to facilitate fault locating and identify traffic forwarding paths.

This configuration is supported only by the S6730-H-V2 and S5732-H-V2 series.

Procedure

  1. Check the outbound interface of packets with the specified 5-tuple, source MAC address, and destination MAC address.

    display port forwarding-path { src-ip src-ip-data [ ip-mask-len | source-ip-mask ] | dst-ip dst-ip-data [ ip-mask-len | dst-ip-mask ] | src-mac src-mac-data | dst-mac dst-mac-data | protocol { protocol-number | gre | icmp | igmp | ip | ipinip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } *

Clearing Statistics

Context

This configuration is supported only by the S6730-H-V2 and S5732-H-V2 series.

Be aware that statistics cannot be restored after being deleted. Exercise caution when clearing the statistics.

Procedure

  1. Clear 5-tuple-based interface traffic statistics.

    reset port forwarding-path path-id pathnum statistics

Configuring a High-Performance Mode for a Device

Context

A device consists of two forwarding chips. 25GE interfaces numbered 1 to 24 and 100GE interfaces numbered 1 to 3 belong to chip 1. 25GE interfaces numbered 25 to 48 and 100GE interfaces numbered 4 to 6 belong to chip 2. Chips 1 and 2 communicate with each other through internal communication interfaces. The bandwidth of a single chip on a device is 900 Gbit/s, whereas the bandwidth of an internal communication interface is only 300 Gbit/s. As such, the bandwidth of an internal communication interface is much lower than that of a single chip on the device. When the bandwidth of an internal communication interface cannot meet the bandwidth requirements for the interconnection between two chips, an hwBoardWarning alarm is generated (when the bandwidth usage of the internal communication interface exceeds 80% or packet loss occurs on the internal communication interface). In this case, you need to change the high-performance mode of the device to adjust the bandwidth of an internal communication interface. You can change the mode to mode2, mode3, mode4, and mode5 in sequence until the hwBoardWarning alarm is cleared.

Parameter

Meaning

Bandwidths of an Internal Communication Interface and a Single Chip

mode1

High-performance mode 1: All interfaces are available.

  • Single chip: 900 Gbit/s
  • Internal communication interface: 300 Gbit/s

mode2

High-performance mode 2: 25GE interfaces numbered 21 to 28 are unavailable.

  • Single chip: 800 Gbit/s
  • Internal communication interface: 400 Gbit/s

mode3

High-performance mode 3: 25GE interfaces numbered 19 to 30 are unavailable.

  • Single chip: 750 Gbit/s
  • Internal communication interface: 450 Gbit/s

mode4

High-performance mode 4: 25GE interfaces numbered 17 to 32 are unavailable.

  • Single chip: 700 Gbit/s
  • Internal communication interface: 500 Gbit/s

mode5

High-performance mode 5: 25GE interfaces numbered 13 to 36 are unavailable.

  • Single chip: 600 Gbit/s
  • Internal communication interface: 600 Gbit/s

Only the S6730-H48Y6C-V2/S6730-H48Y6C-TV2 supports this function.

Procedure

  1. Enter the system view.

    system-view

  2. Configure a high-performance mode for the device.

    port high-performance mode { mode1 | mode2 | mode3 | mode4 | mode5 } slot slot-id 

Configuring the SerDes Mode of a MultiGE Interface

Context

If the SerDes mode of the local MultiGE interface is different from that of the remote MultiGE interface, packets are discarded. When an ENTITYTRAP_1.3.6.1.4.1.2011.5.25.219.2.2.3 hwBoardFail alarm with "EntityTrapFaultID=132330" is received, you can configure the SerDes mode of the local interface to be the same as that of the remote interface.

Only the S5732-H48UM4Y2CZ-V2/S5732-H48UM4Y2CZ-TV2/S5732-H48UM4Y2CZ-KV2 supports this function.

Procedure

  1. Enter the system view.

    system-view

  2. Enter the MultiGE interface view.

    interface MultiGE interface-number

  3. Configure the SerDes mode of the MultiGE interface.

    port serdes-mode { 2500-base-x | 5000-base-x } { sgmii | xfi }

    By default, a MultiGE interface can work in sgmii or xfi SerDes mode.

Verifying the Configuration

Run the display this command in the view of a MultiGE interface with the SerDes mode configured to check diagnostic information about the interface.