CN112887204A - Method for periodically setting VRRP node as main node - Google Patents

Method for periodically setting VRRP node as main node Download PDF

Info

Publication number
CN112887204A
CN112887204A CN202110122743.6A CN202110122743A CN112887204A CN 112887204 A CN112887204 A CN 112887204A CN 202110122743 A CN202110122743 A CN 202110122743A CN 112887204 A CN112887204 A CN 112887204A
Authority
CN
China
Prior art keywords
node
priority
vrrp
notification message
time
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.)
Pending
Application number
CN202110122743.6A
Other languages
Chinese (zh)
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.)
Shanghai Hongji Information Technology Co Ltd
Original Assignee
Shanghai Hongji Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hongji Information Technology Co Ltd filed Critical Shanghai Hongji Information Technology Co Ltd
Priority to CN202110122743.6A priority Critical patent/CN112887204A/en
Publication of CN112887204A publication Critical patent/CN112887204A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Abstract

The invention discloses a method for periodically setting VRRP nodes as master nodes, which starts a periodic switching function: logging in a node B, and setting the cycle time for switching to a main node; when the period time meets a set value, the node B dynamically increases the operation priority to a maximum value m; the priority in the periodic notification message of the node A is pa; at this time, (m-pa) > q, node B elects to be the master node, and node a switches to be the backup node; when the period time does not meet the set value, the node B restores the dynamic priority to be the configuration priority pb; the priority in the periodic notification message of the node A is pa; at this time, (pa-pb) > q, node a elects to be the master node; meanwhile, the node B is switched into a backup node; the invention can periodically set the VRRP node as the main node, effectively ensures the effectiveness and the real-time performance of network deployment and network service, and improves the competitiveness of the product.

Description

