CN109039747A - The two-node cluster hot backup control method and device of DPDK service - Google Patents
The two-node cluster hot backup control method and device of DPDK service Download PDFInfo
- Publication number
- CN109039747A CN109039747A CN201810900997.4A CN201810900997A CN109039747A CN 109039747 A CN109039747 A CN 109039747A CN 201810900997 A CN201810900997 A CN 201810900997A CN 109039747 A CN109039747 A CN 109039747A
- Authority
- CN
- China
- Prior art keywords
- equipment
- main equipment
- notification packet
- standby
- current device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
Abstract
This application discloses a kind of two-node cluster hot backup control method and device of DPDK service, including, when current device is main equipment, notification packet is sent according to preset period of time multicast, when current device is standby equipment, receive the notification packet that main equipment is sent, when the address VIP in the notification packet is identical as itself address VIP, standby equipment judges whether the priority in the notification packet is greater than own priority, wherein the VIP is main equipment and the standby common IP address of equipment, if not, self-role is switched to master role by the standby equipment, and execute main equipment vocational work.This method and device are directly handled in DPDK process after receiving data from network interface, reduce kernel protocol stack, kernel to User space caches, User space receives the correlation procedure handled, configuration path is not only simplified, and the convergence time after malfunction occurred of DPDK service can be greatly reduced.
Description
Technical field
The present invention relates to double-machine standby technologies, and more specifically, it relates to a kind of two-node cluster hot backup controlling parties of DPDK service
Method and device.
Background technique
Two-node cluster hot backup is refered in particular to based on the hot standby of the two-server in high-availability system.In the two-node cluster hot backup course of work,
When in running order main equipment breaks down, another stand-by equipment can adapter tube business in time, guarantee holding for service
It is continuous to provide.
In the control of DPDK two-node cluster hot backup is realized, a kind of realization of mainstream is DPDK+keepalived at present, wherein
DPDK is responsible for business processing, and keepalived is responsible for the work such as election, fault detection, switching of role between active and standby machine.But by
In keepalived be the module for operating in linux user control, usual message received from network interface card reach keepalived into
Journey needs successively to receive by network interface card, DPDK process is processed and forwarded to kernel, kernel protocol stack processing, kernel to User space
Queue caching, keepalived are received by socket, this process path complexity, and when will lead to longer failure convergence
Between.
Summary of the invention
In view of this, the present invention provides a kind of two-node cluster hot backup control method and device of DPDK service, it is existing to overcome
Two-node cluster hot backup realizing route complexity and the long problem of convergence time after malfunction occurred in technology.
To achieve the above object, the invention provides the following technical scheme:
A kind of two-node cluster hot backup control method of DPDK service, comprising:
Determine that current device is main equipment or standby equipment;
When current device is main equipment, notification packet is sent according to preset period of time multicast;
When current device is standby equipment, the notification packet that main equipment is sent is received;
When the address VIP in the notification packet is identical as itself address VIP, standby equipment judges in the notification packet
Priority whether be greater than own priority, wherein the VIP is main equipment and the standby common IP address of equipment;
If it is not, self-role is switched to master role by the standby equipment, and execute main equipment vocational work.
Optionally, current device is configured with the number for not receiving main equipment notification packet continuously, further includes:
Standby equipment does not receive main equipment notification packet continuously after the notification packet for receiving main equipment transmission, by described
Number resets to 0.
Optionally, further includes:
Judge whether the number for not receiving main equipment notification packet continuously is greater than or equal to default value;
If so, self-role is switched to master role by standby equipment, and execute main equipment vocational work.
Optionally, described to judge whether the number for not receiving main equipment notification packet continuously is greater than or equal to present count
Value, comprising:
Whether the time that judgement does not receive main equipment notification packet continuously is greater than or equal to N number of preset period of time, the N
Equal to the default value.
Optionally, further includes:
During current device starting, if not receiving notification packet in N number of preset period of time, the equipment will
Self-role is set as master role, and executes main equipment vocational work.
A kind of two-node cluster hot backup control device of DPDK service, comprising:
Equipment determining module, for determining that current device is main equipment or standby equipment;
Message sending module, for sending notice report according to preset period of time multicast when current device is main equipment
Text;
Message receiving module, for receiving the notification packet that main equipment is sent when current device is standby equipment;
Priority judgment module, for when current device is standby equipment, the address VIP in the notification packet with from
When the address body VIP is identical, judge whether the priority in the notification packet is greater than own priority, wherein based on the VIP
Equipment and the standby common IP address of equipment;
Role switching module is used for when current device is standby equipment, in the judging result of the standby equipment judgment module
It is master role by the current device role switching, and execute main equipment vocational work when being no.
Optionally, further includes:
Configuration module, for configuring the number for not receiving main equipment notification packet continuously;
Quantity processing module is used for when current device is standby equipment, after the notification packet for receiving main equipment transmission,
The number for not receiving main equipment notification packet continuously is reset to 0.
Optionally, further includes:
Numerical value judgment module, for when current device is standby equipment, judging that the main equipment that do not receive continuously notices report
Whether the number of text is greater than or equal to default value;
Then the role switching module is also used to when the judging result of the numerical value judgment module is to be, will be described current
Device role is switched to master role, and executes main equipment vocational work.
Optionally, the numerical value judgment module is specifically used for: when current device is standby equipment, judgement does not receive master continuously
Whether the time of equipment notification packet is greater than or equal to N number of preset period of time, and the N is equal to the default value.
Optionally, further includes:
Start judgment module, is used for during current device starting, if not receiving notice in N number of preset period of time
Message then sets master role for self-role, and executes main equipment vocational work.
It can be seen via above technical scheme that compared with prior art, the embodiment of the invention discloses a kind of DPDK services
Two-node cluster hot backup control method and device, including, when current device is main equipment, sent according to preset period of time multicast logical
Message is accused, when current device is standby equipment, receives the notification packet that main equipment is sent, the VIP in the notification packet
When location is identical as itself address VIP, standby equipment judges whether the priority in the notification packet is greater than own priority, wherein
The VIP is main equipment and the standby common IP address of equipment, if it is not, self-role is switched to main equipment angle by the standby equipment
Color, and execute main equipment vocational work.This method and device are directly handled in DPDK process after receiving data from network interface, are reduced
Kernel protocol stack, kernel to User space cache, User space receives the correlation procedure of processing, not only simplify configuration road
Diameter, and the convergence time after malfunction occurred of DPDK service can be greatly reduced.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the two-node cluster hot backup control method of DPDK service disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of the two-node cluster hot backup control method of another kind DPDK disclosed by the embodiments of the present invention service;
Fig. 3 is a kind of structural schematic diagram of the two-node cluster hot backup control device of DPDK service disclosed by the embodiments of the present invention;
Fig. 4 is the structural schematic diagram that the present invention is the two-node cluster hot backup control device that another kind DPDK disclosed in strength is serviced.
Specific embodiment
For the sake of quoting and understanding, hereafter used in technical term explanation, write a Chinese character in simplified form or abridge and be summarized as follows:
DPDK: data plane development kit (Data Plane Development Kit).
Keepalived: being the independent process realized in User space, realizes vrrp agreement and popular height can
With one of assembly module.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of the two-node cluster hot backup control method of DPDK service disclosed by the embodiments of the present invention, referring to Fig. 1
Shown, the two-node cluster hot backup control method of DPDK service may include:
Step 101: determining that current device is main equipment or enters step 102 if main equipment for equipment, if standby set
It is standby, enter step 103.
Current device determines that itself could be executed for main equipment or standby equipment after determination according to self-role first
Meet the relevant operation of self-role.In the present embodiment, the determining current device is main equipment or standby equipment, may include:
Determine that current device is main equipment or standby equipment according to the Role Information of current device.
Step 102: sending notification packet according to preset period of time multicast.
When determining the current device is main equipment, the current device namely main equipment are needed according to preset time
Period multicast sends notification packet.The notification packet can with but be not limited to include the address VIP and priority level.
Wherein, about VIP: in two-node cluster hot backup scheme networking, in inside, main equipment and standby equipment are all independent one
Router has the IP address of oneself, but entirety is externally rendered as a virtual router, and virtual ip address is externally presented, this
Virtual ip address and the IP address of main equipment and standby equipment are different, referred to as VIP.In real work, exercised by main equipment empty
The quasi- actual work of router.
The priority level is to send the priority level of the equipment of notification packet, in the present embodiment namely main equipment it is excellent
First rank.
Step 103: receiving the notification packet that main equipment is sent.
When determining the current device is standby equipment, the current device, namely standby equipment, in main equipment fault-free
It can receive the notification packet of main equipment multicast transmission.
Step 104: when the address VIP in the notification packet is identical as itself address VIP, standby equipment judges described logical
Whether the priority accused in message is greater than own priority, if it is not, entering step 105.
Referring to above content, the VIP is main equipment and the standby common virtual ip address of equipment.
Standby equipment after the notification packet for receiving main equipment transmission, can by the notification packet the address VIP with
Itself address VIP is compared, see it is whether identical, can be without any processing if not identical.If they are the same, then illustrate to receive
To notification packet be that main equipment is sent, need to judge whether subsequent relevant operation executes according to wherein information.
Step 105: self-role is switched to master role by the standby equipment, and executes main equipment vocational work.
The case where the priority of standby equipment is greater than the priority of priority namely main equipment in the notification packet
Under, self-role switching is set master role by standby equipment, and starts to execute the vocational work of main equipment.
After standby equipment is switched to main equipment, notification packet, original master are sent also according to preset period of time multicast
Equipment judges that new main equipment priority is higher than itself, then can correspond to after receiving the notification packet that new main equipment is sent
Set standby device role for self-role switching, and close business processing.
In the present embodiment, the two-node cluster hot backup control method of DPDK service from network interface receive data after directly DPDK into
It is handled in journey, compared with the existing technology, reduces kernel protocol stack, kernel to User space caches, User space receives the phase handled
Treatment process is closed, configuration path is not only simplified, and the convergence time after malfunction occurred of DPDK service can be greatly reduced.
On the basis of the above disclosed embodiments of the present invention, Fig. 2 discloses the two-node cluster hot backup control of another DPDK service
Method flow diagram processed, as shown in Fig. 2, the two-node cluster hot backup control method of DPDK service may include:
Step 201: determining that current device is main equipment or enters step 202 if main equipment for equipment, set if standby
It is standby, enter step 203.
Step 202: sending notification packet according to preset period of time multicast.
Step 203: receiving the notification packet that main equipment is sent.
Step 204: when the address VIP in the notification packet is identical as itself address VIP, standby equipment judges described logical
Whether the priority accused in message is greater than own priority, if it is not, entering step 205.
Wherein the VIP is main equipment and the standby common IP address of equipment.
Step 205: self-role is switched to master role by the standby equipment, and executes main equipment vocational work.
Step 206: the number for not receiving main equipment notification packet continuously is reset to 0.
In the present embodiment, configuration in a device is needed in advance not receive the number of main equipment notification packet, the company continuously
The continuous number initial value for not receiving main equipment notification packet is 0, and standby equipment is each time in the notice report for receiving main equipment transmission
The number for not receiving main equipment notification packet continuously is reset to 0 by Wen Hou.
In addition, the present embodiment can also be pre-configured with the time interval that equipment sends or receives notification packet, namely default
Time cycle is not received by the notification packet of main equipment transmission in preset period of time each time for equipment, can will be described
The number for not receiving main equipment notification packet continuously adds 1.
Step 207: judge whether the number for not receiving main equipment notification packet continuously is greater than or equal to default value,
If so, entering step 205.
It is described to judge whether the number for not receiving main equipment notification packet continuously is greater than or equal to default value, specifically
It may include: whether the judgement continuous time for not receiving main equipment notification packet is greater than or equal to N number of preset period of time, it is described
N is equal to the default value.
If illustrating to lead for the notification packet for all not receiving main equipment transmission in equipment continuously several preset period of time
Equipment may have already appeared failure, or there is currently no main equipments, in this case, standby equipment by self-role switch based on set
Standby role, and main equipment vocational work is executed, to provide normal service.
In the present embodiment, the number for not receiving main equipment notification packet continuously is pre-set in a device, in the company
When the continuous number for not receiving main equipment notification packet is met certain condition, determines master-failure or there is no main equipments, it is standby to set
It is standby that self-role is switched to main equipment, to provide normal service.
In other examples, the two-node cluster hot backup control method of DPDK service can also include: to start in current device
Period, if not receiving notification packet in N number of preset period of time, self-role is set main equipment angle by the equipment
Color, and execute main equipment vocational work.In these cases, it is believed that currently there is not yet main equipment, current device can be with
It itself will be determined as main equipment, and normal service be provided.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but
Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain
A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification
The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Method is described in detail in aforementioned present invention disclosed embodiment, diversified forms can be used for method of the invention
Device realize that therefore the invention also discloses a kind of devices, and specific embodiment is given below and is described in detail.
Fig. 3 is a kind of structural schematic diagram of the two-node cluster hot backup control device of DPDK service disclosed by the embodiments of the present invention, ginseng
As shown in Figure 3, the two-node cluster hot backup control device 30 of DPDK service may include:
Equipment determining module 301, for determining that current device is main equipment or standby equipment.
Current device determines that itself could be executed for main equipment or standby equipment after determination according to self-role first
Meet the relevant operation of self-role.In the present embodiment, the determining current device is main equipment or standby equipment, may include:
Determine that current device is main equipment or standby equipment according to the Role Information of current device.
Message sending module 302, for sending and noticing according to preset period of time multicast when current device is main equipment
Message.
When determining the current device is main equipment, the current device namely main equipment are needed according to preset time
Period multicast sends notification packet.The notification packet can with but be not limited to include the address VIP and priority level.
Wherein, about VIP: in two-node cluster hot backup scheme networking, in inside, main equipment and standby equipment are all independent one
Router has the IP address of oneself, but entirety is externally rendered as a virtual router, and virtual ip address is externally presented, this
Virtual ip address and the IP address of main equipment and standby equipment are different, referred to as VIP.In real work, exercised by main equipment empty
The quasi- actual work of router.
The priority level is to send the priority level of the equipment of notification packet, in the present embodiment namely main equipment it is excellent
First rank.
Message receiving module 303, for receiving the notification packet that main equipment is sent when current device is standby equipment.
When determining the current device is standby equipment, the current device, namely standby equipment, in main equipment fault-free
It can receive the notification packet of main equipment multicast transmission.
Priority judgment module 304, for the address VIP when current device is standby equipment, in the notification packet
When identical as itself address VIP, judge whether the priority in the notification packet is greater than own priority.
Wherein the VIP is main equipment and the standby common IP address of equipment.
Standby equipment after the notification packet for receiving main equipment transmission, can by the notification packet the address VIP with
Itself address VIP is compared, see it is whether identical, can be without any processing if not identical.If they are the same, then illustrate to receive
To notification packet be that main equipment is sent, need to judge whether subsequent relevant operation executes according to wherein information.
Role switching module 305 is used for when current device is standby equipment, in the judgement knot of the standby equipment judgment module
It is master role by the current device role switching, and execute main equipment vocational work when fruit is no.
The case where the priority of standby equipment is greater than the priority of priority namely main equipment in the notification packet
Under, self-role switching is set master role by standby equipment, and starts to execute the vocational work of main equipment.
After standby equipment is switched to main equipment, notification packet, original master are sent also according to preset period of time multicast
Equipment judges that new main equipment priority is higher than itself, then can correspond to after receiving the notification packet that new main equipment is sent
Set standby device role for self-role switching, and close business processing.
In the present embodiment, the two-node cluster hot backup control device of DPDK service from network interface receive data after directly DPDK into
It is handled in journey, compared with the existing technology, reduces kernel protocol stack, kernel to User space caches, User space receives the phase handled
Treatment process is closed, configuration path is not only simplified, and the convergence time after malfunction occurred of DPDK service can be greatly reduced.
Fig. 4 is the structural schematic diagram that the present invention is the two-node cluster hot backup control device that another kind DPDK disclosed in strength is serviced,
As shown in figure 4, the two-node cluster hot backup control device 40 of DPDK service may include:
Equipment determining module 301, for determining that current device is main equipment or standby equipment.
Message sending module 302, for sending and noticing according to preset period of time multicast when current device is main equipment
Message.
Message receiving module 303, for receiving the notification packet that main equipment is sent when current device is standby equipment.
Priority judgment module 304, for the address VIP when current device is standby equipment, in the notification packet
When identical as itself address VIP, judge whether the priority in the notification packet is greater than own priority.
Wherein the VIP is main equipment and the standby common IP address of equipment.
Role switching module 305 is used for when current device is standby equipment, in the judgement knot of the standby equipment judgment module
It is master role by the current device role switching, and execute main equipment vocational work when fruit is no.
Configuration module 401, for configuring the number for not receiving main equipment notification packet continuously.
In the present embodiment, configuration in a device is needed in advance not receive the number of main equipment notification packet, the company continuously
The continuous number initial value for not receiving main equipment notification packet is 0, and standby equipment is each time in the notice report for receiving main equipment transmission
The number for not receiving main equipment notification packet continuously is reset to 0 by Wen Hou.
In addition, the present embodiment can also be pre-configured with the time interval that equipment sends or receives notification packet, namely default
Time cycle is not received by the notification packet of main equipment transmission in preset period of time each time for equipment, can will be described
The number for not receiving main equipment notification packet continuously adds 1.
Quantity processing module 402 is used for when current device is standby equipment, in the notification packet for receiving main equipment transmission
Afterwards, the number for not receiving main equipment notification packet continuously is reset to 0.
Numerical value judgment module 403, for when current device is standby equipment, judging that the main equipment that do not receive continuously is noticed
Whether the number of message is greater than or equal to default value.
The numerical value judgment module 403 specifically can be used for: when current device is standby equipment, judgement does not receive master continuously
Whether the time of equipment notification packet is greater than or equal to N number of preset period of time, and the N is equal to the default value.
Then the role switching module 305 is also used to when the judging result of the numerical value judgment module is to be, will be described
Current device role switching is master role, and executes main equipment vocational work.
If illustrating to lead for the notification packet for all not receiving main equipment transmission in equipment continuously several preset period of time
Equipment may have already appeared failure, or there is currently no main equipments, in this case, standby equipment by self-role switch based on set
Standby role, and main equipment vocational work is executed, to provide normal service.
In the present embodiment, the number for not receiving main equipment notification packet continuously is pre-set in a device, in the company
When the continuous number for not receiving main equipment notification packet is met certain condition, determines master-failure or there is no main equipments, it is standby to set
It is standby that self-role is switched to main equipment, to provide normal service.
In other examples, the two-node cluster hot backup control device of DPDK service can also include starting judgment module, use
During current device starts, if not receiving notification packet in N number of preset period of time, the equipment is by itself angle
Color is set as master role, and executes main equipment vocational work.In these cases, it is believed that currently there is not yet master and set
Standby, itself can be determined as main equipment by current device, and provide normal service.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part
It is bright.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of two-node cluster hot backup control method of DPDK service characterized by comprising
Determine that current device is main equipment or standby equipment;
When current device is main equipment, notification packet is sent according to preset period of time multicast;
When current device is standby equipment, the notification packet that main equipment is sent is received;
When the address VIP in the notification packet is identical as itself address VIP, standby equipment judges excellent in the notification packet
Whether first grade is greater than own priority, wherein the VIP is main equipment and the standby common IP address of equipment;
If it is not, self-role is switched to master role by the standby equipment, and execute main equipment vocational work.
2. the two-node cluster hot backup control method of DPDK service according to claim 1, which is characterized in that current device is configured with
Do not receive the number of main equipment notification packet continuously, further includes:
Standby equipment is after the notification packet for receiving main equipment transmission, by the number for not receiving main equipment notification packet continuously
Reset to 0.
3. the two-node cluster hot backup control method of DPDK service according to claim 2, which is characterized in that further include:
Judge whether the number for not receiving main equipment notification packet continuously is greater than or equal to default value;
If so, self-role is switched to master role by standby equipment, and execute main equipment vocational work.
4. the two-node cluster hot backup control method of DPDK service according to claim 3, which is characterized in that the judgement company
Whether the continuous number for not receiving main equipment notification packet is greater than or equal to default value, comprising:
Whether the time that judgement does not receive main equipment notification packet continuously is greater than or equal to N number of preset period of time, and the N is equal to
The default value.
5. the two-node cluster hot backup control method of DPDK service according to claim 1, which is characterized in that further include:
Current device starting during, if not receiving notification packet in N number of preset period of time, the equipment by itself
Role is set as master role, and executes main equipment vocational work.
6. a kind of two-node cluster hot backup control device of DPDK service characterized by comprising
Equipment determining module, for determining that current device is main equipment or standby equipment;
Message sending module, for sending notification packet according to preset period of time multicast when current device is main equipment;
Message receiving module, for receiving the notification packet that main equipment is sent when current device is standby equipment;
Priority judgment module, for when current device is standby equipment, the address VIP in the notification packet and itself
When the address VIP is identical, judge whether the priority in the notification packet is greater than own priority, wherein setting based on the VIP
The standby and standby common IP address of equipment;
Role switching module, for being no in the judging result of the standby equipment judgment module when current device is standby equipment
When, it is master role by the current device role switching, and execute main equipment vocational work.
7. the two-node cluster hot backup control device of DPDK service according to claim 6, which is characterized in that further include:
Configuration module, for configuring the number for not receiving main equipment notification packet continuously;
Quantity processing module is used for when current device is standby equipment, after the notification packet for receiving main equipment transmission, by institute
It states the continuous number for not receiving main equipment notification packet and resets to 0.
8. the two-node cluster hot backup control device of DPDK service according to claim 7, which is characterized in that further include:
Numerical value judgment module described continuous does not receive main equipment notification packet for judge when current device is standby equipment
Whether number is greater than or equal to default value;
Then the role switching module is also used to when the judging result of the numerical value judgment module is to be, by the current device
Role switching is master role, and executes main equipment vocational work.
9. the two-node cluster hot backup control device of DPDK service according to claim 8, which is characterized in that the numerical value judges mould
Block is specifically used for: when current device is standby equipment, the time that judgement does not receive main equipment notification packet continuously whether be greater than or
Equal to N number of preset period of time, the N is equal to the default value.
10. the two-node cluster hot backup control device of DPDK service according to claim 6, which is characterized in that further include:
Start judgment module, for being reported during current device starting if not receiving notice in N number of preset period of time
Text then sets master role for self-role, and executes main equipment vocational work.
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 true CN109039747A (en) | 2018-12-18 |
CN109039747B 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) |
Cited By (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 |
CN114338275A (en) * | 2021-12-31 | 2022-04-12 | 北京神经元网络技术有限公司 | Management method, device, equipment and storage medium for AUTBUS bus network node |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1607772A (en) * | 2003-10-14 | 2005-04-20 | 华为技术有限公司 | Method for realizing data transfer backup through address interpretation protocol messages |
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 |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | 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 |
CN103546315A (en) * | 2013-10-11 | 2014-01-29 | 北京星网锐捷网络技术有限公司 | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server |
CN103744809A (en) * | 2013-12-23 | 2014-04-23 | 天泽信息产业股份有限公司 | Method for dual-computer hot-standby of vehicle information management system on basis of VRRP |
CN105634848A (en) * | 2014-11-04 | 2016-06-01 | 中国移动通信集团四川有限公司 | Virtual router monitoring method and apparatus |
CN105939215A (en) * | 2016-03-10 | 2016-09-14 | 杭州迪普科技有限公司 | Method and device for switching state of VRRP backup group |
-
2018
- 2018-08-09 CN CN201810900997.4A patent/CN109039747B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1607772A (en) * | 2003-10-14 | 2005-04-20 | 华为技术有限公司 | Method for realizing data transfer backup through address interpretation protocol messages |
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 |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | 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 |
CN103546315A (en) * | 2013-10-11 | 2014-01-29 | 北京星网锐捷网络技术有限公司 | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server |
CN103744809A (en) * | 2013-12-23 | 2014-04-23 | 天泽信息产业股份有限公司 | Method for dual-computer hot-standby of vehicle information management system on basis of VRRP |
CN105634848A (en) * | 2014-11-04 | 2016-06-01 | 中国移动通信集团四川有限公司 | Virtual router monitoring method and apparatus |
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智能备份系统设计与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (3)
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 |
CN114338275A (en) * | 2021-12-31 | 2022-04-12 | 北京神经元网络技术有限公司 | Management method, device, equipment and storage medium for AUTBUS bus network node |
CN114338275B (en) * | 2021-12-31 | 2023-09-19 | 北京神经元网络技术有限公司 | AUTBUS bus network node management method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109039747B (en) | 2021-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2499343C (en) | Ip redundancy with improved failover notification | |
CN107547689B (en) | CGN (Carrier grade network Address translation) method and device | |
CN106657330A (en) | User data migration method and user data backup method, device and system | |
CN105099793B (en) | Hot spare method, apparatus and system | |
CN108616452B (en) | Message forwarding method and device | |
US20140040483A1 (en) | Bgp peer prioritization in networks | |
WO2008093308A2 (en) | Multipath virtual router redundancy | |
CN107911291A (en) | VRRP routers switching method, router, VRRP active-standby switch system and storage medium | |
WO2012067910A1 (en) | Method and system for network element service recovery | |
CN103368712A (en) | Switchover method and device for main equipment and standby equipment | |
CN112217843B (en) | Service unit switching method, system and equipment | |
CN104980293B (en) | A kind of OAM message is quickly sent and the method and device of detection processing | |
CN106603261A (en) | Hot backup method, first master device, backup device and communication system | |
CN109039747A (en) | The two-node cluster hot backup control method and device of DPDK service | |
CN106533973A (en) | Method and system for distributing service message, and equipment | |
CN111431980B (en) | Distributed storage system and path switching method thereof | |
CN105592134B (en) | A kind of method and apparatus of load balancing | |
CN109412980B (en) | BRAS backup method and device | |
CN102187627A (en) | Method, device and broadband access server system for load share | |
CN106464541B (en) | Fault handling method and equipment based on network function virtualization | |
CN109981478A (en) | A kind of message processing method and device | |
CN109445862A (en) | Network interface card redundant drive method under Windows system based on MUX | |
CN111817953A (en) | Method and device for electing master equipment based on Virtual Router Redundancy Protocol (VRRP) | |
CN106790411B (en) | The non-polymeric port cascade system and method for virtual switch and physical switches | |
CN108924061A (en) | A kind of application identification and management method, system and relevant apparatus |
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 |