CN112929265A - Method for any node to place VRRP any node in main in real time - Google Patents

Method for any node to place VRRP any node in main in real time Download PDF

Info

Publication number
CN112929265A
CN112929265A CN202110169827.5A CN202110169827A CN112929265A CN 112929265 A CN112929265 A CN 112929265A CN 202110169827 A CN202110169827 A CN 202110169827A CN 112929265 A CN112929265 A CN 112929265A
Authority
CN
China
Prior art keywords
node
vrrp
main
time
priority
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
CN202110169827.5A
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 CN202110169827.5A priority Critical patent/CN112929265A/en
Publication of CN112929265A publication Critical patent/CN112929265A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for any node to place any node of VRRP in a main mode in real time, which can set any node of VRRP as a main node in real time, and solves the problems that the network quality is influenced and even the network is broken because time delay is caused by the fact that a certain node needs to be adjusted to be the main node in real time and the node cannot be logged in to modify the priority due to the change of the network environment; the effectiveness and the real-time performance of network deployment and network switching are effectively ensured, and the competitiveness of products is improved.

Description

Method for any node to place VRRP any node in main in real time
Technical Field
The invention relates to the technical field of network communication, in particular to a method for any node to place a VRRP (virtual router redundancy protocol) arbitrary node in a real-time manner.
Background
VRRP (Virtual Router Redundancy Protocol). The router consists 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.
The prior art is as follows: under the VRRP networking environment, each VRRP node starts a preemption mode and competes out a main node according to each priority (default 150); if the priority of a certain backup node A is higher, but the priority increment is not larger than the preemption threshold 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.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defects of the technology and provide a method for any node to place a VRRP arbitrary node in a main mode in real time.
In order to solve the technical problem, the technical scheme provided by the invention is a method for any node to place a VRRP arbitrary node in a real-time manner, which comprises the following steps:
(1) logging in any node C, and designating an ideal node A as an expected main node;
(2) the node C sends a VRRP notification message;
(3) when receiving the notification message, the node A dynamically increases the operation priority to the maximum value;
(4) the priority difference between the node A and the main node is larger than a preemption threshold, and the node A is switched to be a main node;
(5) after a period of time, the priority of the node A is restored;
(6) at this time, the priorities of other nodes in the group are all smaller than the sum of the priority of the node A and the preemption threshold, so the state is stable.
As an improvement, the VRRP advertisement message carries information of an intended master node a.
As an improvement, the period of time is more than one advertisement period.
Compared with the prior art, the invention has the advantages that: any node of the VRRP can be set as a master node in real time at any node, so that the problems that the network quality is influenced and even the network is disconnected due to time delay caused by the fact that a certain node needs to be adjusted to be the master node in real time and the node cannot be logged in to modify the priority due to the change of the network environment are solved; the effectiveness and the real-time performance of network deployment and network switching are effectively ensured, and the competitiveness of products is improved.
Drawings
Fig. 1 is a flow chart of a method for any node to place a VRRP arbitrary node in a real-time manner according to the present invention.
Fig. 2 is a schematic equipment diagram of a method for any node to real-time place a VRRP arbitrary node in the present invention.
Detailed Description
The following describes in detail a method for any node to real-time place a VRRP arbitrary node in the present invention with reference to the accompanying drawings.
With reference to fig. 1-2, a method for any node to real-time master a VRRP arbitrary node includes the following steps:
(1) logging in any node C, and designating an ideal node A as an expected main node;
(2) the node C sends a VRRP notification message;
(3) when receiving the notification message, the node a dynamically increases the operation priority to the maximum value (e.g. 250);
(4) the priority difference between the node A and the main node is larger than a preemption threshold, and the node A is switched to be a main node;
(5) after a period of time, the priority of the node A is restored;
(6) at this time, the priorities of other nodes in the group are all smaller than the sum of the priority of the node A and the preemption threshold, so the state is stable.
As an improvement, the VRRP advertisement message carries information of an intended master node a.
The period of time is more than one advertisement period.
The working principle of the invention is as follows: logging in any node C, and designating an ideal node A as an expected main node; the node C sends a VRRP notification message (carrying the information of the expected main node A); when receiving the notification message, the node a dynamically increases the operation priority to the maximum value (e.g. 250); at the moment, the priority difference between the node A and the main node is larger than the preemption threshold, and the node A is switched to be the main node; after a period of time (e.g., 3 advertisement periods), the priority of node a is restored; at this time, the priorities of other nodes in the group are all smaller than the sum of the priority of the node A and the preemption threshold, so the state is stable; thus, the main nodes are smoothly switched while the configuration of each node is kept unchanged.
The specific implementation mode of the invention is as follows: according to an embodiment of fig. 2, the device parameters: device A: device ID 1; a priority 155; 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; seizing a threshold value 20, wherein the current master node is a Device A, and the Device B and Device C nodes are backup nodes; and logging in the Device B node, and designating the Device C node as an expected main node, rapidly switching the Device C node into a main node, and taking the Device A node and the Device B node as backup nodes.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the invention, "plurality" means two or more unless explicitly specifically defined otherwise.
In the present invention, unless otherwise specifically stated or limited, the terms "mounted," "connected," "fixed," and the like are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly above and obliquely above the second feature, or simply meaning that the first feature is at a lesser level than the second feature.
In the description herein, reference to the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
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 (3)