Method for periodically setting VRRP node as main node
Technical Field
The invention relates to the technical field of communication, in particular to a method for periodically setting VRRP nodes as master nodes.
Background
VRRP (Virtual Router Redundancy Protocol) is composed of a main Router and a plurality of backup routers, and is functionally equivalent to a Virtual Router. Each router in the group periodically sends VRRP notification messages to all routers in the group to notify configuration information and working conditions (priority and the like), and according to the priority, a main router is selected to bear the gateway function. And the other routers serve as backup routers, and when the main router fails, the main router is replaced to continue to fulfill gateway responsibilities, so that the hosts in the network are ensured to continuously communicate with the external network.
With the rapid development of networks, in order to provide reliable data communication services, VRRP is widely adopted by manufacturers of various data communication products (routers, switches, firewalls, load balancing, etc.) to implement a cluster redundancy mechanism, thereby improving the reliability and competitiveness of the products.
Because of the numerous data communication products, the router of the VRRP is uniformly modified into the node.
In the prior art, under a VRRP networking environment, each VRRP node starts a preemption mode and competes out a master node according to each priority (default 150); if the priority of a certain backup node A is higher, but the priority difference value is not larger than the preemption threshold value compared with the main node, the main node and the backup node are not switched, otherwise, the node A is switched to the main node.
Due to the characteristics of network deployment and network service (such as different busy degrees of different bandwidth of the exit links in different time periods or different charges), a certain node needs to be periodically set as a main node, for example, the main node is 01:00-5:00 every night, and other time periods are backup nodes; however, the prior art cannot meet the requirement of periodically setting the VRRP node as the master node.
Therefore, a method for periodically setting the VRRP node as the master node becomes a problem to be solved urgently.
Disclosure of Invention
The invention aims to solve the technical problem that the prior art cannot meet the requirement of periodically setting a VRRP node as a master node.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a method for periodically setting a VRRP node as a master node comprises the following steps:
step 1: configuring a networking environment, wherein the networking environment comprises a VRRP dual-machine environment, a node A and a node B;
step 2: setting primary and secondary nodes of the node A and the node B when the periodic switching function is not started;
the node A starts VRRP, and the priority is configured to pa; starting a preemption mode; the priority in the periodic notification message of the node A is pa;
the node B starts VRRP and configures the priority as pb; starting a preemption mode; the priority in the periodic notification message of the node B is pb;
configuring a preemption threshold value q of a networking environment;
at this time, (pa-pb) > q, node a elects to be the master node; the node B is a backup node;
and step 3: and starting a periodic switching function: logging in a node B, and setting the cycle time for switching to a main node;
when the cycle time meets a set value, the node B dynamically increases the operation priority to a maximum value m; the priority in the periodic notification message of the node B is m; the priority in the periodic notification message of the node A is pa;
at this time, (m-pa) > q, node B elects to be the master node, and node a switches to be the backup node;
when the cycle time does not meet the set value, the node B restores the dynamic priority to be the configuration priority pb; the priority in the periodic notification message of the node B is pb; the priority in the periodic notification message of the node A is pa;
at this time, (pa-pb) > q, node a elects to be the master node; and the node B switches to the backup node.
Compared with the prior art, the invention has the advantages that: the invention can periodically set the VRRP node as the main node, effectively ensures the effectiveness and the real-time performance of network deployment and network service, and improves the competitiveness of the product.
Drawings
Fig. 1 is a flowchart of election of a master node and a backup node at a cycle time according to a method for periodically setting a VRRP node as a master node according to the present invention.
Fig. 2 is a schematic diagram of an embodiment of a method for periodically setting a VRRP node as a master node according to the present invention.
Detailed Description
The following describes a method for periodically setting a VRRP node as a master node in further detail with reference to the accompanying drawings.
With reference to fig. 1-2, the method for periodically setting VRRP nodes as master nodes according to the present invention is implemented as follows:
device A: device ID 1; a priority 180; a preemption mode; preemption threshold 20
Device B: device ID 2; a priority 150; a preemption mode; preemption threshold 20
Device C: device ID 3; a priority 150; a preemption mode; preemption threshold 20
The current master node is Device a; the Device B and the Device C nodes are backup nodes;
logging in a Device B node, and setting the cycle time to be 01:00-05:00 at night every day;
every night 01:00-05:00, the running priority of Device B is dynamically adjusted to the maximum value (such as 250);
the priority of the Device B and the master node Device A is (250-;
at other times, the Device B's run priority is dynamically restored to the configuration priority 150;
the priority of the Device a and the master node Device B is (180-;
the present invention and its embodiments have been described above, and the description is not intended to be limiting, and the drawings are only one embodiment of the present invention, and the actual structure is not limited thereto. In summary, those skilled in the art should appreciate that they can readily use the disclosed conception and specific embodiments as a basis for designing or modifying other structures for carrying out the same purposes of the present invention without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (1)

1. A method for periodically setting a VRRP node as a master node is characterized in that: the method comprises the following steps:
step 1: configuring a networking environment, wherein the networking environment comprises a VRRP dual-machine environment, a node A and a node B;
step 2: setting primary and secondary nodes of the node A and the node B when the periodic switching function is not started;
the node A starts VRRP, and the priority is configured to pa; starting a preemption mode; the priority in the periodic notification message of the node A is pa;
the node B starts VRRP and configures the priority as pb; starting a preemption mode; the priority in the periodic notification message of the node B is pb;
configuring a preemption threshold value q of a networking environment;
at this time, (pa-pb) > q, node a elects to be the master node; the node B is a backup node;
and step 3: and starting a periodic switching function: logging in a node B, and setting the cycle time for switching to a main node;
when the cycle time meets a set value, the node B dynamically increases the operation priority to a maximum value m; the priority in the periodic notification message of the node B is m; the priority in the periodic notification message of the node A is pa;
at this time, (m-pa) > q, node B elects to be the master node, and node a switches to be the backup node;
when the cycle time does not meet the set value, the node B restores the dynamic priority to be the configuration priority pb; the priority in the periodic notification message of the node B is pb; the priority in the periodic notification message of the node A is pa;
at this time, (pa-pb) > q, node a elects to be the master node; and the node B switches to the backup node.
CN202110122743.6A 2021-01-29 2021-01-29 Method for periodically setting VRRP node as main node Pending CN112887204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110122743.6A CN112887204A (en) 2021-01-29 2021-01-29 Method for periodically setting VRRP node as main node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110122743.6A CN112887204A (en) 2021-01-29 2021-01-29 Method for periodically setting VRRP node as main node

Publications (1)

Publication Number Publication Date
CN112887204A true CN112887204A (en) 2021-06-01

Family

ID=76053381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110122743.6A Pending CN112887204A (en) 2021-01-29 2021-01-29 Method for periodically setting VRRP node as main node

Country Status (1)

Country Link
CN (1) CN112887204A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221902A (en) * 2021-11-26 2022-03-22 上海弘积信息科技有限公司 Method for switching VRRP master and slave according to specified sequence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN102255740A (en) * 2010-05-21 2011-11-23 中兴通讯股份有限公司 Method and device for active-standby switch of service nodes
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN208091055U (en) * 2018-02-11 2018-11-13 北京首工科技开发有限公司 Mono- library two-shipper automatic switchover type freezer full-automatic temperature control systems of SG
US20200336381A1 (en) * 2019-04-22 2020-10-22 Dell Products L.P. Bandwidth-based virtual router redundancy protocol node designation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN102255740A (en) * 2010-05-21 2011-11-23 中兴通讯股份有限公司 Method and device for active-standby switch of service nodes
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN208091055U (en) * 2018-02-11 2018-11-13 北京首工科技开发有限公司 Mono- library two-shipper automatic switchover type freezer full-automatic temperature control systems of SG
US20200336381A1 (en) * 2019-04-22 2020-10-22 Dell Products L.P. Bandwidth-based virtual router redundancy protocol node designation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221902A (en) * 2021-11-26 2022-03-22 上海弘积信息科技有限公司 Method for switching VRRP master and slave according to specified sequence

Similar Documents

Publication Publication Date Title
EP3016316B1 (en) Network control method and apparatus
CN100466584C (en) Processing method for loop network protection
EP2720418B1 (en) Lacp link switching and data transmission method and device
US20200204499A1 (en) Communication Method, Communications Device, and Storage Medium
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CN100484034C (en) Method and system for access user by virtual router redundance protocol
WO2020001044A1 (en) Method, device and system for acquiring network slice
US8830825B2 (en) Method and system for priority based (1:1)n ethernet protection
US10158500B2 (en) G.8032 prioritized ring switching systems and methods
US11245615B2 (en) Method for determining link state, and device
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN106797319B (en) Network service aware router and application thereof
CN103607293A (en) Flow protection method and equipment thereof
CN112491700A (en) Network path adjusting method, system, device, electronic equipment and storage medium
US20110249684A1 (en) Data transmission device
WO2008110085A1 (en) Rpr bridge redundancy protection method, rpr bridge ring device and rpr bridge ring
CN114221902A (en) Method for switching VRRP master and slave according to specified sequence
CN108322406B (en) SDN data plane fault recovery method based on link performance and flow classification
CN112887204A (en) Method for periodically setting VRRP node as main node
CN102932249B (en) A kind of transmission method of VRRP message and device
KR100273979B1 (en) System and methods for optimizing communicationl
US20170141957A1 (en) System and method for protecting virtual circuits in dynamic multi-domain environment
CN112929266A (en) Method for switching VRRP (virtual router redundancy protocol) main and standby according to SSL (secure socket layer) accelerator card state
WO2014032503A1 (en) Service protection method and system for composite link
CN100466582C (en) Cross interconnection method for RPR and cross site, cross RPR

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601

RJ01 Rejection of invention patent application after publication