Method for assigning identifiers to switches in stack, optical cable, and related device

    公开(公告)号:US11770333B2

    公开(公告)日:2023-09-26

    申请号:US16405020

    申请日:2019-05-07

    发明人: Jie Yang Jincheng Fu

    摘要: A method for assigning identifiers to switches in a stack includes detecting, by a switch, a terminal identifier stored in an optical module that is connected to a stack port of the switch, where the optical module is at one end of an optical cable; and if a condition is met, assigning, by the switch, identifiers to N stackable switches along a direction starting from the switch to another switch connected to the stack port, where the condition includes: a value of the terminal identifier is a specified value, and N is greater than or equal to 2. According to this application, an efficiency of assigning the identifiers to the switches in a stack can be improved.