主权项 |
1. A method of converting a routing mode of a network, a plurality of first routes connecting a central controller to a plurality of nodes are established in the network through a spanning tree protocol and a plurality of second routes between the plurality of nodes in the network through the spanning tree protocol, the method comprising:
enabling a firewall of each of the nodes to block the second routes; after enabling the firewall, disabling a spanning tree protocol function of each of the nodes; after disabling the spanning tree protocol function, populating a forwarding table of each of the nodes with a plurality of predetermined routing paths; and after populating the forwarding table, flushing the firewall of each of the nodes, wherein a plurality of third routes between the central controller and the plurality of nodes are established according to the predetermined routing paths without the spanning tree protocol, after the firewall of each of the nodes is flushed; wherein the steps of enabling the firewall of each of the nodes to block the second routes, disabling the spanning tree protocol function of each of the nodes and populating the forwarding table of each of the nodes with the predetermined routing paths comprise: according to a predetermined order, enabling a first firewall of a first node among the nodes to block at least one of the second routes, disabling the spanning tree protocol function of the first node and populating the forwarding table of the first node with the predetermined routing paths; and after the forwarding table of the first node is populated with the predetermined routing paths, enabling a second firewall of a second node among the nodes to block at least one of the second routes, disabling the spanning tree protocol function of the second node and populating the forwarding table of the second node with the predetermined routing paths, wherein when enabling the firewall of any one of the nodes according to the predetermined order, other routes connecting the central controller to the other nodes are not blocked, wherein forwarding tables of the other nodes have not been populated with the predetermined routing paths. |