CN104468311A - Method and system for virtualizing physical network card into multiple virtual network cards - Google Patents
Method and system for virtualizing physical network card into multiple virtual network cards Download PDFInfo
- Publication number
- CN104468311A CN104468311A CN201410659621.0A CN201410659621A CN104468311A CN 104468311 A CN104468311 A CN 104468311A CN 201410659621 A CN201410659621 A CN 201410659621A CN 104468311 A CN104468311 A CN 104468311A
- Authority
- CN
- China
- Prior art keywords
- processing server
- microsoft loopback
- loopback adapter
- virtual processing
- network card
- 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.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and system for virtualizing a physical network card into multiple virtual network cards. The method comprises the following steps that when virtual network card event establishing is triggered, a virtual processing server automatically calls a virtual network card establishing order, one or more virtual network cards are generated according to the physical network card selected in advance, and corresponding physical addresses are allocated to the one or more virtual network cards according to the preset allocation strategy; the virtual processing server calls the established virtual network cards according to a strategy selected in advance and processes the service. The signal physical network card is virtualized into a plurality of virtual network devices to be used, the defect that physical resources are insufficient is overcome, and the hardware utilization rate is improved.
Description
Technical field
The invention belongs to the virtual field of network interface card, particularly relate to the method and system that a kind of physical network card invents multiple Microsoft Loopback Adapter.
Background technology
Along with internet development is more and more rapider, the application that client has when application deployment needs to provide multiple ip interface to user, and server PCIE (Peripheral Component InterconnectExpress, external components is interconnected fast) slot limited amount, physical network card takies more, affect the access of other PCIE device, and PCIE device is too much overstocked, impact heat radiation, component capabilities can be influenced.
The problems referred to above have expedited the emergence of the appearance of hardware virtualization technology, hardware virtualization makes single high performance unit invent multiple virtual unit by virtual, application and physical equipment are used and there is no difference, and can reduce costs and increase operation rate, therefore Intel Virtualization Technology is adopted by increasing user.
But, also there is no a kind of effective scheme PCIE network interface card being invented multiple Microsoft Loopback Adapter at present.
Summary of the invention
The invention provides the method and system that a kind of physical network card invents multiple Microsoft Loopback Adapter, to solve the problem.
The invention provides a kind of method that physical network card invents multiple Microsoft Loopback Adapter, said method comprises the following steps:
When triggering the event generation of establishment Microsoft Loopback Adapter, virtual processing server Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter;
Described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, processes business.
Present invention also offers the system that a kind of physical network card invents multiple Microsoft Loopback Adapter, comprise physical network card, virtual processing server; Described physical network card is connected with described virtual processing server;
Described physical network card, for being connected with the slot of described virtual processing server;
Described virtual processing server, for when triggering establishment Microsoft Loopback Adapter event and occurring, Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter; Also for according to default selection strategy, call the Microsoft Loopback Adapter of establishment, business is processed.
Compared to prior art, the method and system of multiple Microsoft Loopback Adapter are invented according to a kind of physical network card provided by the invention, realize single physical network card to invent multiple virtual network device for, solve the defect of physical resource deficiency, the utilance of raising hardware.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the physical network card of the embodiment of the present invention 1 invents the method flow diagram of multiple Microsoft Loopback Adapter;
Figure 2 shows that the physical network card of the embodiment of the present invention 2 invents the system construction drawing of multiple Microsoft Loopback Adapter.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the physical network card of the embodiment of the present invention 1 invents the method flow diagram of multiple Microsoft Loopback Adapter, comprise the following steps:
Step 101: in advance preliminary treatment is carried out to virtual processing server;
Carrying out pretreated mode to virtual processing server is in advance: before described virtual processing server starts, the physical network card selected in advance is arranged on the quick interconnected PCIE slot of external components of described virtual processing server.
Such as: Intel X520 twoport network interface card and network card chip 82599 are arranged on virtual processing server NF5270M3PCIE slot.
Carrying out pretreated mode to virtual processing server is in advance: after described virtual processing server starts, arrange virtual parameter state.
After described virtual processing server starts, be: after described virtual processing server starts, by entering basic input-output system BIOS that Intel Virtualization Technology parameter is set for opening to the process that virtual parameter state is arranged.
Carrying out pretreated mode to virtual processing server is in advance: after described virtual processing server starts, installation targets operating system; Wherein, described destination OS refers to: red cap operating system 6.0.
Specifically: after described virtual processing server starts, install red cap operating system 6.0, default installation, when in the end selecting installation kit, all bags are all selected to install, and guarantee that Linux KVM module, storehouse, user instrument are all installed.
After described virtual processing server starts, after red cap operating system 6.0 is installed, also comprise:
Use power user's account and root Account Logon server, this configuration file of amendment/boot/grub/menu.ls t, adds intel_iommu=on later.
Because give tacit consent to red cap system distribution version for I/O Memory Management Unit (input and output memory management unit) acquiescence close, when distributing virtual functions for virtual machine, I/OMMU needs to open, and after having changed above-mentioned parameter, restarts virtual processing server and comes into force.
Step 102: when triggering the event generation of establishment Microsoft Loopback Adapter, described virtual processing server Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter;
Trigger the situation creating the generation of Microsoft Loopback Adapter event to refer to: the establishment Microsoft Loopback Adapter button on described virtual processing server is triggered or creates the Preset Time arrival of Microsoft Loopback Adapter.
The process that described virtual processing server distributes corresponding physical address to described one or more Microsoft Loopback Adapter according to default allocation strategy is:
Described virtual processing server distributes corresponding physical address to described one or more Microsoft Loopback Adapter to physical address corresponding to described one or more Microsoft Loopback Adapter Random assignment or Automatically invoked command tools respectively.
The physical function of Intel X520 network interface card and the driving of virtual functions in red cap system are named with ixgbe and ixgbevf respectively, the every at most port of X520 network interface card can support 63 Microsoft Loopback Adapters, can pass through ixbge drive load time parameter max_vfs when Microsoft Loopback Adapter creates.
Microsoft Loopback Adapter creates order: modprobe ixgbe max_vfs=4;
Use lspci order can confirm that the every port of mentioned order creates 4 Microsoft Loopback Adapters;
Order lspci | grep 82599.
During generating virtual network interface card, ixgbe can distribute a physical address at random each Microsoft Loopback Adapter, and restarting physical address may change at every turn.The ip command tools of Linux can be used for Microsoft Loopback Adapter assignment of allocation physical address, guarantees that the physical address distributed is unique, otherwise can cause network connection failure.Use following command tools to each Microsoft Loopback Adapter setting physical address:
Command tools: ip link set eth3vf 0mac aa:bb:cc:dd:ee:ff;
Utility command checks that confirmation is allocated successfully, order: ip l ink show eth3.
Step 103: described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, processes business.
Described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, to the mode that business processes is:
Described virtual processing server poll calls the Microsoft Loopback Adapter of establishment, processes business.
Described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, to the mode that business processes is:
The Microsoft Loopback Adapter of described virtual processing server Selection and call least number of times, processes business.
Described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, to the mode that business processes is:
Described virtual processing server Stochastic choice Microsoft Loopback Adapter created, processes business.
Figure 2 shows that the physical network card of the embodiment of the present invention 2 invents the system construction drawing of multiple Microsoft Loopback Adapter, comprising: physical network card, virtual processing server; Described physical network card is connected with described virtual processing server;
Described physical network card, for being connected with the slot of described virtual processing server;
Described virtual processing server, for when triggering establishment Microsoft Loopback Adapter event and occurring, Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter; Also for according to default selection strategy, call the Microsoft Loopback Adapter of establishment, business is processed.
Compared to prior art, the method and system of multiple Microsoft Loopback Adapter are invented according to a kind of physical network card provided by the invention, realize single physical network card to invent multiple virtual network device for, solve the defect of physical resource deficiency, the utilance of raising hardware.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. physical network card invents a method for multiple Microsoft Loopback Adapter, it is characterized in that, comprises the following steps:
When triggering the event generation of establishment Microsoft Loopback Adapter, virtual processing server Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter;
Described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, processes business.
2. method according to claim 1, is characterized in that: trigger the situation creating the generation of Microsoft Loopback Adapter event and refer to: the establishment Microsoft Loopback Adapter button on virtual processing server is triggered or creates the Preset Time arrival of Microsoft Loopback Adapter.
3. method according to claim 1, is characterized in that: the process that virtual processing server distributes corresponding physical address to described one or more Microsoft Loopback Adapter according to default allocation strategy is:
Virtual processing server distributes corresponding physical address to described one or more Microsoft Loopback Adapter to physical address corresponding to described one or more Microsoft Loopback Adapter Random assignment or Automatically invoked command tools respectively.
4. method according to claim 1, is characterized in that: trigger before creating the generation of Microsoft Loopback Adapter event, also comprise: carry out preliminary treatment to virtual processing server in advance.
5. method according to claim 4, it is characterized in that: carrying out pretreated process to virtual processing server is in advance: the physical network card selected in advance is arranged on the quick interconnected PCIE slot of external components of described virtual processing server before starting by virtual processing server.
6. method according to claim 4, is characterized in that: carrying out pretreated process to virtual processing server is in advance: virtual processing server is arranged virtual parameter state after starting.
7. method according to claim 6, it is characterized in that: after virtual processing server starts, be: after virtual processing server starts, by entering basic input-output system BIOS that Intel Virtualization Technology parameter is set for opening to the process that virtual parameter state is arranged.
8. method according to claim 4, is characterized in that: carrying out pretreated mode to virtual processing server is in advance: after virtual processing server starts, installation targets operating system.
9. method according to claim 1, is characterized in that: described virtual processing server, according to default selection strategy, calls the Microsoft Loopback Adapter of establishment, comprises the mode that business processes:
Described virtual processing server poll calls the Microsoft Loopback Adapter of establishment, business is processed, the Microsoft Loopback Adapter of described virtual processing server Selection and call least number of times, business is processed or described virtual processing server Stochastic choice Microsoft Loopback Adapter created, business is processed.
10. physical network card invents a system for multiple Microsoft Loopback Adapter, it is characterized in that, comprises physical network card, virtual processing server; Described physical network card is connected with described virtual processing server;
Described physical network card, for being connected with the slot of described virtual processing server;
Described virtual processing server, for when triggering establishment Microsoft Loopback Adapter event and occurring, Automatically invoked Microsoft Loopback Adapter creates order, for the physical network card selected in advance, generate one or more Microsoft Loopback Adapter and distribute corresponding physical address according to default allocation strategy to described one or more Microsoft Loopback Adapter; Also for according to default selection strategy, call the Microsoft Loopback Adapter of establishment, business is processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410659621.0A CN104468311A (en) | 2014-11-18 | 2014-11-18 | Method and system for virtualizing physical network card into multiple virtual network cards |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410659621.0A CN104468311A (en) | 2014-11-18 | 2014-11-18 | Method and system for virtualizing physical network card into multiple virtual network cards |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104468311A true CN104468311A (en) | 2015-03-25 |
Family
ID=52913716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410659621.0A Pending CN104468311A (en) | 2014-11-18 | 2014-11-18 | Method and system for virtualizing physical network card into multiple virtual network cards |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104468311A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016197848A1 (en) * | 2015-06-09 | 2016-12-15 | 华为技术有限公司 | Method, apparatus and system for managing network card |
CN106789363A (en) * | 2017-02-20 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of method and device to virtual machine configuration network interface card |
CN109144672A (en) * | 2018-09-07 | 2019-01-04 | 郑州云海信息技术有限公司 | A kind of method, system and associated component for distributing PCIe device |
CN111314154A (en) * | 2020-02-29 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Super micro cloud virtual port configuration method, system, terminal and storage medium |
CN114996026A (en) * | 2022-08-01 | 2022-09-02 | 阿里巴巴达摩院(杭州)科技有限公司 | Resource virtualization method, communication assembly, equipment and system |
WO2023160033A1 (en) * | 2022-02-28 | 2023-08-31 | 苏州浪潮智能科技有限公司 | Virtual network card resource configuration method and apparatus, computer device, and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
US8671228B1 (en) * | 2009-10-02 | 2014-03-11 | Qlogic, Corporation | System and methods for managing virtual adapter instances |
-
2014
- 2014-11-18 CN CN201410659621.0A patent/CN104468311A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1556625A (en) * | 2004-01-05 | 2004-12-22 | 联想(北京)有限公司 | Data transmission method of network equipment based on multinetwork card and device |
US8671228B1 (en) * | 2009-10-02 | 2014-03-11 | Qlogic, Corporation | System and methods for managing virtual adapter instances |
CN102932174A (en) * | 2012-10-25 | 2013-02-13 | 华为技术有限公司 | Method, device and physical host for managing physical network card |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016197848A1 (en) * | 2015-06-09 | 2016-12-15 | 华为技术有限公司 | Method, apparatus and system for managing network card |
CN106789363A (en) * | 2017-02-20 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of method and device to virtual machine configuration network interface card |
CN109144672A (en) * | 2018-09-07 | 2019-01-04 | 郑州云海信息技术有限公司 | A kind of method, system and associated component for distributing PCIe device |
CN111314154A (en) * | 2020-02-29 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Super micro cloud virtual port configuration method, system, terminal and storage medium |
WO2023160033A1 (en) * | 2022-02-28 | 2023-08-31 | 苏州浪潮智能科技有限公司 | Virtual network card resource configuration method and apparatus, computer device, and medium |
CN114996026A (en) * | 2022-08-01 | 2022-09-02 | 阿里巴巴达摩院(杭州)科技有限公司 | Resource virtualization method, communication assembly, equipment and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3343881B1 (en) | Packet processing method in cloud computing system, host, and system | |
AU2016414390B2 (en) | Packet processing method in cloud computing system, host, and system | |
CN104468311A (en) | Method and system for virtualizing physical network card into multiple virtual network cards | |
US9780998B2 (en) | Method and apparatus for managing physical network interface card, and physical host | |
US20180123880A1 (en) | Method for Configuring Network, Network System, and Device | |
EP3481007B1 (en) | Method, apparatus and management server for processing resource pool | |
EP3340547B1 (en) | Network interface card and data packet processing method | |
CN109067877B (en) | Control method for cloud computing platform deployment, server and storage medium | |
CN107707622B (en) | Method and device for accessing desktop cloud virtual machine and desktop cloud controller | |
EP3343364A1 (en) | Accelerator virtualization method and apparatus, and centralized resource manager | |
EP3073373A1 (en) | Method for interruption affinity binding of virtual network interface card, and computer device | |
CN106557444B (en) | Method and device for realizing SR-IOV network card and method and device for realizing dynamic migration | |
CN107766145B (en) | Memory management method and device under dual systems | |
WO2023193687A1 (en) | Shared memory access method and apparatus, device, and storage medium | |
EP3528116A1 (en) | Operating method for storage device, and physical server | |
WO2023103516A1 (en) | Low-priority blocking method and apparatus based on processor virtualization environment | |
Yasukata et al. | HyperNF: Building a high performance, high utilization and fair NFV platform | |
EP3358795B1 (en) | Method and apparatus for allocating a virtual resource in network functions virtualization (nfv) network | |
CN109819064B (en) | Method for communication between modules, operating system module and conference panel | |
CN112527451B (en) | Method, device, equipment and storage medium for managing container resource pool | |
CN113127144B (en) | Processing method, processing device and storage medium | |
US20190075062A1 (en) | Dynamic Workload Allocation | |
CN109002347B (en) | Virtual machine memory allocation method, device and system | |
CN111580935A (en) | Network communication method, device, equipment and storage medium | |
US10333837B2 (en) | Virtual network switch system and method of constructing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150325 |
|
RJ01 | Rejection of invention patent application after publication |