CN108965169B - Message transmission method, network card controller, network card and electronic equipment - Google Patents

Message transmission method, network card controller, network card and electronic equipment Download PDF

Info

Publication number
CN108965169B
CN108965169B CN201810766011.9A CN201810766011A CN108965169B CN 108965169 B CN108965169 B CN 108965169B CN 201810766011 A CN201810766011 A CN 201810766011A CN 108965169 B CN108965169 B CN 108965169B
Authority
CN
China
Prior art keywords
network card
virtual
virtual network
host
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810766011.9A
Other languages
Chinese (zh)
Other versions
CN108965169A (en
Inventor
刘峰
杨立中
孙雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810766011.9A priority Critical patent/CN108965169B/en
Publication of CN108965169A publication Critical patent/CN108965169A/en
Application granted granted Critical
Publication of CN108965169B publication Critical patent/CN108965169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message transmission method, a network card controller, a network card and electronic equipment, which are applied to the network card, wherein the method comprises the following steps: receiving a target message sent by a first virtual network card on the network card, wherein at least one virtual network card is deployed on the network card, and the virtual network card is added into a virtual switch of a host or directly communicated to a virtual machine on the host; determining a second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card; and transmitting the target message to the second virtual network card.

Description

Message transmission method, network card controller, network card and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a message transmission method, a network card controller, a network card, and an electronic device.
Background
The carrier cloud solution has a high throughput requirement on a VM Network of a Virtual machine, so that a physical Network card is generally expanded into several Virtual Function Network card VF NICs (Virtual Function Network Information centers), and then the Virtual Network card is directly communicated to the corresponding Virtual machine, thereby increasing the Network throughput rate of the Virtual machine.
However, after the virtual network card is directly connected to the virtual machine, the virtual network card may not be visible to the HOST, and the virtual network card disappears from the HOST, and cannot be taken over by the virtual switch ovs (open vswitch), so that the HOST cannot manage the transmission of the message data related to the virtual network card, and the flexibility of message processing is reduced.
Disclosure of Invention
In view of this, the present invention provides a message transmission method, a network card controller, a network card and an electronic device, so as to solve the technical problem in the prior art that a host cannot manage message data transmission designed by a virtual network card, which results in reduction of message processing flexibility.
The invention provides a message transmission method, which is applied to a network card and comprises the following steps:
receiving a target message sent by a first virtual network card on the network card, wherein at least one virtual network card is deployed on the network card, and the virtual network card is added into a virtual switch of a host or directly communicated to a virtual machine on the host;
determining a second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card;
and transmitting the target message to the second virtual network card.
In the above method, preferably, the virtual network card binding list includes: and the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch.
Preferably, the determining, according to a virtual network card binding list preset on the network card, a second virtual network card corresponding to the first virtual network card includes:
searching binding information corresponding to the first virtual network card in the virtual network card binding list;
and determining a second virtual network card corresponding to the first virtual network card based on the binding information.
In the above method, preferably, the binding information includes: the network card identification of the first virtual network card and the identification information of the second virtual network card.
The application also provides a network card controller, set up in the network card, it has at least one virtual network card to deploy on the network card, virtual network card adds the virtual switch of host computer or directly gives virtual machine on the host computer, the network card controller is used for:
receiving a target message sent by a first virtual network card on the network card; determining a second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card; and transmitting the target message to the second virtual network card.
The application also provides a network card, the network card includes:
the device comprises a memory, a network card binding table and a virtual machine, wherein the memory is used for storing a virtual network card binding list, at least one virtual network card is deployed on the network card, and the virtual network card is added into a virtual switch of a host or directly communicated with the virtual machine on the host;
and the network card controller is used for receiving a target message sent by a first virtual network card on the network card, determining a second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, and transmitting the target message to the second virtual network card.
The present application further provides an electronic device, including:
the system comprises a processor and a virtual switch, wherein the processor is used for deploying a host, and a virtual machine and a virtual switch are deployed on the host;
a network card, where at least one virtual network card is deployed on the network card, and the virtual network card is added to a virtual switch of the host or directly communicated to a virtual machine on the host, where the network card is configured to: receiving a target message sent by a first virtual network card on the network card, determining a second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, and transmitting the target message to the second virtual network card.
According to the technical scheme, the network card binding list is preset on the network card, so that when a target message sent by a virtual network card added to a virtual switch or directly communicated to a virtual machine is received, the virtual network card needing to be forwarded, such as the virtual network card directly communicated to the virtual machine or the virtual network card added to the virtual switch, can be determined according to the list, and message forwarding is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a message transmission method according to an embodiment of the present application;
FIGS. 2 and 3 are diagrams illustrating an application example of an embodiment of the present application;
fig. 4 is a schematic structural diagram of a network card controller according to a second embodiment of the present application;
fig. 5 is a schematic structural diagram of a network card according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application;
fig. 7 to 10 are diagrams illustrating other examples of applications of the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, which is a flowchart illustrating an implementation of a message transmission method disclosed in an embodiment of the present application, the method in this embodiment is applicable to a network card, where the network card may be a network transmission device, such as a network adapter, on an electronic device, such as a server or a computer, for performing data transmission with other devices.
The method comprises the steps that a host is deployed in electronic equipment through programming, a virtual machine and a virtual switch are deployed on the host, a network card of the electronic equipment is expanded into a plurality of virtual network card VF NICs in an SR-IOV mode, part of the virtual network cards are directly communicated with the virtual machine on the host, and part of the virtual network card VF is added into the virtual switch of the host, as shown in FIG. 2, VF1 is directly communicated with a virtual machine VM1, VF3 is directly communicated with a virtual machine VM2, the VF7 and the VF9 are respectively added into a virtual switch OVS, and PF (physical function) is distributed to an external network Internet.
In this embodiment, the method may include the steps of:
step 101: and receiving a target message sent by the first virtual network card on the network card.
The target message refers to a message sent by the virtual machine, for example, a message sent by the first virtual machine to another virtual machine or another network device connected to the electronic device, and the message is directly transmitted to the first virtual network card of the first virtual machine through the network card for transmission.
Step 102: and determining a second virtual network card corresponding to the first virtual network card according to a virtual network card binding list preset on the network card.
The virtual network card binding list may be preset in a memory of the network card, such as a Random-access memory (RAM). The network card controller on the network card writes the relationship between the virtual network cards into the virtual network card binding list after the virtual network cards on the network card are directly communicated to the virtual machine or added into the virtual switch.
In this embodiment, after receiving a target message sent by a first virtual machine through a first virtual network card, a network card determines a second virtual network card corresponding to the first virtual network card by querying a virtual network card binding list in a memory.
Step 103: and transmitting the target message to a second virtual network card.
That is to say, after determining the second virtual network card corresponding to the first virtual network card that leads directly to the virtual machine, the network card directly transmits the target message to the second virtual network card unconditionally, so that the second virtual network card transmits the target message to other virtual network cards according to the target address in the target message, for example, a third virtual network card VF of the second virtual machine or a virtual network card PF connected to other network devices, and the third virtual network card VF transmits the target message to the corresponding virtual network card, or the virtual network card PF transmits the target message to an external network.
According to the above scheme, in the message transmission method provided in the embodiment of the present application, the network card binding list is preset on the network card, so that when a target message sent by the virtual network card added to the virtual switch or directly communicated to the virtual machine is received, the virtual network card to be forwarded, such as the virtual network card directly communicated to the virtual machine or the virtual network card added to the virtual switch, can be determined according to the list, so as to implement message forwarding.
In an implementation manner, the correspondence between the virtual network cards included in the virtual network card binding list may be: in combination with fig. 2, as shown in the list in fig. 3, the mapping relationship between the virtual network card that is directly passed through to the virtual machine and the virtual network card added to the virtual switch is that the first virtual network card VF1 is directly passed through to the first virtual machine VM1, and the first virtual network card VF1 is in a team relationship with the second virtual network card VF7 added to the virtual switch OVS, so that VF1 and VF7 are written into the virtual network card binding list, and so on, VF3 and VF9 are written into the virtual network card binding list, and so on.
For example, after receiving a target message sent by a first virtual machine through a first virtual network card VF1, the network card determines a second virtual network card VF7 corresponding to the first virtual network card VF1 by querying a virtual network card binding list in a memory, so that the network card transmits the target message to the second virtual network card VF7, and the second virtual network card VF7 transmits the target message to other virtual network cards according to a target address in the target message, for example, the third virtual network card VF9 of the second virtual machine or the virtual network cards PF connected to other network devices, and the third virtual network card VF9 transmits the target message to corresponding virtual network cards V3, or the virtual network cards PF transmit the target message to an external network.
In an implementation manner, when the network card determines the second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, the implementation manner may be as follows:
first, the binding information corresponding to the first virtual network card, such as the binding information between the VF1 and the VF7 in the list in fig. 3, is searched in the virtual network card binding list, and then, based on the binding information, the second virtual network card corresponding to the first virtual network card, such as the VF7 corresponding to the VF1, is determined.
Specifically, the binding information may include a network card identifier of the first virtual network card and identifier information of the second virtual network card, such as identifier codes of VF1 and VF 7.
Referring to fig. 4, a schematic structural diagram of a network card controller provided in the second embodiment of the present application is shown, where the network card controller is disposed in a network card and connected to a memory, such as a RAM, in the network card, at least one virtual network card is disposed on the network card, the virtual network card is respectively added to a virtual switch of a host or directly connected to a virtual machine on the host, as shown in the drawing, VF1 is directly connected to a virtual machine VM1, VF3 is directly connected to a virtual machine VM2, VF7 and VF9 are respectively added to a virtual switch OVS, and PF is allocated to an external network.
In this embodiment, the network card controller receives a target message sent by a first virtual network card on the network card; determining a second virtual network card corresponding to the first virtual network card according to a virtual network card binding list in the network card on-board memory; and transmitting the target message to the second virtual network card.
The target message refers to a message sent by a virtual machine, for example, a message sent by a first virtual machine to other virtual machines or other network devices connected to the electronic device, and the message is directly transmitted to a first virtual network card of the first virtual machine through the network card, and then a second virtual network card corresponding to the first virtual network card is determined by querying a virtual network card binding list in a memory, and the target message is directly transmitted to the second virtual network card unconditionally, so that the target message is transmitted to other virtual network cards by the second virtual network card according to a target address in the target message, for example, a third virtual network card VF of the second virtual machine or a virtual network card PF connected to other network devices, and the target message is transmitted to the corresponding virtual network card by the third virtual network card VF or the target message is transmitted to an external network by the virtual network card PF.
According to the above scheme, in the network card controller provided in the second embodiment of the present application, the network card binding list is preset on the network card, so that when a target message sent by a virtual network card added to a virtual switch or directly communicated to a virtual machine is received, a virtual network card to be forwarded, such as the virtual network card directly communicated to the virtual machine or the virtual network card added to the virtual switch, can be determined according to the list, thereby implementing message forwarding.
Referring to fig. 5, a schematic structural diagram of a network card provided in the third embodiment of the present application is shown, where multiple virtual network cards are deployed in the network card, and part of the virtual network cards are directly connected to a virtual machine on a host and part of the virtual network cards are added to a virtual switch of the host, as shown in fig. 2, VF1 is directly connected to a virtual machine VM1, VF3 is directly connected to a virtual machine VM2, VF7 and VF9 are respectively added to a virtual switch OVS, and PF is allocated to an external network.
In this embodiment, the network card may include the following structure:
the memory 501 is used for storing a virtual network card binding list.
The network card controller 502 is configured to receive a target message sent by a first virtual network card on the network card, determine a second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, and transmit the target message to the second virtual network card.
The target message refers to a message sent by a virtual machine, for example, a message sent by a first virtual machine to other virtual machines or other network devices connected to the electronic device, and the message is directly transmitted to a first virtual network card of the first virtual machine through the network card, and then a second virtual network card corresponding to the first virtual network card is determined by querying a virtual network card binding list in a memory, and the target message is directly transmitted to the second virtual network card unconditionally, so that the target message is transmitted to other virtual network cards by the second virtual network card according to a target address in the target message, for example, a third virtual network card VF of the second virtual machine or a virtual network card PF connected to other network devices, and the target message is transmitted to the corresponding virtual network card by the third virtual network card VF or the target message is transmitted to an external network by the virtual network card PF.
The corresponding relationship between the virtual network cards included in the virtual network card binding list may be: and the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch. The mapping relation is presented through binding information formed by the network card identification of the virtual network card. For example, the identification code binding of the VF1 and the VF7 in fig. 3 form a corresponding relationship.
According to the scheme, the network card provided by the third embodiment of the application can determine the virtual network card to be forwarded according to the network card binding list, such as the virtual network card directly connected to the virtual machine or the virtual network card connected to the virtual machine, when the target message sent by the virtual network card connected to the virtual machine or directly connected to the virtual machine is received, so that message forwarding is realized.
Referring to fig. 6, a schematic structural diagram of an electronic device according to a fourth embodiment of the present disclosure is shown, where the electronic device may be a network device including a processor 601 and a network card 602, such as a server, and the like, where:
a processor 601, configured to deploy a host, where a virtual machine and a virtual switch are deployed on the host;
at least one virtual network card is deployed on the network card 602, the virtual network card is added to a virtual switch of the host or directly communicated to a virtual machine on the host, wherein the network card 602 is configured to: receiving a target message sent by a first virtual network card on the network card, determining a second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, and transmitting the target message to the second virtual network card.
Wherein, the target message refers to a message sent by a virtual machine, such as a message sent by a first virtual machine to other virtual machines or other network devices connected with the electronic device, the message is transmitted through the network card 602 to the first virtual network card of the first virtual machine, and then, a second virtual network card corresponding to the first virtual network card is determined by querying a virtual network card binding list in a memory of the network card 602, and the target message is directly transmitted to the second virtual network card unconditionally, so that the second virtual network card transmits the target message to other virtual network cards according to the target address in the target message, for example, the third virtual network card VF of the second virtual machine or the virtual network card PF connected to other network devices transmits the target message to the corresponding virtual network card, or the virtual network card PF transmits the target message to the external network.
The corresponding relationship between the virtual network cards included in the virtual network card binding list may be: and the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch. The mapping relation is presented through binding information formed by the network card identification of the virtual network card. For example, the identification code binding of the VF1 and the VF7 in fig. 3 form a corresponding relationship.
The following describes an example of the electronic device in the message transmission process in this embodiment:
as shown in fig. 7, a network card NIC of the electronic device has a network card controller and a memory, a plurality of virtual network cards VF are deployed in the network card, and the virtual network cards VF are directly communicated to the virtual machine VM or added to the virtual switch. A virtual network card binding list, namely a group table, is expanded in the memory, the group table records two virtual network cards bound into a group, specifically contains three columns of contents, the first column records a binding number, the second column records a unique number of a VF NIC directly communicated to a virtual machine in the binding group, the third column records a unique number of a VF NIC added to a host machine virtual switch in the group, for example, a virtual network card VF1 directly communicated to a virtual machine VM1 and a virtual network card VF7 added to a virtual switch are bound into a group, a virtual network card VF3 directly communicated to a virtual machine VM2 and a virtual network card VF9 added to a virtual switch are bound into a group, and the like; correspondingly, control logic is expanded in the network card controller, that is, the VF NICs in the same group receive the messages and send the messages to another VF NIC in the group unconditionally, for example, when the NIC receives and sends the messages, the network card controller queries the group table according to the control logic, and if the messages are sent to one VF NIC in the table, the messages are directly sent to another VF NIC in the same group.
As shown in fig. 8, the network card in the electronic device has the following logic when performing message transmission:
1. the VM1 sends a message to the straight-through VF NIC 1;
2. the VF NIC1 receives the message, triggers the network card controller to trigger the query logic, and queries the GROUP table;
3. the network card controller finds that the VF NIC1 is located in the GROUP table and has a GROUP relation with the VF NIC 7;
4. the network card controller unconditionally forwards the message to the VF NIC 7;
5. after the VF NIC7 receives the message, the OVS software entering the HOST queries that the network card of the destination virtual machine is VFNIC9, and forwards the message to the VF NIC9 through the OVS software;
6. the VF NIC9 receives the message, triggers the network card controller to trigger the query logic, and queries the GROUP table;
7. the network card controller finds that the VF NIC9 is located in the GROUP table and has a GROUP relation with the VF NIC 3;
8. the network card controller unconditionally forwards the message to the VF NIC 3. The 3 bits of the VF NIC are directly communicated to the VFNIC of the target virtual machine, and the target virtual machine receives the message.
As shown in fig. 9 again, the network card in the electronic device has the following logic when transmitting the message:
1. the VM sends a message to the straight-through VF NIC 1;
2. the VF NIC1 receives the message, triggers the network card controller to trigger the query logic, and queries the GROUP table;
3. the network card controller finds that the VF NIC1 is located in the GROUP table and has a GROUP relation with the VF NIC 7;
4. the network card controller unconditionally forwards the message to the VF NIC 7;
5. after the VF NIC7 receives the message, the OVS software entering the HOST queries the network card of the target virtual machine as PF, and forwards the message to the PF through the OVS software
6. The PF forwards the packet to an external network.
Therefore, as shown in fig. 10, in this embodiment, through the newly added group binding mechanism, the virtual switch OVS of the host system may manage another VF NIC of the group directly connected to the virtual machine through the VF NIC connected to the virtual switch, so as to improve the management flexibility of the virtual machine network, and meanwhile, a message sent or received by the VM may also be flexibly processed in the virtual machine, so that the virtual machine switch of the host may manage the virtual network card directly connected to the virtual machine, thereby improving the flexibility of the network management of the virtual network card directly connected and the flexibility of the message processing capability.
According to the above scheme, the network card binding list is preset on the network card, so that when a target message sent by a virtual network card added to a virtual switch or directly communicated to a virtual machine is received, a virtual network card to be forwarded can be determined according to the list, for example, the virtual network card directly communicated to the virtual machine or the virtual network card added to the virtual switch, so as to implement message forwarding.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A message transmission method is applied to a network card, and comprises the following steps:
receiving a target message sent by a first virtual network card on the network card, wherein at least one virtual network card is deployed on the network card, and the virtual network card is added into a virtual switch of a host or directly communicated to a virtual machine on the host;
determining a second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card; wherein the virtual network card binding list comprises: the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch;
and transmitting the target message to the second virtual network card.
2. The method of claim 1, wherein the virtual network card binding list comprises: and the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch.
3. The method according to claim 1 or 2, wherein determining the second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card comprises:
searching binding information corresponding to the first virtual network card in the virtual network card binding list;
and determining a second virtual network card corresponding to the first virtual network card based on the binding information.
4. The method of claim 3, wherein the binding information comprises: the network card identification of the first virtual network card and the identification information of the second virtual network card.
5. A network card controller is arranged on a network card, at least one virtual network card is deployed on the network card, the virtual network card is added into a virtual switch of a host or directly communicated with a virtual machine on the host, and the network card controller is used for:
receiving a target message sent by a first virtual network card on the network card; determining a second virtual network card corresponding to the first virtual network card according to a preset virtual network card binding list on the network card; wherein the virtual network card binding list comprises: the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch; and transmitting the target message to the second virtual network card.
6. A network card, the network card comprising:
the device comprises a memory, a network card binding table and a virtual machine, wherein the memory is used for storing a virtual network card binding list, at least one virtual network card is deployed on the network card, and the virtual network card is added into a virtual switch of a host or directly communicated with the virtual machine on the host;
a network card controller, configured to receive a target packet sent by a first virtual network card on the network card, and determine, according to the virtual network card binding list, a second virtual network card corresponding to the first virtual network card, where the virtual network card binding list includes: the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch; and transmitting the target message to the second virtual network card.
7. An electronic device, comprising:
the system comprises a processor and a virtual switch, wherein the processor is used for deploying a host, and a virtual machine and a virtual switch are deployed on the host;
a network card, where at least one virtual network card is deployed on the network card, and the virtual network card is added to a virtual switch of the host or directly communicated to a virtual machine on the host, where the network card is configured to: receiving a target message sent by a first virtual network card on the network card, and determining a second virtual network card corresponding to the first virtual network card according to the virtual network card binding list, wherein the virtual network card binding list comprises: the mapping relation between the virtual network card directly communicated to the virtual machine and the virtual network card added into the virtual switch; and transmitting the target message to the second virtual network card.
CN201810766011.9A 2018-07-12 2018-07-12 Message transmission method, network card controller, network card and electronic equipment Active CN108965169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810766011.9A CN108965169B (en) 2018-07-12 2018-07-12 Message transmission method, network card controller, network card and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810766011.9A CN108965169B (en) 2018-07-12 2018-07-12 Message transmission method, network card controller, network card and electronic equipment

Publications (2)

Publication Number Publication Date
CN108965169A CN108965169A (en) 2018-12-07
CN108965169B true CN108965169B (en) 2020-09-25

Family

ID=64483158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810766011.9A Active CN108965169B (en) 2018-07-12 2018-07-12 Message transmission method, network card controller, network card and electronic equipment

Country Status (1)

Country Link
CN (1) CN108965169B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822060B (en) * 2021-02-22 2022-11-22 优刻得科技股份有限公司 Host network construction method, device, system, medium and host

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8838743B2 (en) * 2004-02-13 2014-09-16 Intel Corporation Apparatus and method for a dynamically extensible virtual switch
US8892706B1 (en) * 2010-06-21 2014-11-18 Vmware, Inc. Private ethernet overlay networks over a shared ethernet in a virtual environment
US9083611B2 (en) * 2013-02-21 2015-07-14 Oracle International Corporation Method and system for virtual network interface cards (VNICs) over aggregation spanning multiple switches
CN103873374B (en) * 2014-03-27 2017-08-11 新华三技术有限公司 Message processing method and device in virtualization system
CN107181679A (en) * 2016-03-09 2017-09-19 中兴通讯股份有限公司 A kind of port binding implementation method and device
CN106383736B (en) * 2016-09-21 2019-10-11 新华三技术有限公司 Ports-Extending method and apparatus
CN106656719B (en) * 2016-09-26 2020-07-07 华为技术有限公司 Inter-cloud communication method and related equipment, inter-cloud communication configuration method and related equipment
AU2016414390B2 (en) * 2016-11-09 2019-06-20 Huawei Technologies Co., Ltd. Packet processing method in cloud computing system, host, and system
EP3376376B1 (en) * 2017-01-20 2020-03-11 Huawei Technologies Co., Ltd. Method, network card, host device and computer system for forwarding data packages

Also Published As

Publication number Publication date
CN108965169A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
EP3116189B1 (en) Service link selection control method and device
US11568092B2 (en) Method of dynamically configuring FPGA and network security device
CN107040393B (en) Route management method and equipment
CN110719345B (en) Virtual machine MAC address generation method, system, equipment and computer medium
CN108614734B (en) Security parameter index management method and device
CN108540408B (en) Openstack-based distributed virtual switch management method and system
CN115426312A (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
CN105610730A (en) Method and system for message interaction between CPU and network equipment
CN112583655A (en) Data transmission method and device, electronic equipment and readable storage medium
CN115314319A (en) Network asset identification method and device, electronic equipment and storage medium
CN108965169B (en) Message transmission method, network card controller, network card and electronic equipment
CN109672575B (en) Data processing method and electronic equipment
CN102999345B (en) The method, apparatus and system that a kind of operating system loads
CN107659516B (en) Function control method and device for broadband remote access server BRAS
CN104426816A (en) Virtual machine communication method and device
KR102303424B1 (en) Direct memory access control device for at least one processing unit having a random access memory
JP4411344B2 (en) A method for recognizing incompatibility in a bus system with multiple control devices
CN105939397B (en) A kind of transmission method and device of message
CN106533882B (en) Message processing method and device
CN114629744B (en) Data access method, system and related device based on macvlan host network
CN113079128B (en) Information blocking method and device, computing equipment and computer storage medium
CN109451090A (en) A kind of domain name analytic method and device
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN114268519A (en) Network communication system, data transmission method, and readable storage medium
CN114237928A (en) Inter-container communication method and device, electronic equipment and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant