CN106034037B - A kind of disaster tolerance switching method and device based on virtual machine - Google Patents

A kind of disaster tolerance switching method and device based on virtual machine Download PDF

Info

Publication number
CN106034037B
CN106034037B CN201510110301.4A CN201510110301A CN106034037B CN 106034037 B CN106034037 B CN 106034037B CN 201510110301 A CN201510110301 A CN 201510110301A CN 106034037 B CN106034037 B CN 106034037B
Authority
CN
China
Prior art keywords
virtual machine
service plane
interchanger
gateway
plane
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
Application number
CN201510110301.4A
Other languages
Chinese (zh)
Other versions
CN106034037A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510110301.4A priority Critical patent/CN106034037B/en
Publication of CN106034037A publication Critical patent/CN106034037A/en
Application granted granted Critical
Publication of CN106034037B publication Critical patent/CN106034037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of disaster tolerance switching method and device based on virtual machine, wherein this method comprises: detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, to detect whether the gateway of service plane connects normally;If it is determined that detecting that the gateway malunion of service plane is normal according to detection instruction, then reports operation system and send a warning message;Obtain the control instruction issued when operation system determines that the interchanger breaks down according to warning information;Host is switched on memory plane according to control instruction.The embodiment of the present invention can be on the basis of not changing existing hardware facility, its flow is handed over on memory plane when service plane breaks down, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduce the wasting of resources, and the service that can guarantee that the virtual machine on host externally provides is not interrupted, and redundancy ability and reliability of service when virtual machine externally services are increased substantially.

Description

