摘要 |
The present invention relates to the communications field, and discloses a method and an apparatus for sending a cross command, which can automatically control a total time for sending cross commands, and achieve time optimization. The method provided in the present invention is applied to a centralized controller, where a network includes p nodes; the centralized controller is connected to the network by using k access nodes of the p nodes, where p‰¥k‰¥2, and both k and p are integers; and the method includes: acquiring, based on a network topology and the k access nodes, k balanced single-homed subtrees, where the k balanced single-homed subtrees include the p nodes, nodes in any two of the balanced single-homed subtrees have no intersection, and quantities of nodes in the k balanced single-homed subtrees are balanced; and concurrently sending cross commands to the nodes in the k balanced single-homed subtrees in a descending order of numbers of layers at which nodes in each balanced single-homed subtree are located. |