CN106326044B - A kind of net card failure method for implanting and device - Google Patents
A kind of net card failure method for implanting and device Download PDFInfo
- Publication number
- CN106326044B CN106326044B CN201510374141.4A CN201510374141A CN106326044B CN 106326044 B CN106326044 B CN 106326044B CN 201510374141 A CN201510374141 A CN 201510374141A CN 106326044 B CN106326044 B CN 106326044B
- Authority
- CN
- China
- Prior art keywords
- interface
- module
- fault location
- direct fault
- failure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of net card failure method for implanting, it is characterized in that, include: virtual machine monitor (Hypervisor) when startup stage loading trawl performance, the first interface of the interface reference trawl performance of the network equipment in the virtual monitor is made to realize module;Under direct fault location mode, by direct fault location module loading in the virtual machine monitor (Hypervisor);The second interface in the direct fault location module is realized that module replaces the first interface realization module of the trawl performance, so that second interface described in the interface reference realizes module;After obtaining failure-description instruction, the direct fault location module is sent by failure-description instruction, so that the direct fault location module obtains the direct fault location parameter that the failure-description instruction carries;In the case where the interface of the network equipment calls the second interface to realize module, realize that module injects the direct fault location parameter to the data packet of network interface card hardware handles by the second interface.
Description
Technical field
The present invention relates to electronic communication technology field more particularly to a kind of net card failure method for implanting and device.
Background technique
Conventional telecommunications equipment builds operating system and application software using software and hardware integrated on specialized hardware platform,
The matching of software and hardware model is relatively fixed, and the occurrence scope of compatibility issue is limited, and design, exploitation, testing needle are to determining soft or hard
Part environment, software and hardware is quality controlled in the same equipment vendor, thus system reliability obtains effective guarantee.
As telecom operators set up the gradually focused web virtualization of functionization i.e. research of NFV, software and hardware is decoupled, is general
It calculates, hardware standard is turned to goal in research.NFV be it is a kind of be dedicated to being promoted the flexibility of network, efficiency, manageability it is new
Emerging solution, it attempts to realize operational network application in software by virtualization technology and cloud computing.Telecom equipment vendor is confused
Great change occurs for the research and telecom cloud research and development of products of confused investment NFV, product form.
After telecommunication product cloud, hardware device use can purchase common apparatus, operating system and application software and hardware
Equipment decouples, and the certain fixing model matching relationship between software and hardware has not existed, and the range that compatibility issue occurs is difficult to limit, if
Meter, exploitation, test can not no longer be controlled by the same equipment vendor for determining hardware environment, the quality of equipment entirety, because
This system reliability faces significant challenge.
Network function virtualization makes software reliability become industry focal point, and NFV product reliability faces significant challenge,
Virtual machine monitor (Hypervisor) directly controls hardware device to become incipient fault center, especially disposes mould in cluster
Under formula, once breaking down influences a large amount of client traffics.In various fault types, network failure occupies protrusion in NFV
Position.Hypervisor is a kind of intermediate software layer operated between physical server and operating system, allows multiple behaviour
Make system and a set of underlying physical hardware of Application share, therefore also can be regarded as " member " operating system in virtual environment, it
It can coordinate to access all physical equipments and virtual machine on server, also be virtual machine monitor (Virtual Machine
Monitor).Hypervisor is the core of all virtualization technologies.The ability for supporting multiplexing to make load migration non-interruptedly is
The basic function of Hypervisor.When server is started and carried out Hypervisor, it can be suitable to each virtual machine distribution
Memory, CPU, network and the disk of amount, and load the client operating system of all virtual machines.Therefore industry is required to pair
The method that Hypervisor realizes direct fault location, to observe the reaction of each layer of Hypervisor or more, thus to assess NFV
The reliability of whole system.
Therefore, to including VMware ESXi, Xen, KVM, the various virtual platforms including Hyper-V etc. lack one kind
Can highly effective and versatile progress network failure injection method and apparatus.
Summary of the invention
The embodiment of the present invention provides a kind of net card failure method for implanting and device, can be common to and monitor to various virtual machines
The direct fault location of device (Hypervisor) realization high efficient and reliable.
First aspect provides a kind of net card failure method for implanting, comprising:
Virtual machine monitor (Hypervisor) makes in the virtual monitor when startup stage loading trawl performance
The first interface of the interface reference trawl performance of the network equipment realizes module;
Under direct fault location mode, by direct fault location module loading in the virtual machine monitor (Hypervisor),
The direct fault location module includes that second interface realizes module;
The second interface in the direct fault location module is realized that module replaces described the first of the trawl performance
Interface realizes module, so that second interface described in the interface reference of the network equipment realizes module;
After obtaining failure-description instruction, the direct fault location module is sent by failure-description instruction, so that described
Direct fault location module obtains the direct fault location parameter that the failure-description instruction carries from failure-description instruction;
In the case where the interface of the network equipment calls the second interface to realize module, make the direct fault location mould
Block realizes that module is injected to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment by the second interface
The direct fault location parameter.
In a first possible implementation of that first aspect, after the acquisition failure-description instruction, the failure is retouched
It states instruction and is sent to the direct fault location module, so that the direct fault location module is from failure-description instruction described in acquisition
The direct fault location parameter that failure-description instruction carries, specifically includes:
After obtaining failure-description instruction, the direct fault location module, the failure are sent by failure-description instruction
Description instruction carries direct fault location parameter, and the direct fault location module reads the direct fault location from failure-description instruction
Parameter, so that the direct fault location module obtains the failure note that the failure-description instruction carries from failure-description instruction
Enter parameter.
Any possible implementation in the first possible implementation to first aspect with reference to first aspect,
In two kinds of possible implementations, the second interface by the direct fault location module realizes that module replaces the net
The first interface of card driving realizes module, comprising:
N number of first interface by the trawl performance realizes module described in N number of in the direct fault location module
Second interface realizes module replacement, and N is positive integer.
Any possible implementation into second of first aspect possible implementation with reference to first aspect,
It is described the case where the interface of the network equipment calls the second interface to realize module in three kinds of possible implementations
Under, so that the direct fault location module is realized that module is hard to network interface card corresponding with the network equipment is passed through by the second interface
After the data packet of part processing injects the direct fault location parameter, further includes:
The first interface is set to realize that module replaces the second interface realization module of the trawl performance.
Second aspect provides a kind of net card failure method for implanting, comprising:
Virtual machine monitor (Hypervisor) makes in the virtual monitor when startup stage loading trawl performance
The first interface of the first interface reference trawl performance of first network equipment realizes module;
It is described by direct fault location module loading to virtual machine monitor (Hypervisor) under direct fault location mode
Direct fault location module includes that second interface realizes module;
The second interface in the direct fault location module is realized that module replaces described the first of the trawl performance
Interface realizes module, and second network equipment of first network equipment is replaced, so that the of second network equipment
The second interface of direct fault location module described in two interface references realizes module;
After obtaining failure-description instruction, described the second of the direct fault location module is sent by failure-description instruction
Interface realizes module, so that the second interface of the direct fault location module realizes that module is obtained from failure-description instruction
The direct fault location parameter for taking the failure-description instruction to carry;
In the case where the second interface of second network equipment calls the second interface to realize module, make described the
Two interfaces realize that module injects the direct fault location to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment
Parameter.
In second aspect in the first possible implementation, after the acquisition failure-description instruction, the failure is retouched
The second interface realization module that instruction is sent to the direct fault location module is stated, so that the direct fault location module is described
Second interface realizes that module obtains the direct fault location parameter that the failure-description instruction carries, tool from failure-description instruction
Body includes:
After obtaining failure-description instruction, the direct fault location module, the failure are sent by failure-description instruction
Description instruction carries direct fault location parameter, and the direct fault location module reads the direct fault location from failure-description instruction
The second interface that the direct fault location parameter is sent to the direct fault location module is realized module, so that described by parameter
Second interface realizes that module obtains the direct fault location parameter that the failure-description instruction carries.
In conjunction with any possible implementation in the first possible implementation of second aspect to second aspect,
In two kinds of possible implementations, the second interface by the direct fault location module realizes that module replaces the net
The first interface of card driving realizes module, and second network equipment of first network equipment is replaced, so that described
The second interface that the second interface of second network equipment quotes the direct fault location module realizes module, comprising:
N number of first interface by first trawl performance realizes module with N number of in the direct fault location module
The second interface realizes module replacement, and second network equipment of first network equipment is replaced, second network
Equipment includes N number of second interface, so that N number of second interface of second network equipment quotes the N of the direct fault location module
A second interface realizes module, and N is positive integer.
In conjunction with second aspect into second of second aspect possible implementation any possible implementation,
It is described the case where the interface calling second interface of the network equipment realizes module in three kinds of possible implementations
Under, so that the direct fault location module is realized that module is hard to network interface card corresponding with the network equipment is passed through by the second interface
The data packet of part processing is injected after the direct fault location parameter, further includes:
The second interface of second network equipment is realized that module replaces with the first interface of the first network equipment
It realizes module, and the second interface of second network equipment is replaced with to the first interface of the first network equipment.
The third aspect provides a kind of net card failure injection device, comprising: protocol stack, with the network equipment, with trawl performance with
Network interface card hardware, for the trawl performance for driving the network interface card hardware transport data packet, the trawl performance includes first interface
Realize module, the network equipment includes interface, and first of trawl performance described in the interface reference of the network equipment connects
Cause for gossip shows module to carry out the transmission of data packet, and the transmission of data packet is carried out between the protocol stack and the network equipment,
It is characterized in that, further includes:
Direct fault location module realizes module comprising parameter processing module and second interface;
The second interface realizes module, described under direct fault location mode, replace that the trawl performance includes
First interface realizes module;
The parameter processing module, for obtain failure-description instruction after, will the failure-description instruction in carry therefore
Barrier injection parameter is sent to the second interface and realizes module;
The second interface realizes module, is also used to the second interface described in the interface reference of the network equipment and realizes mould
In the case where block, the second interface realizes module to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment
Inject the direct fault location parameter.
In the third aspect in the first possible implementation, the parameter processing module, described for obtaining failure
After description instruction, the direct fault location parameter in failure-description instruction is sent to the second interface and realizes module aspect,
It is specifically used for:
The parameter processing module, after obtaining failure-description instruction, the failure-description instruction carries direct fault location
Parameter, the parameter processing module reads the direct fault location parameter from failure-description instruction, by the failure-description
Direct fault location parameter in instruction is sent to the second interface and realizes module.
In conjunction with any possible implementation in the first possible implementation of the third aspect to the third aspect,
In two kinds of possible implementations, the first interface realizes module, the second interface realize module to by with
The data packet of the corresponding network interface card hardware handles of the network equipment is injected after the direct fault location parameter, is also used to replace described
The second interface of trawl performance realizes module.Fourth aspect provides a kind of net card failure injection device, comprising: protocol stack,
With first network equipment and trawl performance and network interface card hardware, the trawl performance is for driving the network interface card hardware transport data
Packet, the trawl performance include that first interface realizes that module, the first network equipment include first interface, the first network
The first interface of the first interface reference trawl performance of equipment realizes module to carry out the transmission of data packet, the protocol stack
The transmission of data packet is carried out between the first network equipment, which is characterized in that further include:
Direct fault location module and second network equipment;
The direct fault location module is connected with the first network equipment, real comprising parameter processing module and second interface
Existing module;
The second interface realizes module, for replacing the trawl performance under direct fault location mode
The first interface for including realizes module;
The parameter processing module infuses the failure in failure-description instruction after obtaining failure-description instruction
Enter parameter and is sent to the second interface realization module;
Second network equipment, for replacing the first network equipment, second network equipment connects comprising second
Mouthful;
In the case where the second interface of second network equipment quotes the second interface and realizes module, described second
Interface realizes that module injects the direct fault location ginseng to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment
Number.
In fourth aspect in the first possible implementation, the parameter processing module, described for obtaining
After failure-description instruction, the direct fault location parameter in failure-description instruction is sent to the second interface and realizes module side
Face is specifically used for:
The parameter processing module, after obtaining failure-description instruction, the failure-description instruction carries direct fault location
Parameter, the parameter processing module reads the direct fault location parameter from failure-description instruction, by the failure-description
Direct fault location parameter in instruction is sent to the second interface and realizes module.
In conjunction with any possible implementation in the first possible implementation of fourth aspect to fourth aspect,
In two kinds of possible implementations,
The first interface of the first network equipment realizes module to by setting with the network in the second interface
The data packet of standby corresponding network interface card hardware handles is injected after the direct fault location parameter, is also used to for replacing second net
The second interface of network equipment;
The first interface of the first network equipment realizes module, the second interface realize module to by with it is described
The data packet of the corresponding network interface card hardware handles of the network equipment is injected after the direct fault location parameter, is also used to replace described second
The second interface of the network equipment realizes module.
The technology of the present invention is broken through by the way that new direct fault location module is arranged, and replaces driving network interface card with the direct fault location module
In interface realize, thus realize to virtual machine monitor (Hypervisor) carry out direct fault location, can with any one
Specific network interface card hardware and the unrelated method of trawl performance inject net to various virtual machine monitors (Hypervisor) (such as ESXi)
Network failure, with virtual machine monitor (Hypervisor) kernel without hard binding relationship, direct fault location module is installed and uninstalled simply,
It is not necessary to modify image file is installed to virtual machine monitor (Hypervisor) (such as ESXi), without restarting system, and this hair
Bright technical application scene is unrestricted, either the small-scale cloud scene in laboratory or truthful data center large-scale cloud field
Scape can be applied, for network function virtualize NFV cloud product reliability demonstration and assessment provide the foundation it is efficient and logical
Method.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of one flow chart of embodiment of net card failure method for implanting provided in an embodiment of the present invention;
Fig. 2 is a kind of two flow chart of embodiment of net card failure method for implanting provided in an embodiment of the present invention;
Fig. 3 is a kind of one structural schematic diagram of embodiment of net card failure injection device provided in an embodiment of the present invention;
Fig. 4 is a kind of two structural schematic diagram of embodiment of net card failure injection device provided in an embodiment of the present invention;
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of net card failure method for implanting embodiment one provided in an embodiment of the present invention, comprising:
Step S101, virtual machine monitor (Hypervisor) make described virtual when startup stage loading trawl performance
The first interface of the interface reference trawl performance of the network equipment in monitor realizes module;Specifically, in virtual machine monitor
(Hypervisor) in, network packet needs the processing by several modules from top to bottom, is protocol stack, the network equipment, net respectively
Card driving, network interface card hardware.Wherein protocol stack and the network equipment are to belong to virtual machine monitor (such as ESXi) self-contained module,
Trawl performance is the part for being provided by equipment vendor and being installed in virtual machine monitor.Each physical network card is corresponding in ESXi system
One abstract network equipment NetDevice, including control interface needed for network I/O and control data, all-network
Equipment NetDevice forms a chained list.The corresponding NIC driver of each type of network interface card, belongs to same net in system
The network equipment NetDevice of Card Type is associated with corresponding trawl performance.Since there are different network interface card products and its correspondences
Driver need (Hypervisor, such as ESXi) integrated, therefore the interaction between network equipment layer and trawl performance is necessary
Certain specification is followed, this specification is exactly interface.Trawl performance provides interface and realizes module, and the network equipment holds interface with right
The interface that trawl performance provides realizes that module is quoted, and the transfer that stream is controlled between the network equipment and trawl performance is exactly to pass through
Interface is realized.When system start-up phase loads trawl performance, module and network equipment layer are realized in the interface of trawl performance
Interface between set up corresponding relationship, i.e., the interface of clear particular network device and the interface of specific trawl performance realize mould
Corresponding to block, the interface for establishing particular network device, which just refers to the reference of specific trawl performance, establishes the corresponding relationship.
Step S102, under direct fault location mode, by direct fault location module loading to the virtual machine monitor
(Hypervisor) in, the direct fault location module includes that second interface realizes module;Specifically, the direct fault location module is
Newly-increased module.It is described under direct fault location mode, in the case where faulting instruction is manually entered, or be automatically defeated in program
Under the mode for entering faulting instruction.
The second interface in the direct fault location module is realized that module replaces the trawl performance by step S103
The first interface realizes module, so that second interface described in the interface reference of the network equipment realizes module;;Specifically
Ground, in order to need part to change the process flow of legacy network data to (Hypervisor, such as ESXi) injection network failure.
Transmitting control mode by interface between the network equipment and driver is a kind of loose coupling relation, and this incidence relation is
It dynamically establishes, therefore can be modified in (Hypervisor, such as ESXi) operation.If the interface reference of some network equipment
It is modified as being directed toward the interface realization that the non-driven program with network failure injectability provides, can effectively realize that failure is infused
Enter.Due to the I/O processing of network packet finally need to realize by interface in trawl performance be sent to hardware network interface card or from
Network interface card reads kernel, so if changing the process flow that interface is realized makes it possible to achieve injection network failure, such as net
Network packet loss, transmission delay, network disconnection, network flash policing parameter etc..And if the interface directly modified in trawl performance is real
It is existing, just do not have versatility.Therefore, from the perspective of the network equipment, the interface realization that it is called is to pass through registration in advance
Interface find, and not forcing the interface to be realized actually is to be located at trawl performance or other modules, changes drawing for interface
It is equivalent to change cited interface realization module with relationship, if the interface registered in the network equipment is modified as that it is allowed to refer to
It is realized to the interface for having direct fault location function, can be achieved with network failure injection.
Step S104 after obtaining failure-description instruction, sends the direct fault location module for failure-description instruction
The second interface realize module so that the direct fault location module the second interface realize module retouched from the failure
It states and obtains direct fault location parameter in instruction;;Specifically, the direct fault location module obtains use from the I/O inlet flow of network packet
The failure-description instruction of family input, the failure-description instruction are used to indicate network failure injecting strategy, carry such as network and lose
Packet, transmission delay, network disconnection, the direct fault location parameter of the strategy such as network flash.
Step S105 makes described in the case where the interface of the network equipment calls the second interface to realize module
Second interface realizes module according to the direct fault location parameter, to data handled by the corresponding network interface card hardware of the network equipment
Packet injection failure.Specifically, during virtual machine monitor (Hypervisor, such as ESXi) and PERCOM peripheral communication, if network is set
Standby layer needs to access trawl performance, quotes with regard to callback interface, realizes and realizes that module carries out direct fault location to the second interface
Meanwhile the network packet for transmitting network equipment layer and trawl performance carries failure.Particular network device is established in a step 101
Interface to the adduction relationship of specific trawl performance on the basis of, when actual transmissions between the interface and trawl performance of the network equipment
When data packet, the interface of the network equipment calls the second interface for previously setting up adduction relationship to realize the program in module.
The utility model has the advantages that the technology of the present invention breakthrough can not inject failure to virtual machine monitor (Hypervisor, such as ESXi)
Problem, can be with the method unrelated with any specific network interface card hardware and trawl performance to virtual machine monitor
(Hypervisor, such as ESXi) injection network failure, to virtual opetrating system (Hypervisor, such as ESXi) kernel without hard binding
Relationship, direct fault location module install and uninstall simply, and it is not necessary to modify install to virtual opetrating system (Hypervisor, such as ESXi)
Image file, without restarting system, and the technology of the present invention application scenarios are unrestricted, either the small-scale cloud field in laboratory
Scape or truthful data center large-scale cloud scene can be applied, for network function virtualize (NFV) cloud product can
The method to provide the foundation highly effective and versatile is verified and assessed by property.
Further, step S106 after obtaining failure-description instruction, sends the failure for failure-description instruction
Injection module, the failure-description instruction carry direct fault location parameter, and the direct fault location module is instructed from the failure-description
It is middle to read the direct fault location parameter, it is retouched so that the direct fault location module obtains the failure from failure-description instruction
State the direct fault location parameter that instruction carries.
Further, step S107, N number of interface by the trawl performance realize the module direct fault location
N number of second interface realizes module replacement in module, and N is positive integer.Specifically, described by direct fault location module loading to institute
It states in virtual machine monitor (Hypervisor), the direct fault location module includes that at least one second interface realizes module.
The utility model has the advantages that the direct fault location module includes that one or more interfaces realize module, each interface is realized
Module is respectively used to carry out data transmission with each interface of the network equipment.In the network equipment there are in the case where multiple interfaces,
Realize that N number of second interface of second network equipment quotes one in N number of interface in direct fault location module respectively.
Further, the second interface of second network equipment is realized that module replaces with the network by step S108
The interface of equipment realizes module, and the second interface of second network equipment is replaced with to the interface of the network equipment.
The utility model has the advantages that interface when switching back into normal work realizes module or switches back into normal work after injecting failure
Interface when making realizes module and network device interface, so that the virtual machine monitor (Hypervisor, such as ESXi) returns
Return normal operating conditions.
As shown in Fig. 2, a kind of net card failure method for implanting embodiment two provided in an embodiment of the present invention, comprising: step
S201, virtual machine monitor (Hypervisor) make the in the virtual monitor when startup stage loading trawl performance
The first interface of the first interface reference trawl performance of one network equipment realizes module;Specifically, in virtual machine monitor
(Hypervisor) in, network packet needs the processing by several modules from top to bottom, is protocol stack, the network equipment, net respectively
Card driving, network interface card hardware.Wherein protocol stack and the network equipment are to belong to virtual opetrating system (such as ESXi) self-contained module,
Trawl performance is the part for being provided by equipment vendor and being installed in virtual opetrating system.Each physical network card is corresponding in ESXi system
One abstract network equipment NetDevice, including control interface needed for network I/O and control data, all-network
Equipment NetDevice forms a chained list.The corresponding NIC driver of each type of network interface card, belongs to same net in system
The network equipment NetDevice of Card Type is associated with corresponding trawl performance.Since there are different network interface card products and its correspondences
Driver need (Hypervisor, such as ESXi) integrated, therefore the interaction between network equipment layer and trawl performance is necessary
Certain specification is followed, this specification is exactly interface.Trawl performance provides interface and realizes module, and the network equipment holds interface with right
The interface that trawl performance provides realizes that module is quoted, and the transfer that stream is controlled between the network equipment and trawl performance is exactly to pass through
Interface is realized.When system start-up phase loads trawl performance, module and network equipment layer are realized in the interface of trawl performance
Interface between set up corresponding relationship, i.e., the interface of clear particular network device and the interface of specific trawl performance realize mould
Corresponding to block, the interface for establishing particular network device, which just refers to the reference of specific trawl performance, establishes the corresponding relationship.
Step S202, under direct fault location mode, by direct fault location module loading to virtual machine monitor
(Hypervisor) in, the direct fault location module includes that second interface realizes module;;Specifically, the direct fault location module
To increase module newly.
The second interface in the direct fault location module is realized that module replaces the trawl performance by step S203
The first interface realizes module, and second network equipment of first network equipment is replaced, so that second network
The second interface that the second interface of equipment quotes the direct fault location module realizes module;Specifically, in order to virtual machine
Monitor (Hypervisor) (Hypervisor, such as ESXi) injection network failure needs part to change legacy network data
Process flow.Transmitting control mode by interface between the network equipment and driver is a kind of loose coupling relation, this association
Relationship is dynamically to establish in virtual machine monitor (Hypervisor, such as ESXi) operation, therefore can be modified.If some
The interface reference of the network equipment is modified as being directed toward the interface realization that the non-driven program with network failure injectability provides, just
It can effectively realize direct fault location.Since the I/O processing of network packet finally needs to send by the interface realization in trawl performance
Kernel is read to hardware network interface card or from network interface card, so if changing the process flow that interface is realized makes it possible to achieve injection
Network failure, such as Network Packet Loss, transmission delay, network disconnection, network flash etc..And if directly modified in trawl performance
Interface realizes just do not have versatility.Therefore, from the perspective of the network equipment, the interface realization that it is called is to pass through thing
What the interface reference first registered was found, and not forcing the interface to be realized actually is to be located at trawl performance or other modules, is changed
Become interface reference and be equivalent to change interface and realizes have if the interface registered in the network equipment is modified as it is allowed to be directed to
The interface of direct fault location function is realized, can be achieved with network failure injection.
Step S204 after obtaining failure-description instruction, sends the direct fault location module for failure-description instruction
The second interface realize module so that the direct fault location module the second interface realize module retouched from the failure
It states and obtains the direct fault location parameter that the failure-description instruction carries in instruction;Specifically, the direct fault location module is from network
The failure-description instruction of user's input is obtained in the I/O inlet flow of packet, the failure-description instruction is used to indicate network failure note
Enter strategy, carries such as Network Packet Loss, transmission delay, network disconnection, the direct fault location parameter of the strategy such as network flash.
Step S205, the case where the second interface of second network equipment calls the second interface to realize module
Under, so that the second interface is realized that module injects institute to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment
State direct fault location parameter.Specifically, during virtual machine monitor (Hypervisor, such as ESXi) and PERCOM peripheral communication, if net
Network mechanical floor needs to access trawl performance, quotes with regard to callback interface, realizes and realizes that module carries out failure note to the second interface
While entering parameter injection, the network packet for transmitting network equipment layer and trawl performance carries direct fault location parameter.In step
On the basis of the interface of particular network device is established in 101 to the adduction relationship of specific trawl performance, when the interface of the network equipment
Between trawl performance when actual transmissions data packet, the interface of the network equipment calls the second interface for previously setting up adduction relationship
Realize the program in module.
The utility model has the advantages that the technology of the present invention breaks through the problem that can not inject failure to (Hypervisor, such as ESXi), Ke Yiyong
The method unrelated with any specific network interface card hardware and trawl performance infuses virtual machine monitor (Hypervisor, such as ESXi)
Enter network failure, to virtual opetrating system (Hypervisor, such as ESXi) kernel without hard binding relationship, the installation of direct fault location module
It is simple with unloading, it is not necessary to modify image file is installed to virtual opetrating system (Hypervisor, such as ESXi), be without restarting
It unites, and the technology of the present invention application scenarios are unrestricted, either the small-scale cloud scene in laboratory or truthful data center
Large-scale cloud scene can be applied, and virtualize the reliability demonstration of (NFV) cloud product for network function and assessment provides
The method of basis highly effective and versatile.
Further, step S206 after obtaining failure-description instruction, sends the failure for failure-description instruction
Injection module, the failure-description instruction carry direct fault location parameter, and the direct fault location module is instructed from the failure-description
It is middle to read the direct fault location parameter, the direct fault location parameter is sent to the second interface of the direct fault location module
Module is realized, so that the second interface realizes that module obtains the direct fault location parameter that the failure-description instruction carries.
Further, step S207, N number of interface by the trawl performance realize the module direct fault location
N number of second interface realizes module replacement in module, and one second network equipment of the network equipment is replaced, described
Second network equipment includes N number of second interface, and N number of second interface of second network equipment is made to quote the second failure note
The N number of second interface for entering module realizes module, and N is positive integer.
The utility model has the advantages that realizing N number of second interface of second network equipment there are in the case where multiple interfaces in the network equipment
One in direct fault location module in N number of interface is quoted respectively.
Further, the second interface of second network equipment is realized that module replaces with the network by step S208
The interface of equipment realizes module, and the second interface of second network equipment is replaced with to the interface of the network equipment.
The utility model has the advantages that interface when switching back into normal work realizes module or switches back into normal work after injecting failure
Interface when making realizes module and network device interface, so that the virtual machine monitor (Hypervisor, such as ESXi) returns
Return normal operating conditions.
As shown in figure 3, a kind of structural schematic diagram of net card failure injection device embodiment one provided in an embodiment of the present invention,
Include:
Protocol stack 31 and the network equipment 32 and trawl performance 33 and network interface card hardware 34, the trawl performance 33 is for driving
The network interface card hardware 34 transmits data packet, and the trawl performance 33 includes that first interface realizes module 35, the network equipment packet
Containing interface 36, the first interface that the interface 36 of the network equipment quotes the trawl performance realizes module 35 to be counted
According to the transmission of packet;Specifically, in virtual machine monitor (Hypervisor), network packet is needed from top to bottom by several modules
Processing, be protocol stack, the network equipment, trawl performance, network interface card hardware respectively.Wherein protocol stack and the network equipment are to belong to virtually
Operating system (such as ESXi) self-contained module, trawl performance is to be provided by equipment vendor and be installed in virtual opetrating system
Part.The corresponding abstract network equipment NetDevice of each physical network card in ESXi system, including network I/O institute
The control interface and control data, all-network equipment NetDevice needed forms a chained list.Each type of network interface card in system
A corresponding NIC driver, the network equipment NetDevice for belonging to same network interface card type are associated with corresponding trawl performance.
Since there are different network interface card products and its corresponding driver to need virtual machine monitor (Hypervisor)
(Hypervisor, such as ESXi) is integrated, therefore the interaction between network equipment layer and trawl performance must comply with certain specification,
This specification is exactly interface.
Trawl performance provides interface and realizes module, and the interface that the network equipment holds interface to provide trawl performance realizes mould
Block is quoted, and the transfer that stream is controlled between the network equipment and trawl performance is exactly to be realized by interface.Start rank in system
When section load trawl performance, is realized in the interface of trawl performance and set up corresponding pass between module and the interface of network equipment layer
System, i.e., the interface of clear particular network device and the interface of specific trawl performance are realized corresponding to module, and particular network is established
The interface of equipment, which just refers to the reference of specific trawl performance, establishes the corresponding relationship.
The transmission of data packet is carried out between the protocol stack 31 and the network equipment 32;
Described device further includes direct fault location module 37, realizes module 38 comprising parameter processing module 39 and second interface;
Specifically, the direct fault location module is newly-increased module.
The second interface realizes module 38, for replacing the institute that the trawl performance includes under direct fault location mode
It states first interface and realizes module 35;Specifically, in order to virtual machine monitor (Hypervisor) (Hypervisor, such as ESXi)
Injection network failure needs part to change the process flow of legacy network data.By connecing between the network equipment and driver
It is a kind of loose coupling relation that control mode is passed in oral instructions, and this incidence relation is dynamically built in (Hypervisor, such as ESXi) operation
It is vertical, therefore can be modified.If the interface reference of some network equipment being modified as being directed toward, there is network failure injectability
Non-driven program provide interface realize, can effectively realize direct fault location.It is needed since the I/O processing of network packet is final logical
The interface crossed in trawl performance is realized to be sent to hardware network interface card or read kernel from network interface card, so if it is real to change interface
Existing process flow makes it possible to achieve injection network failure, such as Network Packet Loss, transmission delay, network disconnection, network flash
Deng.And if the interface directly modified in trawl performance is realized, just do not have versatility.Therefore, come from the angle of the network equipment
It sees, it is to be found by the interface reference of registration in advance, and the interface is not forced to be realized actually that the interface that it is called, which is realized,
It is to be located at trawl performance or other modules, changes interface reference and be equivalent to change interface realization, if in the network equipment
The interface of registration is modified as that it is allowed to be directed to the interface realization for having direct fault location function, can be achieved with network failure injection.
The parameter processing module 39, the parameter processing module, after obtaining failure-description instruction, by the failure
The direct fault location parameter carried in description instruction is sent to the second interface and realizes module 38;Specifically, the direct fault location
Module obtains the failure-description instruction of user's input from the I/O inlet flow of network packet, and the failure-description instruction is used to indicate
Network failure injecting strategy carries such as Network Packet Loss, transmission delay, network disconnection, the direct fault location of the strategy such as network flash
Parameter.
The second interface realizes module 38, is also used to quote the second interface in the interface 36 of the network equipment real
In the case where existing module 38, the second interface realizes module 38 to by network interface card hardware handles corresponding with the network equipment
Data packet inject the direct fault location parameter.Specifically, virtual machine monitor (Hypervisor) (Hypervisor, such as
ESXi) and during PERCOM peripheral communication, if network equipment layer needs to access trawl performance, module is realized with regard to calling interface, is realized
While realizing that module carries out direct fault location to the new interface, the network packet for transmitting network equipment layer with trawl performance is taken
With failure.On the basis of adduction relationship of the above-mentioned interface for establishing particular network device to specific trawl performance, work as network
Between the interface and trawl performance of equipment when actual transmissions data packet, the interface of the network equipment, which calls, previously sets up adduction relationship
Second interface realize module in program.
The utility model has the advantages that the technology of the present invention is broken through to virtual machine monitor (Hypervisor) (Hypervisor, such as ESXi)
The problem of failure can not be injected, virtual machine can be supervised with the method unrelated with any specific network interface card hardware and trawl performance
Visual organ (Hypervisor) (Hypervisor, such as ESXi) injection network failure, to virtual machine monitor (Hypervisor)
(Hypervisor, such as ESXi) kernel installs and uninstalls simply without hard binding relationship, direct fault location module, and it is not necessary to modify to virtual
Operating system (Hypervisor, such as ESXi) installs image file, and without restarting system, and the technology of the present invention application scenarios are not
It is restricted, either the small-scale cloud scene in laboratory or truthful data center large-scale cloud scene can be applied, and be
The reliability demonstration and assessment of network function virtualization (NFV) cloud product provide the foundation method highly effective and versatile.
Further, the parameter processing module 39 instructs the failure-description after obtaining failure-description instruction
In direct fault location parameter be sent to the second interface and realize module 38, be specifically used for:
The parameter processing module 39, after obtaining failure-description instruction, the failure-description instruction carries failure note
Enter parameter, the parameter processing module reads the direct fault location parameter from failure-description instruction, the failure is retouched
It states the direct fault location parameter in instruction and is sent to the second interface realization module 38.
The direct fault location module 37, including at least one second interface realize module 38.The network equipment 32, has
At least one interface 36.
The utility model has the advantages that the direct fault location module includes that one or more interfaces realize module, each interface is realized
Module is respectively used to carry out data transmission with each interface of the network equipment.In the network equipment there are in the case where multiple interfaces,
Realize that N number of new interface of second network equipment quotes one in direct fault location module in N number of interface respectively.
Further, the first interface realizes module, the second interface realize module to by with it is described
The data packet of the corresponding network interface card hardware handles of the network equipment is injected after the direct fault location parameter, is also used to replace the network interface card
The second interface of driving realizes module.
The utility model has the advantages that first interface when system switches back into normal work realizes module after injecting failure, so that
The virtual opetrating system (Hypervisor, such as ESXi) returns to normal operating conditions.
As shown in figure 4, a kind of structural schematic diagram of net card failure injection device embodiment two provided in an embodiment of the present invention,
Include:
Protocol stack 41 is used for first network equipment 42 and trawl performance 43 and network interface card hardware 44, the trawl performance 43
The network interface card hardware 44 is driven to transmit data packet, the trawl performance 43 includes that first interface realizes module 46, first net
Network equipment 42 includes first interface 45, and the first interface 45 of the first network equipment 42 quotes the first of trawl performance 43
Interface realizes that module 46 to carry out the transmission of data packet, carries out data between the protocol stack 41 and the first network equipment 42
The transmission of packet;Specifically, in virtual machine monitor (Hypervisor) (Hypervisor), network packet need from top to bottom through
The processing for crossing several modules is protocol stack, the network equipment, trawl performance, network interface card hardware respectively.Wherein protocol stack and the network equipment
It is to belong to virtual machine monitor (Hypervisor) (such as ESXi) self-contained module, trawl performance is provided simultaneously by equipment vendor
It is installed to the part in virtual opetrating system.The corresponding abstract network equipment of each physical network card in ESXi system
NetDevice, including control interface needed for network I/O and control data, all-network equipment NetDevice forms one
A chained list.The corresponding NIC driver of each type of network interface card, belongs to the network equipment of same network interface card type in system
NetDevice is associated with corresponding trawl performance.Since there are different network interface card products and its corresponding driver to need void
Quasi- machine monitor (Hypervisor) (Hypervisor, such as ESXi) is integrated, therefore between network equipment layer and trawl performance
Interaction must comply with certain specification, and this specification is exactly interface.
Trawl performance provides interface and realizes module, and the interface that the network equipment holds interface to provide trawl performance realizes mould
Block is quoted, and the transfer that stream is controlled between the network equipment and trawl performance is exactly to be realized by interface.Start rank in system
When section load trawl performance, is realized in the interface of trawl performance and set up corresponding pass between module and the interface of network equipment layer
System, i.e., the interface of clear particular network device and the interface of specific trawl performance are realized corresponding to module, and particular network is established
The interface of equipment, which just refers to the reference of specific trawl performance, establishes the corresponding relationship.
Described device further includes direct fault location module 48 and second network equipment 47;
The direct fault location module 48 is connected with the first network equipment 42, includes parameter processing module 410 and second
Interface realizes module 49;Specifically, the direct fault location module 48 is newly-increased module.
The second interface realizes module 49, realizes mould for replacing the first interface that the trawl performance 43 includes
Block 46;The second interface realizes module, for replacing the trawl performance includes described first under direct fault location mode
Interface realizes module;Specifically, in order to virtual machine monitor (Hypervisor) (Hypervisor, such as ESXi) injection network
Failure needs part to change the process flow of legacy network data.It is transmitted and is controlled by interface between the network equipment and driver
Mode processed is a kind of loose coupling relation, this incidence relation be virtual machine monitor (Hypervisor) (Hypervisor, such as
ESXi it) dynamically establishes, therefore can be modified in operation.If the interface reference of some network equipment, which is modified as being directed toward, to be had
The interface that the non-driven program of network failure injectability provides is realized, can effectively realize direct fault location.Due to network packet
I/O processing is final to be needed to realize by the interface in trawl performance to be sent to hardware network interface card or read kernel from network interface card,
So if changing the process flow that interface is realized makes it possible to achieve injection network failure, such as Network Packet Loss, transmission delay,
Network disconnection, network flash etc..And if the interface directly modified in trawl performance is realized, just do not have versatility.Therefore, from
From the perspective of the network equipment, it is to be found by the interface of registration in advance by adduction relationship that the interface that it is called, which is realized,
And not forcing the interface to be realized actually is to be located at trawl performance or other modules, the adduction relationship for changing interface is equivalent to
Change interface to realize, if the interface registered in the network equipment is modified as it is allowed to be directed to the interface for having direct fault location function
It realizes, can be achieved with network failure injection.
The parameter processing module 410, after obtaining failure-description instruction, by the failure in failure-description instruction
Injection parameter is sent to the second interface and realizes module 49;Specifically, the direct fault location module is inputted from the I/O of network packet
The failure-description instruction of user's input is obtained in stream, the failure-description instruction is used to indicate network failure injecting strategy, such as net
Network packet loss, transmission delay, network disconnection, the policing parameters such as network flash.
Second network equipment 47, for replacing the first network equipment 42, second network equipment includes the
Two interfaces 411;Specifically, the second interface 411 can be N number of.
In the case where the second interface of second network equipment quotes the second interface and realizes module, described second
Interface realizes that module injects the direct fault location ginseng to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment
Number.Specifically, virtual machine monitor (Hypervisor) Hypervisor, such as ESXi) with PERCOM peripheral communication during, if network
Mechanical floor needs to access trawl performance, quotes with regard to callback interface, realizes and realizes that module carries out direct fault location to the new interface
While, the network packet for transmitting network equipment layer and trawl performance carries failure.
The utility model has the advantages that the technology of the present invention is broken through to virtual machine monitor (Hypervisor) (Hypervisor, such as ESXi)
The problem of failure can not be injected, virtual machine can be supervised with the method unrelated with any specific network interface card hardware and trawl performance
Visual organ (Hypervisor) (Hypervisor, such as ESXi) injection network failure, to virtual machine monitor (Hypervisor)
(Hypervisor, such as ESXi) kernel installs and uninstalls simply without hard binding relationship, direct fault location module, and it is not necessary to modify to virtual
Machine monitor (Hypervisor) (Hypervisor, such as ESXi) installs image file, without restarting system, and skill of the present invention
Art application scenarios are unrestricted, and either the small-scale cloud scene in laboratory or truthful data center large-scale cloud scene be all
It can apply, virtualize the reliability demonstration of (NFV) cloud product for network function and assessment provides the foundation highly effective and versatile
Method.
Further, the parameter processing module 410, it is described for obtain failure-description instruction after, by the failure
Direct fault location parameter in description instruction is sent to the second interface and realizes 49 aspect of module, is specifically used for:
The parameter processing module, after obtaining failure-description instruction, the failure-description instruction carries direct fault location
Parameter, the parameter processing module reads the direct fault location parameter from failure-description instruction, by the failure-description
Direct fault location parameter in instruction is sent to the second interface and realizes module.
The direct fault location module 48, including at least one second interface realize module 49;The first network equipment 42,
With at least one first interface 45;Second network equipment 47 has at least one second interface 411.
The utility model has the advantages that in the network equipment, there are the N number of second interfaces in the case where multiple interfaces, realizing the new network equipment
One in direct fault location module in N number of interface is quoted respectively.The utility model has the advantages that the direct fault location module includes one or more
Second interface realizes module, and each second interface realization module is respectively used to carry out with each interface of second network equipment
Data transmission.
The first interface of the first network equipment realizes module to by setting with the network in the second interface
The data packet of standby corresponding network interface card hardware handles is injected after the direct fault location parameter, is also used to for replacing second net
The second interface of network equipment;
The first interface of the first network equipment realizes module, the second interface realize module to by with it is described
The data packet of the corresponding network interface card hardware handles of the network equipment is injected after the direct fault location parameter, is also used to replace described second
The second interface of the network equipment realizes module.
The utility model has the advantages that first interface when system switches back into normal work is realized module 46 or is cut after injecting failure
First interface when gaining normal work realizes the first interface 42 of module 46 and first network equipment, so that the virtual machine
Monitor (Hypervisor) (Hypervisor, such as ESXi) returns to normal operating conditions.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (16)
1. a kind of net card failure method for implanting characterized by comprising
Virtual machine monitor (Hypervisor) makes the network in the virtual monitor when startup stage loading trawl performance
The first interface of the interface reference trawl performance of equipment realizes module;
It is described by direct fault location module loading in the virtual machine monitor (Hypervisor) under direct fault location mode
Direct fault location module includes that second interface realizes module;
The second interface in the direct fault location module is realized that module replaces the first interface of the trawl performance
Module is realized, so that second interface described in the interface reference of the network equipment realizes module;
After obtaining failure-description instruction, the direct fault location module is sent by failure-description instruction, so that the failure
Injection module obtains the direct fault location parameter that the failure-description instruction carries from failure-description instruction;
In the case where the interface of the network equipment calls the second interface to realize module, keep the direct fault location module logical
Crossing the second interface realizes module to described in the data packet injection Jing Guo network interface card hardware handles corresponding with the network equipment
Direct fault location parameter.
2. the method according to claim 1, wherein the failure-description is referred to after obtaining failure-description instruction
Order is sent to the direct fault location module, so that the direct fault location module obtains the failure from failure-description instruction
The direct fault location parameter that description instruction carries, specifically includes:
After obtaining failure-description instruction, the direct fault location module, the failure-description are sent by failure-description instruction
Instruction carries direct fault location parameter, and the direct fault location module reads the direct fault location ginseng from failure-description instruction
Number, so that the direct fault location module obtains the direct fault location that the failure-description instruction carries from failure-description instruction
Parameter.
3. the method according to claim 1, wherein described second by the direct fault location module connects
Cause for gossip shows the first interface realization module that module replaces the trawl performance, comprising:
N number of first interface by the trawl performance realizes module in the direct fault location module N number of described second
Interface realizes module replacement, and N is positive integer.
4. according to the method described in claim 2, it is characterized in that, described second by the direct fault location module connects
Cause for gossip shows the first interface realization module that module replaces the trawl performance, comprising:
N number of first interface by the trawl performance realizes module in the direct fault location module N number of described second
Interface realizes module replacement, and N is positive integer.
5. method according to any one of claims 1 to 4, which is characterized in that the interface in the network equipment calls
In the case that the second interface realizes module, the direct fault location module is made to realize module to process by the second interface
The data packet of network interface card hardware handles corresponding with the network equipment is injected after the direct fault location parameter, further includes:
The first interface is set to realize that module replaces the second interface realization module of the trawl performance.
6. a kind of net card failure method for implanting characterized by comprising
Virtual machine monitor (Hypervisor) makes first in the virtual monitor when startup stage loading trawl performance
The first interface of the first interface reference trawl performance of the network equipment realizes module;
Under direct fault location mode, by direct fault location module loading to virtual machine monitor (Hypervisor), the failure
Injection module includes that second interface realizes module;
The second interface in the direct fault location module is realized that module replaces the first interface of the trawl performance
It realizes module, and second network equipment of first network equipment is replaced, so that the second of second network equipment connects
The second interface that mouth quotes the direct fault location module realizes module;
After obtaining failure-description instruction, it sends failure-description instruction to the second interface of the direct fault location module
Module is realized, so that the second interface of the direct fault location module realizes that module obtains institute from failure-description instruction
State the direct fault location parameter that failure-description instruction carries;
In the case where the second interface of second network equipment calls the second interface to realize module, described second is set to connect
Cause for gossip shows module and injects the direct fault location parameter to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment.
7. according to the method described in claim 6, it is characterized in that, the failure-description is referred to after obtaining failure-description instruction
The second interface for being sent to the direct fault location module is enabled to realize module, so that described the second of the direct fault location module
Interface realizes that module obtains the direct fault location parameter that the failure-description instruction carries from failure-description instruction, specific to wrap
It includes:
After obtaining failure-description instruction, the direct fault location module, the failure-description are sent by failure-description instruction
Instruction carries direct fault location parameter, and the direct fault location module reads the direct fault location ginseng from failure-description instruction
The second interface that the direct fault location parameter is sent to the direct fault location module is realized module, so that described the by number
Two interfaces realize that module obtains the direct fault location parameter that the failure-description instruction carries.
8. according to the method described in claim 6, it is characterized in that, described second by the direct fault location module connects
Cause for gossip, which shows module, replaces the first interface of the trawl performance and realizes module, and by the second net of the first network equipment
Network equipment replacement, so that the second interface that the second interface of second network equipment quotes the direct fault location module is real
Existing module, comprising:
N number of first interface by first trawl performance realizes module described in N number of in the direct fault location module
Second interface realizes module replacement, and second network equipment of first network equipment is replaced, second network equipment
Including N number of second interface, so that N number of second interface of second network equipment quotes N number of institute of the direct fault location module
It states second interface and realizes module, N is positive integer.
9. the method according to the description of claim 7 is characterized in that described second by the direct fault location module connects
Cause for gossip, which shows module, replaces the first interface of the trawl performance and realizes module, and by the second net of the first network equipment
Network equipment replacement, so that the second interface that the second interface of second network equipment quotes the direct fault location module is real
Existing module, comprising:
N number of first interface by first trawl performance realizes module described in N number of in the direct fault location module
Second interface realizes module replacement, and second network equipment of first network equipment is replaced, second network equipment
Including N number of second interface, so that N number of second interface of second network equipment quotes N number of institute of the direct fault location module
It states second interface and realizes module, N is positive integer.
10. according to any method of claim 6 to 9, which is characterized in that in the second interface of second network equipment
In the case where calling the second interface to realize module, the second interface is made to realize module to process and the network equipment pair
The data packet for the network interface card hardware handles answered is injected after the direct fault location parameter, further includes:
The second interface of second network equipment is realized that module replaces with the first interface realization of the first network equipment
Module, and the second interface of second network equipment is replaced with to the first interface of the first network equipment.
11. a kind of net card failure injection device, including protocol stack and the network equipment and trawl performance and network interface card hardware, the net
For driving the network interface card hardware transport data packet, the trawl performance includes that first interface realizes module, the net for card driving
Network equipment includes interface, and the first interface of trawl performance described in the interface reference of the network equipment realizes module to carry out
The transmission of data packet carries out the transmission of data packet between the protocol stack and the network equipment, which is characterized in that further include:
Direct fault location module realizes module comprising parameter processing module and second interface;
The second interface realizes module, for replacing the trawl performance includes described first under direct fault location mode
Interface realizes module;
The parameter processing module infuses the failure carried in failure-description instruction after obtaining failure-description instruction
Enter parameter and is sent to the second interface realization module;
The second interface realizes module, is also used to the second interface described in the interface reference of the network equipment and realizes module
In the case of, the second interface realizes module to the data packet injection Jing Guo network interface card hardware handles corresponding with the network equipment
The direct fault location parameter.
12. device according to claim 11, which is characterized in that the parameter processing module, described for obtaining event
After barrier description instruction, the direct fault location parameter in failure-description instruction is sent to the second interface and realizes module side
Face is specifically used for:
The parameter processing module, after obtaining failure-description instruction, the failure-description instruction carries direct fault location parameter,
The parameter processing module reads the direct fault location parameter from failure-description instruction, will be in failure-description instruction
Direct fault location parameter be sent to the second interface and realize module.
13. device according to claim 11 or 12, which is characterized in that
The first interface realizes module, realizes module to by corresponding with the network equipment in the second interface
The data packet of network interface card hardware handles is injected after the direct fault location parameter, is also used to replace described the second of the trawl performance
Interface realizes module.
14. a kind of net card failure injection device, including protocol stack and first network equipment and trawl performance and network interface card hardware, institute
Trawl performance is stated for driving the network interface card hardware transport data packet, the trawl performance includes that first interface realizes module, institute
Stating first network equipment includes first interface, and the first of the first interface reference trawl performance of the first network equipment connects
Cause for gossip shows module to carry out the transmission of data packet, and the biography of data packet is carried out between the protocol stack and the first network equipment
It is defeated, which is characterized in that further include:
Direct fault location module and second network equipment;
The direct fault location module is connected with the first network equipment, realizes mould comprising parameter processing module and second interface
Block;
The second interface realizes module, for replacing the trawl performance includes described first under direct fault location mode
Interface realizes module;
The parameter processing module joins the direct fault location in failure-description instruction after obtaining failure-description instruction
Number is sent to the second interface and realizes module;
Second network equipment, for replacing the first network equipment, second network equipment includes second interface;
In the case where the second interface of second network equipment quotes the second interface and realizes module, the second interface
Realize that module injects the direct fault location parameter to the data packet Jing Guo network interface card hardware handles corresponding with the network equipment.
15. device according to claim 14, which is characterized in that the parameter processing module, described for obtaining event
After barrier description instruction, the direct fault location parameter in failure-description instruction is sent to the second interface and realizes module side
Face is specifically used for:
The parameter processing module, after obtaining failure-description instruction, the failure-description instruction carries direct fault location parameter,
The parameter processing module reads the direct fault location parameter from failure-description instruction, will be in failure-description instruction
Direct fault location parameter be sent to the second interface and realize module.
16. device according to claim 14 or 15, which is characterized in that
The first interface of the first network equipment realizes module to process and the network equipment pair in the second interface
The data packet for the network interface card hardware handles answered is injected after the direct fault location parameter, is also used to set for replacing second network
Standby second interface;
The first interface of the first network equipment realizes module, realizes module to process and the network in the second interface
The data packet of the corresponding network interface card hardware handles of equipment is injected after the direct fault location parameter, is also used to replace second network
The second interface of equipment realizes module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510374141.4A CN106326044B (en) | 2015-06-30 | 2015-06-30 | A kind of net card failure method for implanting and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510374141.4A CN106326044B (en) | 2015-06-30 | 2015-06-30 | A kind of net card failure method for implanting and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326044A CN106326044A (en) | 2017-01-11 |
CN106326044B true CN106326044B (en) | 2019-09-03 |
Family
ID=57723192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510374141.4A Active CN106326044B (en) | 2015-06-30 | 2015-06-30 | A kind of net card failure method for implanting and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326044B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683553B (en) * | 2018-03-30 | 2020-07-28 | 北京华为数字技术有限公司 | Method and device for fault injection |
CN109857522B (en) * | 2019-03-01 | 2021-03-02 | 哈尔滨工业大学 | Virtual layer fault injection method facing KVM |
CN110928275B (en) * | 2019-12-12 | 2022-07-01 | 重庆长安新能源汽车科技有限公司 | Multi-controller combined HIL (high-level hierarchical level) rack message frame loss fault injection test system and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859263A (en) * | 2010-06-12 | 2010-10-13 | 中国人民解放军国防科学技术大学 | Quick communication method between virtual machines supporting online migration |
CN102916848A (en) * | 2012-07-13 | 2013-02-06 | 北京航空航天大学 | Automatic test method of Ethernet interface equipment based on script technology |
CN103984867A (en) * | 2014-05-20 | 2014-08-13 | 南京理工大学 | Recession analysis method for virtual machine monitor in manner of context awareness |
CN104360900A (en) * | 2014-11-03 | 2015-02-18 | 上海迈微软件科技有限公司 | Method for operating multiple operating systems and corresponding system and mobile equipment |
CN104461865A (en) * | 2014-11-04 | 2015-03-25 | 哈尔滨工业大学 | Cloud environment distributed file system reliability test suite |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110179311A1 (en) * | 2009-12-31 | 2011-07-21 | Nachimuthu Murugasamy K | Injecting error and/or migrating memory in a computing system |
-
2015
- 2015-06-30 CN CN201510374141.4A patent/CN106326044B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101859263A (en) * | 2010-06-12 | 2010-10-13 | 中国人民解放军国防科学技术大学 | Quick communication method between virtual machines supporting online migration |
CN102916848A (en) * | 2012-07-13 | 2013-02-06 | 北京航空航天大学 | Automatic test method of Ethernet interface equipment based on script technology |
CN103984867A (en) * | 2014-05-20 | 2014-08-13 | 南京理工大学 | Recession analysis method for virtual machine monitor in manner of context awareness |
CN104360900A (en) * | 2014-11-03 | 2015-02-18 | 上海迈微软件科技有限公司 | Method for operating multiple operating systems and corresponding system and mobile equipment |
CN104461865A (en) * | 2014-11-04 | 2015-03-25 | 哈尔滨工业大学 | Cloud environment distributed file system reliability test suite |
Non-Patent Citations (1)
Title |
---|
VM内部隔离驱动程序的可靠性架构;郑豪,董小社等;《软件学报》;20141031;第25卷(第10期);第2235-2250页 |
Also Published As
Publication number | Publication date |
---|---|
CN106326044A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580475B (en) | Long-range control method, terminal device, management server and tele-control system | |
CN109992972B (en) | Method and system for establishing trust chain in cloud environment | |
JP6257778B2 (en) | Method and computer device for affinity binding of interrupts in a virtual network interface card | |
CN106326044B (en) | A kind of net card failure method for implanting and device | |
EP3627318B1 (en) | Game rendering method and apparatus, terminal, and non-transitory computer-readable storage medium | |
CN101765225A (en) | Virtual cluster management system and cluster node | |
CN101206582B (en) | Virtual machine system and processing method thereof | |
CN104598841B (en) | A kind of the dual system bootstrap technique and device of terminaloriented safety | |
EP1998861A4 (en) | Universal game download system for legacy gaming machines using rom and nvram emulation | |
WO2016101587A1 (en) | Link aggregation method and system for virtualization server, and intelligent network adapter thereof | |
US20120297091A1 (en) | Method and apparatus of server i/o migration management | |
US20120254866A1 (en) | System for migrating a virtual machine between computers | |
US10824488B2 (en) | Device detection method and system, electronic device, cloud robot system, and computer program product | |
CN105468429A (en) | Efficient virtual cluster management method and cluster node | |
CN106250166A (en) | A kind of half virtualization network interface card kernel accelerating module upgrade method and device | |
CN110399217A (en) | A kind of memory source distribution method, device and equipment | |
CN101488113A (en) | Device driver field implementing method, system and apparatus | |
CN104202199A (en) | Method and system for detecting interface status and processing interface fault according to interface status | |
CN109194640A (en) | A kind of virtual platform East and West direction flow isolating and protecting method | |
CN102917017A (en) | Universal automatic IP (Internet Protocol) allocation method when cloning virtual machines | |
CN105159784A (en) | Deployment method and system for virtual servers | |
CN105573776B (en) | A kind of software installation method and server in station of server in station | |
CN105653347A (en) | Server, resource management method and virtual machine manager | |
CN106254419A (en) | System and method virtual machine operated by control station server | |
RU2638000C1 (en) | Method of monitoring execution system of programmable logic controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210423 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Device Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |