CN108965169A - A kind of message transmitting method, network interface card controller, network interface card and electronic equipment - Google Patents

A kind of message transmitting method, network interface card controller, network interface card and electronic equipment Download PDF

Info

Publication number
CN108965169A
CN108965169A CN201810766011.9A CN201810766011A CN108965169A CN 108965169 A CN108965169 A CN 108965169A CN 201810766011 A CN201810766011 A CN 201810766011A CN 108965169 A CN108965169 A CN 108965169A
Authority
CN
China
Prior art keywords
microsoft loopback
loopback adapter
network interface
interface card
message
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.)
Granted
Application number
CN201810766011.9A
Other languages
Chinese (zh)
Other versions
CN108965169B (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

Classifications

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

Abstract

The invention discloses a kind of message transmitting method, network interface card controller, network interface card and electronic equipments, applied to network interface card, the described method includes: receiving the object message that the first Microsoft Loopback Adapter on the network interface card is sent, at least one Microsoft Loopback Adapter is deployed on the network interface card, the Microsoft Loopback Adapter is added the virtual switch of host or leads directly to the virtual machine on the host;According to Microsoft Loopback Adapter list of bindings preset on the network interface card, the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter is determined;The object message is transferred to second Microsoft Loopback Adapter.

Description

A kind of message transmitting method, network interface card controller, network interface card and electronic equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of message transmitting method, network interface card controller, network interface card and electricity Sub- equipment.
Background technique
Carrier class cloud solution is relatively high to the requirement of handling up of virtual machine VM network, therefore can generally expand physical network card Several Microsoft Loopback Adapter VF NIC (Virtual Function Network Information Center) is transformed into, then will be virtual Network interface card is led directly to corresponding virtual machine, to improve the network throughput rate of virtual machine.
But after leading directly to Microsoft Loopback Adapter to virtual machine, Microsoft Loopback Adapter can be invisible for host HOST, occurs The case where Microsoft Loopback Adapter disappears from HOST cannot be taken over by virtual switch OVS (Open vSwitch), thus host without Method is managed the transmission of message data involved in Microsoft Loopback Adapter, causes Message processing flexibility reduction.
Summary of the invention
In view of this, the present invention provides a kind of message transmitting method, network interface card controller, network interface card and electronic equipment, to solve Certainly host can not be managed the transmission of the message data designed by Microsoft Loopback Adapter in the prior art, lead to Message processing flexibility The technical issues of reduction.
The present invention provides a kind of message transmitting methods, are applied to network interface card, which comprises
The object message that the first Microsoft Loopback Adapter on the network interface card is sent is received, at least one void is deployed on the network interface card Quasi- network interface card, the Microsoft Loopback Adapter are added the virtual switch of host or lead directly to the virtual machine on the host;
According to Microsoft Loopback Adapter list of bindings preset on the network interface card, determine and first Microsoft Loopback Adapter corresponding second Microsoft Loopback Adapter;
The object message is transferred to second Microsoft Loopback Adapter.
The above method, it is preferable that the Microsoft Loopback Adapter list of bindings include: lead directly to Microsoft Loopback Adapter to the virtual machine with The mapping relations between the Microsoft Loopback Adapter of the virtual switch are added.
The above method, it is preferable that according to Microsoft Loopback Adapter list of bindings preset on the network interface card, determining and described first void Quasi- corresponding second Microsoft Loopback Adapter of network interface card, comprising:
In the Microsoft Loopback Adapter list of bindings, binding information corresponding with first Microsoft Loopback Adapter is searched;
Based on the binding information, the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter is determined.
The above method, it is preferable that the binding information includes: the network card identification of the first Microsoft Loopback Adapter and described second virtual The identification information of network interface card.
Present invention also provides a kind of network interface card controllers, are set to network interface card, and it is virtual that at least one is deployed on the network interface card Network interface card, the Microsoft Loopback Adapter are added the virtual switch of host or lead directly to the virtual machine on the host, the network interface card control Device processed is used for:
Receive the object message that the first Microsoft Loopback Adapter on the network interface card is sent;According to virtual net preset on the network interface card Card list of bindings determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter;The object message is transferred to described Second Microsoft Loopback Adapter.
Present invention also provides a kind of network interface card, the network interface card includes:
Memory is deployed at least one Microsoft Loopback Adapter for storing Microsoft Loopback Adapter list of bindings on the network interface card, described Microsoft Loopback Adapter is added the virtual switch of host or leads directly to the virtual machine on the host;
Network interface card controller, for receiving the object message of the transmission of the first Microsoft Loopback Adapter on the network interface card, according to the void Quasi- network card binding list, determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter, the object message is transferred to Second Microsoft Loopback Adapter.
Present invention also provides a kind of electronic equipment, comprising:
Processor is deployed with virtual machine and virtual switch for disposing host on the host;
Network interface card is deployed at least one Microsoft Loopback Adapter on the network interface card, and the virtual of the host is added in the Microsoft Loopback Adapter Interchanger is led directly to the virtual machine on the host, wherein the network interface card is used for: being received first virtual on the network interface card The object message that network interface card is sent determines and first Microsoft Loopback Adapter corresponding second according to the Microsoft Loopback Adapter list of bindings The object message is transferred to second Microsoft Loopback Adapter by Microsoft Loopback Adapter.
It can be seen from the above technical proposal that a kind of message transmitting method disclosed in the present application, network interface card controller, network interface card and Electronic equipment, by presetting network card binding list on network interface card, thus receiving addition virtual switch or leading directly to When object message transmitted by the Microsoft Loopback Adapter to virtual machine, the Microsoft Loopback Adapter that needs forward can be determined according to the list, It such as leads directly to the Microsoft Loopback Adapter to virtual machine or the Microsoft Loopback Adapter of virtual switch is added, thus realize that message forwards, this mistake Cheng Zhong leads directly in network interface card and carries out the specified transmission of message by list of bindings to the Microsoft Loopback Adapter of virtual machine, thus avoid nothing The case where method leads directly to the flexible processing that can not carry out message after virtual machine to Microsoft Loopback Adapter, so as to improve message transmissions management, Improve the flexibility of Message processing.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart for message transmitting method that the embodiment of the present application one provides;
Fig. 2 and Fig. 3 is respectively the application exemplary diagram of the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram for network interface card controller that the embodiment of the present application two provides;
Fig. 5 is a kind of structural schematic diagram for network interface card that the embodiment of the present application three provides;
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application four provides;
Fig. 7~Figure 10 is respectively the other application exemplary diagram of the embodiment of the present application.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, for a kind of implementation flow chart of message transmitting method disclosed in the embodiment of the present application one, the present embodiment In method suitable for network interface card, which can be to carry out data with other equipment on the electronic equipments such as server or computer The web-transporting device of transmission, such as network adapter.
Wherein, host is disposed out by programming in the electronic device, is deployed with virtual machine and virtual switch on host Machine, is extended to multiple Microsoft Loopback Adapter VF NIC on the network interface card of electronic equipment by way of SR-IOV, in these Microsoft Loopback Adapters Part is led directly to the virtual machine on host, and part is added in the virtual switch of host, and as shown in Figure 2, VF1 is led directly to virtual Machine VM1, VF3, which is led directly to, gives virtual machine VM2, VF7 and VF9 to be separately added into virtual switch OVS, PF (physical function) Distribute to external network Internet.
In the present embodiment, this method may comprise steps of:
Step 101: receiving the object message that the first Microsoft Loopback Adapter on network interface card is sent.
Wherein, object message refers to the message that virtual machine is sent, and such as the first virtual machine is to other virtual machines or and electronics The message that other connected network equipments of equipment are sent, the message are led directly to by network interface card to the first Microsoft Loopback Adapter of the first virtual machine It is transmitted.
Step 102: according to Microsoft Loopback Adapter list of bindings preset on network interface card, determining corresponding with the first Microsoft Loopback Adapter second Microsoft Loopback Adapter.
Wherein, Microsoft Loopback Adapter list of bindings can be set in advance in the memory of network interface card, such as RAM (Random-Access Memory, random access memory).Microsoft Loopback Adapter of the network interface card controller on network interface card on network interface card leads directly to virtual machine or adds After entering virtual switch, the relationship between Microsoft Loopback Adapter can be written in the Microsoft Loopback Adapter list of bindings.
In the present embodiment, network interface card the object message for receiving the first virtual machine and being sent by the first Microsoft Loopback Adapter it Afterwards, it is determined and the second virtual net corresponding to the first Microsoft Loopback Adapter by the Microsoft Loopback Adapter list of bindings in inquiry memory Card.
Step 103: object message is transferred to the second Microsoft Loopback Adapter.
That is, network interface card determine the second Microsoft Loopback Adapter corresponding with the first Microsoft Loopback Adapter to virtual machine is led directly to it Afterwards, directly unconditional that object message is transferred to the second Microsoft Loopback Adapter, thus by the second Microsoft Loopback Adapter according in object message Destination address object message is transferred to other Microsoft Loopback Adapters, such as the second virtual machine third Microsoft Loopback Adapter VF or connect it Object message is transferred to corresponding Microsoft Loopback Adapter, Huo Zheyou by third Microsoft Loopback Adapter VF by the Microsoft Loopback Adapter PF of his network equipment Object message is transferred to external network by Microsoft Loopback Adapter PF.
As it can be seen from the above scheme a kind of message transmitting method that the embodiment of the present application one provides, by preparatory on network interface card Network card binding list is set, thus receiving addition virtual switch or leading directly to transmitted by the Microsoft Loopback Adapter to virtual machine When object message, the Microsoft Loopback Adapter that needs forward can be determined according to the list, such as lead directly to virtual machine Microsoft Loopback Adapter or The Microsoft Loopback Adapter of virtual switch is added in person, to realize that message forwards, during this, in network interface card, leads directly to virtual machine Microsoft Loopback Adapter the specified transmission of message is carried out by list of bindings, thus avoid that Microsoft Loopback Adapter can not be led directly to after virtual machine The case where can not carrying out the flexible processing of message, improves the flexibility of Message processing so as to improve message transmissions management.
In one implementation, the corresponding relationship between Microsoft Loopback Adapter included in Microsoft Loopback Adapter list of bindings can be with Are as follows: the mapping relations between the Microsoft Loopback Adapter to virtual machine and the Microsoft Loopback Adapter that virtual switch is added are led directly to, in conjunction with Fig. 2, such as Shown in list in Fig. 3, the first Microsoft Loopback Adapter VF1 is led directly to the first virtual machine VM1, and the first Microsoft Loopback Adapter VF1 and addition are empty At the relationship of forming a team between the second Microsoft Loopback Adapter VF7 of quasi- interchanger OVS, therefore, VF1 and VF7 write-in Microsoft Loopback Adapter binding is arranged In table, analogize with this, it will be in VF3 and VF9 write-in Microsoft Loopback Adapter list of bindings, etc..
For example, network interface card passes through after receiving the object message that the first virtual machine is sent by the first Microsoft Loopback Adapter VF1 Inquiry memory in Microsoft Loopback Adapter list of bindings come determine with the second Microsoft Loopback Adapter VF7 corresponding to the first Microsoft Loopback Adapter VF1, Object message is transferred to the second Microsoft Loopback Adapter VF7 by network interface card as a result, by the second Microsoft Loopback Adapter VF7 according to the mesh in object message It marks address and object message is transferred to other Microsoft Loopback Adapters, such as third Microsoft Loopback Adapter VF9 of the second virtual machine or connect other Object message is transferred to corresponding Microsoft Loopback Adapter V3, Huo Zheyou by third Microsoft Loopback Adapter VF9 by the Microsoft Loopback Adapter PF of the network equipment Object message is transferred to external network by Microsoft Loopback Adapter PF.
Network interface card is corresponding with the first Microsoft Loopback Adapter according to the determination of Microsoft Loopback Adapter list of bindings in one implementation When the second Microsoft Loopback Adapter, it can be accomplished by the following way:
Firstly, binding information corresponding with the first Microsoft Loopback Adapter is searched, in Fig. 3 in Microsoft Loopback Adapter list of bindings The binding information between VF1 and VF7 in list, and then it is based on binding information, determine corresponding with the first Microsoft Loopback Adapter the Two Microsoft Loopback Adapters, VF7 such as corresponding with VF1.
Specifically, may include the network card identification of the first Microsoft Loopback Adapter and the mark letter of the second Microsoft Loopback Adapter in binding information Breath, such as the identification code of VF1 and VF7.
With reference to Fig. 4, for a kind of structural schematic diagram for network interface card controller that the embodiment of the present application two provides, the network interface card controller It is set in network interface card, is connected with such as RAM of the memory in network interface card, at least one Microsoft Loopback Adapter, virtual net are deployed on network interface card Card is separately added into the virtual switch of host or leads directly to the virtual machine on host, and as shown in the figure, VF1 is led directly to virtual machine VM1, VF3, which are led directly to, gives virtual machine VM2, VF7 and VF9 to be separately added into virtual switch OVS, and PF distributes to external network.
In the present embodiment, the network interface card controller is in the object message for receiving the first Microsoft Loopback Adapter transmission on network interface card; According to the Microsoft Loopback Adapter list of bindings on the network interface card in memory, determine that corresponding with first Microsoft Loopback Adapter second is virtual Network interface card;The object message is transferred to second Microsoft Loopback Adapter.
Wherein, object message refers to the message that virtual machine is sent, and such as the first virtual machine is to other virtual machines or and electronics The message that other connected network equipments of equipment are sent, the message are led directly to by network interface card to the first Microsoft Loopback Adapter of the first virtual machine Transmitted, later, by inquiry memory in Microsoft Loopback Adapter list of bindings come determine with corresponding to the first Microsoft Loopback Adapter Second Microsoft Loopback Adapter, and directly it is unconditional object message is transferred to the second Microsoft Loopback Adapter, thus by the second Microsoft Loopback Adapter root Object message is transferred to other Microsoft Loopback Adapters according to the destination address in object message, such as the third Microsoft Loopback Adapter of the second virtual machine Object message is transferred to accordingly virtually by the VF or Microsoft Loopback Adapter PF for connecting other network equipments by third Microsoft Loopback Adapter VF Network interface card, or object message is transferred to external network by Microsoft Loopback Adapter PF.
As it can be seen from the above scheme a kind of network interface card controller that the embodiment of the present application two provides, by network interface card in the application On preset network card binding list, to virtual switch or be led directly to the Microsoft Loopback Adapter institute of virtual machine receiving to be added When the object message of transmission, the Microsoft Loopback Adapter that needs forward can be determined according to the list, is such as led directly to the virtual of virtual machine Network interface card or the Microsoft Loopback Adapter that virtual switch is added, to realize that message forwards, during this, in network interface card, lead directly to The Microsoft Loopback Adapter of virtual machine carries out the specified transmission of message by list of bindings, thus avoids that Microsoft Loopback Adapter can not be led directly to void The case where can not carrying out the flexible processing of message after quasi- machine, so as to improve message transmissions management, improve the flexibility of Message processing.
With reference to Fig. 5, it is a kind of structural schematic diagram for network interface card that the embodiment of the present application three provides, is deployed in the network interface card multiple Microsoft Loopback Adapter is partially led directly in these Microsoft Loopback Adapters to the virtual machine on host, and part is added in the virtual switch of host, such as Shown in Fig. 2, VF1, which is led directly to, to be given virtual machine VM1, VF3 to lead directly to virtual machine VM2, VF7 and VF9 is given to be separately added into virtual switch OVS, PF distribute to external network.
In the present embodiment, may include with flowering structure in the network interface card:
Memory 501, for storing Microsoft Loopback Adapter list of bindings.
Network interface card controller 502, for receiving the object message of the transmission of the first Microsoft Loopback Adapter on the network interface card, according to described Microsoft Loopback Adapter list of bindings determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter, the object message is transmitted To second Microsoft Loopback Adapter.
Wherein, object message refers to the message that virtual machine is sent, and such as the first virtual machine is to other virtual machines or and electronics The message that other connected network equipments of equipment are sent, the message are led directly to by network interface card to the first Microsoft Loopback Adapter of the first virtual machine Transmitted, later, by inquiry memory in Microsoft Loopback Adapter list of bindings come determine with corresponding to the first Microsoft Loopback Adapter Second Microsoft Loopback Adapter, and directly it is unconditional object message is transferred to the second Microsoft Loopback Adapter, thus by the second Microsoft Loopback Adapter root Object message is transferred to other Microsoft Loopback Adapters according to the destination address in object message, such as the third Microsoft Loopback Adapter of the second virtual machine Object message is transferred to accordingly virtually by the VF or Microsoft Loopback Adapter PF for connecting other network equipments by third Microsoft Loopback Adapter VF Network interface card, or object message is transferred to external network by Microsoft Loopback Adapter PF.
And the corresponding relationship between Microsoft Loopback Adapter included in Microsoft Loopback Adapter list of bindings can be with are as follows: leads directly to virtual machine Microsoft Loopback Adapter and be added virtual switch Microsoft Loopback Adapter between mapping relations.The mapping relations are by Microsoft Loopback Adapter Network card identification formed binding information is presented.For example, the VF1 in Fig. 3 binds to form corresponding pass with the identification code of VF7 System.
As it can be seen from the above scheme a kind of network interface card that the embodiment of the present application three provides, by presetting network interface card on network interface card List of bindings, thus receiving addition virtual switch or leading directly to object message transmitted by the Microsoft Loopback Adapter to virtual machine When, the Microsoft Loopback Adapter that needs forward can be determined according to the list, such as led directly to the Microsoft Loopback Adapter to virtual machine or be added empty The Microsoft Loopback Adapter of quasi- interchanger during this, in network interface card, is led directly to the virtual net of virtual machine to realize that message forwards Card carries out the specified transmission of message by list of bindings, and thus avoiding that Microsoft Loopback Adapter can not be led directly to can not carry out to after virtual machine The case where flexible processing of message, improves the flexibility of Message processing so as to improve message transmissions management.
With reference to Fig. 6, for the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application four provides, which can be with Being includes the network equipment of processor 601 and network interface card 602, such as server equipment, in which:
Processor 601 is deployed with virtual machine and virtual switch for disposing host on the host;
At least one Microsoft Loopback Adapter is deployed on network interface card 602, the virtual switch of the host is added in the Microsoft Loopback Adapter Or lead directly to the virtual machine on the host, wherein the network interface card 602 is used for: receiving the first virtual net on the network interface card Block the object message sent, according to the Microsoft Loopback Adapter list of bindings, determines that corresponding with first Microsoft Loopback Adapter second is empty Quasi- network interface card, is transferred to second Microsoft Loopback Adapter for the object message.
Wherein, object message refers to the message that virtual machine is sent, and such as the first virtual machine is to other virtual machines or and electronics The message that other connected network equipments of equipment are sent, the message are led directly to by network interface card 602 to the first virtual of the first virtual machine Network interface card is transmitted, and later, is determined by the Microsoft Loopback Adapter list of bindings in the memory of inquiry network interface card 602 with first virtually Second Microsoft Loopback Adapter corresponding to network interface card, and it is directly unconditional object message is transferred to the second Microsoft Loopback Adapter, thus by the Object message is transferred to other Microsoft Loopback Adapters according to the destination address in object message by two Microsoft Loopback Adapters, such as the second virtual machine The third Microsoft Loopback Adapter VF or Microsoft Loopback Adapter PF for connecting other network equipments is transmitted object message by third Microsoft Loopback Adapter VF Object message is transferred to external network to corresponding Microsoft Loopback Adapter, or by Microsoft Loopback Adapter PF.
And the corresponding relationship between Microsoft Loopback Adapter included in Microsoft Loopback Adapter list of bindings can be with are as follows: leads directly to virtual machine Microsoft Loopback Adapter and be added virtual switch Microsoft Loopback Adapter between mapping relations.The mapping relations are by Microsoft Loopback Adapter Network card identification formed binding information is presented.For example, the VF1 in Fig. 3 binds to form corresponding pass with the identification code of VF7 System.
Example of the electronic equipment in the present embodiment in message transmission procedure is illustrated below:
As shown in Figure 7, there is network interface card controller and memory in the network interface card NIC of electronic equipment, be deployed in network interface card more A Microsoft Loopback Adapter VF, Microsoft Loopback Adapter VF lead directly to virtual machine VM or virtual switch are added.Wherein, it expands in memory Microsoft Loopback Adapter list of bindings, i.e. group table, record is bound two Microsoft Loopback Adapters for a group in the group table, specific to wrap Containing three column contents, first row record binding number, in secondary series VF_VM record bindings group by lead directly to virtual machine VF NIC only One number, third column VF_OVS have recorded the unique number that the VF NIC of host virtual switch is added in group, such as lead directly to virtual The Microsoft Loopback Adapter VF1 of the machine VM1 and Microsoft Loopback Adapter VF7 that virtual switch is added is bound as a group, leads directly to and gives virtual machine VM2 Microsoft Loopback Adapter VF3 and be added virtual switch Microsoft Loopback Adapter VF9 be bound as group, etc.;Correspondingly, in network interface card control Control logic is extended in device processed, i.e., the VF NIC in the same group, which receives message, unconditional can all issue the another of the group A VF NIC, for example, network interface card controller inquires group table according to control logic when NIC receives and dispatches message, if message is sent After a VF NIC in table, then message is directly sent to another VF NIC with group.
As shown in Figure 8, there are following logics when carrying out message transmissions for the network interface card in electronic equipment:
1, VM1 sends message to straight-through VF NIC1;
2, VF NIC1 receives message, and triggering network interface card controller triggers query logic, inquires GROUP table;
3, network interface card controller discovery VF NIC1 is located in GROUP table, and is GROUP relationship with VF NIC7;
4, message is unconditionally transmitted to VF NIC7 by network interface card controller;
5, after VF NIC7 receives message, the network interface card into the OVS software inquiry purpose virtual machine of host HOST is VF NIC9 is forwarded the packet by OVS software to VF NIC9;
6, VF NIC9 receives message, and triggering network interface card controller triggers query logic, inquires GROUP table;
7, network interface card controller discovery VF NIC9 is located in GROUP table, and is GROUP relationship with VF NIC3;
8, message is unconditionally transmitted to VF NIC3 by network interface card controller.VF NIC3 lead directly to the VF of target virtual machine NIC, target virtual machine receive message.
Again as shown in Figure 9, there are following logics when carrying out message transmissions for the network interface card in electronic equipment:
1, VM issues message to straight-through VF NIC1;
2, VF NIC1 receives message, and triggering network interface card controller triggers query logic, inquires GROUP table;
3, network interface card controller discovery VF NIC1 is located in GROUP table, and is GROUP relationship with VF NIC7;
4, message is unconditionally transmitted to VF NIC7 by network interface card controller;
5, after VF NIC7 receives message, the network interface card into the OVS software inquiry purpose virtual machine of HOST is PF, passes through OVS Software is forwarded the packet to PF
6, PF is forwarded the packet to external network.
As a result, as shown in Figure 10, pass through newly-increased group binding mechanism, the virtual friendship of host system in the present embodiment The OVS that changes planes can manage the group by the VF NIC being connected on virtual switch, and another leads directly to the VF NIC of virtual machine, To improve the managerial flexibility of virtual machine network, while the message that VM is issued or received, spirit can also be done in virtual machine Processing living is led directly to the Microsoft Loopback Adapter of virtual machine so that the virtual machine interchanger of host can manage, to improve quilt The flexibility of the network management of straight-through Microsoft Loopback Adapter and the flexibility of message processing capability.
As it can be seen from the above scheme a kind of electronic equipment that the embodiment of the present application four provides, by being preset on network interface card Network card binding list, thus receiving addition virtual switch or leading directly to target transmitted by the Microsoft Loopback Adapter to virtual machine When message, the Microsoft Loopback Adapter that needs forward can be determined according to the list, such as lead directly to the Microsoft Loopback Adapter to virtual machine or added Enter the Microsoft Loopback Adapter of virtual switch, to realize that message forwards, during this, in network interface card, leads directly to the void of virtual machine Quasi- network interface card carries out that message is specified to be transmitted by list of bindings, thus avoids that Microsoft Loopback Adapter can not be led directly to can not after virtual machine The case where carrying out the flexible processing of message, so as to improve message transmissions management, improves the flexibility of Message processing.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (7)

1. a kind of message transmitting method is applied to network interface card, which comprises
The object message that the first Microsoft Loopback Adapter on the network interface card is sent is received, is deployed at least one virtual net on the network interface card Card, the Microsoft Loopback Adapter are added the virtual switch of host or lead directly to the virtual machine on the host;
According to Microsoft Loopback Adapter list of bindings preset on the network interface card, determine that corresponding with first Microsoft Loopback Adapter second is virtual Network interface card;
The object message is transferred to second Microsoft Loopback Adapter.
2. the method according to claim 1, wherein the Microsoft Loopback Adapter list of bindings includes: to lead directly to described Mapping relations between the Microsoft Loopback Adapter of virtual machine and the Microsoft Loopback Adapter that the virtual switch is added.
3. method according to claim 1 or 2, which is characterized in that bound according to Microsoft Loopback Adapter preset on the network interface card List determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter, comprising:
In the Microsoft Loopback Adapter list of bindings, binding information corresponding with first Microsoft Loopback Adapter is searched;
Based on the binding information, the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter is determined.
4. according to the method described in claim 3, it is characterized in that, the binding information includes: the network interface card of the first Microsoft Loopback Adapter The identification information of mark and second Microsoft Loopback Adapter.
5. a kind of network interface card controller is set to network interface card, at least one Microsoft Loopback Adapter, the Microsoft Loopback Adapter are deployed on the network interface card The virtual switch of host is added or leads directly to the virtual machine on the host, the network interface card controller is used for:
Receive the object message that the first Microsoft Loopback Adapter on the network interface card is sent;It is tied up according to Microsoft Loopback Adapter preset on the network interface card Determine list, determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter;The object message is transferred to described second Microsoft Loopback Adapter.
6. a kind of network interface card, the network interface card include:
Memory is deployed at least one Microsoft Loopback Adapter for storing Microsoft Loopback Adapter list of bindings on the network interface card, described virtual Network interface card is added the virtual switch of host or leads directly to the virtual machine on the host;
Network interface card controller, for receiving the object message of the transmission of the first Microsoft Loopback Adapter on the network interface card, according to the virtual net Card list of bindings determines the second Microsoft Loopback Adapter corresponding with first Microsoft Loopback Adapter, the object message is transferred to described Second Microsoft Loopback Adapter.
7. a kind of electronic equipment, comprising:
Processor is deployed with virtual machine and virtual switch for disposing host on the host;
Network interface card is deployed at least one Microsoft Loopback Adapter on the network interface card, and the virtual switch of the host is added in the Microsoft Loopback Adapter Machine is led directly to the virtual machine on the host, wherein the network interface card is used for: receiving the first Microsoft Loopback Adapter on the network interface card The object message of transmission determines that corresponding with first Microsoft Loopback Adapter second is virtual according to the Microsoft Loopback Adapter list of bindings The object message is transferred to second Microsoft Loopback Adapter by network interface 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 true CN108965169A (en) 2018-12-07
CN108965169B 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)

