CN109412888A - Virtual switch monitoring method and device - Google Patents

Virtual switch monitoring method and device Download PDF

Info

Publication number
CN109412888A
CN109412888A CN201811176845.0A CN201811176845A CN109412888A CN 109412888 A CN109412888 A CN 109412888A CN 201811176845 A CN201811176845 A CN 201811176845A CN 109412888 A CN109412888 A CN 109412888A
Authority
CN
China
Prior art keywords
monitoring
virtual machine
virtual switch
virtual
status information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811176845.0A
Other languages
Chinese (zh)
Other versions
CN109412888B (en
Inventor
林茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811176845.0A priority Critical patent/CN109412888B/en
Publication of CN109412888A publication Critical patent/CN109412888A/en
Application granted granted Critical
Publication of CN109412888B publication Critical patent/CN109412888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application provides a kind of virtual switch monitoring method and device, belongs to data communication field.This method comprises: the monitoring process of physical switches obtains the monitoring information of the status information of the virtual machine process of virtual switch and the internal process of the virtual machine process;The monitoring information of status information and the internal process of the monitoring process based on the virtual machine process carries out condition monitoring to the virtual switch.As a result, in the present solution, physical switches can understand the operating status of virtual switch in real time, virtual switch is monitored in real time, to take corresponding measure to repair in time when virtual switch breaks down, to guarantee the reliability operation of virtual switch.

Description

Virtual switch monitoring method and device
Technical field
This application involves data communication fields, in particular to a kind of virtual switch monitoring method and device.
Background technique
With the sustainable development of Internet technology, data volume shows explosive growth, therefore, the management and transmission of data It becomes more and more important.In face of mass data, data safety, intensive data management, reliable data transmission and high speed data processing Etc. demands, data center arise, and in data center's building process, core switch plays important role.For Meet some particular demands of data center, virtualization technology applies on core switch therewith.
So generally fictionalizing multiple void in physical switches to meet the service communication demand of physical switches Quasi- interchanger, the operating status of virtual switch are related to the communication function of virtual switch, so, physical switches need reality When the state status of virtual switch is monitored, to guarantee the reliability operation of virtual switch, and in the prior art, The state for specifically how monitoring virtual switch does not refer to then.
Summary of the invention
The embodiment of the present application is designed to provide a kind of virtual switch monitoring method and device.
In a first aspect, the embodiment of the present application provides a kind of virtual switch monitoring method, which comprises physics is handed over The monitoring process changed planes obtain the virtual machine process of virtual switch status information and the virtual machine process inside into The monitoring information of journey;The monitoring of status information and the internal process of the monitoring process based on the virtual machine process is believed Breath carries out condition monitoring to the virtual switch.
During above-mentioned realization, the status information for the virtual machine process that physical switches can be obtained by monitoring process Or the monitoring information of the internal process of virtual process to carry out condition monitoring to virtual switch, so that physical switches can be real When understand the operating status of virtual switch, virtual switch is monitored in real time, with when virtual switch breaks down, It takes corresponding measure to repair in time, and then guarantees the reliability operation of virtual switch.
Optionally, the status information of the virtual machine process includes the status information that the virtual machine process whether there is And/or the status information of the virtual machine process whether normal operation, shape of the monitoring process based on the virtual machine process State information and the monitoring information of the internal process carry out condition monitoring to the virtual switch, comprising: it is described monitor into Journey is detecting that the virtual machine process is not present and/or when the virtual machine process abnormal state, determines the virtual switch Machine is in malfunction.
In above-mentioned implementation, physical switches carry out condition monitoring by facing virtual switch in virtualization layer, Condition monitoring is carried out to virtual switch by the status information of virtual machine process, it is virtual so as to be faced from virtualization layer Interchanger is monitored.
Optionally, the internal process includes house dog process, shape of the monitoring process based on the virtual machine process State information and the monitoring information of the internal process carry out condition monitoring to the virtual switch, comprising: it is described monitor into Journey is detecting that the virtual machine process state is normal, and detects logical between the house dog process and the monitoring process When letter disconnects, determine that the virtual switch is in malfunction.
In above-mentioned implementation, physical switches can carry out condition monitoring to virtual switch by system level, i.e., Condition monitoring is carried out to virtual switch by the house dog state of a process information of virtual switch, so as to from system layer It is monitored in face of virtual switch.
Optionally, the internal process further includes business monitoring process, and the monitoring process is based on the virtual machine process Status information and the internal process monitoring information to the virtual switch carry out condition monitoring, comprising: the prison Control process is normally normal with the monitoring information of the house dog process in the process status for detecting the virtual machine process, and examines Measure that the house dog process reports from the service exception message of the business monitoring process when, determine the virtual switch Machine is in malfunction.
In above-mentioned implementation, physical switches can carry out condition monitoring to virtual switch by service layer, i.e., Business monitoring process can report service exception message by the house dog process of virtual switch, so as to from service layer Virtual switch is monitored.
Optionally, after the determination virtual switch is in malfunction, the method also includes: close or Restart the virtual machine process.
During above-mentioned realization, when virtual switch is in malfunction, can by close virtual machine process come Fault restoration is carried out to virtual switch.
Second aspect, the embodiment of the present application provides a kind of virtual switch monitoring device, applied to physical switches Monitoring process, described device include: state information acquisition module, the state letter of the virtual machine process for obtaining virtual switch The monitoring information of breath and the internal process of the virtual machine process;Monitoring module, for being based on the virtual machine process Status information and the internal process monitoring information to the virtual switch carry out condition monitoring.
Optionally, the status information of the virtual machine process includes the status information that the virtual machine process whether there is And/or the status information of the virtual machine process whether normal operation, the monitoring module, specifically for detecting Virtual machine process is stated to be not present and/or when the virtual machine process abnormal state, determine that the virtual switch is in failure shape State.
Optionally, the internal process includes house dog process, the monitoring module, specifically for detecting When stating that virtual machine process state is normal, and detecting that the communication between the house dog process and the monitoring process disconnects, really The fixed virtual switch is in malfunction.
Optionally, the internal process further includes business monitoring process, the monitoring module, specifically for detecting Process status to the virtual machine process is normally normal with the monitoring information of the house dog process, and detects described guard the gate Dog process report from the service exception message of the business monitoring process when, determine that the virtual switch is in failure shape State.
Optionally, described device further include: fault restoration module, for closing or restarting the virtual machine process.
The third aspect, the embodiment of the present application provide a kind of physical switches, including processor and memory, the storage Device is stored with computer-readable instruction fetch, and when the computer-readable instruction fetch is executed by the processor, operation is such as above-mentioned The step in the method that first aspect provides.
Fourth aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, are stored thereon with computer program, the meter The step in the method that first aspect offer is as above provided is run when calculation machine program is executed by processor.
The beneficial effect of the embodiment of the present application is:
The embodiment of the present application provides a kind of virtual switch monitoring method and device, in this method, the physical switches Monitoring process obtain virtual switch virtual machine process status information and the virtual machine process internal process Monitoring information, then the monitoring of status information and the internal process of the monitoring process based on the virtual machine process is believed Breath carries out condition monitoring to the virtual switch.As a result, in the present solution, physical switches can understand virtual switch in real time Operating status, virtual switch is monitored in real time, to take corresponding arrange in time when virtual switch breaks down It applies and repairs, to guarantee the reliability operation of virtual switch.
Other feature and advantage of the application will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing the embodiment of the present application understanding.The purpose of the application and other advantages can be by written theorys Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural block diagram of physical switches provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of virtual switch monitoring method provided by the embodiments of the present application;
Fig. 3 is a kind of schematic diagram that physical switches are monitored virtual switch provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of virtual switch monitoring device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of physical switches provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Virtualization technology is a kind of resource management techniques, by the various actual resources of physical equipment, after being abstracted, being converted It shows, breaks the not cleavable obstacle of entity structure part, allow user than the configuration better way of script to answer With these resources.
It, can (host equipment be alternatively referred to as computer equipment, physics master in a host equipment by virtualization technology Machine, physical computer or host) on simulate one or more virtual machine.Virtual machine can equally work to host equipment, For example, for another example, user can access network by virtual machine for that can install operating system and application program on a virtual machine Resource.For a user, virtual machine can regard the application program of operation on the host device as, but virtual for operating in For application program in machine, virtual machine provides working environment just as real host equipment for the application program.
Therefore, virtualization technology is also employed in field of communication technology, virtual to hand in order to meet bigger communication transmission needs It changes planes and comes into being, virtual switch is operated on physical switches, it is similar with physical machine and virtual machine, it is using void Quasi-ization technology fictionalizes virtual unit on the physical devices.
In the virtualization technology of interchanger, as shown in Figure 1, can be in a physical switches (Physical Switch, abbreviation PS) on fictionalize one or more virtual switches (Virtual Switch, abbreviation VS).Virtual switch Can work as physical switches, for example, user can on virtual switch installation control system and application program, but It is for operating in the application program in virtual switch, virtual switch is this just as real physical switches Application program provides working environment.
In the present embodiment, virtualization technology can be using various ways such as KVM, XEN, linux containers.
The operating status of virtual switch is related to the communication function of virtual switch, it is therefore desirable to hand in real time virtual The state status changed planes is monitored, and in the prior art, the state of virtual switch specifically how is monitored, guarantees virtual switch The reliability operation of machine does not refer to then, therefore, in order to which the state to virtual switch is monitored, to guarantee virtual switch The reliability operation of machine.The embodiment of the present application provides a kind of virtual switch monitoring method.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and hereinafter the embodiment of the present application are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the application during the application.
Referring to figure 2., Fig. 2 is a kind of flow chart of virtual switch monitoring method provided by the embodiments of the present application, described Method includes the following steps:
Step S110: the monitoring process of physical switches obtain the virtual machine process of virtual switch status information and The monitoring information of the internal process of the virtual machine process.
A monitoring process can be run in physical switches, and state prison is carried out to virtual switch by the monitoring process Control.
Virtual machine process is process corresponding with virtual switch in physical switches, and virtual machine process is virtual for starting The corresponding system of interchanger and internal process, the status information of virtual machine process can reflect the operating status letter of virtual switch Breath, so, the state of virtual switch can be monitored by obtaining the status information of virtual machine process.
Wherein, the status information of virtual machine process includes the status information and/or institute that the virtual machine process whether there is State the status information of virtual machine process whether normal operation.
The internal process of the virtual machine process can be message transmissions process, Message processing process there are many including Etc., the monitoring information of the internal process can also reflect the state status of virtual switch, so, virtual switch can be obtained The monitoring information of the internal process of machine, to be monitored to the status information of virtual switch.
Wherein, the monitoring information of internal process is that the information of acquisition is monitored to virtual switch, for example, virtual switch Machine whether deadlock, whether the monitoring informations such as communication disruption may include certainly whether the internal process of virtual switch runs Normal status information, for example, it is above-mentioned for virtual switch carry out message transmissions message transmissions process, the message transmissions into Whether the status information of journey can go offline etc. status informations for the process.
Step S120: the prison of status information and the internal process of the monitoring process based on the virtual machine process It controls information and condition monitoring is carried out to the virtual switch.
The monitoring process of the physical switches the above-mentioned status information for getting virtual machine process and state it is internal into After the monitoring information of journey, the monitoring information of status information and the internal process based on virtual machine process is to virtual switch Condition monitoring is carried out, can specifically be monitored by the status information of virtual machine process and the monitoring information of the internal process empty Whether quasi- interchanger is in malfunction caused by malfunction and which kind of reason etc..
So the monitoring process of the physical switches obtains the virtual of virtual switch first in the embodiment of the present application The monitoring information of the internal process of machine state of a process information and the virtual machine process, then the monitoring process is based on institute The monitoring information of the status information and the internal process of stating virtual machine process carries out condition monitoring to the virtual switch, Physical switches can understand the operating status of virtual switch in real time as a result, monitor in real time to virtual switch, with When virtual switch breaks down, corresponding measure is taken to repair, in time to guarantee the reliability of virtual switch in time Operation.
On the basis of the above embodiments, the status information of the virtual machine process includes whether the virtual machine process deposits Status information and/or the virtual machine process status information whether normal operation, then the monitoring process is based on described The status information of virtual machine process and the monitoring information of the internal process carry out condition monitoring, packet to the virtual switch Include: the monitoring process is detecting that the virtual machine process is not present and/or when the virtual machine process abnormal state, determines The virtual switch is in malfunction.
Which is that the physical switches are based on virtualization layer in face of virtual switch progress condition monitoring, such as Fig. 3 institute Show, such as monitoring process can be whether there is by real-time detection virtual machine process, whether the operating status of virtual machine process is normal Determine whether virtual switch is working properly, wherein whether Yi Chang status information includes virtual machine process to virtual machine process Normally, the process status such as suspend mode, death.
The monitoring process of the physical switches can constantly monitor it after virtual machine process starting whether there is and work Normally, when such as using linux container technology, virtual machine process is the subprocess of monitoring process, is monitored by monitoring process empty Quasi- machine state of a process guarantees that virtual switch operates normally, at this time in virtual switch init process be monitoring process son Process, when init process exits, monitoring process can perceive init process and be unable to operate normally or have logged out, at this moment table Bright virtual switch is in abnormal state, i.e. malfunction.
As an implementation, the internal process of virtual switch includes house dog process, and the monitoring process is based on The status information of the virtual machine process and the monitoring information of the internal process carry out state prison to the virtual switch Control, comprising: the monitoring process is detecting that the virtual machine process state is normal, and detects seeing for the virtual switch When communication between door dog process and the monitoring process of the physical switches disconnects, determine that the virtual switch is in failure State.
Specifically, the monitoring information of house dog process can be monitored acquisition to virtual switch for house dog process Monitoring information, house dog process are responsible for basically available inspection, such as endless loop, memory starvation, deadlock of virtual switch etc., when When house dog process detection inside virtual machine interchanger above-mentioned failure occurs to virtual switch, it can disconnect and be handed over physics automatically The communication connection for the monitoring process changed planes, house dog process sends information without the monitoring process of normal direction physical switches at this time, After house dog process and monitoring process disconnect, monitoring process can perceive communication connection at once and disconnect, i.e. physical exchange Machine judges that the virtual switch is in malfunction.
So aforesaid way is that physical switches are based on system level to virtual switch progress condition monitoring, when virtual When house dog process detection in interchanger breaks down to virtual switch, house dog process can attempt to send error message to Monitoring process illustrates that system-level malfunction occurs in current virtual interchanger, and when error message sends failure, house dog process is actively Disconnect with the connection of monitoring process, but regardless of which kind of mode, monitoring process, which can perceive at once virtual switch and occur, is Irrespective of size failure, so that physical switches determine that the virtual switch is in malfunction.
In addition, as an implementation, when the internal process further includes business monitoring process, the monitoring process base State is carried out to the virtual switch in the status information of the virtual machine process and the monitoring information of the internal process Monitoring, comprising: the monitoring process the process status for detecting the virtual machine process normally and the house dog process Monitoring information is normal, and detects the service exception message from the business monitoring process that the house dog process reports When, determine that the virtual switch is in malfunction.
The monitoring information of the business monitoring process of virtual switch is carried out to the business (business process) of virtual switch The monitoring information obtained is monitored, business monitoring process is used to be monitored the business (business process) in virtual switch, when Monitor virtual switch interior business communication severely subnormal situation can not self- recoverage when, for example, business process exits extremely, industry Between business process or internal signal amount deadlock etc., business monitoring process obtain the communication link between monitoring process and house dog process It connects, may then pass through the monitoring process that house dog process reports service exception message to physical switches, physical switches Monitoring process determines that the virtual switch is in malfunction after receiving service exception message.
Aforesaid way be physical switches be based on service layer to virtual switch carry out condition monitoring, when business monitoring into When journey detects that traffic failure occurs in the business process in virtual switch, the communication of house dog process and monitoring process can be passed through Connection attempts to send service exception message to monitoring process, and monitoring process can perceive virtual switch appearance after obtaining message Service level failure, so that physical switches determine that the virtual switch is in malfunction.
In addition, physical switches are before the status information for obtaining virtual machine process, it is also necessary to start monitoring process, then Monitoring process is come extensive when starting virtual machine process, while can also start a backup virtual machine process for virtual switch exception Restitution business.After virtual machine process starting, the system that virtual machine process starts virtual switch, the system of virtual switch opens again Dynamic house dog process and business monitoring process, on startup, the monitoring process of physical switches is waited to be established with house dog process Communication connection, after connection is successfully established, the system of virtual switch could continue subsequent Booting sequence, and business monitoring process Can check whether the communication connection between house dog process and monitoring process is correct, if incorrect, business monitoring process can be with Inform the communication connection failure between the current house dog process of house dog process and monitoring process.
So physical switches can carry out state prison to virtual switch by three levels during above-mentioned realization Control, i.e. virtualization level, system level and service layer, it is possible thereby to based on three levels to the state of virtual switch into Row conduct monitoring at all levels, so as to accurately know what failure virtual switch specifically occurs, with the failure to virtual switch It is accurately positioned, and then can be repaired for specific trouble location when being repaired to virtual switch.
On the basis of the above embodiments, determined described in monitoring process the virtual switch be in malfunction it Afterwards, further includes: close or restart the virtual machine process.
The monitoring process the state for detecting the virtual switch be malfunction when, close the virtual machine into After journey, the method also includes: the virtual machine process is restarted, to restart the virtual switch.
Wherein, when service layer is monitored, it is in malfunction in service layer if monitoring virtual switch, this When suitable processing mode can be selected according to exception level, such as restart virtual machine process, or due to starting virtual machine into Cheng Shi, virtual machine process include active and standby virtual machine process, and generally first starting host virtual machine process is run for virtual switch, So virtual machine process can carry out active-standby switch, that is, restart abnormal virtual machine when virtual switch service layer breaks down Backup virtual machine process status is switched to host virtual machine process by process, and thus virtual switch can pass through standby virtual machine process It is run, guarantees being normally carried out for business.
Referring to figure 4., Fig. 4 is a kind of structural block diagram of virtual switch monitoring device 200 provided by the embodiments of the present application, Described device runs on physical switches, and described device includes:
State information acquisition module 210, for obtaining the status information of the virtual machine process of virtual switch and described The monitoring information of the internal process of virtual machine process;
Monitoring module 220, the prison for status information and the internal process based on the virtual machine process It controls information and condition monitoring is carried out to the virtual switch.
Optionally, the status information of the virtual machine process includes the status information that the virtual machine process whether there is And/or the status information of the virtual machine process whether normal operation, the monitoring module 220, specifically for detecting Be not present to the virtual machine process and/or when the virtual machine process abnormal state, determine the virtual switch be in therefore Barrier state.
Optionally, the internal process includes house dog process, the monitoring module 220, specifically for detecting It is normal to the virtual machine process state, and detect that the communication between the house dog process and the monitoring process disconnects When, determine that the virtual switch is in malfunction.
Optionally, the internal process further includes business monitoring process, the monitoring module 220, is specifically used for It detects the process status of the virtual machine process normally and the monitoring information of the house dog process is normal, and detect described House dog process report from the service exception message of the business monitoring process when, determine the virtual switch be in therefore Barrier state.
Optionally, described device further include: fault restoration module, for closing or restarting the virtual machine process.
Referring to figure 5., Fig. 5 is a kind of structural schematic diagram of physical switches provided by the embodiments of the present application, which hands over Change planes may include: at least one processor 110, such as CPU, at least one communication interface 120, at least one processor 130 With at least one communication bus 140.Wherein, communication bus 140 is for realizing the direct connection communication of these components.Wherein, originally Apply for that the communication interface 120 of equipment in embodiment is used to carry out the communication of signaling or data with other node devices.Memory 130 It can be high speed RAM memory, be also possible to non-labile memory (non-volatile memory), for example, at least one A magnetic disk storage.Memory 130 optionally can also be that at least one is located remotely from the storage device of aforementioned processor.Storage Computer-readable instruction fetch is stored in device 130, and processor 110 executes when having computer-readable instruction fetch in memory 130 Run the step in above-mentioned virtual switch machine monitoring method.
The embodiment of the present application also provides a kind of readable storage medium storing program for executing, is stored thereon with computer program, the computer journey The step in the virtual switch monitoring method as above stated is run when sequence is executed by processor.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, no longer can excessively be repeated herein with reference to the corresponding process in preceding method.
In conclusion the embodiment of the present application provides a kind of virtual switch monitoring method and device, and in this method, the object Manage interchanger monitoring process obtain virtual switch virtual machine process status information and the virtual machine process it is interior The monitoring information of portion's process, then status information and the internal process of the monitoring process based on the virtual machine process Monitoring information to the virtual switch carry out condition monitoring.As a result, in the present solution, physical switches can understand void in real time The operating status of quasi- interchanger, monitors virtual switch in real time, taken in time when virtual switch breaks down Corresponding measure repairs, to guarantee the reliability operation of virtual switch.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.

Claims (10)

1. a kind of virtual switch monitoring method, which is characterized in that the described method includes:
The monitoring process of physical switches obtain the virtual machine process of virtual switch status information and the virtual machine into The monitoring information of the internal process of journey;
The monitoring information of status information and the internal process of the monitoring process based on the virtual machine process is to described Virtual switch carries out condition monitoring.
2. the method according to claim 1, wherein the status information of the virtual machine process includes described virtual The status information of the status information and/or the virtual machine process that machine process whether there is whether normal operation, it is described monitor into The monitoring information of status information and the internal process of the journey based on the virtual machine process carries out the virtual switch Condition monitoring, comprising:
The monitoring process is detecting that the virtual machine process is not present and/or when the virtual machine process abnormal state, really The fixed virtual switch is in malfunction.
3. the method according to claim 1, wherein the internal process includes house dog process, the monitoring The monitoring information of status information and the internal process of the process based on the virtual machine process to the virtual switch into Row condition monitoring, comprising:
The monitoring process is detecting that the virtual machine process state is normal, and detects the house dog process and the prison When communication between control process disconnects, determine that the virtual switch is in malfunction.
4. described according to the method described in claim 3, it is characterized in that, the internal process further includes business monitoring process The monitoring information of status information and the internal process of the monitoring process based on the virtual machine process is to the virtual switch Machine carries out condition monitoring, comprising:
The monitoring process is normally believed with the monitoring of the house dog process in the process status for detecting the virtual machine process Breath is normal, and detect that the house dog process reports from the service exception message of the business monitoring process when, determine The virtual switch is in malfunction.
5. according to any method of claim 2-4, which is characterized in that be in event in the determination virtual switch After barrier state, the method also includes: close or restart the virtual machine process.
6. a kind of virtual switch monitoring device, which is characterized in that applied to the monitoring process of physical switches, described device packet It includes:
State information acquisition module, for obtain the virtual machine process of virtual switch status information and the virtual machine into The monitoring information of the internal process of journey;
Monitoring module, the monitoring information pair for status information and the internal process based on the virtual machine process The virtual switch carries out condition monitoring.
7. device according to claim 6, which is characterized in that the status information of the virtual machine process includes described virtual The status information of the status information and/or the virtual machine process that machine process whether there is whether normal operation, the state prison Module is controlled, specifically for detecting that the virtual machine process is not present and/or when the virtual machine process abnormal state, determines The virtual switch is in malfunction.
8. device according to claim 6, which is characterized in that the internal process includes house dog process, the state Monitoring module, specifically for detecting that the virtual machine process state is normal, and detect the house dog process with it is described When communication between monitoring process disconnects, determine that the virtual switch is in malfunction.
9. device according to claim 8, which is characterized in that the internal process further includes business monitoring process, described Monitoring module, specifically in the normal prison with the house dog process of the process status for detecting the virtual machine process Control that information is normal, and detect that the house dog process reports from the service exception message of the business monitoring process when, Determine that the virtual switch is in malfunction.
10. according to any device of claim 7-9, which is characterized in that described device further include:
Fault restoration module, for closing or restarting the virtual machine process.
CN201811176845.0A 2018-10-09 2018-10-09 Virtual switch monitoring method and device Active CN109412888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811176845.0A CN109412888B (en) 2018-10-09 2018-10-09 Virtual switch monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811176845.0A CN109412888B (en) 2018-10-09 2018-10-09 Virtual switch monitoring method and device

Publications (2)

Publication Number Publication Date
CN109412888A true CN109412888A (en) 2019-03-01
CN109412888B CN109412888B (en) 2021-02-02

Family

ID=65467373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811176845.0A Active CN109412888B (en) 2018-10-09 2018-10-09 Virtual switch monitoring method and device

Country Status (1)

Country Link
CN (1) CN109412888B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN104199753A (en) * 2014-09-04 2014-12-10 中标软件有限公司 Virtual machine application service failure recovery system and method
CN104378264A (en) * 2014-12-12 2015-02-25 武汉噢易云计算有限公司 sFlow based virtual machine process traffic monitoring method
CN107741876A (en) * 2017-10-27 2018-02-27 郑州云海信息技术有限公司 A kind of virtual machine process monitoring system and method
CN108183871A (en) * 2017-11-23 2018-06-19 北京三快在线科技有限公司 A kind of virtual switch, virtual switch start method, electronic equipment
CN108540307A (en) * 2018-03-01 2018-09-14 南京理工大学 Software and hardware based on SDN mixes virtual network custom-built system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902599A (en) * 2012-09-17 2013-01-30 华为技术有限公司 Virtual machine internal fault processing method, device and system
CN104199753A (en) * 2014-09-04 2014-12-10 中标软件有限公司 Virtual machine application service failure recovery system and method
CN104378264A (en) * 2014-12-12 2015-02-25 武汉噢易云计算有限公司 sFlow based virtual machine process traffic monitoring method
CN107741876A (en) * 2017-10-27 2018-02-27 郑州云海信息技术有限公司 A kind of virtual machine process monitoring system and method
CN108183871A (en) * 2017-11-23 2018-06-19 北京三快在线科技有限公司 A kind of virtual switch, virtual switch start method, electronic equipment
CN108540307A (en) * 2018-03-01 2018-09-14 南京理工大学 Software and hardware based on SDN mixes virtual network custom-built system

Also Published As

Publication number Publication date
CN109412888B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN106293979B (en) Method and apparatus of the detection procedure without response
CN104685830B (en) Method, entity and the system of fault management
US20180210801A1 (en) Container monitoring method and apparatus
CN107623596A (en) Start the method for testing network element positioning investigation failure in a kind of NFV platforms
CN105095125B (en) High Availabitity dual control storage system based on quorum disk and its operation method
CN106789306A (en) Restoration methods and system are collected in communication equipment software fault detect
JP2001101033A (en) Fault monitoring method for operating system and application program
CN103064860A (en) Database high availability implementation method and device
CN105024879A (en) Virtual machine fault detection and recovery system and virtual machine detection, recovery and starting method
US20110138224A1 (en) Method and system for tracepoint-based fault diagnosis and recovery
US10102088B2 (en) Cluster system, server device, cluster system management method, and computer-readable recording medium
CN104484243A (en) High-reliability system device and method combining virtual machine fault-tolerant technique and high-availability cluster technique
CN108762886A (en) The fault detect restoration methods and system of virtual machine
CN110502399A (en) Fault detection method and device
CN107656845A (en) A kind of virtual machine high availability method
CN109710492A (en) Application program operation monitoring method, medium and electronic equipment
CN109117317A (en) A kind of clustering fault restoration methods and relevant apparatus
CN101677276A (en) Method, device and system of managing execution environment (EE)
CN106411643B (en) BMC detection method and device
CN109412888A (en) Virtual switch monitoring method and device
CN112069032A (en) Availability detection method, system and related device for virtual machine
CN115562900B (en) AMD server system installation power-off processing method, device, equipment and medium
CN110008189A (en) A kind of automatic reporting method of file system error, device and equipment
CN105335209A (en) Virtual machine scheduling method, electronic device and server
CN115964142A (en) Application service management method, device and storage medium

Legal Events

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