摘要 |
The present invention discloses a method, an apparatus, and a device for selecting a protocol stack. The method includes: receiving a socket socket creation instruction sent by a virtual machine; selecting a protocol stack instance; creating a socket in the selected protocol stack instance according to the socket creation instruction; and sending a correspondence between the created socket and an identifier of the protocol stack instance to the virtual machine, so that the virtual machine performs, according to the correspondence, data processing based on the created socket in the protocol stack instance. Therefore, multiple virtual machines disposed on a same physical host can share a network protocol processing capability, and protocol stacks of the virtual machines achieve load balance, which improves system reliability. |