CN104219093B - Network interface card function configuration method and relevant device - Google Patents
Network interface card function configuration method and relevant device Download PDFInfo
- Publication number
- CN104219093B CN104219093B CN201410437159.XA CN201410437159A CN104219093B CN 104219093 B CN104219093 B CN 104219093B CN 201410437159 A CN201410437159 A CN 201410437159A CN 104219093 B CN104219093 B CN 104219093B
- Authority
- CN
- China
- Prior art keywords
- function items
- processing function
- message processing
- message
- supported
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Network interface card of embodiment of the present invention function configuration method and relevant device.A kind of network interface card function configuration method includes collecting the K1 Message processing function items that the physical network card of calculate node is supported;Collect the K2 Message processing function items that the Microsoft Loopback Adapter of calculate node is supported;If having got the M between K1 Message processing function items and K2 Message processing function items to match Message processing function items pair, enable M and Message processing function items are matched with the Message processing function items that the N among is supported physical network card of the Message processing function items matching among, enable the Message processing function items that N is supported Microsoft Loopback Adapter of the Message processing function match among.Technical scheme provided in an embodiment of the present invention is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Description
Technical field
The present invention relates to communication and field of computer technology, and in particular to a kind of network interface card function configuration method and correlation are set
It is standby.
Background technology
Virtualization is the hot spot technology of present data center etc., and core meaning is to aid in data center and large-scale work station etc.
Etc. equipment with lower TCO, the flexibility of its environment and respond are lifted to a new level.However, mesh
Preceding input/output (English:Input/output, abbreviation:I/O) virtualization relatively fall behind, become virtualization technology and quickly send out
The performance bottleneck of exhibition, many hardware vendors all propose and used many solutions for I/O virtualization technologies.The network equipment
It is essential important component in the servers such as data center, to improve the virtualizing performance of the network equipment, industry is opened
Begin to explore by some new intel Virtualization Technology applications into network interface card.
Off-loadable (the English of network:Network offloading) technology refers to central processing unit performing network protocol stack
Code and some the focus functions of realizing, are unloaded to physical network card or Microsoft Loopback Adapter gets on a kind of technology of realization, Ke Yili
Solution, network offloading technologies advantageously reduce central processing unit (CPU, Central Processing
Unit consumption).
The network Offloading abilities that current main flow network interface card is supported mainly have verification and calculating, and (such as big message splits poly-
Conjunction and virtual local area network tags deblocking etc.).Under virtualized environment, Microsoft Loopback Adapter is by the front end network interface card and host in virtual machine
(English:Host the rear end network interface card on) is constituted.Current industry have begun to discuss allow in some scenes for front end network interface card, after
Hold the physical network card configuration offloading characteristics in network interface card and hardware layer.
However, blindly introducing offloading technologies may to be difficult to Coordination Treatment between Microsoft Loopback Adapter and physical network card
Message, and then be possible to influence being normally carried out for some business.Therefore, introduce after offloading technologies, how to cause void
Intend between network interface card and physical network card can Coordination Treatment message be a technical issues that need to address.
The content of the invention
The embodiment of the present invention provides network interface card function configuration method and relevant device, to lift Microsoft Loopback Adapter and physical network card
Between handle message harmony.
First aspect present invention provides a kind of network interface card function configuration method, including:
Collect the K1 Message processing function items that the physical network card of calculate node is supported;
Collect the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported;
If having got the M between the K1 Message processing function items and the K2 Message processing function items to message
Processing function matching pair, enables the M and Message processing function items is matched with N among to the matching pair of Message processing function items
Among the Message processing function items supported of the physical network card, enable the N to Message processing function match among
The Message processing function items that the Microsoft Loopback Adapter is supported;
Wherein, the M matches each pair Message processing function items matching of centering to Message processing function items to including described
In one of Message processing function items and the K2 Message processing function items in K1 Message processing function items wherein
One Message processing function items, the M matches each pair Message processing function items matching of centering to Message processing function items to bag
Can mutually it be supported between the two Message processing function items included, the M, the N, the K1 and the K2 are positive integer, institute
N is stated less than or equal to the M.
With reference in a first aspect, in the first possible embodiment of first aspect,
Methods described also includes:By the off-loadable Offloading of mark write-in network of the K1 Message processing function items
In information table;The mark of the K2 Message processing function items is write in the network Offloading information tables.
With reference to the first possible embodiment of first aspect or first aspect, second in first aspect is possible
In embodiment,
Methods described also includes:M bars match information record is write in the network Offloading information tables;Wherein,
The M bars match information record and the M are matched to corresponding to Message processing function items, wherein, match information record i notes
Mark of the Message processing function items matching to two Message processing function items included by j has been recorded, wherein, match information record i
Any one match information record in being recorded for the M bars match information, wherein, the Message processing function items matching is to j
Matched for the M Message processing function items corresponding with match information record i that Message processing function items are matched with centering
It is right.
Second with reference to the first possible embodiment or first aspect of first aspect or first aspect is possible
Embodiment, in the third possible embodiment of first aspect, what the physical network card for collecting calculate node was supported
K1 Message processing function items, including:The K1 report that the physical network card for collecting calculate node by host machine system interface is supported
Literary processing function.
Second with reference to the first possible embodiment or first aspect of first aspect or first aspect is possible
The third possible embodiment of embodiment or first aspect, in the 4th kind of possible embodiment of first aspect,
The K2 Message processing function items that the Microsoft Loopback Adapter for collecting the calculate node is supported include:From the control team of Microsoft Loopback Adapter
The K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported are collected in row.
Second with reference to the first possible embodiment or first aspect of first aspect or first aspect is possible
4th kind of possible embodiment of the third possible embodiment or first aspect of embodiment or first aspect,
In 5th kind of possible embodiment of one side,
The K1 Message processing function items include at least one of following function items:For carrying out polymerizeing to message
Function items to polymerization message, the function items that polymerize for cutting message, virtual local area network tags for decapsulating message
Function items, the function items for encapsulating virtual local area network tags to message.
Second with reference to the first possible embodiment or first aspect of first aspect or first aspect is possible
4th kind of possible embodiment of the third possible embodiment or first aspect of embodiment or first aspect or
5th kind of possible embodiment of one side, in the 6th kind of possible embodiment of first aspect,
The K2 Message processing function items include following function items at least one of:For receiving polymerization message
Function items, the function items for sending polymerization message, the function for receiving the message for being decapsulated virtual local area network tags
Item, the function items for receiving the message for being packaged virtual local area network tags.
Second aspect of the present invention provides a kind of network interface card functional configuration device, including:
First collector unit, for collecting the K1 Message processing function items that the physical network card of calculate node is supported;
Second collector unit, collects the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported;
Control unit is enabled, if having got the K1 Message processing function items and the K2 Message processing function items
Between M to the matching pair of Message processing function items, enable the M Message processing function items are matched N among to message at
The Message processing function items that the physical network card of the function items matching among is supported are managed, the N are enabled to Message processing function
The Message processing function items that the Microsoft Loopback Adapter among occurrence pair is supported;
Wherein, the M matches each pair Message processing function items matching of centering to Message processing function items to including described
In one of Message processing function items and the K2 Message processing function items in K1 Message processing function items wherein
One Message processing function items, the M matches each pair Message processing function items matching of centering to Message processing function items to bag
Can mutually it be supported between the two Message processing function items included, the M, the N, the K1 and the K2 are positive integer, institute
N is stated less than or equal to the M.
With reference to second aspect, in the first possible embodiment of second aspect,
Described device also includes:Recording unit, can for the mark of the K1 Message processing function items to be write into network
Unload in Offloading information tables;The mark of the K2 Message processing function items is write into the network Offloading letters
Cease in table.
With reference to the first possible embodiment of second aspect or second aspect, second in second aspect is possible
In embodiment, the recording unit is additionally operable to:M bars match information note is write in the network Offloading information tables
Record;Wherein, the M bars match information record and the M are matched to corresponding to Message processing function items, wherein, matching letter
Breath record i have recorded mark of the Message processing function items matching to two Message processing function items included by j, wherein, matching
Information record i is any one match information record during the M bars match information is recorded, wherein, the Message processing function
Matching is that the M matches centering to Message processing function items to j and the match information records the corresponding Message processing work(of i
Can item matching pair.
Second with reference to the first possible embodiment or second aspect of second aspect or second aspect is possible
Embodiment, in the third possible embodiment of second aspect, first collector unit is specifically for passing through host
Machine system interface collects the K1 Message processing function items that the physical network card of calculate node is supported.
Second with reference to the first possible embodiment or second aspect of second aspect or second aspect is possible
The third possible embodiment of embodiment or second aspect, in the 4th kind of possible embodiment of second aspect,
Second collector unit is specifically for the Microsoft Loopback Adapter that the calculate node is collected from the control queue of Microsoft Loopback Adapter is supported
K2 Message processing function items.
Second with reference to the first possible embodiment or second aspect of second aspect or second aspect is possible
4th kind of possible embodiment of the third possible embodiment or second aspect of embodiment or second aspect,
In 5th kind of possible embodiment of two aspects,
The K1 Message processing function items include at least one of following function items:For carrying out polymerizeing to message
Function items to polymerization message, the function items that polymerize for cutting message, virtual local area network tags for decapsulating message
Function items, the function items for encapsulating virtual local area network tags to message.
Second with reference to the first possible embodiment or second aspect of second aspect or second aspect is possible
4th kind of possible embodiment of the third possible embodiment or second aspect of embodiment or second aspect or
5th kind of possible embodiment of two aspects, in the 6th kind of possible embodiment of second aspect,
The K2 Message processing function items include following function items at least one of:For receiving polymerization message
Function items, the function items for sending polymerization message, the function for receiving the message for being decapsulated virtual local area network tags
Item, the function items for receiving the message for being packaged virtual local area network tags.
Third aspect present invention provides a kind of calculate node, it may include, hardware layer, the place operated on the hardware layer
Main frame Host and at least one virtual machine operated on the Host, the hardware layer include physical network card, wherein,
The rear end example of the Microsoft Loopback Adapter of the calculate node is located among the Host, and the front end example of the Microsoft Loopback Adapter is located at institute
State among virtual machine;
Wherein, the Host is used for, and collects the K1 Message processing function items that the physical network card is supported;Collect the void
Intend the K2 Message processing function items that network interface card is supported;If having got the K1 Message processing function items and the K2 message
M between processing function enables the M and Message processing function items is matched among to the matching pair of Message processing function items
N matches the Message processing function items that the physical network card among is supported to Message processing function items, enables the N to message
The Message processing function items that the Microsoft Loopback Adapter among processing function occurrence pair is supported;Wherein, the M is to Message processing work(
The each pair Message processing function items of energy item matching centering are matched to including one of them in the K1 Message processing function items
One of Message processing function items in Message processing function items and the K2 Message processing function items, the M is to message
The each pair Message processing function items matching of processing function matching centering to including two Message processing function items between can
Mutually support, the M, the N, the K1 and the K2 are positive integer, the N is less than or equal to the M.
With reference to the third aspect, in the first possible embodiment of the third aspect,
The Host is additionally operable to:By the off-loadable Offloading of mark write-in network of the K1 Message processing function items
In information table;The mark of the K2 Message processing function items is write in the network Offloading information tables.
With reference to the first possible embodiment of the third aspect or the third aspect, second in the third aspect is possible
In embodiment,
The Host is additionally operable to:M bars match information record is write in the network Offloading information tables;Wherein,
The M bars match information record and the M are matched to corresponding to Message processing function items, wherein, match information record i notes
Mark of the Message processing function items matching to two Message processing function items included by j has been recorded, wherein, match information record i
Any one match information record in being recorded for the M bars match information, wherein, the Message processing function items matching is to j
Matched for the M Message processing function items corresponding with match information record i that Message processing function items are matched with centering
It is right.
Second with reference to the first possible embodiment or the third aspect of the third aspect or the third aspect is possible
Embodiment, in the third possible embodiment of the third aspect, K1 that the physical network card is supported are collected described
The aspect of Message processing function items, the Host by host machine system interface specifically for collecting what the physical network card was supported
K1 Message processing function items.
Second with reference to the first possible embodiment or the third aspect of the third aspect or the third aspect is possible
The third possible embodiment of embodiment or the third aspect, in the 4th kind of possible embodiment of the third aspect,
It is described collect the K2 Message processing function items that the Microsoft Loopback Adapter is supported in terms of, the Host specifically for
The K2 Message processing function items that the Microsoft Loopback Adapter is supported are collected from the control queue of the Microsoft Loopback Adapter.
Second with reference to the first possible embodiment or the third aspect of the third aspect or the third aspect is possible
4th kind of possible embodiment of the third possible embodiment or the third aspect of embodiment or the third aspect,
In 5th kind of possible embodiment of three aspects,
The K1 Message processing function items include at least one of following function items:For carrying out polymerizeing to message
Function items to polymerization message, the function items that polymerize for cutting message, virtual local area network tags for decapsulating message
Function items, the function items for encapsulating virtual local area network tags to message.
Second with reference to the first possible embodiment or the third aspect of the third aspect or the third aspect is possible
4th kind of possible embodiment of the third possible embodiment or the third aspect of embodiment or the third aspect or
5th kind of possible embodiment of three aspects, in the 6th kind of possible embodiment of the third aspect,
The K2 Message processing function items include following function items at least one of:For receiving polymerization message
Function items, the function items for sending polymerization message, the function for receiving the message for being decapsulated virtual local area network tags
Item, the function items for receiving the message for being packaged virtual local area network tags.
Therefore, in some embodiments of the invention technical scheme, the K1 supported in the physical network card for collecting calculate node
After the K2 Message processing function items that individual Message processing function items and the Microsoft Loopback Adapter of the collection calculate node are supported, if obtaining
The M between the K1 Message processing function items and the K2 Message processing function items has been got to Message processing function items
Pairing, enables the N things to Message processing function items matching among of the M to the matching of Message processing function items among
The Message processing function items that network interface card is supported are managed, the Microsoft Loopback Adapters of the N to Message processing function match among is enabled
The Message processing function items of support.That is, what is mainly enabled is that the physical network card and Microsoft Loopback Adapter of calculate node is mutually propped up
Some the Message processing function items matching pair held, because the Message processing function items that these Message processing function items match centering are
Mutually support, therefore, be advantageous for realizing mutual association when carrying out continuous processing to message based on these Message processing function items
What allotment was closed, it is seen that such scheme is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of network interface card function configuration method provided in an embodiment of the present invention;
Fig. 2-a are the schematic flow sheets of another network interface card function configuration method provided in an embodiment of the present invention;
Fig. 2-b are a kind of inside structure schematic diagrames of calculate node provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of the up processing method of message provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of message downlink processing method provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of network interface card functional configuration device provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of calculate node provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of another calculate node provided in an embodiment of the present invention.
Embodiment
The embodiment of the present invention provides network interface card function configuration method and relevant device and calculate node, to lift Microsoft Loopback Adapter
The harmony of message is handled between physical network card.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing, "
The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage
The data that solution is so used can be exchanged in the appropriate case, so as to embodiments of the invention described herein for example can with except
Order beyond those for illustrating or describing herein is implemented.In addition, term " comprising " and " having " and theirs is any
Deformation, it is intended that covering is non-exclusive to be included, for example, containing the process of series of steps or unit, method, system, production
Product or equipment are not necessarily limited to those steps clearly listed or unit, but may include not list clearly or for this
A little processes, method, product or the intrinsic other steps of equipment or unit.
To facilitate understanding of the present embodiment of the invention, introduced first at this embodiment of the present invention description in can introduce it is several will
Element;
Virtual machine VM:
One or many virtual computers can be simulated on a physical computer by software virtual machine, and
These virtual machines are operated just as real computer, can be empty with installation operation system and application program on virtual machine
Plan machine may also access Internet resources.For the application program run in virtual machine, virtual machine is like really to count
It is operated in calculation machine.
Hardware layer:
The hardware platform of virtualized environment operation.Wherein, hardware layer may include multiple hardwares, such as certain calculate node it is hard
Part layer may include CPU and internal memory, can also include network interface card, memory etc. the input/output of high speed/low speed (I/O, Input/
Output) equipment, certain hardware layer is also possible that the miscellaneous equipment with particular procedure function.
Host (Host):
As management level, management, distribution to complete hardware resource;Virtual hardware platform is presented for virtual machine;Realize
The scheduling and isolation of virtual machine.Wherein, Host is probably monitor of virtual machine (VMM);In addition, VMM and 1 privileged virtual sometimes
Machine coordinates, and both combine composition Host.Wherein, virtual hardware platform provides various hardware to each virtual machine run thereon and provided
Source, such as provides virtual cpu, internal memory, virtual disk, Microsoft Loopback Adapter.Wherein, the virtual disk can correspond to a Host text
Part or a logic block device.Virtual machine is then operated on virtual hardware platforms of the Host for its preparation, and one is run on Host
Individual or multiple virtual machines.
One embodiment of network interface card function configuration method of the present invention.Wherein, a kind of network interface card function configuration method can include:
Collect the K1 Message processing function items that the physical network card of calculate node is supported;The Microsoft Loopback Adapter for collecting the calculate node is supported
K2 Message processing function items;If having got the K1 Message processing function items and the K2 Message processing function items
Between M to the matching pair of Message processing function items, enable the M Message processing function items are matched N among to message at
The Message processing function items that the physical network card of the function items matching among is supported are managed, the N are enabled to Message processing function
The Message processing function items that the Microsoft Loopback Adapter among occurrence pair is supported;Wherein, the M is matched to Message processing function items
The each pair Message processing function items of centering are matched to including one of Message processing in the K1 Message processing function items
One of Message processing function items in function items and the K2 Message processing function items, wherein, the M is to Message processing
Function items matching centering each pair Message processing function items matching to including two Message processing function items between can be mutual
Support, the M, the N, the K1 and the K2 are positive integer, the N is less than or equal to the M.
Refer to Fig. 1, a kind of flow signal for network interface card function configuration method that Fig. 1 provides for one embodiment of the present of invention
Figure.Wherein, as shown in figure 1, a kind of network interface card function configuration method provided in an embodiment of the present invention may include herein below:
101st, the K1 Message processing function items that the physical network card of calculate node is supported are collected.
Wherein, the part or all of message that the K1 Message processing function items that physical network card is supported can be supported for physical network card
Processing function.
102nd, the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported are collected.
Wherein, the part or all of message that the K2 Message processing function items that Microsoft Loopback Adapter is supported can be supported for Microsoft Loopback Adapter
Processing function.
Wherein, calculate node can be server, PC, notebook computer, communication network element or other support virtualizations
The computer equipment of framework.
If the 103, having got M pairs between the K1 Message processing function items and the K2 Message processing function items
The matching pair of Message processing function items, enables the M and Message processing function items is matched with N among to Message processing function items
The Message processing function items that the physical network card among pairing is supported, enable the N to Message processing function match to it
In the Microsoft Loopback Adapter support Message processing function items.
Wherein, certain Message processing function items that certain Message processing function items F1 and Microsoft Loopback Adapter that physical network card is supported are supported
It can mutually support, typically refer between F2, the message after being handled based on Message processing function items F1 can also be based on
Message processing function items F2 is continued with, or, the message after being handled based on Message processing function items F2 can also base
Continued with Message processing function items F1.For example after handling message P01 based on Message processing function items F1 message P02 is obtained,
Message P02 processing can also continue to based on Message processing function items F2, or message is handled based on Message processing function items F1
Message P04 is obtained after P03, message P01 processing can also continue to based on Message processing function items F1.
Specifically for example, it is assumed that Message processing function items F1 is for carrying out polymerizeing the function of obtaining polymerizeing message to message
, Message processing function items F2 is the function items for receiving polymerization message, therefore when Message processing function items F1 enters to message
Row polymerization is obtained after polymerization message, and polymerization message can be received based on Message processing function items F2, and this represents Message processing work(
Energy item F2 and Message processing function items F1 is mutually supported.Assuming that Message processing function items F22 is for receiving non-polymeric message
Function items, therefore after Message processing function items F1 to message polymerize and obtained polymerizeing message, based on Message processing function
Item F22 can not receive polymerization message, and this means that Message processing function items F22 and Message processing function items F1 are not supported mutually.
Again specifically for example, it is assumed that Message processing function items F3 is for the function for the virtual local area network tags for decapsulating message
, and Message processing function items F4 is the function items for receiving the message for being decapsulated virtual local area network tags, therefore, works as base
After Message processing function items F3 carries out decapsulation processing to the virtual local area network tags of message, based on Message processing function items
F4 can receive the message for being decapsulated virtual local area network tags, and this means that Message processing function items F4 and Message processing function
Mutually supported between item F3.
Again specifically for example, it is assumed that Message processing function items F5 is the function items for encapsulating virtual local area network tags to message
(virtual local area network tags wherein, i.e., are inserted in the header field of message to message encapsulation virtual local area network tags), and Message processing
Function items F6 is the function items for receiving the message for being packaged virtual local area network tags, therefore, when based on Message processing work(
After the virtual local area network tags of energy item F5 encapsulated messages, it can also be received and be packaged virtually based on Message processing function items F6
The message of Local Area Network tag, it is mutually to support that this, which is meant that between Message processing function items F6 and Message processing function items F5,
's.
Specifically for example, it is assumed that Message processing function items F7 is for carrying out polymerizeing the function of obtaining polymerizeing message to message
, and Message processing function items F8 is the function items for polymerizeing message for cutting, therefore when based on F7 pairs of Message processing function items
Message carry out polymerize obtains polymerization message after, based on Message processing function items F8 can cutting polymerization message, this means that report
Literary processing function F7 and Message processing function items F8 is mutually supported.
The scene mutually supported or do not supported between other Message processing function items can be by that analogy.
As can be seen that in the scheme of the present embodiment, the K1 Message processing supported in the physical network card for collecting calculate node
After the K2 Message processing function items that function items and the Microsoft Loopback Adapter of the collection calculate node are supported, if having got described
M between K1 Message processing function items and the K2 Message processing function items is matched pair to Message processing function items, is enabled
The N that the M is matched to Message processing function items among matches the physical network card branch among to Message processing function items
The Message processing function items held, enable the report that the N is supported the Microsoft Loopback Adapter of the Message processing function match among
Literary processing function.That is, mainly enable be calculate node physical network card and Microsoft Loopback Adapter mutually support some
Message processing function items matching pair, because the Message processing function items that these Message processing function items match centering are mutual support
, therefore, it is advantageous for realizing mutually coordinated cooperation when carrying out continuous processing to message based on these Message processing function items,
It can be seen that such scheme is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Optionally, can also be further by the K1 Message processing function in some possible embodiments of the invention
Off-loadable (the English of mark write-in network of item:Offloading) in information table;By the mark of the K2 Message processing function items
Know in the write-in network Offloading information tables.
Practice find, by the mark for the Message processing function items being collected into be written to network Offloading information tables it
In, it is generally advantageous in the mark for more easily inquiring about, managing and safeguarding these Message processing function items.
Optionally, can also be further off-loadable in the network in some possible embodiments of the invention
M bars match information record is write in Offloading information tables.Wherein, M bars match information record and the M to message at
Function items matching is managed to corresponding, match information record i have recorded the matching of Message processing function items to two reports included by j
The mark of literary processing function, match information record i is any one match information note during the M bars match information is recorded
Record, the Message processing function items matching is that the M matches remembering with the match information for centering to Message processing function items to j
Record the corresponding Message processing function items matchings pair of i.
Practice find, by the Message processing function items got match to comprising Message processing function items mark write
To network Offloading information tables, be conducive to more easily inquiring about, manage and safeguarding the matching pair of these Message processing function items
Comprising Message processing function items mark, also, be conducive to carry out Message processing function items enable when, it is more convenient more accurate
Carry out association message processing function enable.
Optionally, in some possible embodiments of the invention, what the physical network card for collecting calculate node was supported
K1 Message processing function items may include:The K1 message that the physical network card for collecting calculate node by Host system interfaces is supported
Processing function.It is of course also possible to the K1 Message processing work(that the physical network card for collecting calculate node by other means is supported
Can item.
Optionally, in some possible embodiments of the invention, the Microsoft Loopback Adapter branch for collecting the calculate node
The K2 Message processing function items held may include:The Microsoft Loopback Adapter of the calculate node is collected from the control queue of Microsoft Loopback Adapter
K2 Message processing function items of support.Wherein, Message processing function is transmitted due to being the control queue using Microsoft Loopback Adapter
The mark of item, so can be achieved transmission and the security isolation of message I/O channel of Message processing function items mark, and then
Be advantageously implemented does not influence business to be normally carried out as far as possible.
Optionally, in some possible embodiments of the invention, the K1 Message processing function items can be included such as
At least one of lower function items:For carrying out polymerizeing the function items for obtaining polymerization message to message, polymerizeing message for cutting
Function items, the function items of virtual local area network tags for decapsulating message, for encapsulating virtual local area network tags to message
Function items.Certain K1 Message processing function items are not limited to the example above.
Optionally, in some possible embodiments of the invention, the K2 Message processing function items are for example including such as
At least one of lower function items:For receiving the function items of polymerization message, the function items for sending polymerization message, being used for
Receive the function items for the message for being decapsulated virtual local area network tags, the report of virtual local area network tags has been packaged for receiving
The function items of text.Certain K2 Message processing function items are not limited to the example above.
For ease of being better understood from and implementing the such scheme of the embodiment of the present invention, below by some specific applied fields
Scape is illustrated.
Refer to a kind of network interface card functional configuration that Fig. 2-a and Fig. 2-b, Fig. 2-a provide for an alternative embodiment of the invention
The schematic flow sheet of method, a kind of inside structure schematic diagram for calculate node that Fig. 2-b embodiments are provided, wherein, calculate node
Can be server, PC, notebook computer, communication network element or other computer equipments.Wherein, network interface card work(shown in Fig. 2-a
Energy collocation method can be embodied in the calculate node of Fig. 2-b frameworks.It is provided in an embodiment of the present invention another as shown in Fig. 2-a
A kind of network interface card function configuration method may include herein below:
201st, Host collects the K1 Message processing function items that the physical network card of calculate node is supported.
Optionally, Host can for example collect the K1 message that the physical network card of calculate node is supported by Host system interfaces
Processing function.It is of course also possible to the K1 Message processing work(that the physical network card for collecting calculate node by other means is supported
Can item.
Wherein, Host can for example be sent to physical network card by Host system interfaces and be instructed, and indicate that physical network card is reported
The K1 Message processing function items that physical network card is supported, certainly, physical network card (may actively can also be initialized in physical network card
During, also can be at other moment) by Host system interfaces to Host report physical network card support K1 Message processing
Function items.
Wherein, the part or all of message that the K1 Message processing function items that physical network card is supported can be supported for physical network card
Processing function.
202nd, Host collects the K2 Message processing function items that the Microsoft Loopback Adapter of calculate node is supported.
Optionally, the K2 message that the Microsoft Loopback Adapter of the calculate node is supported is collected from the control queue of Microsoft Loopback Adapter
Processing function.Wherein, the mark of Message processing function items is transmitted due to being the control queue using Microsoft Loopback Adapter, so may be used
Transmission and the security isolation of message I/O channel of Message processing function items mark are realized, and then is advantageously implemented as far as possible not
Influence business is normally carried out.
Wherein, Host can for example be instructed by being sent to Microsoft Loopback Adapter, indicate that Microsoft Loopback Adapter reports Microsoft Loopback Adapter to support
K2 Message processing function items, certainly, Microsoft Loopback Adapter can also actively (may also may be used in Microsoft Loopback Adapter initialization procedure
At other moment) by controlling queue to report K2 Message processing function items of Microsoft Loopback Adapter support to Host.
Wherein, the part or all of message that the K2 Message processing function items that Microsoft Loopback Adapter is supported can be supported for Microsoft Loopback Adapter
Processing function.
203rd, K1 Message processing function items and K2 Message processing function items are carried out mutually supporting to match by Host.
If the 204, Host has been got between the K1 Message processing function items and the K2 Message processing function items
M to the matching pair of Message processing function items, enable the M and Message processing function items matched with N among to Message processing work(
The Message processing function items that the physical network card of the energy item matching among is supported, enable the N to Message processing function match
The Message processing function items that the Microsoft Loopback Adapter of the item among is supported.
Wherein, when N is equal to M, represent that all M of enable match the physical network card and void among to Message processing function items
Intend the Message processing function items that network interface card is supported.
Wherein, certain Message processing function items that certain Message processing function items F1 and Microsoft Loopback Adapter that physical network card is supported are supported
It can mutually support, typically refer between F2, the message after being handled based on Message processing function items F1 can also be based on
Message processing function items F2 is continued with, or, the message after being handled based on Message processing function items F2 can also base
Continued with Message processing function items F1.For example after handling message P01 based on Message processing function items F1 message P02 is obtained,
Message P02 processing can also continue to based on Message processing function items F2, or message is handled based on Message processing function items F1
Message P04 is obtained after P03, message P01 processing can also continue to based on Message processing function items F1.
Specifically for example, it is assumed that Message processing function items F1 is for carrying out polymerizeing the function of obtaining polymerizeing message to message
, Message processing function items F2 is the function items for receiving polymerization message, therefore when Message processing function items F1 enters to message
Row polymerization is obtained after polymerization message, and polymerization message can be received based on Message processing function items F2, and this represents Message processing work(
Energy item F2 and Message processing function items F1 is mutually supported.Assuming that Message processing function items F22 is for receiving non-polymeric message
Function items, therefore after Message processing function items F1 to message polymerize and obtained polymerizeing message, based on Message processing function
Item F22 can not receive polymerization message, and this means that Message processing function items F22 and Message processing function items F1 are not supported mutually.
Again specifically for example, it is assumed that Message processing function items F3 is for the function for the virtual local area network tags for decapsulating message
, and Message processing function items F4 is the function items for the message that virtual local area network tags are decapsulated for reception, therefore work as base
After Message processing function items F3 carries out decapsulation processing to the virtual local area network tags of message, based on Message processing function items
F4 can receive the message for being decapsulated virtual local area network tags, and this means that Message processing function items F4 and Message processing function
Mutually supported between item F3.
Again specifically for example, it is assumed that Message processing function items F7 is for carrying out polymerizeing the function of obtaining polymerizeing message to message
, and Message processing function items F8 is the function items for polymerizeing message for cutting, therefore when Message processing function items F7 is to message
Progress polymerize obtains polymerization message after, based on Message processing function items F8 can cutting polymerization message, this is meant that at message
Reason function items F7 and Message processing function items F8 is mutually supported.
The scene mutually supported between other Message processing function items can be by that analogy.
Optionally, in some possible embodiments of the invention, Host can also be further by the K1 Message processing
In the mark write-in network Offloading information tables of function items;The mark write-in of the K2 Message processing function items is described
In network Offloading information tables.Wherein, the mark of the Message processing function items got is written to network
Offloading information tables, are conducive to more easily inquiring about, manage and safeguarding the mark of these Message processing function items.
Optionally, in some possible embodiments of the invention, Host can also be further off-loadable in the network
M bars match information record is write in Offloading information tables;The M bars match information record and the M are to Message processing work(
Energy item matching is to corresponding, and match information record i have recorded Message processing function items and match to two messages included by j
The mark of function items is managed, match information record i is any one match information record during the M bars match information is recorded, institute
It is that the M records i pairs to the matching centering of Message processing function items with the match information to j to state the matching of Message processing function items
The Message processing function items matching pair answered.Wherein, by the Message processing function items got match to comprising Message processing work(
The mark of energy item is written to network Offloading information tables, is conducive to more easily inquiring about, manage and safeguarding at these messages
Manage function items matching to comprising Message processing function items mark, also, be conducive to carry out Message processing function items enable
When, the more convenient enable for more accurately carrying out association message processing function.
As can be seen that in the scheme of the present embodiment, the K1 message that Host is supported in the physical network card for collecting calculate node
After the K2 Message processing function items that the Microsoft Loopback Adapter of processing function and the collection calculate node is supported, if getting
M between the K1 Message processing function items and the K2 Message processing function items is matched pair to Message processing function items,
Host enables the N things to Message processing function items matching among of the M to the matching of Message processing function items among
The Message processing function items that network interface card is supported are managed, it is described virtual among to Message processing function match that Host enables the N
The Message processing function items that network interface card is supported.Due to Host mainly enable be calculate node physical network card and Microsoft Loopback Adapter it is mutual
Some the Message processing function items matching pair supported, because these Message processing function items match the Message processing function items of centering
It is advantageously implemented when mutually supporting, therefore continuous processing is carried out to message based on these Message processing function items mutually coordinated
Coordinate, it is seen that such scheme is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Further, when the report that the Message processing function items that physical network card is supported are changed or Microsoft Loopback Adapter is supported
Literary processing function changes, and Host can re-start function items matching, and then may enable or close some Message processings
Function items.For example when Microsoft Loopback Adapter is not by supporting that receiving polymerization message becomes support reception polymerization message, then Host can be enabled
Physical network card support be used for carry out message convergence and obtain polymerize message function items, Host can enable Microsoft Loopback Adapter support
The function items of polymerization message are received, other scenes are by that analogy.
Fig. 3 is referred to, a kind of flow for the up processing method of message that Fig. 3 provides for an alternative embodiment of the invention is shown
It is intended to, wherein, the up processing method of message shown in Fig. 3 can be embodied in the calculate node that Fig. 2-b illustrate framework.
Where it is assumed that before the up processing method of message shown in Fig. 3 is performed, Host is for example based on the side shown in Fig. 2-a
Method, enables the function items that polymerization message is obtained for polymerizeing to message progress of physical network card support, also enables virtual net
What card was supported is used to receive the function items for polymerizeing message.
Wherein, as shown in figure 3, the up processing method of a kind of message provided in an embodiment of the present invention may include herein below:
301st, physical network card receives message.
302nd, physical network card polymerize the message received according to default aggregation strategy and obtains polymerizeing message.
Wherein, because physical network card is enabled for polymerizeing the function items for obtaining polymerizeing message to message progress, because
This physical network card can polymerize the message received according to default aggregation strategy and obtain polymerizeing message.
303rd, physical network card polymerize message to virtual switch forwarding.
304th, virtual switch polymerize message to the rear end example forwarding of Microsoft Loopback Adapter.
Wherein, because the function items for being used to receive polymerization message of Microsoft Loopback Adapter are enabled, therefore after Microsoft Loopback Adapter
End example can receive polymerization message.But if now Microsoft Loopback Adapter do not support for receive polymerization message function items (or
Person's Microsoft Loopback Adapter is supported not to be enabled for receiving the function items of polymerization message), that is to say, that Microsoft Loopback Adapter can not currently be received
It polymerize message, then now polymerizeing message will be dropped.Enabled just because of Host and mutually support function items, physical network card quilt
What is enabled obtains the function items of polymerization message for polymerizeing to message progress, also there is what can mutually be supported with it in Microsoft Loopback Adapter
Function items for receiving polymerization message are enabled, therefore the two preferably cooperation can carry out the up processing of message.
305th, the rear end example of Microsoft Loopback Adapter polymerize message to the front end example forwarding of Microsoft Loopback Adapter.
306th, protocol stack forwarding polymerization message of the front end example of Microsoft Loopback Adapter into virtual machine.
As can be seen that in the scheme of the present embodiment, due to Host mainly enable be calculate node physical network card and void
Intend network interface card mutually support some Message processing function items matching pair, for example enable physical network card support be used for message is entered
Row polymerization obtains polymerizeing the function items of message, also enables the function items for being used to receive polymerization message of Microsoft Loopback Adapter support, by
The Message processing function items for matching centering in these Message processing function items are mutually supported, therefore are based on these Message processings
Function items are advantageously implemented mutually coordinated cooperation when carrying out continuous processing to message, effectively prevent some messages and are dropped and shadow
Ring and arrive specific business.It can be seen that, such scheme is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Fig. 4 is referred to, a kind of flow for message downlink processing method that Fig. 4 provides for an alternative embodiment of the invention is shown
It is intended to, wherein, message downlink processing method shown in Fig. 4 can be embodied in the calculate node of Fig. 2-b frameworks.
Where it is assumed that before message downlink processing method shown in Fig. 4 is performed, Host is for example based on the side shown in Fig. 2-a
Method, enable physical network card support be used for cutting polymerize message function items, also enable Microsoft Loopback Adapter support be used for send out
Send the function items of polymerization message.
Wherein, as shown in figure 4, a kind of message downlink processing method provided in an embodiment of the present invention may include herein below:
401st, the protocol stack polymerization message in virtual machine.
402nd, the protocol stack in virtual machine sends polymerization message to the front end example of Microsoft Loopback Adapter.
403rd, the front end example of Microsoft Loopback Adapter sends polymerization message to the rear end example of Microsoft Loopback Adapter.
Wherein, because the function items for being used to send polymerization message of Microsoft Loopback Adapter are enabled, therefore before Microsoft Loopback Adapter
End example can send polymerization message.
404th, the rear end example of Microsoft Loopback Adapter sends polymerization message to virtual switch.
405th, virtual switch sends polymerization message to physical network card.
406th, physical network card is received and cutting polymerization message.
407th, physical network card sends multiple messages obtained from cutting polymerization message.
Wherein, because the cutting that is used for of physical network card polymerize the function items of message and is enabled, therefore physical network card can be with
The polymerization message received according to default cutting strategy cutting.But, if now physical network card does not support poly- for cutting
The function items (or the function items for being used for cutting polymerization message that physical network card is supported are not enabled) of message are closed, i.e., physical network card is worked as
Before be unable to cutting polymerization message, then now polymerize message will be dropped because polymerization message be typically can not be directly to outgoing
Send.Enabled just because of Host and mutually support function items, what Microsoft Loopback Adapter was enabled is used to send the function of polymerizeing message
, and also there are the function items for polymerizeing message for cutting that can be mutually supported with it to be enabled in physical network card, therefore the two can
Preferable cooperation to carry out downlink processing to message.
As can be seen that in the scheme of the present embodiment, due to Host mainly enable be calculate node physical network card and void
Intend some Message processing function items matching pair that network interface card is mutually supported, for example enable physical network card support is used for cutting polymerization
The function items of message, also enable the function items for being used to send polymerization message of Microsoft Loopback Adapter support, due to these Message processings
The Message processing function items of function items matching centering are mutually supported, therefore message is entered based on these Message processing function items
Mutually coordinated cooperation is advantageously implemented during row continuous processing, and then can effectively avoid some messages from being dropped and have influence on tool
Body business.It can be seen that, such scheme is conducive to being lifted the harmony that message is handled between Microsoft Loopback Adapter and physical network card.
Referring to Fig. 5, the embodiment of the present invention, which also provides a kind of network interface card functional configuration device 500, to be included:First collector unit
510th, the second collector unit 520 and enable control unit 530.
Wherein, the first collector unit 510, for collecting the K1 Message processing function that the physical network card of calculate node is supported
.
Second collector unit 520, collects the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported.
Control unit 530 is enabled, if having got the K1 Message processing function items and the K2 Message processing work(
M that can be between item enables the M and Message processing function items is matched with N among to report to the matching pair of Message processing function items
The Message processing function items that the physical network card of the literary processing function matching among is supported, enable the N to Message processing
The Message processing function items that the Microsoft Loopback Adapter of the function match among is supported.
Wherein, the M matches each pair Message processing function items matching of centering to Message processing function items to including described
In one of Message processing function items and the K2 Message processing function items in K1 Message processing function items wherein
One Message processing function items, the M matches each pair Message processing function items matching of centering to Message processing function items to bag
Can mutually it be supported between the two Message processing function items included, the M, the N, the K1 and the K2 are positive integer, institute
N is stated less than or equal to the M.
Optionally, in some possible embodiments of the present invention, described device also includes:Recording unit 540, is used for
By in the mark write-in off-loadable Offloading information tables of network of the K1 Message processing function items;By the K2 message
The mark of processing function is write in the network Offloading information tables.
Optionally, in some possible embodiments of the invention, the recording unit 540 can be additionally used in the network
M bars match information record is write in Offloading information tables;The M bars match information record and the M are to Message processing work(
Energy item matching is to corresponding, and match information record i have recorded Message processing function items and match to two messages included by j
The mark of function items is managed, match information record i is any one match information record during the M bars match information is recorded, institute
It is that the M records i pairs to the matching centering of Message processing function items with the match information to j to state the matching of Message processing function items
The Message processing function items matching pair answered.
Optionally, in some possible embodiments of the invention, first collector unit 510 is specifically for passing through
Host machine system interface collects the K1 Message processing function items that the physical network card of calculate node is supported.
Optionally, in some possible embodiments of the invention, second collector unit 520 is specifically for from void
The K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported are collected in the control queue for intending network interface card.
Optionally, in some possible embodiments of the invention, the Microsoft Loopback Adapter branch for collecting the calculate node
The K2 Message processing function items held may include:The Microsoft Loopback Adapter of the calculate node is collected from the control queue of Microsoft Loopback Adapter
K2 Message processing function items of support.Wherein, Message processing function is transmitted due to being the control queue using Microsoft Loopback Adapter
The mark of item, so can be achieved transmission and the security isolation of message I/O channel of Message processing function items mark, and then
Be advantageously implemented does not influence business to be normally carried out as far as possible.
Optionally, in some possible embodiments of the invention, the K1 Message processing function items can be included such as
At least one of lower function items:For carrying out polymerizeing the function items for obtaining polymerization message to message, polymerizeing message for cutting
Function items, the function items of virtual local area network tags for decapsulating message, for encapsulating virtual local area network tags to message
Function items.Certain K1 Message processing function items are not limited to the example above.
Optionally, in some possible embodiments of the invention, the K2 Message processing function items are for example including such as
At least one of lower function items:For receiving the function items of polymerization message, the function items for sending polymerization message, being used for
Receive the function items for the message for being decapsulated virtual local area network tags, the report of virtual local area network tags has been packaged for receiving
The function items of text.Certain K2 Message processing function items are not limited to the example above.
It is understood that the function of the unit of network interface card functional configuration device 500 in the present embodiment can be according to upper
The method for stating embodiment of the method introduction is implemented, and it implements process and may refer to associated description in above-described embodiment,
It will not be repeated here.
As can be seen that in the technical scheme of the present embodiment, network interface card functional configuration device 500 is collecting the physics of calculate node
K1 Message processing function items and collect the K2 Message processing work(that the Microsoft Loopback Adapter of the calculate node is supported that network interface card is supported
Can be after item, if having got M between the K1 Message processing function items and the K2 Message processing function items to reporting
Literary processing function matching pair, enables the M and N of the Message processing function items matching among is matched to Message processing function items
The Message processing function items that the physical network card among is supported, the enable N is to Message processing function match among
The Microsoft Loopback Adapter support Message processing function items.That is, mainly enable be calculate node physical network card and
Some Message processing function items matching pair that Microsoft Loopback Adapter is mutually supported, because these Message processing function items match the report of centering
Literary processing function is the Message processing function items mutually supported, therefore message is connected based on these Message processing function items
Be advantageous for realizing mutually coordinated cooperation during continuous processing, it is seen that such scheme be conducive to lifting Microsoft Loopback Adapter and physical network card it
Between handle message harmony.
Referring to Fig. 6, the embodiment of the present invention also provides a kind of calculate node 600, it may include:
Hardware layer 601, the host Host 602 operated on the hardware layer and operate on the Host
At least one virtual machine 603, the hardware layer include physical network card 6011, wherein, the Microsoft Loopback Adapter of the calculate node
Rear end example BE is located among the Host, and the front end example FE of the Microsoft Loopback Adapter is located among the virtual machine.
Wherein, the Host 602 can be used for, and collect the K1 Message processing function items that the physical network card is supported;Receive
Collect the K2 Message processing function items that the Microsoft Loopback Adapter is supported;If got the K1 Message processing function items with it is described
M between K2 Message processing function items enables the M and Message processing function items is matched to the matching pair of Message processing function items
N among matches the Message processing function items that the physical network card among is supported to Message processing function items, enables institute
State the Message processing function items that N is supported the Microsoft Loopback Adapter of the Message processing function match among;Wherein, described M pairs
The each pair Message processing function items of Message processing function items matching centering are matched to including in the K1 Message processing function items
One of Message processing function items and the K2 Message processing function items in one of Message processing function items, institute
State M to Message processing function items match centering each pair Message processing function items matching to including two Message processing function items
Between can mutually support, the M, the N, the K1 and the K2 be positive integer, the N be less than or equal to the M.
Optionally, in some possible embodiments of the invention, the Host is additionally operable to:By the K1 Message processing
In the mark write-in off-loadable Offloading information tables of network of function items;The mark of the K2 Message processing function items is write
Enter in the network Offloading information tables.
Optionally, in some possible embodiments of the invention, the Host is additionally operable to:In the network
M bars match information record is write in Offloading information tables;Wherein, M bars match information record and the M to message at
Function items matching is managed to corresponding, wherein, match information record i have recorded the matching of Message processing function items to included by j
The mark of two Message processing function items, match information record i is any one matching letter during the M bars match information is recorded
Breath record, the Message processing function items matching is that the M matches letter to the matching centering of Message processing function items with described to j
The corresponding Message processing function items matchings pair of breath record i.
Optionally, in some possible embodiments of the invention, K1 that the physical network card is supported are collected described
The aspect of Message processing function items, the Host by host machine system interface specifically for collecting what the physical network card was supported
K1 Message processing function items.
Optionally, in some possible embodiments of the invention, K2 that the Microsoft Loopback Adapter is supported are collected described
The aspect of Message processing function items, the Host from the control queue of the Microsoft Loopback Adapter specifically for collecting the virtual net
Block the K2 Message processing function items supported.
Optionally, in some possible embodiments of the present invention, the K1 Message processing function items include as follows
At least one of function items:For carrying out polymerizeing the function items for obtaining polymerization message to message, polymerizeing message for cutting
Function items, the function items of virtual local area network tags for decapsulating message, for encapsulating virtual local area network tags to message
Function items.
Optionally, in some possible embodiments of the invention, the K2 Message processing function items include following work(
At least one of energy item:For receiving the function items of polymerization message, the function items for sending polymerization message, for receiving
It has been decapsulated the function items of the message of virtual local area network tags, has been packaged for receiving the message of virtual local area network tags
Function items.
It is understood that the function of the unit of calculate node 600 in the present embodiment can be real according to the above method
The method for applying example introduction is implemented, and it implements process and may refer to associated description in above-described embodiment, herein no longer
Repeat.
As can be seen that in the technical scheme of the present embodiment, calculate node 600 is supported in the physical network card for collecting calculate node
K1 Message processing function items and after collecting the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported,
If having got the M between the K1 Message processing function items and the K2 Message processing function items to Message processing function
Item matching pair, enables N institutes to Message processing function items matching among of the M to the matching of Message processing function items among
The Message processing function items of physical network card support are stated, the N are enabled described virtual among to Message processing function match
The Message processing function items that network interface card is supported.That is, what is mainly enabled is the physical network card and Microsoft Loopback Adapter phase of calculate node
Some the Message processing function items matching pair mutually supported, because these Message processing function items match the Message processing function of centering
Item is the Message processing function items mutually supported, therefore is when carrying out continuous processing to message based on these Message processing function items
It is advantageously implemented mutually coordinated cooperation, it is seen that such scheme is conducive to handling message between lifting Microsoft Loopback Adapter and physical network card
Harmony.
Fig. 7 describes a kind of structure of calculate node 700 provided in an embodiment of the present invention, and the calculate node 700 includes:Extremely
A few processor 701, such as CPU, at least one physical network card 704 or other users interface 703, memory 705, at least
One communication bus 702.Communication bus 702 is used to realize the connection communication between these components.The calculate node 700 is optional
Comprising user interface 703, including display, keyboard or pointing device are (for example, mouse, trace ball (trackball), sense of touch
Plate or touch sensitive display screen).Memory 705 may include high-speed RAM memory, and non-shakiness may also be still further comprised certainly
Fixed memory (non-volatile memory), for example, at least one magnetic disk storage.Memory 705 can optionally be wrapped
The storage device away from aforementioned processor 701 is in containing at least one.Wherein, network interface 704 is including physical network card etc..
In some embodiments, memory 705 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Host 7051 and at least one virtual machine 7052.Wherein, by processor 701
Call, host 7051 can have as described by above-mentioned embodiment host part or all of function, by processor 701
Call, virtual machine 7052 there can be the part or all of function of the virtual machine as described by above-mentioned embodiment.
Wherein, in embodiments of the present invention, by calling program or the instruction of the storage of memory 705, processor 701 can use
In the K1 Message processing function items that the collection physical network card is supported;Collect at the K2 message that the Microsoft Loopback Adapter is supported
Manage function items;If having got the M between the K1 Message processing function items and the K2 Message processing function items to report
Literary processing function matching pair, enables the M and N of the Message processing function items matching among is matched to Message processing function items
The Message processing function items that the physical network card among is supported, the enable N is to Message processing function match among
The Microsoft Loopback Adapter support Message processing function items;Wherein, the M matches each pair report of centering to Message processing function items
Literary processing function matching is to including one of Message processing function items in the K1 Message processing function items and described
One of Message processing function items in K2 Message processing function items, the M matches centering to Message processing function items
Each pair Message processing function items matching to including two Message processing function items between can mutually support, the M, the N,
The K1 and K2 is positive integer, and the N is less than or equal to the M.
Optionally, in some possible embodiments of the invention, processor 701 is additionally operable to the K1 Message processing
In the mark write-in off-loadable Offloading information tables of network of function items;The mark of the K2 Message processing function items is write
Enter in the network Offloading information tables.
Optionally, in some possible embodiments of the invention, processor 701 is additionally operable in the network
M bars match information record is write in Offloading information tables;Wherein, M bars match information record and the M to message at
Function items matching is managed to corresponding, wherein, match information record i have recorded the matching of Message processing function items to included by j
The mark of two Message processing function items, match information record i is any one matching letter during the M bars match information is recorded
Breath record, the Message processing function items matching is that the M matches letter to the matching centering of Message processing function items with described to j
The corresponding Message processing function items matchings pair of breath record i.
Optionally, in some possible embodiments of the invention, K1 that the physical network card is supported are collected described
The aspect of Message processing function items, processor 701 is supported specifically for collecting the physical network card by host machine system interface
K1 Message processing function items.
Optionally, in some possible embodiments of the invention, K2 that the Microsoft Loopback Adapter is supported are collected described
The aspect of Message processing function items, processor 701 is described virtual specifically for being collected from the control queue of the Microsoft Loopback Adapter
The K2 Message processing function items that network interface card is supported.
Optionally, in some possible embodiments of the present invention, the K1 Message processing function items include as follows
At least one of function items:For carrying out polymerizeing the function items for obtaining polymerization message to message, polymerizeing message for cutting
Function items, the function items of virtual local area network tags for decapsulating message, for encapsulating virtual local area network tags to message
Function items.
Optionally, the present invention some possible embodiments in, the K2 Message processing function items may include as
At least one of lower function items:For receiving the function items of polymerization message, the function items for sending polymerization message, being used for
Receive the function items for the message for being decapsulated virtual local area network tags, the report of virtual local area network tags has been packaged for receiving
The function items of text.
It is understood that the function of the unit of calculate node 700 in the present embodiment can be real according to the above method
The method for applying example introduction is implemented, and it implements process and may refer to associated description in above-described embodiment, herein no longer
Repeat.
As can be seen that in the technical scheme of the present embodiment, calculate node 700 is supported in the physical network card for collecting calculate node
K1 Message processing function items and after collecting the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported,
If having got the M between the K1 Message processing function items and the K2 Message processing function items to Message processing function
Item matching pair, enables N institutes to Message processing function items matching among of the M to the matching of Message processing function items among
The Message processing function items of physical network card support are stated, the N are enabled described virtual among to Message processing function match
The Message processing function items that network interface card is supported.That is, what is mainly enabled is the physical network card and Microsoft Loopback Adapter phase of calculate node
Some the Message processing function items matching pair mutually supported, because these Message processing function items match the Message processing function of centering
Item is the Message processing function items mutually supported, therefore is when carrying out continuous processing to message based on these Message processing function items
It is advantageously implemented mutually coordinated cooperation, it is seen that such scheme is conducive to handling message between lifting Microsoft Loopback Adapter and physical network card
Harmony.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
, can be by another way in several embodiments provided herein, it should be understood that disclosed device
Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (15)
1. a kind of network interface card function configuration method, it is characterised in that including:
Collect the K1 Message processing function items that the physical network card of calculate node is supported;
Collect the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported;
If having got the M between the K1 Message processing function items and the K2 Message processing function items to Message processing
Function items matching pair, enables the M and N of the Message processing function items matching among is matched among to Message processing function items
The Message processing function items supported of the physical network card, enable the N to Message processing function match among described in
The Message processing function items that Microsoft Loopback Adapter is supported;
Wherein, the M matches each pair Message processing function items matching of centering to Message processing function items to including the K1
One of them in one of Message processing function items and the K2 Message processing function items in Message processing function items
Message processing function items, the M to Message processing function items match centering each pair Message processing function items matching to including
Can mutually it be supported between two Message processing function items, the M, the N, the K1 and the K2 are positive integer, the N is small
In or equal to the M.
2. according to the method described in claim 1, it is characterised in that
Methods described also includes:The mark of the K1 Message processing function items is write into the off-loadable Offloading information of network
In table;The mark of the K2 Message processing function items is write in the network Offloading information tables.
3. method according to claim 2, it is characterised in that
Methods described also includes:M bars match information record is write in the network Offloading information tables;Wherein, the M
Bar match information is recorded and the M is matched to corresponding to Message processing function items, wherein, match information record i have recorded
Message processing function items match the mark to two Message processing function items included by j, wherein, match information record i is institute
Any one match information record in M bars match information record is stated, wherein, the Message processing function items matching is institute to j
State the Message processing function items matching pair corresponding with match information record i that M matches centering to Message processing function items.
4. the method according to any one of claims 1 to 3, it is characterised in that the physical network card of the collection calculate node
K1 Message processing function items of support, including:What the physical network card for collecting calculate node by host machine system interface was supported
K1 Message processing function items.
5. the method according to any one of claims 1 to 3, it is characterised in that the collection calculate node it is virtual
The K2 Message processing function items that network interface card is supported include:The virtual of the calculate node is collected from the control queue of Microsoft Loopback Adapter
The K2 Message processing function items that network interface card is supported.
6. the method according to any one of claims 1 to 3, it is characterised in that
The K1 Message processing function items include at least one of following function items:For carrying out polymerizeing to message
The function items that close the function items of message, polymerize message for cutting, the function of virtual local area network tags for decapsulating message
Item, the function items for encapsulating virtual local area network tags to message;
And/or,
The K2 Message processing function items include following function items at least one of:Function for receiving polymerization message
Item, the function items for sending polymerization message, the function items for receiving the message for being decapsulated virtual local area network tags, use
In the function items for receiving the message for being packaged virtual local area network tags.
7. a kind of network interface card functional configuration device, it is characterised in that including:
First collector unit, for collecting the K1 Message processing function items that the physical network card of calculate node is supported;
Second collector unit, collects the K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported;
Control unit is enabled, if having got between the K1 Message processing function items and the K2 Message processing function items
M to the matching pair of Message processing function items, enable the M and Message processing function items matched with N among to Message processing work(
The Message processing function items that the physical network card of the energy item matching among is supported, enable the N to Message processing function match
The Message processing function items that the Microsoft Loopback Adapter of the item among is supported;
Wherein, the M matches each pair Message processing function items matching of centering to Message processing function items to including the K1
One of them in one of Message processing function items and the K2 Message processing function items in Message processing function items
Message processing function items, the M to Message processing function items match centering each pair Message processing function items matching to including
Can mutually it be supported between two Message processing function items, the M, the N, the K1 and the K2 are positive integer, the N is small
In or equal to the M.
8. device according to claim 7, it is characterised in that
Described device also includes:Recording unit, it is off-loadable for the mark of the K1 Message processing function items to be write into network
In Offloading information tables;The mark of the K2 Message processing function items is write into the network Offloading information tables
In.
9. device according to claim 8, it is characterised in that
The recording unit is additionally operable to:M bars match information record is write in the network Offloading information tables;Wherein,
The M bars match information record and the M are matched to corresponding to Message processing function items, wherein, match information record i notes
Mark of the Message processing function items matching to two Message processing function items included by j has been recorded, wherein, match information record i
Any one match information record in being recorded for the M bars match information, wherein, the Message processing function items matching is to j
Matched for the M Message processing function items corresponding with match information record i that Message processing function items are matched with centering
It is right.
10. the device according to any one of claim 7 to 9, it is characterised in that first collector unit specifically for,
The K1 Message processing function items that the physical network card for collecting calculate node by host machine system interface is supported.
11. the device according to any one of claim 7 to 9, it is characterised in that second collector unit specifically for,
The K2 Message processing function items that the Microsoft Loopback Adapter of the calculate node is supported are collected from the control queue of Microsoft Loopback Adapter.
12. the device according to any one of claim 7 to 9, it is characterised in that
The K1 Message processing function items include at least one of following function items:For carrying out polymerizeing to message
The function items that close the function items of message, polymerize message for cutting, the function of virtual local area network tags for decapsulating message
Item, the function items for encapsulating virtual local area network tags to message;
And/or,
The K2 Message processing function items include following function items at least one of:Function for receiving polymerization message
Item, the function items for sending polymerization message, the function items for receiving the message for being decapsulated virtual local area network tags, use
In the function items for receiving the message for being packaged virtual local area network tags.
13. a kind of calculate node, it is characterised in that including:Hardware layer, the host Host operated on the hardware layer,
And at least one virtual machine operated on the Host, the hardware layer include physical network card, the calculate node
The rear end example of Microsoft Loopback Adapter is located among the Host, and the front end example of the Microsoft Loopback Adapter is located among the virtual machine;
Wherein, the Host is used for, and collects the K1 Message processing function items that the physical network card is supported;Collect the virtual net
Block the K2 Message processing function items supported;If having got the K1 Message processing function items and the K2 Message processing
M between function items enables N pairs of the M to the matching of Message processing function items among to the matching pair of Message processing function items
The Message processing function items that the physical network card of the Message processing function items matching among is supported, enable the N to message at
Manage the Message processing function items that the Microsoft Loopback Adapter of the function match among is supported;Wherein, the M is to Message processing function
The each pair Message processing function items of item matching centering are matched to including one of report in the K1 Message processing function items
One of Message processing function items in literary processing function and the K2 Message processing function items, the M to message at
Manage function items matching centering each pair Message processing function items matching to including two Message processing function items between being capable of phase
Mutually support, the M, the N, the K1 and the K2 are positive integer, the N is less than or equal to the M.
14. calculate node according to claim 13, it is characterised in that
In terms of the K1 Message processing function items for collecting the physical network card support, the Host is specifically for passing through
Host machine system interface collects the K1 Message processing function items that the physical network card is supported.
15. the calculate node according to claim 13 or 14, it is characterised in that
It is described collect the K2 Message processing function items that the Microsoft Loopback Adapter is supported in terms of, the Host is specifically for from institute
The K2 Message processing function items that the Microsoft Loopback Adapter is supported are collected in the control queue for stating Microsoft Loopback Adapter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410437159.XA CN104219093B (en) | 2014-08-30 | 2014-08-30 | Network interface card function configuration method and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410437159.XA CN104219093B (en) | 2014-08-30 | 2014-08-30 | Network interface card function configuration method and relevant device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104219093A CN104219093A (en) | 2014-12-17 |
CN104219093B true CN104219093B (en) | 2017-09-12 |
Family
ID=52100251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410437159.XA Expired - Fee Related CN104219093B (en) | 2014-08-30 | 2014-08-30 | Network interface card function configuration method and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104219093B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102790777A (en) * | 2012-08-07 | 2012-11-21 | 华为技术有限公司 | Network interface adapter register method as well as drive equipment and server |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
CN103164255A (en) * | 2013-03-04 | 2013-06-19 | 华为技术有限公司 | Virtual machine network communication implementation method, virtual machine monitor and physical host |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9817695B2 (en) * | 2009-04-01 | 2017-11-14 | Vmware, Inc. | Method and system for migrating processes between virtual machines |
-
2014
- 2014-08-30 CN CN201410437159.XA patent/CN104219093B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102790777A (en) * | 2012-08-07 | 2012-11-21 | 华为技术有限公司 | Network interface adapter register method as well as drive equipment and server |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
CN103164255A (en) * | 2013-03-04 | 2013-06-19 | 华为技术有限公司 | Virtual machine network communication implementation method, virtual machine monitor and physical host |
Non-Patent Citations (2)
Title |
---|
《修改客户操作系统优化KVM虚拟机的I/O性能》;张彬彬 等;《计算机学报》;20101231;第33卷(第12期);说明书第2312-2320页 * |
《大规模网络试验中虚拟化技术浅析》;王小军 等;《电脑知识与技术》;20110630;第7卷(第17期);说明书第4213-4215页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104219093A (en) | 2014-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021017279A1 (en) | Cluster security management method and apparatus based on kubernetes and network domain, and storage medium | |
CN104243265B (en) | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration | |
CN103414535B (en) | Data sending method, data receiving method and relevant devices | |
CN103916314A (en) | Message transmitting control method, related device and physical host | |
CN103581062B (en) | Method and system for handling unknown unicast data packets | |
CN107548499A (en) | The technology booted safely for virtual network function | |
CN107278362A (en) | The method of Message processing, main frame and system in cloud computing system | |
US10616099B2 (en) | Hypervisor support for network functions virtualization | |
CN104572243B (en) | Method and system for sharing Java Virtual Machine | |
CN104216761B (en) | It is a kind of that the method for sharing equipment is used in the device that can run two kinds of operating system | |
CN104883264A (en) | Method and system of virtualizing network cards on network processing platform | |
CN103973578B (en) | The method and device that a kind of virtual machine traffic redirects | |
TW201209594A (en) | Tenant isolation in a multi-tenant cloud system | |
CN107018058A (en) | The method and system of VLAN and VXLAN communications are shared under a kind of cloud environment | |
CN103336708B (en) | The polymerization method of network interface card resource and relevant device and computer system | |
CN102790777A (en) | Network interface adapter register method as well as drive equipment and server | |
CN103455363B (en) | Command processing method, device and physical host of virtual machine | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN107786669A (en) | A kind of method of load balance process, server, device and storage medium | |
CN106161603B (en) | A kind of method of networking, equipment and framework | |
CN102801636A (en) | Method for limiting bandwidth of cloud hosting network of cloud computing platform | |
CN108055158A (en) | A kind of power grid image identification system and method | |
CN102364966B (en) | A kind of wireless communication terminal and its SMS processing method, system | |
CN104883302A (en) | Method, device and system for forwarding data packet | |
CN108228309A (en) | Data packet method of sending and receiving and device based on virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170912 Termination date: 20190830 |