EFM entities exchange OAMPDUs periodically to report the link status. Network administrators can set EFM OAMPDU parameters to effectively manage networks.
After the maximum OAMPDU size is set on an interface, the interface considers excess EFM OAMPDUs invalid and discards them. You can adjust the maximum size of an EFM OAMPDU so that devices can communicate.
After setting up an EFM connection, two EFM entities exchange OAMPDUs at a specific interval to check for a properly working connection. If an EFM entity does not receive any OAMPDU from its remote EFM entity within the interval at which OAMPDUs are received, the link is considered as not working properly. Network administrators can set different intervals at which OAMPDUs are received based on user requirements. A short interval can be set for high-priority or delay-sensitive services. A long interval can be set for low-priority or delay-insensitive services.
EFM can be configured on Layer 2 and Layer 3 Ethernet interfaces. By default, an Ethernet interface works in Layer 2 mode. Before configuring EFM on a Layer 3 Ethernet interface, switch the Ethernet interface to Layer 3 mode.
Perform the following steps on the interfaces at both ends of a link.
Run system-view
The system view is displayed.
Run interface interface-type interface-number
The view of the interface at one end of the link is displayed.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
Run efm packet max-size size
The maximum size of an EFM OAMPDU is set.
By default, the maximum size of an EFM OAMPDU on an interface is 128 bytes.
If the maximum EFM OAMPDU sizes configured on the interfaces at both ends of a link are different, the interfaces negotiate the maximum EFM OAMPDU size during the discovery process. The smaller one between the maximum EFM OAMPDU sizes on the two ends is used.
Run system-view
The system view is displayed.
Run interface interface-type interface-number
The view of the interface at one end of the link is displayed.
(Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.
Run efm timeout timeout-value
The timeout interval at which EFM OAMPDUs are received is set.
By default, the timeout interval at which EFM OAMPDUs are received is 5000 ms.
The interfaces at both ends of a link must use the same timeout interval. Otherwise, session negotiation between the two interfaces fails or the session flaps.
The timeout interval is set only after EFM is enabled globally and before EFM is enabled on an interface.