CN109039747B - Dual-computer hot standby control method and device for DPDK service - Google Patents
Dual-computer hot standby control method and device for DPDK service Download PDFInfo
- Publication number
- CN109039747B CN109039747B CN201810900997.4A CN201810900997A CN109039747B CN 109039747 B CN109039747 B CN 109039747B CN 201810900997 A CN201810900997 A CN 201810900997A CN 109039747 B CN109039747 B CN 109039747B
- Authority
- CN
- China
- Prior art keywords
- equipment
- standby
- main
- current
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a DPDK service dual-computer hot standby control method and device, including, when the current equipment is the main equipment, multicast according to the preset time period and send the notice message, when the current equipment is the standby equipment, receive the notice message sent by the main equipment, when the VIP address in the notice message is the same as the self VIP address, the standby equipment judges whether the priority in the notice message is greater than the self priority, wherein the VIP is the IP address common to the main equipment and the standby equipment, if not, the standby equipment switches the self role into the main equipment role and executes the main equipment business work. The method and the device directly process the data in the DPDK process after receiving the data from the network port, reduce the related processing processes from a kernel protocol stack, a kernel to user mode cache and user mode receiving processing, simplify the configuration path and greatly reduce the fault convergence time of the DPDK service.
Description
Technical Field
The present invention relates to a dual-computer hot standby technology, and more particularly, to a dual-computer hot standby control method and apparatus for DPDK service.
Background
The dual-server hot standby refers to hot standby based on two servers in a high-availability system. In the process of dual-computer hot standby work, when the main device in the working state breaks down, the other standby device can take over the service in time, and the continuous provision of the service is ensured.
In the control implementation of dual-computer hot standby of a DPDK, one mainstream implementation at present is DPDK + keepalived, where the DPDK is responsible for service processing, and the keepalived is responsible for the selection, fault detection, switching, etc. of roles between a main computer and a standby computer. However, since the keepalived is a module operating in the linux user control, usually a message received from the network card arrives at the keepalived process, and the message needs to be sequentially received by the network card, processed by the DPDK process and forwarded to the kernel, processed by the kernel protocol stack, cached from the kernel to the user mode queue, and received by the socket, and this process has a complicated path and may result in a long fault convergence time.
Disclosure of Invention
In view of this, the present invention provides a dual-device hot standby control method and apparatus for DPDK service, so as to overcome the problems of complex dual-device hot standby implementation path and long fault convergence time in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a dual-computer hot standby control method for DPDK service comprises the following steps:
determining that the current equipment is main equipment or standby equipment;
when the current equipment is the main equipment, multicast sending an announcement message according to a preset time period;
when the current equipment is the standby equipment, receiving an announcement message sent by the main equipment;
when the VIP address in the notification message is the same as the VIP address of the standby device, the standby device judges whether the priority in the notification message is higher than the priority of the standby device, wherein the VIP is an IP address shared by the main device and the standby device;
if not, the standby device switches the role of the standby device into the role of the main device and executes the service work of the main device.
Optionally, the current device is configured with the number of consecutive unreceived master device advertisement messages, and the method further includes:
and after receiving the notification message sent by the main equipment, the standby equipment resets the number of the continuous unreceived main equipment notification messages to 0.
Optionally, the method further includes:
judging whether the number of the continuously unreceived main equipment notification messages is larger than or equal to a preset value or not;
if yes, the standby equipment switches the role of the standby equipment into the role of the main equipment and executes the service work of the main equipment.
Optionally, the determining whether the number of the consecutive unreceived main device notification messages is greater than or equal to a preset value includes:
and judging whether the time for continuously not receiving the main equipment notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
Optionally, the method further includes:
during the starting period of the current equipment, if the notification message is not received in N preset time periods, the equipment sets the self role as the main equipment role and executes the main equipment service work.
A dual-computer hot standby control device for DPDK service comprises:
the device determining module is used for determining that the current device is a main device or a standby device;
the message sending module is used for sending an announcement message in a multicast mode according to a preset time period when the current equipment is the main equipment;
the message receiving module is used for receiving an announcement message sent by the main equipment when the current equipment is the standby equipment;
a priority judging module, configured to, when a current device is a standby device, judge whether a VIP address in the advertisement message is the same as a VIP address of the current device, where the VIP is an IP address common to a main device and the standby device, and the priority in the advertisement message is greater than the priority of the current device;
and the role switching module is used for switching the role of the current equipment into the role of the main equipment and executing the service work of the main equipment when the current equipment is the standby equipment and the judgment result of the standby equipment judgment module is negative.
Optionally, the method further includes:
the configuration module is used for configuring the number of continuous unreceived main equipment notification messages;
and the quantity processing module is used for resetting the number of the continuous unreceived main equipment notification messages to 0 after receiving the notification messages sent by the main equipment when the current equipment is the standby equipment.
Optionally, the method further includes:
the numerical value judging module is used for judging whether the number of the continuous unreceived main equipment notification messages is larger than or equal to a preset numerical value or not when the current equipment is standby equipment;
the role switching module is further configured to switch the current device role to a master device role and execute a master device service operation when the determination result of the numerical value determination module is yes.
Optionally, the numerical judgment module is specifically configured to: when the current device is a standby device, judging whether the time of continuously not receiving the main device notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
Optionally, the method further includes:
and the starting judgment module is used for setting the self role as the main equipment role and executing the main equipment service work if the notification message is not received in N preset time periods during the starting period of the current equipment.
It can be known from the above technical solutions that, compared with the prior art, the embodiment of the present invention discloses a dual-computer hot standby control method and apparatus for DPDK service, including that when a current device is a master device, an announcement message is multicast-sent according to a preset time period, when the current device is a slave device, the announcement message sent by the master device is received, and when a VIP address in the announcement message is the same as a VIP address of the slave device, the slave device determines whether a priority in the announcement message is greater than a priority of the slave device, where the VIP is an IP address common to the master device and the slave device, and if not, the slave device switches a role of the slave device into a role of the master device and executes a service operation of the master device. The method and the device directly process the data in the DPDK process after receiving the data from the network port, reduce the related processing processes from a kernel protocol stack, a kernel to user mode cache and user mode receiving processing, simplify the configuration path and greatly reduce the fault convergence time of the DPDK service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a dual-computer hot standby control method for DPDK service according to an embodiment of the present invention;
fig. 2 is a flowchart of another dual-computer hot standby control method for DPDK service according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a dual-computer hot standby control device for DPDK service according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another dual-computer hot standby control device for DPDK service according to the present invention.
Detailed Description
For the sake of reference and clarity, the descriptions, abbreviations or abbreviations of the technical terms used hereinafter are summarized as follows:
DPDK: data Plane Development Kit (Data Plane Development Kit).
Keepalived: the method is an independent process realized in a user mode, realizes a vrrp protocol, and is also one of popular high-availability component modules.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a dual-computer hot standby control method for DPDK service according to an embodiment of the present invention, and referring to fig. 1, the dual-computer hot standby control method for DPDK service may include:
step 101: and determining that the current equipment is main equipment or standby equipment, if the current equipment is the main equipment, entering step 102, and if the current equipment is the standby equipment, entering step 103.
The current device firstly determines whether the current device is a main device or a standby device, and after the current device is determined, the current device can execute relevant operations according with the role of the current device according to the role of the current device. In this embodiment, the determining that the current device is the master device or the standby device may include: and determining that the current equipment is the main equipment or the standby equipment according to the role information of the current equipment.
Step 102: and multicast sending the notification message according to a preset time period.
When it is determined that the current device is the master device, the current device, that is, the master device, needs to multicast and send a notification message according to a preset time period. The advertisement message may include, but is not limited to, a VIP address and a priority level.
Among these, with respect to VIP: when the dual-computer hot-standby scheme is used for networking, in the dual-computer hot-standby scheme, the main device and the standby device are both independent routers and have own IP addresses, but the whole router is externally presented as a virtual router and externally presented with virtual IP addresses, and the virtual IP addresses are different from the IP addresses of the main device and the standby device, and are referred to as VIPs for short. In actual operation, the virtual router is actually operated by the host device.
The priority level is a priority level of a device that sends the notification packet, that is, a priority level of the master device in this embodiment.
Step 103: and receiving an announcement message sent by the main equipment.
When the current device is determined to be the standby device, the current device, that is, the standby device, may receive the notification message multicast-sent by the main device when the main device is not faulty.
Step 104: when the VIP address in the notification message is the same as the VIP address of the standby device, the standby device determines whether the priority in the notification message is greater than the priority of the standby device, and if not, the process proceeds to step 105.
As noted above, the VIP is a virtual IP address common to both the primary and backup devices.
After receiving the notification message sent by the main device, the standby device may compare the VIP address in the notification message with its own VIP address to see whether the VIP addresses are the same or not, and if not, may not perform any processing. If the two messages are the same, the received notification message is sent by the master device, and whether subsequent related operations are executed or not needs to be judged according to the information in the notification message.
Step 105: and the standby equipment switches the role of the standby equipment into the role of the main equipment and executes the service work of the main equipment.
And under the condition that the priority of the standby equipment is greater than the priority in the notification message, namely the priority of the main equipment, the standby equipment switches the role of the standby equipment to be set as the role of the main equipment and starts to execute the service work of the main equipment.
After the standby equipment is switched to the main equipment, the notification message is multicast-sent according to the preset time period, and after the original main equipment receives the notification message sent by the new main equipment, the original main equipment judges that the priority of the new main equipment is higher than that of the original main equipment, the role of the original main equipment is correspondingly switched to be the role of the standby equipment, and the service processing is closed.
In this embodiment, the dual-computer hot standby control method for the DPDK service directly processes in the DPDK process after receiving data from the internet access, and compared with the prior art, reduces the related processing procedures from the kernel protocol stack, the kernel to the user mode cache, and the user mode receiving process, not only simplifies the configuration path, but also greatly reduces the fault convergence time of the DPDK service.
On the basis of the above embodiments disclosed in the present invention, fig. 2 discloses another flowchart of a dual-computer hot-standby control method for DPDK service, and as shown in fig. 2, the dual-computer hot-standby control method for DPDK service may include:
step 201: and determining that the current equipment is the main equipment or the standby equipment, if the current equipment is the main equipment, entering the step 202, and if the current equipment is the standby equipment, entering the step 203.
Step 202: and multicast sending the notification message according to a preset time period.
Step 203: and receiving an announcement message sent by the main equipment.
Step 204: when the VIP address in the notification message is the same as the VIP address of the standby device, the standby device determines whether the priority in the notification message is higher than the priority of the standby device, and if not, the process proceeds to step 205.
Wherein the VIP is an IP address common to the primary device and the backup device.
Step 205: and the standby equipment switches the role of the standby equipment into the role of the main equipment and executes the service work of the main equipment.
Step 206: and resetting the number of the continuous unreceived main equipment notification messages to be 0.
In this embodiment, the number of consecutive unreceived main device advertisement messages needs to be configured in advance in the device, the initial value of the number of consecutive unreceived main device advertisement messages is 0, and the number of consecutive unreceived main device advertisement messages is reset to 0 by the standby device each time after receiving an advertisement message sent by the main device.
In addition, in this embodiment, a time interval for the device to send or receive the notification message may also be preconfigured, that is, a preset time period, and each time the device does not receive the notification message sent by the master device in the preset time period, the number of the consecutive unreceived master device notification messages may be increased by 1.
Step 207: and judging whether the number of the continuously unreceived main device notification messages is larger than or equal to a preset value, if so, entering step 205.
The determining whether the number of the consecutive unreceived master device advertisement messages is greater than or equal to a preset value may specifically include: and judging whether the time for continuously not receiving the main equipment notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
If the standby device does not receive the notification message sent by the main device within a plurality of continuous preset time periods, it indicates that the main device may have a fault or the main device does not exist currently, and in this case, the standby device switches its role to the role of the main device and executes the service work of the main device to provide normal service.
In this embodiment, the number of consecutive unreceived main device notification messages is preset in the device, and when the number of consecutive unreceived main device notification messages satisfies a certain condition, it is determined that the main device fails or does not exist, and the standby device switches its role to the main device to provide a normal service.
In other embodiments, the dual-computer hot standby control method for the DPDK service may further include: during the starting period of the current equipment, if the notification message is not received in N preset time periods, the equipment sets the self role as the main equipment role and executes the main equipment service work. In the above case, it may be considered that the master device does not exist currently, and the current device may determine itself as the master device and provide a normal service.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present invention is not limited by the illustrated ordering of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
The method is described in detail in the embodiments disclosed above, and the method of the present invention can be implemented by various types of apparatuses, so that the present invention also discloses an apparatus, and the following detailed description will be given of specific embodiments.
Fig. 3 is a schematic structural diagram of a dual-device hot-standby control device for DPDK service according to an embodiment of the present invention, and referring to fig. 3, the dual-device hot-standby control device 30 for DPDK service may include:
a device determining module 301, configured to determine that a current device is a master device or a standby device.
The current device firstly determines whether the current device is a main device or a standby device, and after the current device is determined, the current device can execute relevant operations according with the role of the current device according to the role of the current device. In this embodiment, the determining that the current device is the master device or the standby device may include: and determining that the current equipment is the main equipment or the standby equipment according to the role information of the current equipment.
A message sending module 302, configured to send an announcement message in a multicast manner according to a preset time period when the current device is a master device.
When it is determined that the current device is the master device, the current device, that is, the master device, needs to multicast and send a notification message according to a preset time period. The advertisement message may include, but is not limited to, a VIP address and a priority level.
Among these, with respect to VIP: when the dual-computer hot-standby scheme is used for networking, in the dual-computer hot-standby scheme, the main device and the standby device are both independent routers and have own IP addresses, but the whole router is externally presented as a virtual router and externally presented with virtual IP addresses, and the virtual IP addresses are different from the IP addresses of the main device and the standby device, and are referred to as VIPs for short. In actual operation, the virtual router is actually operated by the host device.
The priority level is a priority level of a device that sends the notification packet, that is, a priority level of the master device in this embodiment.
The message receiving module 303 is configured to receive an announcement message sent by the master device when the current device is the standby device.
When the current device is determined to be the standby device, the current device, that is, the standby device, may receive the notification message multicast-sent by the main device when the main device is not faulty.
A priority determining module 304, configured to determine, when the current device is a standby device, whether the priority in the advertisement message is greater than the priority of the current device when the VIP address in the advertisement message is the same as the VIP address of the current device.
Wherein the VIP is an IP address common to the primary device and the backup device.
After receiving the notification message sent by the main device, the standby device may compare the VIP address in the notification message with its own VIP address to see whether the VIP addresses are the same or not, and if not, may not perform any processing. If the two messages are the same, the received notification message is sent by the master device, and whether subsequent related operations are executed or not needs to be judged according to the information in the notification message.
A role switching module 305, configured to switch the role of the current device to the role of the main device and execute a service operation of the main device when the current device is the standby device and the determination result of the standby device determining module is negative.
And under the condition that the priority of the standby equipment is greater than the priority in the notification message, namely the priority of the main equipment, the standby equipment switches the role of the standby equipment to be set as the role of the main equipment and starts to execute the service work of the main equipment.
After the standby equipment is switched to the main equipment, the notification message is multicast-sent according to the preset time period, and after the original main equipment receives the notification message sent by the new main equipment, the original main equipment judges that the priority of the new main equipment is higher than that of the original main equipment, the role of the original main equipment is correspondingly switched to be the role of the standby equipment, and the service processing is closed.
In this embodiment, the dual-computer hot-standby control device for the DPDK service directly processes in the DPDK process after receiving data from the internet access, which reduces the processes related to the kernel protocol stack, the kernel-to-user mode cache, and the user mode receiving process, compared with the prior art, not only simplifies the configuration path, but also greatly reduces the fault convergence time of the DPDK service.
Fig. 4 is a schematic structural diagram of another dual-device hot-standby control device for DPDK service disclosed in the present invention, and as shown in fig. 4, the dual-device hot-standby control device 40 for DPDK service may include:
a device determining module 301, configured to determine that a current device is a master device or a standby device.
A message sending module 302, configured to send an announcement message in a multicast manner according to a preset time period when the current device is a master device.
The message receiving module 303 is configured to receive an announcement message sent by the master device when the current device is the standby device.
A priority determining module 304, configured to determine, when the current device is a standby device, whether the priority in the advertisement message is greater than the priority of the current device when the VIP address in the advertisement message is the same as the VIP address of the current device.
Wherein the VIP is an IP address common to the primary device and the backup device.
A role switching module 305, configured to switch the role of the current device to the role of the main device and execute a service operation of the main device when the current device is the standby device and the determination result of the standby device determining module is negative.
The configuration module 401 is configured to configure the number of consecutive unreceived master device advertisement messages.
In this embodiment, the number of consecutive unreceived main device advertisement messages needs to be configured in advance in the device, the initial value of the number of consecutive unreceived main device advertisement messages is 0, and the number of consecutive unreceived main device advertisement messages is reset to 0 by the standby device each time after receiving an advertisement message sent by the main device.
In addition, in this embodiment, a time interval for the device to send or receive the notification message may also be preconfigured, that is, a preset time period, and each time the device does not receive the notification message sent by the master device in the preset time period, the number of the consecutive unreceived master device notification messages may be increased by 1.
The quantity processing module 402 is configured to, when the current device is a standby device, reset the number of consecutive unreceived host device advertisement messages to 0 after receiving an advertisement message sent by a host device.
A value determining module 403, configured to determine, when the current device is a standby device, whether the number of consecutive unreceived main device advertisement messages is greater than or equal to a preset value.
The numerical value determining module 403 may specifically be configured to: when the current device is a standby device, judging whether the time of continuously not receiving the main device notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
The role switching module 305 is further configured to switch the current device role to a master device role and execute a master device service operation when the determination result of the numerical value determining module is yes.
If the standby device does not receive the notification message sent by the main device within a plurality of continuous preset time periods, it indicates that the main device may have a fault or the main device does not exist currently, and in this case, the standby device switches its role to the role of the main device and executes the service work of the main device to provide normal service.
In this embodiment, the number of consecutive unreceived main device notification messages is preset in the device, and when the number of consecutive unreceived main device notification messages satisfies a certain condition, it is determined that the main device fails or does not exist, and the standby device switches its role to the main device to provide a normal service.
In other embodiments, the dual-computer hot-standby control apparatus for DPDK service may further include a start judgment module, configured to set a role of the device itself as a role of the master device and execute a service operation of the master device if no notification message is received in N preset time periods during the current device start. In the above case, it may be considered that the master device does not exist currently, and the current device may determine itself as the master device and provide a normal service.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A dual-computer hot standby control method of DPDK service is characterized by comprising the following steps:
determining that the current equipment is main equipment or standby equipment;
when the current equipment is the main equipment, multicast sending an announcement message according to a preset time period;
when the current equipment is the standby equipment, receiving an announcement message sent by the main equipment;
when the VIP address in the notification message is the same as the VIP address of the standby device, the standby device judges whether the priority in the notification message is higher than the priority of the standby device, wherein the VIP is an IP address shared by the main device and the standby device;
if not, the standby device switches the role of the standby device into the role of the main device and executes the service work of the main device.
2. The dual-computer hot-standby control method for DPDK service of claim 1, wherein the current device is configured with the number of consecutive unreceived main device advertisement packets, further comprising:
and after receiving the notification message sent by the main equipment, the standby equipment resets the number of the continuous unreceived main equipment notification messages to 0.
3. The dual-computer hot-standby control method for the DPDK service of claim 2, further comprising:
judging whether the number of the continuously unreceived main equipment notification messages is larger than or equal to a preset value or not;
if yes, the standby equipment switches the role of the standby equipment into the role of the main equipment and executes the service work of the main equipment.
4. The dual-computer hot-standby control method for the DPDK service according to claim 3, wherein the determining whether the number of the consecutive unreceived main device advertisement messages is greater than or equal to a preset value includes:
and judging whether the time for continuously not receiving the main equipment notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
5. The dual-computer hot-standby control method for the DPDK service of claim 1, further comprising:
during the starting period of the current equipment, if the notification message is not received in N preset time periods, the equipment sets the self role as the main equipment role and executes the main equipment service work.
6. A dual-computer hot standby control device for DPDK service is characterized by comprising:
the device determining module is used for determining that the current device is a main device or a standby device;
the message sending module is used for sending an announcement message in a multicast mode according to a preset time period when the current equipment is the main equipment;
the message receiving module is used for receiving an announcement message sent by the main equipment when the current equipment is the standby equipment;
a priority judging module, configured to, when a current device is a standby device, judge whether a VIP address in the advertisement message is the same as a VIP address of the current device, where the VIP is an IP address common to a main device and the standby device, and the priority in the advertisement message is greater than the priority of the current device;
and the role switching module is used for switching the role of the current equipment into the role of the main equipment and executing the service work of the main equipment when the current equipment is the standby equipment and the judgment result of the standby equipment judgment module is negative.
7. The dual-computer hot-standby control device for DPDK service of claim 6, further comprising:
the configuration module is used for configuring the number of continuous unreceived main equipment notification messages;
and the quantity processing module is used for resetting the number of the continuous unreceived main equipment notification messages to 0 after receiving the notification messages sent by the main equipment when the current equipment is the standby equipment.
8. The dual-computer hot-standby control device for DPDK service of claim 7, further comprising:
the numerical value judging module is used for judging whether the number of the continuous unreceived main equipment notification messages is larger than or equal to a preset numerical value or not when the current equipment is standby equipment;
the role switching module is further configured to switch the current device role to a master device role and execute a master device service operation when the determination result of the numerical value determination module is yes.
9. The dual-computer hot-standby control device for DPDK service of claim 8, wherein the numerical value determining module is specifically configured to: when the current device is a standby device, judging whether the time of continuously not receiving the main device notification message is more than or equal to N preset time periods, wherein N is equal to the preset value.
10. The dual-computer hot-standby control device for DPDK service of claim 6, further comprising:
and the starting judgment module is used for setting the self role as the main equipment role and executing the main equipment service work if the notification message is not received in N preset time periods during the starting period of the current equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810900997.4A CN109039747B (en) | 2018-08-09 | 2018-08-09 | Dual-computer hot standby control method and device for DPDK service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810900997.4A CN109039747B (en) | 2018-08-09 | 2018-08-09 | Dual-computer hot standby control method and device for DPDK service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109039747A CN109039747A (en) | 2018-12-18 |
CN109039747B true CN109039747B (en) | 2021-06-11 |
Family
ID=64633279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810900997.4A Active CN109039747B (en) | 2018-08-09 | 2018-08-09 | Dual-computer hot standby control method and device for DPDK service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109039747B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112600704A (en) * | 2020-12-14 | 2021-04-02 | 北京神经元网络技术有限公司 | High-speed industrial bus system, method and device for switching control nodes of high-speed industrial bus system and storage medium |
CN114338275B (en) * | 2021-12-31 | 2023-09-19 | 北京神经元网络技术有限公司 | AUTBUS bus network node management method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929324A (en) * | 2006-10-17 | 2007-03-14 | 杭州华为三康技术有限公司 | Master-salve switching method and system for mutual backup device |
CN101005452A (en) * | 2006-12-22 | 2007-07-25 | 华为技术有限公司 | Method and system for communication between IP devices |
CN105939215A (en) * | 2016-03-10 | 2016-09-14 | 杭州迪普科技有限公司 | Method and device for switching state of VRRP backup group |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100492984C (en) * | 2003-10-14 | 2009-05-27 | 华为技术有限公司 | Method for realizing data transfer backup through address interpretation protocol messages |
CN101309167B (en) * | 2008-06-27 | 2011-04-20 | 华中科技大学 | Disaster allowable system and method based on cluster backup |
CN103346923A (en) * | 2013-07-30 | 2013-10-09 | 曙光信息产业(北京)有限公司 | Management method and management device for double-unit load balancing equipment |
CN103546315B (en) * | 2013-10-11 | 2016-09-28 | 北京星网锐捷网络技术有限公司 | The standby system of a kind of Dynamic Host Configuration Protocol server, method and apparatus |
CN103744809B (en) * | 2013-12-23 | 2016-10-05 | 天泽信息产业股份有限公司 | Vehicle information management system double hot standby method based on VRRP |
CN105634848B (en) * | 2014-11-04 | 2019-06-28 | 中国移动通信集团四川有限公司 | A kind of virtual router monitoring method and device |
-
2018
- 2018-08-09 CN CN201810900997.4A patent/CN109039747B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1929324A (en) * | 2006-10-17 | 2007-03-14 | 杭州华为三康技术有限公司 | Master-salve switching method and system for mutual backup device |
CN101005452A (en) * | 2006-12-22 | 2007-07-25 | 华为技术有限公司 | Method and system for communication between IP devices |
CN105939215A (en) * | 2016-03-10 | 2016-09-14 | 杭州迪普科技有限公司 | Method and device for switching state of VRRP backup group |
Non-Patent Citations (1)
Title |
---|
"基于DPDK的DNS智能备份系统设计与实现";刘红雨;《中国优秀硕士学位论文全文数据库信息科技辑》;20170315 * |
Also Published As
Publication number | Publication date |
---|---|
CN109039747A (en) | 2018-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9219641B2 (en) | Performing failover in a redundancy group | |
US7929420B2 (en) | Method and apparatus for learning VRRP backup routers | |
US20220334935A1 (en) | Hot standby method, apparatus, and system | |
CN109344014B (en) | Main/standby switching method and device and communication equipment | |
CN107919994B (en) | Method and server for realizing hot standby of network service dual-computer | |
EP1697843B1 (en) | System and method for managing protocol network failures in a cluster system | |
US10148741B2 (en) | Multi-homing load balancing system | |
US10417014B2 (en) | System service reloading method and apparatus | |
US10367680B2 (en) | Network relay apparatus, gateway redundancy system, program, and redundancy method | |
CN107911291A (en) | VRRP routers switching method, router, VRRP active-standby switch system and storage medium | |
CN109039747B (en) | Dual-computer hot standby control method and device for DPDK service | |
CN113169895A (en) | N +1 redundancy for virtualization services with low latency failover | |
CN107241208B (en) | Message forwarding method, first switch and related system | |
CN108933818B (en) | Communication method and device | |
CN111030877A (en) | Main/standby equipment switching method and device | |
CN106716870B (en) | Local packet switching at satellite device | |
CN110022236B (en) | Message forwarding method and device | |
CN113839862A (en) | Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors | |
WO2017000625A1 (en) | Dynamic host configuration protocol (dhcp) server management method and apparatus | |
CN110769019B (en) | Session processing method, device, system, storage medium and computing equipment | |
CN108234358B (en) | Multicast message transmission method, device and machine readable storage medium | |
US20150334019A1 (en) | Routing control method and non-transitory computer-readable recording medium storing routing control program | |
JP2017038218A (en) | Communication system and setting method | |
CN107528929B (en) | ARP (Address resolution protocol) entry processing method and device | |
US20230179566A1 (en) | Method and Device for Switching Internet Access mode of Gateway Device |
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 |