Method and apparatus for transmitting data packet based on virtual machine
摘要:
A method for transmitting a data packet based on a virtual machine is provided. A direct through-connection is established between the virtual machine and a network interface card. A data packet transmitted by a driver layer of the virtual machine is detected. An encapsulation parameter obtaining request is transmitted to a virtual machine monitor corresponding to the virtual machine, and encapsulation information and an encapsulation parameter are received in response to the encapsulation parameter obtaining request. The data packet is encapsulated according to the encapsulation information and the encapsulation parameter, and the encapsulated data packet is added to a hardware transmitting queue of the network interface card by using the direct through-connection to transmit the encapsulated data packet.
信息查询
0/0