Cited By (1)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050182853A1 (en) * 2004-02-13 2005-08-18 Saul Lewites Apparatus and method for a dynamically extensible virtual switch
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
US20140233370A1 (en) * 2013-02-21 2014-08-21 Oracle International Corporation Method and system for virtual network interface cards (vnics) over aggregation spanning multiple switches
US20150071301A1 (en) * 2006-05-01 2015-03-12 Vmware, Inc. Private ethernet overlay networks over a shared ethernet in a virtual environment
CN106383736A (en) * 2016-09-21 2017-02-08 杭州华三通信技术有限公司 Port extension method and apparatus
CN106656719A (en) * 2016-09-26 2017-05-10 华为技术有限公司 Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
CN107005495A (en) * 2017-01-20 2017-08-01 华为技术有限公司 Method, network interface card, host device and computer system for forwarding packet
CN107181679A (en) * 2016-03-09 2017-09-19 中兴通讯股份有限公司 A kind of port binding implementation method and device
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050182853A1 (en) * 2004-02-13 2005-08-18 Saul Lewites Apparatus and method for a dynamically extensible virtual switch
CN102938721B (en) * 2004-02-13 2015-09-16 英特尔公司 For the apparatus and method of dynamically extendible virtual switch
US20150071301A1 (en) * 2006-05-01 2015-03-12 Vmware, Inc. Private ethernet overlay networks over a shared ethernet in a virtual environment
US20140233370A1 (en) * 2013-02-21 2014-08-21 Oracle International Corporation Method and system for virtual network interface cards (vnics) over aggregation spanning multiple switches
CN103873374A (en) * 2014-03-27 2014-06-18 杭州华三通信技术有限公司 Message processing method and device in virtualized system
CN107181679A (en) * 2016-03-09 2017-09-19 中兴通讯股份有限公司 A kind of port binding implementation method and device
CN106383736A (en) * 2016-09-21 2017-02-08 杭州华三通信技术有限公司 Port extension method and apparatus
CN106656719A (en) * 2016-09-26 2017-05-10 华为技术有限公司 Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
CN107278359A (en) * 2016-11-09 2017-10-20 华为技术有限公司 The method of Message processing, main frame and system in cloud computing system
CN107005495A (en) * 2017-01-20 2017-08-01 华为技术有限公司 Method, network interface card, host device and computer system for forwarding packet

