Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for forwarding data of virtual switching device, and computer device

A technology of device data and virtual switching, which is applied in the field of virtual network and can solve the problems of reduced forwarding performance of virtual switching devices

Inactive Publication Date: 2019-02-22
南京中孚信息技术有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The logical network includes a virtual switching device, and the network data of the virtual terminal is forwarded by the virtual network device. The existing virtual switching device involves multiple forwarding in the data processing process, and the data will be used when forwarding the data. copy, thus reducing the forwarding performance of the virtual switching device

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
  • Method and apparatus for forwarding data of virtual switching device, and computer device
  • Method and apparatus for forwarding data of virtual switching device, and computer device
  • Method and apparatus for forwarding data of virtual switching device, and computer device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] figure 1 It is a flow chart of a virtual switching device data forwarding method provided in Embodiment 1 of the present invention, and the method includes the following steps:

[0038] Step S11: Using the vhost interface to receive the first network data transmitted by the virtual terminal, and transmit the first network data to the network bridge.

[0039] In the embodiment of the present invention, the virtual switching device, that is, a virtual network switching device based on ovs (ovs, open vswitch, open virtual switching standard), utilizes a virtual platform to form a switch component through software. Wherein, the virtual switching device can be set in a server, and a server can have dozens or even hundreds of virtual switching devices, and the number of ports of the virtual switching device can be flexibly set by the device manager, for example, can use The server performs software simulation to generate 200 virtual switching devices, and the ports of each v...

Embodiment 2

[0048] figure 2 It is a flow chart of a virtual switching device data forwarding method provided in Embodiment 2 of the present invention, and the method includes the following steps:

[0049] Step S21: Using the vhost interface to receive the first network data transmitted by the virtual terminal, and transmit the first network data to the network bridge.

[0050] This step is consistent with the above step S11, and will not be repeated here.

[0051] Step S22: Encapsulate the first network data with a preset protocol in the network bridge according to the pre-established encapsulation flow table, generate a forwarding data packet, and transmit it to the dpdk port.

[0052] This step is consistent with the above step S12, and will not be repeated here.

[0053] Step S23: Send the forwarded data packet to the destination terminal through the network card on the dpdk port.

[0054] This step is consistent with the above step S13, and will not be repeated here.

[0055] Ste...

Embodiment 3

[0063] image 3 It is a schematic structural diagram of a virtual switching device data forwarding device provided in Embodiment 3 of the present invention.

[0064] The virtual switching device data forwarding device 300 includes:

[0065] The network data receiving module 310 is configured to receive the first network data transmitted by the virtual terminal through the vhost interface, and transmit the first network data to the network bridge.

[0066] The network data encapsulation module 320 is configured to encapsulate the first network data with a preset protocol according to the pre-established encapsulation flow table in the network bridge, generate a forwarding data packet, and transmit it to the dpdk port.

[0067] The data packet forwarding module 330 is configured to send the forwarded data packet to the destination terminal through the network card on the dpdk port.

[0068] In the embodiment of the present invention, the pre-established encapsulation flow tabl...

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 provides a method and an apparatus for forwarding data of a virtual switching device, and a computer device. The method for forwarding the data of the virtual switching device comprisesthe steps of: receiving, by using a vhost interface, first network data transmitted by a virtual terminal, and transmitting the first network data to a network bridge; performing encapsulation of a preset protocol on the first network data in the network bridge according to a preliminarily established encapsulation flow table to generate a forwarding data packet, and transmitting the forwarding data packet to a Data Plane Development Kit (dpdk) port; and sending the forwarding data packet to a target terminal via a network card at the dpdk port. According to the method for forwarding the dataof the virtual switching device provided by the invention, one network bridge in a one-off data forwarding process can be reduced and the data copies of a memory of a one-off virtual switching deviceare reduced; and therefore, the forwarding performance of the virtual switching device is improved.

Description

technical field [0001] The present invention relates to the field of virtual networks, in particular to a virtual switching device data forwarding method, device, computer equipment and computer storage medium. Background technique [0002] In the current NFV network (NFV, Network Function Virtualization, network function virtualization), it is necessary to construct a logical network on the physical network. [0003] The logical network includes a virtual switching device, and the network data of the virtual terminal is forwarded by the virtual network device. The existing virtual switching device involves multiple forwarding in the data processing process, and the data will be used when forwarding the data. copy, thereby reducing the forwarding performance of the virtual switching device. Contents of the invention [0004] In view of the above problems, the present invention provides a virtual switching device data forwarding method, device, computer equipment and compu...

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 Applications(China)
IPC IPC(8): H04L12/46
CPCH04L12/462H04L12/4633H04L12/4641
Inventor 孙晓飞潘飚
Owner 南京中孚信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products