A kind of disaster tolerance switching method and device based on virtual machine
Technical field
The invention belongs to field of communication technology more particularly to a kind of disaster tolerance switching methods and device based on virtual machine.
Background technique
Virtual machine (VM, Virtual Machine), refer to by software simulate with complete hardware system function, Operate in the complete computer in a completely isolated environment.In currently existing scheme, virtual machine can be logical by business Road externally provides service, wherein service channel are as follows: virtual machine -> br1 (Bridge, bridge) -> eth1 (Ethernet, Ethernet Port) -> tor1 (positioned at the interchanger of networking peripheral) -> lc (core switch) -> outer net gateway;It can also be logical by storing Road provides distributed storage service for client, wherein memory channel are as follows: and magnetic disk of virtual machine -> host block device -> eth0- > Tor0- > lc- > storage server.
In the research and practice process to the prior art, it was found by the inventors of the present invention that in this scenario, if business is logical Arbitrary portion in road between eth1 and outer net gateway breaks down, and such as interchanger power down or hardware damage, service channel will It interrupting, virtual machine can not just continue external offer service, staff can only be waited to overhaul, strong influence is caused to user, Redundancy ability is poor, and service reliability is low.If newly increasing a standby traffic channel, needs great amount of investment and existing network is carried out Transformation, and newly-increased service channel can be idle in most time, causes the very big wasting of resources.
Summary of the invention
The purpose of the present invention is to provide a kind of disaster tolerance switching method and device based on virtual machine, it is intended to improve virtual machine The externally redundancy ability and reliability of service when service, and reduce the wasting of resources.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of disaster tolerance switching method based on virtual machine, including:
Detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, to detect service plane Whether gateway connects normally;
If it is determined that detecting that the gateway malunion of service plane is normal according to detection instruction, then report operation system concurrent Send warning information;
Obtain the control issued when the operation system determines that the interchanger breaks down according to the warning information Instruction, and host is switched on memory plane according to the control instruction.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of disaster tolerance switching device based on virtual machine, including:
Sending module, for sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval, with Whether the gateway of detection service plane connects normally;
Signal dispatcher module, for if it is determined that detect that the gateway malunion of service plane is normal according to detection instruction, It then reports operation system and sends a warning message;
Instruction acquisition module determines that the interchanger occurs according to the warning information for obtaining the operation system The control instruction issued when failure;
Disaster tolerance switching module, for host to be switched to memory plane according to the control instruction.
Compared with the existing technology, the present embodiment is continued to test by the connection status to service plane gateway, if connection It is abnormal, then it reports operation system and alerts, operation system receives acknowledged alarm switch status, if it is determined that interchanger occurs Failure, then all hosts are switched on memory plane by control;The embodiment of the present invention can not change existing hardware facility On the basis of, its flow is handed over on memory plane when service plane breaks down, that is, is multiplexed existing memory channel and holds The business transmission for carrying on a shoulder pole trouble time, reduces the wasting of resources, and can guarantee the service that the virtual machine on host externally provides It does not interrupt, increases substantially the redundancy ability and reliability of service when virtual machine externally services.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made And other beneficial effects are apparent.
Fig. 1 is the flow diagram for the disaster tolerance switching method based on virtual machine that first embodiment of the invention provides;
Fig. 2 a is the flow diagram for the disaster tolerance switching method based on virtual machine that second embodiment of the invention provides;
Fig. 2 b is the structural schematic diagram for the disaster tolerance switching system that second embodiment of the invention provides;
Fig. 3 a is the flow diagram for the disaster tolerance switching method based on virtual machine that third embodiment of the invention provides;
Fig. 3 b is another flow diagram for the disaster tolerance switching method based on virtual machine that third embodiment of the invention provides;
Fig. 4 is the structural schematic diagram for the disaster tolerance switching device based on virtual machine that fourth embodiment of the invention provides;
Fig. 5 is the structural schematic diagram for the disaster tolerance switching device based on virtual machine that fifth embodiment of the invention provides;
Fig. 6 is the structural schematic diagram for the server that sixth embodiment of the invention provides.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the present invention is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the specific embodiment of the invention, should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiments of the present invention will refer to the step as performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is executed by computer, this paper institute The computer execution of finger includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation is converted at the data or the position being maintained in the memory system of the computer, reconfigurable Or in addition change the running of the computer in mode known to the tester of this field.The maintained data structure of the data For the provider location of the memory, there is the specific feature as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that be not represented as a kind of limitation, this field tester will appreciate that plurality of step and behaviour as described below Also it may be implemented in hardware.
First embodiment
Referring to Fig. 1, the process that Fig. 1 is the disaster tolerance switching method based on virtual machine that first embodiment of the invention provides is shown It is intended to.The described method includes:
In step s101, detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, with Whether the gateway of detection service plane connects normally.
In step s 102, however, it is determined that go out according to detection instruction to detect that the gateway malunion of service plane is normal, then on Report operation system simultaneously sends a warning message.
Wherein, the step S101 and step S102 can specifically:
It is understood that the disaster tolerance switching method based on virtual machine can be based on the clothes of a monitor (monitor) It being run on business device, the monitor is continued to test by the connection status to service plane gateway, if malunion is normal, on Report operation system simultaneously alerts, and operation system receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then controls All hosts are switched on memory plane.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing Detect the gateway situation of service plane.
In step s 103, it obtains the operation system and determines that the interchanger breaks down according to the warning information When the control instruction that issues.
In step S104, host is switched on memory plane according to the control instruction.
Wherein, the step S103 and step S104 can specifically:
It is understood that disaster tolerance switching method of the present invention is based on a disaster tolerance switching system, it include operation system in the system System, the state and the warning information whether gateway about service plane reported for RX monitor normally connects, the fortune Battalion's system is according to the warning information, and when determining that the interchanger breaks down, the control instruction of switching is issued to monitor.
After monitor determines that the interchanger of service plane side breaks down, host can be switched to memory plane On;That is, virtual machine service plane correspondence with foreign country link is the exchange for passing through service plane side by virtual machine before the handover Machine reaches outer net gateway;After switching, it is the exchange for passing through memory plane side by virtual machine that host, which is switched on memory plane, Machine, to reach outer net gateway.
It is contemplated that being based on disaster tolerance system, for IT, an energy exactly providing for computer information system Deal with the environment of various disasters.When computer system is lost by computer crime, computer virus, power down, network/communication Lose, hardware/software mistake and manual operation mistake etc. whens, will guarantee that (data are held for the safety of user data based on disaster tolerance system Calamity), further, moreover it is possible to continual application service (using disaster tolerance) be provided, realize data backup memory.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially Reliability.
Second embodiment
Referring to Fig. 2, the process that Fig. 2 is the disaster tolerance switching method based on virtual machine that second embodiment of the invention provides is shown It is intended to.Wherein, described based on running on server of the disaster tolerance switching method of virtual machine based on a monitor, the monitor is logical It crosses and the connection status of service plane gateway is continued to test, if malunion is normal, reports operation system and alert, operation system System receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then all hosts are switched to storage by control In plane.
Be different from first embodiment, the present embodiment mainly for the disaster tolerance switching of virtual machine system to the disaster tolerance switching side Method is described in detail.The described method includes:
In step s 201, detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing Detect the gateway situation of service plane.
In step S202, whether connected normally according to the gateway that the detection instruction detects service plane.
Wherein, whether the detection instruction is used to detect the gateway of service plane and connect normally, and according to detection as a result, Step S203a or step S203b is executed respectively.
In step S203a, however, it is determined that go out according to detection instruction to detect that the gateway malunion of service plane is normal, then on Report operation system simultaneously sends a warning message.
Preferably, in some embodiments, if it is detected that the continuously coupled obstructed number of the gateway of service plane is more than Preset threshold, it is determined that the gateway malunion of service plane is normal.Separately it is contemplated that the preset threshold is pre-set at In the server of monitor, it can be determined according to the gateway situation of actual service plane, herein not to its specific value It limits.
In step S204, the operation system is obtained according to the warning information and determines whether the interchanger occurs The information of failure.
It is understood that warning information that the operation system RX monitor reports and true according to the warning information Determine the state of interchanger, and sends the instruction information whether interchanger breaks down to monitor.Thereafter, according to the friendship determined Change planes whether breaking down as a result, executing step S205a or step S205b.
In step S205a, the operation system is obtained according to the warning information and determines that event occurs for the interchanger Host is switched on memory plane according to the control instruction, and triggers execution step by the control instruction issued when barrier S201。
The i.e. described operation system is according to the warning information, when determining that the interchanger breaks down, sends out to monitor Host is switched on memory plane by the control instruction switched out, monitor according to control instruction;That is, before the handover Virtual machine service plane correspondence with foreign country link is the interchanger for passing through service plane side by virtual machine, reaches outer net gateway;Switching Afterwards, it is the interchanger for passing through memory plane side by virtual machine that host, which is switched on memory plane, to reach outer net gateway.
In step S205b, the operation system is got according to the warning information and determines that the interchanger does not have The instruction information issued when breaking down, triggering execute step S201.
The i.e. described operation system determines the interchanger there is no when failure, to monitoring according to the warning information Device issues triggering instruction, to continue to send detection instruction to the interchanger for being located at service plane side in real time, detects service plane Gateway whether connect normally.
In step S203b, however, it is determined that go out and detect that the gateway of service plane connects normally according to detection instruction, then detect Whether current host has been switched to memory plane.
According to the testing result of step S203b, step S206a or step S206b is executed.
In step S206a, if so, control switches back to the host for being switched to memory plane on service plane, And it triggers and executes step S201.
In step S206b, if it is not, then directly triggering executes step S201.
The disaster tolerance switching method provided for a better understanding of the present invention, below based on the disaster tolerance switching system of virtual machine Structure carries out simple analysis explanation, can refer to Fig. 2 b together, is the structural schematic diagram of the disaster tolerance switching system.Wherein, described Disaster tolerance switching system includes operation system, host, the interchanger tor0 for being located at memory plane side networking peripheral (edge), storage Server, interchanger tor1, core switch lc and outer net gateway positioned at service plane side networking peripheral.
Further, host refer to installation, run virtual machine physical machine, including multiple virtual machines such as VM1, VM2 and VM3, bridge (Bridge) br1, monitor (monitor) and ARP (Address Resolution Protocol, address resolution Agreement) proxy module;It is additionally provided with Ethernet (Ethernet) port eth0 for transmitting in memory plane, in service plane The ethernet port eth1 of transmission;Wherein monitor, which can refer to operate on host, is used to monitor network state and execution net The program of network plane switching;ARP proxy is exactly by using a host, as specified equipment to the ARP of another equipment Response is made in request;Bridge br1 works in data link layer, and two local area networks (LAN, Local Area Network) are connected Come, frame is forwarded according to physical address MAC Address (Media Access Control, medium access control), is considered as one A " router of low layer " (router works in network layer, is forwarded according to network address such as IP address);Arping is one The ping tool of a ARP rank, arping order are the tools for sending arp request to an adjacent host, and arping makes With arp data packet, the hardware address in equipment is checked by ping order.
The monitor is continued to test by the connection status to service plane gateway, if malunion is normal, is reported Operation system simultaneously alerts, and operation system receives acknowledged alarm interchanger tor1 state, if it is determined that and interchanger tor1 breaks down, Then all hosts are switched on memory plane by control, guarantee that the virtual machine service on host is not interrupted, monitor detection Restore host to be switched back to service plane automatically to interchanger tor1.Virtual machine correspondence with foreign country link before switching are as follows: virtual Virtual machine correspondence with foreign country link after machine -> br1- > eth1- > tor1- > lc- > outer net gateway handoff are as follows: virtual machine -> br1- > Eth0- > tor0- > lc- > outer net gateway, virtual machine is to this handoff procedure unaware, the IP of switching front and back virtual machine and network-like State remains unchanged.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved The utilization rate and practicability of resource.
3rd embodiment
Referring to Fig. 3, the process that Fig. 3 is the disaster tolerance switching method based on virtual machine that third embodiment of the invention provides is shown It is intended to.Same above-described embodiment, it is described based on the disaster tolerance switching method of virtual machine based on being run on the server of monitor, the prison Control device is continued to test by the connection status to service plane gateway, if malunion is normal, is reported operation system and is alerted, Operation system receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then control switches all hosts Onto memory plane.
It is different from second embodiment, the present embodiment is based primarily upon disaster tolerance switching system shown in above-mentioned Fig. 2 b, flat to storage The process that face and service plane mutually switch is described in detail.
It can refer to Fig. 3 a, the idiographic flow schematic diagram of memory plane be switched to for service plane, comprising:
Step A1, eth1 is deleted from br1;
Step B1, the ARP table that gratuitous ARP updates all virtual machines on br1 is sent, the MAC Address of Service Gateway is storage The MAC Address of gateway;
That is the source IP address of the ARP IP address (i.e. the gateway IP of virtual machine) that is tor1, MAC Address are the MAC of tor0 Address.The purpose of the step is that the arp cache of virtual machine is updated using ARP deception mode.
Step C1, eth0 is added on br1;
The MAC Address of br1 will become the MAC Address of eth0 at this time, send MAC of the gratuitous ARP to storage tor notice br1 Address.
Step D1, the ARP proxy function of triggering starting host;
Step E1, memory plane IP is tied on br1;
Step F1, the IP on eth0 is deleted, and the IP is fitted on br1;
Step G1, route handoff is carried out, in the routing configuration to br1 for being eth0 original outgoing interface;
Step H1, refresh host MAC table.
Empty host arp cache, it is therefore an objective to br1 interface be allowed to acquire new gateway MAC address, the i.e. MAC of tor 0 immediately Address.
It is understood that a data packet at least needs to deposit when transmission, there are four information: the IP address of oneself, this The MAC Address of jump, purpose IP address, the MAC Address of next-hop.Wherein IP address is always maintained at constant, and MAC Address is each It can be all changed when forwarding.That is IP denotes inception point and terminus, and MAC Address indicates our station and the next stop.I.e. A- > In B- > C- > D structure.If A wants to send data packet to D, need to be written the IP address of A, the MAC of A, D in the packet IP address, the MAC Address of B.At this time data packet can receive data packet by B and be then forwarded to C, this data packet is the IP of A Location, the MAC Address of B, the IP address of D, the MAC Address of C so repeat.
In addition, usually ARP protocol is the corresponding relationship for inquiring other IP address of equipment and MAC Address, and gratuitous ARP (gratuitous ARP) is then the MAC Address that one data packet of system active transmission inquires the machine IP.There will not be machine at this time This ARP inquiry is responded, but when other equipment in local area network receive this data packet, will use the source IP of this data packet kind Address and source MAC update oneself ARP table.An ARP data packet is constructed, source IP address is for Service Gateway IP Location, source MAC are storage gateway MAC address (because Service Gateway already off), send its allowed in local area network Its equipment updates the ARP table of oneself.
Correspondingly, can refer to Fig. 3 b, service plane idiographic flow schematic diagram is switched back into for memory plane, comprising:
Step A2, the IP of original eth0 is deleted from br1, and eth0 is deleted from br1.
Step B2, ARP proxy function is closed in triggering.
Step C2, the ARP table that gratuitous ARP updates all virtual machines on br1 is sent, the MAC Address for storing gateway is business The MAC Address of gateway;
That is the source IP address of the ARP IP address (i.e. the gateway IP of virtual machine) that is tor1, MAC Address are the MAC of tor1 Address.
Step D2, eth1 is re-added on br1 and sends the new MAC Address of gratuitous ARP notice br1.
Notice memory plane MAC Address is service plane MAC Address.
Step E2, service plane IP address is tied on br1;
Step F2, restore eth0 network interface card IP address;
Step G2, restore the routing that original outgoing interface is eth0;
The IP of original eth0 is fitted on eth0 again, restores the routing that original outgoing interface is eth0, after route recovery, System routing is consistent with preservation when machine tool (i.e. host) rigid starting up.
Step H2, refresh host MAC table.
Empty host arp cache, it is therefore an objective to allow br1 interface to acquire new gateway MAC address immediately, i.e. tor1's MAC Address.
It is understood that the part not being described in detail in this embodiment, may refer to above-described embodiment and is directed to based on void The detailed description of the disaster tolerance switching method of quasi- machine, details are not described herein again.
It can be seen from the above, in the disaster tolerance switching method provided in this embodiment based on virtual machine, by service plane net The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved The utilization rate and practicability of resource.
Fourth embodiment
For convenient for the better implementation disaster tolerance switching method provided in an embodiment of the present invention based on virtual machine, the present invention is implemented Example also provides a kind of device based on the above-mentioned disaster tolerance switching method based on virtual machine.Wherein the meaning of noun is with above-mentioned based on void Identical in the disaster tolerance switching method of quasi- machine, specific implementation details can be with reference to the explanation in embodiment of the method.
Referring to Fig. 4, Fig. 4 is the structural representation of the disaster tolerance switching device provided in an embodiment of the present invention based on virtual machine Figure, wherein the disaster tolerance switching device based on virtual machine can be run on the server based on a monitor, the monitor is logical It crosses and the connection status of service plane gateway is continued to test, if malunion is normal, reports operation system and alert, operation system System receives acknowledged alarm switch status, if it is determined that interchanger breaks down, then all hosts are switched to storage by control In plane.
As shown in figure 4, the disaster tolerance switching device of the present invention based on virtual machine may include sending module 401, information Transceiver module 402, instruction acquisition module 403 and disaster tolerance switching module 404.
Wherein, the sending module 401, for being sent according to prefixed time interval to the interchanger for being located at service plane side Detection instruction, to detect whether the gateway of service plane connects normally;The signal dispatcher module 402, for if it is determined that root It detects that the gateway malunion of service plane is normal according to detection instruction, then reports operation system and send a warning message.
In the embodiment of the present invention, the host refers to the physical machine of installation, operation virtual machine;The interchanger is located at industry The gateway periphery for plane of being engaged in or edge;The monitor, which can refer to operate in, to be used to monitor network state and execution on host The program of network plane switching, the monitor can be set in host, or independently of the equipment of host, herein It is not especially limited.
Separately it is contemplated that the prefixed time interval is pre-set in the server of monitor, for timing Detect the gateway situation of service plane.
Described instruction obtains module 403, determines the friendship according to the warning information for obtaining the operation system It changes planes the control instruction issued when breaking down;The disaster tolerance switching module 404, for according to the control instruction by host It is switched on memory plane.
It is understood that disaster tolerance switching method of the present invention is based on a disaster tolerance switching system, it include operation system in the system System, the state and the warning information whether gateway about service plane reported for RX monitor normally connects, the fortune Battalion's system is according to the warning information, and when determining that the interchanger breaks down, the control instruction of switching is issued to monitor.
After monitor determines that the interchanger of service plane side breaks down, host can be switched to memory plane On;That is, virtual machine service plane correspondence with foreign country link is the exchange for passing through service plane side by virtual machine before the handover Machine reaches outer net gateway;After switching, it is the exchange for passing through memory plane side by virtual machine that host, which is switched on memory plane, Machine, to reach outer net gateway.
It is contemplated that being based on disaster tolerance system, for IT, an energy exactly providing for computer information system Deal with the environment of various disasters.When computer system is lost by computer crime, computer virus, power down, network/communication Lose, hardware/software mistake and manual operation mistake etc. whens, will guarantee that (data are held for the safety of user data based on disaster tolerance system Calamity), further, moreover it is possible to continual application service (using disaster tolerance) be provided, realize data backup memory.
It can be seen from the above, in the disaster tolerance switching device provided in this embodiment based on virtual machine, by service plane net The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially Reliability.
5th embodiment
Referring to Fig. 5, Fig. 5 is the structural representation of the disaster tolerance switching device provided in an embodiment of the present invention based on virtual machine Figure, wherein the disaster tolerance switching device based on virtual machine includes: sending module 501, signal dispatcher module 502, instruction acquisition Module 503 and disaster tolerance switching module 504, wherein the function of above-mentioned each functional module can correspond to reference in the embodiment The sending module 401, signal dispatcher module 402, instruction acquisition module 403 and disaster tolerance switching module in fourth embodiment 404 associated description, does not repeat herein.
Preferably, the disaster tolerance switching device based on virtual machine can also include:
Determining module 505, if determining to detect service plane according to detection instruction for the signal dispatcher module 502 Gateway malunion it is normal, then before reporting operation system and sending a warning message, if it is detected that the gateway of service plane is continuous Obstructed number is connected more than preset threshold, it is determined that the gateway malunion of service plane is normal.
The disaster tolerance switching device based on virtual machine can also include:
Detection module 506, for the sending module 501 according to prefixed time interval to outside the gateway of service plane The interchanger enclosed is sent after detection instruction, however, it is determined that and go out and detects that the gateway of service plane connects normally according to detection instruction, Then detect whether current host has been switched to memory plane;
The disaster tolerance switching module 504, if being to have been switched to memory plane for detecting current host, controlling will be cut The host for changing to memory plane switches back on service plane;
Trigger module 507 controls for the disaster tolerance switching module 504 and switches back into the host for being switched to memory plane After on to service plane, triggers the sending module 501 and execute according to prefixed time interval to the friendship positioned at service plane side It changes planes the step of sending detection instruction;
The trigger module 507 directly triggers if being also used to detect current host does not have been switched to memory plane The sending module 501 executes the step for sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval Suddenly.
The trigger module 507, is also used to:
If it is determined that the signal dispatcher module 502 detects the gateway malunion of service plane according to detection instruction Often, then it after reporting operation system and sending a warning message, is determined if getting the operation system according to the warning information It has the interchanger instruction information that there is no issuing when failure, triggers the sending module 501 and execute according to preset time It is spaced the step of sending detection instruction to the interchanger for being located at service plane side.
The trigger module 507, is also used to:
All hosts are switched on memory plane by it according to the control instruction in the disaster tolerance switching module 504 Afterwards, it triggers the sending module 501 and executes to send to detect to the interchanger for being located at service plane side according to prefixed time interval and refer to The step of enabling.
It is understood that the part not being described in detail in this embodiment, may refer to above with respect to based on virtual machine The detailed description of disaster tolerance switching method, details are not described herein again.
It can be seen from the above, in the disaster tolerance switching device provided in this embodiment based on virtual machine, by service plane net The connection status of pass continues to test, if malunion is normal, reports operation system and alerts, operation system receives acknowledged alarm Switch status, if it is determined that interchanger breaks down, then all hosts are switched on memory plane by control;The present invention is real Storage can be handed over to for its flow when service plane breaks down and put down on the basis of not changing existing hardware facility by applying example On face, that is, it is multiplexed the business transmission that existing memory channel undertakes trouble time, reduces the wasting of resources, and can guarantee host The service that virtual machine on machine externally provides is not interrupted, and redundancy ability when virtual machine externally services and service are increased substantially Reliability.Further, host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improved The utilization rate and practicability of resource.
Sixth embodiment
The embodiment of the present invention also provides a kind of server, wherein can integrate the appearance based on virtual machine of the embodiment of the present invention Calamity switching device, the server can be based on running, as shown in fig. 6, it illustrates of the invention real on a reception terminal server The structural schematic diagram of server involved in example is applied, specifically:
The server may include one or processor 601, one or more meters of more than one processing core Memory 602, radio frequency (Radio Frequency, RF) circuit 603, power supply 604, input unit of calculation machine readable storage medium storing program for executing The components such as 605 and display unit 606.It will be understood by those skilled in the art that server architecture shown in Fig. 6 not structure The restriction of pairs of server may include perhaps combining certain components or different portions than illustrating more or fewer components Part arrangement.Wherein:
Processor 601 is the control centre of the server, utilizes each of various interfaces and the entire server of connection Part by running or execute the software program and/or module that are stored in memory 602, and calls and is stored in memory Data in 602, the various functions and processing data of execute server, to carry out integral monitoring to server.Optionally, locate Managing device 601 may include one or more processing cores;Preferably, processor 601 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 601.
Memory 602 can be used for storing software program and module, and processor 601 is stored in memory 602 by operation Software program and module, thereby executing various function application and data processing.Memory 602 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to server Deng.In addition, memory 602 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least One disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 602 can also include Memory Controller, to provide access of the processor 601 to memory 602.
During RF circuit 603 can be used for receiving and sending messages, signal is sended and received, and particularly, the downlink of base station is believed After breath receives, one or the processing of more than one processor 601 are transferred to;In addition, the data for being related to uplink are sent to base station.It is logical Often, RF circuit 603 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identity Module (SIM) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..This Outside, RF circuit 603 can also be communicated with network and other equipment by wireless communication.The wireless communication can be used any logical Beacon standard or agreement, including but not limited to global system for mobile communications (GSM, Global System of Mobile Communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division multiple access (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message clothes Be engaged in (SMS, Short Messaging Service) etc..
Server further includes the power supply 604 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 601 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 604 can also include one or more direct current or AC power source, recharging system, power failure The random components such as detection circuit, power adapter or inverter, power supply status indicator.
The server may also include input unit 605, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated Enter.
The server may also include display unit 606, the display unit 606 can be used for showing information input by user or Be supplied to the information of user and the various graphical user interface of server, these graphical user interface can by figure, text, Icon, video and any combination thereof are constituted.Display unit 608 may include display panel, optionally, can use liquid crystal display Device (LCD, Liquid Crystal Display), Organic Light Emitting Diode (OLED, Organic Light-Emitting ) etc. Diode forms configure display panel.
Specifically in the present embodiment, the processor 601 in server can be according to following instruction, by one or more The corresponding executable file of process of application program be loaded into memory 602, and run and be stored in by processor 601 Application program in reservoir 602, thus realize various functions, it is as follows:
Detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, to detect service plane Whether gateway connects normally;If it is determined that detecting that the gateway malunion of service plane is normal according to detection instruction, then fortune is reported Battalion's system concurrency send warning information;It obtains the operation system and determines that the interchanger breaks down according to the warning information When the control instruction that issues;Host is switched on memory plane according to the control instruction.
Preferably, the processor 601 can be also used for: if it is determined that detecting the net of service plane according to detection instruction Connection connect it is abnormal, then before reporting operation system and sending a warning message, if it is detected that the gateway of service plane is continuously coupled Obstructed number is more than preset threshold, it is determined that the gateway malunion of service plane is normal.
Preferably, the processor 601 can be also used for: according to prefixed time interval to the exchange positioned at service plane side Machine is sent after detection instruction, however, it is determined that is gone out and is detected that the gateway of service plane connects normally according to detection instruction, then detection is worked as Whether preceding host has been switched to memory plane;If so, the host for being switched to memory plane is switched back to business by control In plane, and trigger the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval;If it is not, Then directly trigger the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
Preferably, the processor 601 can be also used for, however, it is determined that go out to detect the net of service plane according to detection instruction Connection connect it is abnormal, then after reporting operation system and sending a warning message, if getting the operation system according to the announcement Alert information determines the interchanger instruction information that there is no issuing when failure, and triggering is according to prefixed time interval to being located at The interchanger of service plane side sends the step of detection instruction.
Preferably, the processor 601 can be also used for, flat host is switched to storage according to the control instruction After on face, according to prefixed time interval to be located at service plane side interchanger send detection instruction the step of.
It can be seen from the above, continuing to examine by the connection status to service plane gateway in server provided in this embodiment It surveys, if malunion is normal, reports operation system and alert, operation system receives acknowledged alarm switch status, if really Determine interchanger to break down, then all hosts are switched on memory plane by control;The embodiment of the present invention can not change On the basis of existing hardware facility, its flow is handed over on memory plane when service plane breaks down, that is, is multiplexed existing Memory channel undertake the business transmission of trouble time, reduce the wasting of resources, and can guarantee the virtual machine pair on host The service of outer offer is not interrupted, and redundancy ability and reliability of service when virtual machine externally services are increased substantially.Further , host can be switched back into service plane automatically when detecting interchanger and restoring and work normally, improve the utilization of resource Rate and practicability.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to the disaster tolerance switching method based on virtual machine, details are not described herein again.
The disaster tolerance switching device based on virtual machine provided in an embodiment of the present invention is for example computer, tablet computer, Mobile phone etc. with touch function, in the disaster tolerance switching device based on virtual machine and foregoing embodiments based on virtual machine Disaster tolerance switching method belong to same design, can be run in the disaster tolerance switching device based on virtual machine described based on void Either offer method, specific implementation process are detailed in the appearance based on virtual machine in the disaster tolerance switching method embodiment of quasi- machine Calamity switching method embodiment, details are not described herein again.
It should be noted that for the disaster tolerance switching method of the present invention based on virtual machine, this field common test Personnel are understood that all or part of the process of the disaster tolerance switching method based on virtual machine described in the realization embodiment of the present invention, and being can It is completed with controlling relevant hardware by computer program, the computer program can be stored in one and computer-readable deposit It in storage media, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, in the process of implementation It may include the process such as the embodiment of the disaster tolerance switching method based on virtual machine.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the disaster tolerance switching device based on virtual machine described in the embodiment of the present invention, each functional module be can integrate In a processing chip, it is also possible to modules and physically exists alone, can also be integrated in two or more modules In one module.Above-mentioned integrated module both can take the form of hardware realization, can also use the shape of software function module Formula is realized.If the integrated module is realized in the form of software function module and sells or use as independent product When, also can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
It is provided for the embodiments of the invention a kind of disaster tolerance switching method based on virtual machine above and device has carried out in detail Thin to introduce, used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of disaster tolerance switching method based on virtual machine characterized by comprising
Detection instruction is sent to the interchanger for being located at service plane side according to prefixed time interval, to detect service plane to outer net Whether gateway connects normally;
If it is determined that detecting that service plane is normal to the outer net gateway malunion according to detection instruction, then operation system is reported And it sends a warning message;
Obtain the control instruction issued when the operation system determines that the interchanger breaks down according to the warning information;
Host is switched on memory plane according to the control instruction, the external of virtual machine is led on the host after switching Letter link is the interchanger for passing through memory plane side by virtual machine, and reaches the outer net gateway.
2. the disaster tolerance switching method according to claim 1 based on virtual machine, which is characterized in that it is described if it is determined that according to Detection instruction detects that the gateway malunion of service plane is normal, then before reporting operation system and sending a warning message, also wraps It includes:
If it is detected that the continuously coupled obstructed number of the gateway of service plane is more than preset threshold, it is determined that the gateway of service plane Malunion is normal.
3. the disaster tolerance switching method according to claim 1 or 2 based on virtual machine, which is characterized in that described according to default Time interval is sent to the interchanger for being located at service plane side after detection instruction, further includes:
If it is determined that detecting that the gateway of service plane connects normally according to detection instruction, then detect whether current host has been cut Change to memory plane;
If so, control switches back to the host for being switched to memory plane on service plane, and trigger according to preset time It is spaced the step of sending detection instruction to the interchanger for being located at service plane side;
If it is not, then directly triggering the step for sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval Suddenly.
4. the disaster tolerance switching method according to claim 1 or 2 based on virtual machine, which is characterized in that it is described if it is determined that Detect that the gateway malunion of service plane is normal according to detection instruction, then after reporting operation system and sending a warning message, Further include:
Determine that there is no issuing when failure the interchanger according to the warning information if getting the operation system It indicates information, triggers the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
5. the disaster tolerance switching method according to claim 1 or 2 based on virtual machine, which is characterized in that described according to institute It states after host is switched on memory plane by control instruction, further includes:
The step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
6. a kind of disaster tolerance switching device based on virtual machine characterized by comprising
Sending module, for sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval, with detection Whether service plane connects normally to outer net gateway;
Signal dispatcher module, for if it is determined that detecting service plane to the outer net gateway malunion according to detection instruction Often, then it reports operation system and sends a warning message;
Instruction acquisition module determines that the interchanger breaks down according to the warning information for obtaining the operation system When the control instruction that issues;
Disaster tolerance switching module, for host to be switched to memory plane according to the control instruction, the host after switching The correspondence with foreign country link of virtual machine is the interchanger for passing through memory plane side by virtual machine on machine, and reaches the outer net gateway.
7. the disaster tolerance switching device according to claim 6 based on virtual machine, which is characterized in that described device further include:
Determining module, if determining the gateway connection for detecting service plane according to detection instruction for the signal dispatcher module It is abnormal, then before reporting operation system and sending a warning message, if it is detected that the gateway of service plane is continuously coupled obstructed Number is more than preset threshold, it is determined that the gateway malunion of service plane is normal.
8. the disaster tolerance switching device according to claim 6 or 7 based on virtual machine, which is characterized in that described device is also wrapped It includes:
Detection module, for the sending module according to prefixed time interval to the interchanger of the gateway periphery positioned at service plane After transmission detection instruction, however, it is determined that go out and detect that the gateway of service plane connects normally according to detection instruction, then detect currently Whether host has been switched to memory plane;
The disaster tolerance switching module is controlled to be switched to and be deposited if being to have been switched to memory plane for detecting current host The host of storage plane switches back on service plane;
Trigger module controls for the disaster tolerance switching module host for being switched to memory plane switching back to service plane After upper, trigger the sending module execution and refer to according to prefixed time interval to the interchanger transmission detection for being located at service plane side The step of enabling;
The trigger module directly triggers the hair if being also used to detect current host does not have been switched to memory plane Module is sent to execute the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
9. the disaster tolerance switching device according to claim 6 or 7 based on virtual machine, which is characterized in that the trigger module, It is also used to:
If it is determined that the signal dispatcher module detects that the gateway malunion of service plane is normal according to detection instruction, then report Operation system and after sending a warning message, determines the exchange according to the warning information if getting the operation system The machine instruction information that there is no issuing when failure triggers the sending module and executes according to prefixed time interval to positioned at business The interchanger of planar side sends the step of detection instruction.
10. the disaster tolerance switching device according to claim 6 or 7 based on virtual machine, which is characterized in that the trigger mode Block is also used to:
After all hosts are switched on memory plane by the disaster tolerance switching module according to the control instruction, institute is triggered It states sending module and executes the step of sending detection instruction to the interchanger for being located at service plane side according to prefixed time interval.
CN201510110301.4A 2015-03-13 2015-03-13 A kind of disaster tolerance switching method and device based on virtual machine Active CN106034037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510110301.4A CN106034037B (en) 2015-03-13 2015-03-13 A kind of disaster tolerance switching method and device based on virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510110301.4A CN106034037B (en) 2015-03-13 2015-03-13 A kind of disaster tolerance switching method and device based on virtual machine

Publications (2)

Publication Number Publication Date
CN106034037A CN106034037A (en) 2016-10-19
CN106034037B true CN106034037B (en) 2019-04-16

Family

ID=57150637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510110301.4A Active CN106034037B (en) 2015-03-13 2015-03-13 A kind of disaster tolerance switching method and device based on virtual machine

Country Status (1)

Country Link
CN (1) CN106034037B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168830A (en) * 2017-05-18 2017-09-15 郑州云海信息技术有限公司 A kind of disaster tolerance system based on virtual platform, method
CN107919980B (en) * 2017-10-30 2020-02-21 贵州白山云科技股份有限公司 Evaluation method and device for clustered system
CN110913028B (en) * 2018-09-14 2022-06-14 阿里巴巴集团控股有限公司 Method, device and system for processing virtual address
CN112769653B (en) * 2021-01-18 2022-07-12 苏州浪潮智能科技有限公司 Network detection and switching method, system and medium based on network port binding

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647288A (en) * 2011-02-16 2012-08-22 中兴通讯股份有限公司 VM (Virtual Machine) data access protection method and system
CN102662751A (en) * 2012-03-30 2012-09-12 浪潮电子信息产业股份有限公司 Method for improving availability of virtual machine system based on thermomigration
CN102761566A (en) * 2011-04-26 2012-10-31 国际商业机器公司 Virtual machine migrating method and device
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6079426B2 (en) * 2013-05-16 2017-02-15 富士通株式会社 Information processing system, method, apparatus, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647288A (en) * 2011-02-16 2012-08-22 中兴通讯股份有限公司 VM (Virtual Machine) data access protection method and system
CN102761566A (en) * 2011-04-26 2012-10-31 国际商业机器公司 Virtual machine migrating method and device
CN102662751A (en) * 2012-03-30 2012-09-12 浪潮电子信息产业股份有限公司 Method for improving availability of virtual machine system based on thermomigration
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine

Also Published As

Publication number Publication date
CN106034037A (en) 2016-10-19

Similar Documents

Publication Publication Date Title
EP3745645B1 (en) Method, device, and system for guaranteeing service level agreement of application
US10484265B2 (en) Dynamic update of virtual network topology
CN110557777A (en) Network connection control method, terminal and storage medium
CN108040108A (en) Communication handover method, device, coordination service device and readable storage medium storing program for executing
CN106034037B (en) A kind of disaster tolerance switching method and device based on virtual machine
CN106657330B (en) Migration of subscriber data method and user data backup method, apparatus and system
US11003516B2 (en) Geographical redundancy and dynamic scaling for virtual network functions
KR20200028882A (en) Configuration measurement methods and related products
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
US11653194B2 (en) Techniques to provide resiliency and overload control for access and mobility management functions
CN105916100A (en) Heartbeat packet agency method, device and communication system
CN109639488B (en) Multi-extranet shunt acceleration method and system
CN106034320A (en) Virtual SIM card switching method and apparatus
CN104703165A (en) Wireless access processing method, retransmitting equipment and network controller
CN103428848B (en) Terminal registration method and terminal unit
US9503317B2 (en) Method and device for processing communication path
EP3956768A1 (en) Power management of movable edge computing servers
CN104426816B (en) A kind of virtual machine communication method and device
CN109343944A (en) Data processing method, device, terminal and the storage medium of eSIM card
CN108270839A (en) Access frequency control system and method
CN107948002B (en) AP access control method and device
CN110213069B (en) Data forwarding method and device, disaster recovery system and storage medium
CN111193636A (en) Method and device for testing availability of single machine
CN102821415B (en) Fault detecting and processing method and fault detecting and processing device
US8644179B2 (en) Control system, control device, composite switch device, and control method

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190813

Address after: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.