| CPC H04L 45/76 (2022.05) [H04L 45/02 (2013.01); H04L 45/745 (2013.01)] | 20 Claims |

|
1. A method for controlling a flow entry applied to a source host machine in which a target virtual machine is located before the target virtual machine is migrated to a target host machine, comprising:
receiving a data message sent by a user;
determining a target flow entry that is matched with the data message,
wherein the target flow entry is one of at least one flow entry corresponding to the target virtual machine in the source host machine,
wherein a first version number of the target virtual machine is in the target flow entry, and
wherein, in response to the target virtual machine being migrated to the target host machine, a second version number of the target virtual machine is generated; and
in response to the first version number of the target virtual machine in the target flow entry being inconsistent with the second version number of the target virtual machine recorded in the source host machine:
deleting a flow entry comprising the first version number in the source host machine, and
sending the data message to the target host machine through a virtual switch on the source host machine.
|