Cited By (1)

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

Also Published As

Publication number Publication date
CN108965169B (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN110232034A (en) Host system and its method and accelerating module
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN105518611B (en) A kind of remote direct data access method, equipment and system
CN102571698B (en) Access authority control method, system and device for virtual machine
CN109302466A (en) Data processing method, relevant device and computer storage medium
CN103827842B (en) Message is write to controller storage space
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
CN106354544A (en) Virtual machine creating method and system and host
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN108196879A (en) Method for processing business, device, equipment and computer readable storage medium
CN105389120B (en) Support the RMA API by alive messages
CN110061992A (en) A kind of method and Network Security Device of dynamic configuration FPGA
CN109582590A (en) Pointer in the system of memory management
CN109792393A (en) Virtualize the software upgrading in off-line accounting system
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN105656684B (en) Failure simulation method and device
CN107391155A (en) A kind of packaging method and device
CN108399106A (en) The method and apparatus for managing physical host
CN106408409A (en) Business handling system and method
CN105518610B (en) Storage system, method and apparatus for processing operation request
CN104123173B (en) A kind of method and device for realizing inter-virtual machine communication
CN108667817A (en) Message converting system and message forwarding method
CN107846449A (en) Method, apparatus, readable storage medium storing program for executing and the equipment of calling system instrument
CN107888663A (en) A kind of method of distribution of document, equipment and computer-readable medium
CN108965169A (en) A kind of message transmitting method, network interface card controller, network interface card and electronic equipment

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