1. A method for any node to place VRRP any node in real time is characterized in that: the method comprises the following steps:
(1) logging in any node C, and designating an ideal node A as an expected main node;
(2) the node C sends a VRRP notification message;
(3) when receiving the notification message, the node A dynamically increases the operation priority to the maximum value;
(4) the priority difference between the node A and the main node is larger than a preemption threshold, and the node A is switched to be a main node;
(5) after a period of time, the priority of the node A is restored;
(6) at this time, the priorities of other nodes in the group are all smaller than the sum of the priority of the node A and the preemption threshold, so the state is stable.
2. The method of any node for real-time master of VRRP arbitrary node according to claim 1, characterized by that: the VRRP notification message carries information of an expected host node A.
3. The method of any node for real-time master of VRRP arbitrary node according to claim 1, characterized by that: the period of time is more than one advertisement period.
CN202110169827.5A 2021-02-08 2021-02-08 Method for any node to place VRRP any node in main in real time Pending CN112929265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110169827.5A CN112929265A (en) 2021-02-08 2021-02-08 Method for any node to place VRRP any node in main in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110169827.5A CN112929265A (en) 2021-02-08 2021-02-08 Method for any node to place VRRP any node in main in real time

Publications (1)

Publication Number Publication Date
CN112929265A true CN112929265A (en) 2021-06-08

Family

ID=76171183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110169827.5A Pending CN112929265A (en) 2021-02-08 2021-02-08 Method for any node to place VRRP any node in main in real time

Country Status (1)

Country Link
CN (1) CN112929265A (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 (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090113053A1 (en) * 2007-10-24 2009-04-30 David Van Wie Automated real-time data stream switching in a shared virtual area communication environment
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router
CN102255740A (en) * 2010-05-21 2011-11-23 中兴通讯股份有限公司 Method and device for active-standby switch of service nodes
CN103139060A (en) * 2013-03-01 2013-06-05 哈尔滨工业大学 High-fault-tolerance controller area network (CAN) bus digital gateway based on double digital signal processors (DSPs)
CN103580915A (en) * 2013-09-26 2014-02-12 东软集团股份有限公司 Method and device for determining main control node of trunking system
CN105939254A (en) * 2016-06-07 2016-09-14 杭州迪普科技有限公司 Method and device for switching state of VRRP (Virtual Router Redundancy Protocol) backup set
CN109687943A (en) * 2018-10-11 2019-04-26 中国人民解放军海军陆战队训练基地 A kind of dual-host backup redundancy control system
CN111913719A (en) * 2019-05-07 2020-11-10 中移(苏州)软件技术有限公司 Deployment method, device and apparatus of high-availability software and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090113053A1 (en) * 2007-10-24 2009-04-30 David Van Wie Automated real-time data stream switching in a shared virtual area communication environment
CN101945036A (en) * 2009-07-08 2011-01-12 中兴通讯股份有限公司 Judging method for failure of main router of virtual route redundancy protocol and router
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
CN102255740A (en) * 2010-05-21 2011-11-23 中兴通讯股份有限公司 Method and device for active-standby switch of service nodes
CN103139060A (en) * 2013-03-01 2013-06-05 哈尔滨工业大学 High-fault-tolerance controller area network (CAN) bus digital gateway based on double digital signal processors (DSPs)
CN103580915A (en) * 2013-09-26 2014-02-12 东软集团股份有限公司 Method and device for determining main control node of trunking system
CN105939254A (en) * 2016-06-07 2016-09-14 杭州迪普科技有限公司 Method and device for switching state of VRRP (Virtual Router Redundancy Protocol) backup set
CN109687943A (en) * 2018-10-11 2019-04-26 中国人民解放军海军陆战队训练基地 A kind of dual-host backup redundancy control system
CN111913719A (en) * 2019-05-07 2020-11-10 中移(苏州)软件技术有限公司 Deployment method, device and apparatus of high-availability software and computer storage medium

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
US10348571B2 (en) Methods and apparatus for accessing dynamic routing information from networks coupled to a wide area network (WAN) to determine optimized end-to-end routing paths
JP3452466B2 (en) Method and system for routing incoming messages
US7765283B2 (en) Network provisioning in a distributed network management architecture
CN106209419B (en) Method for selecting network function to forward data and service function repeater
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CN110912780A (en) High-availability cluster detection method, system and controlled terminal
US20040008694A1 (en) Method for implementing router interface backup with virtual router redundancy protocol
CN104753828A (en) SDN controller, data central system and route connection method
WO2003098945A1 (en) A service-oriented protection scheme for a radio access network
CN105656645A (en) Decision making method and device for fault processing of stacking system
US8665709B2 (en) Use of 1:1 protection state machine for load sharing and alternative protection schemes
CN107567706B (en) Subscriber session redistribution in a communication network
WO2009082978A1 (en) Access network protecting method, system and access edge node
US7337209B1 (en) Large-scale network management using distributed autonomous agents
CN105490937B (en) Ether virtual network gateway switching method and service provider's edge node devices
JP5249839B2 (en) Access gateway device and session information duplication method in access gateway device
CN106452882B (en) Backup switching method and system for universal network passport server
KR20180122513A (en) Method and framework for traffic engineering in network hypervisor of sdn-based network virtualization platform
US20240267324A1 (en) Packet forwarding method and apparatus
CN105939254B (en) The method and device of VRRP backup group state switching
CN101466126B (en) Route control method, host equipment, router and route control system
CN108322406A (en) A kind of SDN data plane failure restoration methods based on link performance and flow point class
CN112929265A (en) Method for any node to place VRRP any node in main in real time
CN114221902A (en) Method for switching VRRP master and slave according to specified sequence
CN103684811A (en) Service protection method and system of composite link

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: 20210608

RJ01 Rejection of invention patent application after publication