Unlock instant, AI-driven research and patent intelligence for your innovation.

An Efficient Packet Sending Method for Paravirtualized Network Cards

A technology of para-virtualization and transmission method, which is applied in the fields of electrical digital data processing, multi-programming device, program control design, etc., and can solve the problems of I/O response delay and network throughput impact.

Active Publication Date: 2019-04-09
SHANGHAI JIAOTONG UNIV
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, when the client uses the paravirtualized network card to send data packets to the outside world, a large number of VM Exits will be generated, which will affect the I / O response delay and network throughput.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An Efficient Packet Sending Method for Paravirtualized Network Cards
  • An Efficient Packet Sending Method for Paravirtualized Network Cards
  • An Efficient Packet Sending Method for Paravirtualized Network Cards

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. This embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and specific operation process are given, but the applicable platform is not limited to the following embodiments.

[0025] The platform of this embodiment adopts KVM, one of the mainstream virtualization solutions, and the paravirtualized network card architecture of KVM is as follows: figure 1 As shown, the front-end processing program is the virtio-net driver module located in the client, and the back-end processing program is the vhost-net module located in the kernel space of the host machine, and the two interact by sending and receiving two virtual queues. When the client needs to send a data packet, the virtio driver first writes the data into the sending queue, and then executes the IO privileged command to caus...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data packet efficient transmitting method for a para-virtualized network interface card. Learning from the design of Linux NAPI, when I / O threads process a transmitting queue, a notification mode and a polling mode are automatically switched according to the frequency of transmitting data packets by a client, wherein if the frequency of transmitting the data packets by the client is larger than a certain threshold value, polling continues to detect whether data in the transmitting queue needs to be processed or not, a notification mechanism of the client is kept in a stopped state, and the number of VM Exits is reduced; if the frequency of transmitting the data packets by the client is smaller than a certain threshold value, the polling mode is withdrawn, the notification mechanism of the client is started, the client waits for being awakened next time, and waste of CPU resources is reduced. The two I / O thread process the transmitting queue and a receiving queue respectively, the two I / O threads operate on the same physical core, the fairness between the two I / O threads is guaranteed by a CFS dispatcher, and the CFS dispatcher can achieve fair dispatching according to the operating time and sleep time of the threads.

Description

technical field [0001] The invention relates to the field of system network I / O virtualization and semi-virtualized network cards, in particular to a method for efficiently sending data packets for the semi-virtualized network card. Background technique [0002] The paravirtualized network card technology modifies the client operating system to make it aware that it is in a virtualized environment, so that it can cooperate with the VMM to greatly improve network I / O performance. In contrast, although the traditional fully virtualized network card has high flexibility and compatibility, the path of each I / O operation is too long, there are more VM Entry and VMExit, and it needs to be processed multiple times. Context switching and data copying, poorer performance. Therefore, paravirtualized network cards have become one of the current mainstream I / O virtualization technologies, and are widely used in network deployment of virtual machines. [0003] Paravirtualization usuall...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5038G06F9/5088
Inventor 管海兵胡小康张望马汝辉李健
Owner SHANGHAI JIAOTONG UNIV