Port mode switching method, electronic device, and storage medium
AssigneeRuijie Networks Co., Ltd.
InventorsXiaofeng Zhang, Longshun Wang, Jiabin Liao
Life of this patent
Estimating the term…
Abstract
The present application discloses a port mode switching method, an apparatus, an electronic device, and a storage medium, where the method includes: when determining that a target port mode corresponding to a module type is different from a current port mode, switching a port from the current port mode to the target port mode according to a port mode switching manner set corresponding to the module type, wherein the port mode comprises a passive optical network PON mode and an Ethernet mode.
Claims17
A port mode switching method, applied to an Ethernet device in an Ethernet networking, comprising:
- responding to an operation of inserting an optical module into a port, acquiring characteristic information of the optical module, wherein the characteristic information comprises a plurality of optical module characteristics, wherein the plurality of optical module characteristics comprise an interface characteristic;
- determining an interface type corresponding to the optical module based on the interface characteristic;
- determining a module type of the optical module based on the interface type;
- and
- when determining that a target port mode corresponding to the module type is different from a current port mode of the port, switching the port from the current port mode to the target port mode according to a port mode switching manner set corresponding to the module type;
- wherein the port mode comprises a passive optical network (PON) mode and an Ethernet mode.
A port mode switching method, applied to an Ethernet device in an Ethernet networking, comprising:
- responding to an operation of inserting an optical module into a port, acquiring characteristic information of the optical module, wherein the characteristic information comprises a plurality of optical module characteristics, the plurality of optical module characteristics comprise a wavelength characteristic and an interface characteristic;
- determining a module type of the optical module based on the plurality of optical module characteristics;
- and
- when determining that a target port mode corresponding to the module type is different from a current port mode of the port, switching the port from the current port mode to the target port mode according to a port mode switching manner set corresponding to the module type;
- wherein the port mode comprises a passive optical network PON mode and/or an Ethernet mode;
- and
- wherein the determining a module type of the optical module based on the plurality of optical module characteristics comprises:
- determining, by the Ethernet device, a wavelength type corresponding to the optical module based on the acquired wavelength characteristic, and determining an interface type corresponding to the optical module based on the acquired interface characteristic;
- and determining the module type of the optical module based on the wavelength type and the interface type.
Dependencies are inferred from the claim text.