摘要 |
The present invention relates to the communications field, and discloses a network transaction control method and executing method, a network controller, and a forwarding device. The network transaction control method includes: sending, by a network controller, according to a network transaction, an operation set package including at least one operation instruction to at least two forwarding devices, where: the operation set package includes an atomic operation identifier; receiving an execution status message fed back by each forwarding device; and if it is determined, according to each execution status message, that an operation result of any operation instruction executed by any forwarding device is: execution failed, separately sending a rollback control instruction including the atomic operation identifier to each forwarding device for which no execution failure is determined, so as to instruct each forwarding device to restore to a state that is prior to execution of each operation instruction. By using the technical solution, when a network controller controls a forwarding device to execute a network transaction, a situation in which the network transaction is incompletely executed may be reduced, that is, a situation in which some devices successfully execute a network transaction and some devices fail to execute the network transaction may be reduced. |