CPC H04L 45/02 (2013.01) [H04L 45/124 (2013.01); H04L 45/42 (2013.01)] | 19 Claims |
1. A network topology discovery method, comprising:
sending a link discovery message to a child node device through a first port;
receiving a link discovery acknowledge message sent by the child node device through a second port of the child node device, wherein the link discovery acknowledge message comprises an identifier of the child node device and an identifier of the second port;
determining a first link based on the link discovery acknowledge message, wherein the first link is a link between the first port and the second port; and
sending a port role update message to the child node device through the first port to indicate to the child node device to set the second port of the child node device to an uplink port, wherein the port role update message comprises the identifier of the child node device, the identifier of the second port, and role information of the second port, and the port role update message is used to indicate the child node device to set a role based on the role information of the second port.
|