CN102868606B - Method, primary route device and the system that VRRP heartbeat message sends - Google Patents
Method, primary route device and the system that VRRP heartbeat message sends Download PDFInfo
- Publication number
- CN102868606B CN102868606B CN201210369996.4A CN201210369996A CN102868606B CN 102868606 B CN102868606 B CN 102868606B CN 201210369996 A CN201210369996 A CN 201210369996A CN 102868606 B CN102868606 B CN 102868606B
- Authority
- CN
- China
- Prior art keywords
- heartbeat message
- standby router
- route device
- primary route
- vrrp
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000005538 encapsulation Methods 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 13
- 238000012423 maintenance Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides method, primary route device and system that in a kind of VRRP backup group, VRRP heartbeat message sends.Primary route device storage has the route arriving standby router, the method includes: a VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by primary route device, and IP is encapsulated as before a VRRP heartbeat message head to increase purpose IP address to be standby router IP address, source IP address be the new IP head of primary route device IP address;2nd VRRP heartbeat message is sent to standby router according to the route arriving standby router of storage by primary route device.By scheme provided by the invention, it is possible to when there is no direct-connected double layer channel between primary route device and standby router, it is achieved carry out VRRP heartbeat message between primary route device and described standby router mutual.
Description
Technical field
The present invention relates to the network communications technology, particularly relate to method, primary route device and system that a kind of Virtual Router Redundancy Protocol (VirtualRouterRedundancyProtocol is called for short VRRP) heartbeat message sends.
Background technology
In the existing network architecture, need between equipment of the core network to realize networking by router, realize data transmission by the link between each network element device.Affect data transmission for avoiding single link in network to there is fault and propose VRRP technology.
At least two router virtuals are specifically a virtual router by VRRP technology, it is called a VRRP backup group, with unified virtual IP (InternetProtocol, IP) address and Virtual Multimedia Access Control (MediaAccessControl is called for short MAC) address provide route service for access network device.Making a router be in activity (Master) state as primary route device by the priority of each router and the competition mechanism of setting in VRRP backup group, other routers are in standby (Backup) state as standby router.Primary route device undertakes this VRRP backup group and provides the responsibility of route service for access network device, and namely the real ip address of this VRRP backup group is the IP address of primary route device.Each router in VRRP backup group requires over mutual VRRP heartbeat message and knows the state of other routers in group, and competes as primary route device.
In existing VRRP technology, in VRRP backup, mutual VRRP heartbeat message between each router, realizes by disposing double layer channel between the routers, but this demand restricted group planar network architecture must lay double layer channel between the routers.
For there is no the network of direct-connected double layer channel, then typically via arranging Ethernet virtual interface (VirtualEthernet, it is called for short VE), the VRRP heartbeat message realized between VRRP backup group router based on VPLS (VirtualPrivateLANService is called for short VPLS) technology is mutual.It is clear that network element is added extra ve interface and VPLS configuration requirement and allocation plan, complexity difficult in maintenance by this type of technology.
Summary of the invention
Embodiments provide method, primary route device and system that a kind of VRRP heartbeat message sends, to solve in prior art in VRRP backup group, when there is no direct-connected double layer channel between primary route device and standby router, realize, by VPLS technology, the problem that configuration that VRRP heartbeat message between primary route device and standby router brings alternately is complicated, difficult in maintenance.
First aspect, it is provided that a kind of method that in VRRP backup group, VRRP heartbeat message sends, described VRRP backup group includes primary route device and standby router, and described primary route device storage has the route arriving described standby router, and described method includes:
Oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device.
In the first possible implementation of described first aspect, described primary route device storage has the route arriving described standby router to include:
Described primary route device and described standby router are each configured with Routing Protocol, described primary route device receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, described Routing Protocol is Interior Gateway Protocol (InteriorGatewayProtocol, or Border Gateway Protocol (BorderGatewayProtocol, BGP) IGP).
In the first possible implementation of described first aspect or described first aspect, additionally provide the implementation that the second of described first aspect is possible, in the implementation that the second of described first aspect is possible, described primary route device the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described primary route device prestores described standby router IP address.
Second aspect, it is provided that the primary route device that in a kind of VRRP backup group, VRRP heartbeat message sends, described VRRP backup group includes described primary route device and standby router, and described primary route device includes:
Memory element, for storing the route arriving described standby router;
Processing unit, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Transmitting element, for the route arriving described standby router stored according to described memory element, the described 2nd VRRP heartbeat message obtained by described processing unit is sent to described standby router.
In the first possible implementation of described second aspect, the following manner that is routed through arriving described standby router of described memory element storage obtains:
Described primary route device and described standby router are each configured with Routing Protocol, described primary route device receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Exterior Gateway Protocol BGP.
In the first possible implementation of described second aspect or described second aspect, additionally provide the implementation that the second of described second invention is possible, in the implementation that the second of described second aspect is possible, described processing unit the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element prestores described standby router IP address.
The third aspect, it is provided that the system that in a kind of VRRP backup group, VRRP heartbeat message sends, described system includes primary route device and standby router, wherein,
Described primary route device includes:
Memory element, for storing the route arriving described standby router;
First processing unit, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Transmitting element, for the route arriving described standby router stored according to described memory element, the described 2nd VRRP heartbeat message obtained by described processing unit is sent to described standby router;
Described standby router includes:
Receive unit, for receiving the described 2nd VRRP heartbeat message that described primary route device sends;
Second processing unit, processes for the described 2nd VRRP heartbeat message that described reception unit is received.
In the first possible implementation of the described third aspect, the following manner that is routed through arriving described standby router of described memory element storage obtains:
Described primary route device and described standby router are each configured with Routing Protocol, and described primary route device receives and store the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is IGP or BGP.
In the first possible implementation of the described third aspect or the described third aspect, additionally provide the implementation that the second of the described third aspect is possible, in the implementation that the second of the described third aspect is possible, described first processing unit the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element prestores described standby router IP address.
The method that a kind of new VRRP heartbeat message provided by the embodiment of the present invention is sent, router and system, in VRRP backup group, primary route device is previously stored with the route arriving standby router, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, source IP address is described primary route device IP address, described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device, by the technical scheme that the embodiment of the present invention provides, when can there is no direct-connected double layer channel between described primary route device and described standby router, realize carrying out VRRP heartbeat message between described primary route device and described standby router mutual, and can effectively be avoided by VPLS technology and realize the configuration complexity that between described primary route device and described standby router, VRRP heartbeat message brings alternately, problem difficult in maintenance.
Accompanying drawing explanation
The flow chart of the method that VRRP heartbeat message sends in a kind of VRRP backup group that Fig. 1 provides for the embodiment of the present invention;
The primary route device that in a kind of VRRP backup group that Fig. 2 provides for the embodiment of the present invention, VRRP heartbeat message sends receives schematic diagram;
The primary route device that in the another kind of VRRP backup group that Fig. 3 provides for the embodiment of the present invention, VRRP heartbeat message sends receives schematic diagram;
The system structure schematic diagram that in a kind of VRRP backup group that Fig. 4 provides for the embodiment of the present invention, VRRP heartbeat message sends.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is explicitly described, it is clear that, described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Referring to Fig. 1, embodiments provide a kind of method that in VRRP backup group, VRRP heartbeat message sends, described VRRP backup group includes primary route device and standby router, and described primary route device storage has the route arriving described standby router, and described method includes following content:
110, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
120, described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device.
The mode of the described VRRP heartbeat message that described primary route device produces can realize based on prior art, and this is not limited by the embodiment of the present invention.After described primary route device produces a VRRP heartbeat message, perform above-mentioned transmission method further, a VRRP heartbeat message is carried out described IP encapsulation, forms described 2nd VRRP heartbeat message.
Alternatively, described primary route device storage has the route arriving described standby router to include:
Described primary route device and described standby router are each configured with Routing Protocol, and described primary route device receives and store the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is IGP or BGP.
Alternatively, described primary route device IP address can be loopback (Loopback) interface IP address of described primary route device, after described standby router receives described 2nd VRRP heartbeat message, send the response message for described VRRP heartbeat message according to the Loopback address of described primary route device to described primary route device.
Alternatively, described primary route device the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described primary route device prestores described standby router IP address, described prestore described standby router IP address can by described primary route device by order line configuration in the way of realize, described primary route device is pre-configured with and carries out the described standby router IP address that described IP encapsulation needs, for example, it is possible on described primary route device, configuration is as ordered:
Admin-vrrpvrid255peer-address1.1.1.1source-address2.2.2. 2, wherein:
Admin-vrrp, is Management VRRP for identifying the VRRP type of configuration;
Vrid255, for identifying the identification number (ID) of the VRRP of configuration;
Peer-address1.1.1.1, for identifying, to need the described standby router IP address carrying out described IP encapsulation be 1.1.1.1;
Source-address2.2.2.2, is 2.2.2.2 for identifying the Loopback address of described primary route device.
Described 2nd VRRP heartbeat message comprises the priority of described primary route device, after described standby router receives described 2nd VRRP heartbeat message, when judging the priority of the described primary route device that described 2nd VRRP heartbeat message comprises higher than the priority of described standby router, described standby router continues to keep its standby router status in described VRRP backup group.
The method that a kind of new VRRP heartbeat message provided by the embodiment of the present invention is sent is in described VRRP backup group, described primary route device is previously stored with the route arriving standby router, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, source IP address is described primary route device IP address, described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device, by the technical scheme that the embodiment of the present invention provides, when can effectively avoid there is no direct-connected double layer channel between described primary route device and described standby router, the configuration that between described primary route device and described standby router, VRRP heartbeat message brings alternately is realized complicated by VPLS technology, problem difficult in maintenance.
Referring to Fig. 2, embodiments providing the primary route device 200 that in a kind of VRRP backup group, VRRP heartbeat message sends, this described VRRP backup group includes described primary route device 200 and standby router, and described primary route device 200 includes:
Memory element 210, for storing the route arriving described standby router;
Processing unit 220, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is the IP address of described primary route device 200;
Transmitting element 230, for the route arriving described standby router according to the storage of described memory element 210, the described 2nd VRRP heartbeat message obtained by described processing unit 220 is sent to described standby router.
Alternatively, the following manner that is routed through arriving described standby router of described memory element 210 storage obtains:
Described primary route device 200 and described standby router are each configured with Routing Protocol, described primary route device 200 receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Exterior Gateway Protocol BGP.
Alternatively, described processing unit 220 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element 210 prestores described standby router IP address.
The mode of the described VRRP heartbeat message that described primary route device 200 produces can realize based on prior art, and this is not limited by the embodiment of the present invention.After described primary route device 200 produces a VRRP heartbeat message, perform above-mentioned transmission method further, a VRRP heartbeat message is carried out described IP encapsulation, forms described 2nd VRRP heartbeat message.
Alternatively, the storage of described primary route device 200 has the route arriving described standby router to include:
Described primary route device 200 and described standby router are each configured with Routing Protocol, described primary route device 200 receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is IGP or BGP.
Alternatively, the IP address of described primary route device 200 can be loopback (Loopback) interface IP address of described primary route device 200, after described standby router receives described 2nd VRRP heartbeat message, send the response message for described VRRP heartbeat message according to the Loopback address of described primary route device 200 to described primary route device 200.
Alternatively, described primary route device 200 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described primary route device 200 prestores described standby router IP address, described prestore described standby router IP address can by described primary route device 200 by order line configuration in the way of realize, described primary route device 200 is pre-configured with and carries out the described standby router IP address that described IP encapsulation needs, for example, it is possible on described primary route device 200, configuration is as ordered:
Admin-vrrpvrid255peer-address1.1.1.1source-address2.2.2. 2, wherein:
Admin-vrrp, is Management VRRP for identifying the VRRP type of configuration;
Vrid255, for identifying the identification number (ID) of the VRRP of configuration;
Peer-address1.1.1.1, for identifying, to need the described standby router IP address carrying out described IP encapsulation be 1.1.1.1;
Source-address2.2.2.2, is 2.2.2.2 for identifying the Loopback address of described primary route device 200.
Described 2nd VRRP heartbeat message comprises the priority of described primary route device 200, after described standby router receives described 2nd VRRP heartbeat message, when judging the priority of the described primary route device 200 that described 2nd VRRP heartbeat message comprises higher than the priority of described standby router, described standby router continues to keep its standby router status in described VRRP backup group.
Alternatively, the described memorizer 210 of described primary router 200, processor 220 and transmitter 230 can merge into one or more unit.
The primary route device 200 that a kind of new VRRP heartbeat message provided by the embodiment of the present invention is sent, in described VRRP backup group, described primary route device 200 is previously stored with the route arriving standby router, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device 200, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, source IP address is the IP address of described primary route device 200, described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device 200, by the technical scheme that the embodiment of the present invention provides, when can effectively avoid there is no direct-connected double layer channel between described primary route device 200 and described standby router, the configuration that between described primary route device 200 and described standby router, VRRP heartbeat message brings alternately is realized complicated by VPLS technology, problem difficult in maintenance.
Referring to Fig. 3, the embodiment of the present invention additionally provides the primary route device 300 that in a kind of VRRP backup group, VRRP heartbeat message sends, and this described VRRP backup group includes described primary route device 300 and standby router, and described primary route device 300 includes:
Memorizer 310, for storing the route arriving described standby router;
Processor 320, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is the IP address of described primary route device 300;
Transmitter 330, for the route arriving described standby router according to the storage of described memorizer 310, the described 2nd VRRP heartbeat message obtained by described processor 320 is sent to described standby router.
Alternatively, the following manner that is routed through arriving described standby router of described memorizer 310 storage obtains:
Described primary route device 300 and described standby router are each configured with Routing Protocol, described primary route device 300 receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Exterior Gateway Protocol BGP.
Alternatively, described processor 320 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memorizer 310 prestores described standby router IP address.
The mode of the described VRRP heartbeat message that described primary route device 300 produces can realize based on prior art, and this is not limited by the embodiment of the present invention.After described primary route device 300 produces a VRRP heartbeat message, perform above-mentioned transmission method further, a VRRP heartbeat message is carried out described IP encapsulation, forms described 2nd VRRP heartbeat message.
Alternatively, memorizer 310 storage of described primary route device 300 has the route arriving described standby router to include:
Described primary route device 300 and described standby router are each configured with Routing Protocol, described primary route device 300 receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is IGP or BGP.
Alternatively, the IP address of described primary route device 300 can be loopback (Loopback) interface IP address of described primary route device 300, after described standby router receives described 2nd VRRP heartbeat message, send the response message for described VRRP heartbeat message according to the Loopback address of described primary route device 300 to described primary route device 300.
Alternatively, the processor 320 of described primary route device 300 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, the described memorizer 310 of described primary route device 300 prestores described standby router IP address, described prestore described standby router IP address can by described primary route device 300 by order line configuration in the way of realize, described primary route device 300 is pre-configured with and carries out the described standby router IP address that described IP encapsulation needs, for example, can configure as ordered on described primary route device 400:
Admin-vrrpvrid255peer-address1.1.1.1source-address2.2.2. 2, wherein:
Admin-vrrp, is Management VRRP for identifying the VRRP type of configuration;
Vrid255, for identifying the identification number (ID) of the VRRP of configuration;
Peer-address1.1.1.1, for identifying, to need the described standby router IP address carrying out described IP encapsulation be 1.1.1.1;
Source-address2.2.2.2, is 2.2.2.2 for identifying the Loopback address of described primary route device 300.
Described 2nd VRRP heartbeat message comprises the priority of described primary route device 300, after described standby router receives described 2nd VRRP heartbeat message, when judging the priority of the described primary route device 300 that described 2nd VRRP heartbeat message comprises higher than the priority of described standby router, described standby router continues to keep its standby router status in described VRRP backup group.
Alternatively, described processor 320 can be central processing unit (CentralProcessingUnit, CPU).Described memorizer 310 can be random access memory (RandomAccessMemory, RAM) internal storage of type, transmitter 330 can comprise General Physics interface, described physical interface can be ether (Ethernet) interface or asynchronous transfer mode (AsynchronousTransferMode, ATM) interface.The described memorizer 310 of described primary route device 300, processor 320 and transmitter 330 can be integrated into one or more independent circuit or hardware, as: special IC (ApplicationSpecificIntegratedCircuit, ASIC).
The primary route device 300 that a kind of new VRRP heartbeat message provided by the embodiment of the present invention is sent, in described VRRP backup group, described primary route device 300 is previously stored with the route arriving standby router, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device 300, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, source IP address is the IP address of described primary route device 300, described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device 300, by the technical scheme that the embodiment of the present invention provides, when can effectively avoid there is no direct-connected double layer channel between described primary route device 300 and described standby router, the configuration that between described primary route device 300 and described standby router, VRRP heartbeat message brings alternately is realized complicated by VPLS technology, problem difficult in maintenance.
Referring to Fig. 4, the embodiment of the present invention additionally provides the system that in a kind of VRRP backup group, VRRP heartbeat message sends, and described system includes primary route device 400 and standby router 410, wherein,
Described primary route device 400 includes:
Memory element 412, for storing the route arriving described standby router;
First processing unit 414, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Transmitting element 416, for the route arriving described standby router 410 according to the storage of described memory element 412, is sent to described standby router 410 by the described 2nd VRRP heartbeat message that described first processing unit 414 obtains;
Described standby router 410 includes:
Receive unit 418, the described 2nd VRRP heartbeat message that the described transmitting element 416 for receiving described primary route device 400 sends;
Second processing unit 420, processes for the described 2nd VRRP heartbeat message that described reception unit 418 is received.
Alternatively, the following manner that is routed through arriving described standby router 410 of described memory element 412 storage obtains:
Described primary route device 400 and described standby router 410 are each configured with Routing Protocol, described primary route device 400 receives and stores the route arriving described standby router that described standby router 410 is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Border Gateway Protocol (BGP).
Alternatively, described first processing unit 414 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element 412 prestores described standby router IP address.
Alternatively, the IP address of described primary route device 400 can be the Loopback interface IP address of described primary route device 400, after described standby router 410 receives described 2nd VRRP heartbeat message, send the response message for described VRRP heartbeat message according to the Loopback address of described primary route device 400 to described primary route device 400.
Alternatively, described first processing unit 414 of described primary route device 400 a VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, the described memory element 412 of described primary route device 400 prestores the IP address of described standby router 410, the described IP address prestoring described standby router 410 can by realizing on described primary route device 400 in the way of order line configuration, described primary route device 400 is pre-configured with the IP address carrying out the described standby router 410 that described IP encapsulation needs, for example, can configure as ordered on described primary route device 400:
Admin-vrrpvrid255peer-address1.1.1.1source-address2.2.2. 2, wherein:
Admin-vrrp, is Management VRRP for identifying the VRRP type of configuration;
Vrid255, for identifying the identification number (ID) of the VRRP of configuration;
Peer-address1.1.1.1, for identifying, to need the described standby router IP address carrying out described IP encapsulation be 1.1.1.1;
Source-address2.2.2.2, is 2.2.2.2 for identifying the Loopback address of described primary route device 400.
Described 2nd VRRP heartbeat message comprises the priority of described primary route device 400, after described standby router 410 receives described 2nd VRRP heartbeat message, when judging the priority of the described primary route device 400 that described 2nd VRRP heartbeat message comprises higher than the priority of described standby router 410, described standby router 410 continues to keep its standby router status in described VRRP backup group.
The system that a kind of new VRRP heartbeat message provided by the embodiment of the present invention is sent, in described VRRP backup group, described primary route device 400 is previously stored with the route arriving standby router 410, oneth VRRP heartbeat message is carried out IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device 400, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the IP address that purpose IP address is described standby router 410 of described new IP heading, source IP address is the IP address of described primary route device 400, described 2nd VRRP heartbeat message is sent to described standby router 410 according to the route arriving described standby router 410 of described storage by described primary route device 400, by the technical scheme that the embodiment of the present invention provides, when can effectively avoid there is no direct-connected double layer channel between described primary route device 400 and described standby router 410, the configuration that between described primary route device 400 and described standby router 410, VRRP heartbeat message brings alternately is realized complicated by VPLS technology, problem difficult in maintenance.
" first " in the described VRRP heartbeat message mentioned in the embodiment of the present invention and the first processing unit is used only to do name mark, does not represent first sequentially;" second " in 2nd VRRP heartbeat message and the second processing unit is used only to do name mark, does not represent the sequentially
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, foregoing routine can be stored in a computer read/write memory medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: the various media that can store program code such as read only memory (Read-OnlyMemory, English abbreviation is ROM), random-access memory (Random-AccessMemory, RAM), magnetic disc or CDs.
Last it is noted that above example is only in order to exemplary illustration technical scheme, it is not intended to limit;Although the beneficial effect present invention and the present invention brought with reference to previous embodiment has been described in detail, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein portion of techniques feature is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.
Claims (9)
1. the method that in a virtual router redundancy protocol backup group, VRRP heartbeat message sends, it is characterized in that, described VRRP backup group includes primary route device and standby router, and described primary route device storage has the route arriving described standby router, and described method includes:
Oneth VRRP heartbeat message is carried out Internet protocol IP encapsulation and obtains the 2nd VRRP heartbeat message by described primary route device, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Described 2nd VRRP heartbeat message is sent to described standby router according to the route arriving described standby router of described storage by described primary route device.
2. method according to claim 1, it is characterised in that described primary route device storage has the route arriving described standby router to include:
Described primary route device and described standby router are each configured with Routing Protocol, described primary route device receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Border Gateway Protocol (BGP).
3. method according to claim 1 and 2, it is characterised in that described primary route device the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described primary route device prestores described standby router IP address.
4. a virtual router redundancy protocol backup group sends the primary route device of VRRP heartbeat message, it is characterised in that described VRRP backup group includes described primary route device and standby router, and described primary route device includes:
Memory element, for storing the route arriving described standby router;
Processing unit, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Transmitting element, for the route arriving described standby router stored according to described memory element, the described 2nd VRRP heartbeat message obtained by described processing unit is sent to described standby router.
5. primary route device according to claim 4, it is characterised in that the following manner that is routed through arriving described standby router of described memory element storage obtains:
Described primary route device and described standby router are each configured with Routing Protocol, described primary route device receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Border Gateway Protocol (BGP).
6. the primary route device according to claim 4 or 5, it is characterised in that described processing unit the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element prestores described standby router IP address.
7. the system being used for processing VRRP heartbeat message, it is characterised in that described system includes primary route device and standby router, wherein,
Described primary route device includes:
Memory element, for storing the route arriving described standby router;
First processing unit, the 2nd VRRP heartbeat message is obtained for a VRRP heartbeat message being carried out IP encapsulation, described IP is encapsulated as increases new IP heading before a described VRRP heartbeat message head, the purpose IP address of described new IP heading is described standby router IP address, and source IP address is described primary route device IP address;
Transmitting element, for the route arriving described standby router stored according to described memory element, the described 2nd VRRP heartbeat message obtained by described first processing unit is sent to described standby router;
Described standby router includes:
Receive unit, the described 2nd VRRP heartbeat message that the described transmitting element for receiving described primary route device sends;
Second processing unit, processes for the described 2nd VRRP heartbeat message that described reception unit is received.
8. system according to claim 7, it is characterised in that the following manner that is routed through arriving described standby router of described memory element storage obtains:
Described primary route device and described standby router are each configured with Routing Protocol, described primary route device receives and stores the route arriving described standby router that described standby router is sent by described Routing Protocol, and described Routing Protocol is Interior Gateway Protocol IGP or Border Gateway Protocol (BGP).
9. the system according to claim 7 or 8, it is characterised in that described first processing unit the oneth VRRP heartbeat message is carried out IP encapsulation obtain the 2nd VRRP heartbeat message before, described memory element prestores described standby router IP address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210369996.4A CN102868606B (en) | 2012-09-27 | 2012-09-27 | Method, primary route device and the system that VRRP heartbeat message sends |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210369996.4A CN102868606B (en) | 2012-09-27 | 2012-09-27 | Method, primary route device and the system that VRRP heartbeat message sends |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102868606A CN102868606A (en) | 2013-01-09 |
CN102868606B true CN102868606B (en) | 2016-06-29 |
Family
ID=47447209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210369996.4A Expired - Fee Related CN102868606B (en) | 2012-09-27 | 2012-09-27 | Method, primary route device and the system that VRRP heartbeat message sends |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102868606B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103152262B (en) * | 2013-02-25 | 2016-08-03 | 华为技术有限公司 | A kind of method and apparatus of connection establishment |
CN108494675A (en) * | 2018-02-07 | 2018-09-04 | 华为技术有限公司 | Realize the method, apparatus and routing device of Virtual Router Redundacy Protocol backup group |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035058A (en) * | 2007-04-28 | 2007-09-12 | 杭州华三通信技术有限公司 | Transfer method and device of the virtual router redundancy protocol message |
US8051202B2 (en) * | 2008-08-18 | 2011-11-01 | At&T Intellectual Property I, L.P. | Method and apparatus for providing alarm correlation for a gateway router |
CN102413047A (en) * | 2011-11-24 | 2012-04-11 | 华为技术有限公司 | Three-layer network device and route distribution method of same |
-
2012
- 2012-09-27 CN CN201210369996.4A patent/CN102868606B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035058A (en) * | 2007-04-28 | 2007-09-12 | 杭州华三通信技术有限公司 | Transfer method and device of the virtual router redundancy protocol message |
US8051202B2 (en) * | 2008-08-18 | 2011-11-01 | At&T Intellectual Property I, L.P. | Method and apparatus for providing alarm correlation for a gateway router |
CN102413047A (en) * | 2011-11-24 | 2012-04-11 | 华为技术有限公司 | Three-layer network device and route distribution method of same |
Non-Patent Citations (1)
Title |
---|
VRRP协议的应用及优化研究;马海平;《中国优秀硕士学位论文全文数据库,信息科技辑,201103期》;20120315;18-35 * |
Also Published As
Publication number | Publication date |
---|---|
CN102868606A (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9130859B1 (en) | Methods and apparatus for inter-virtual local area network multicast services | |
CN111800326B (en) | Message transmission method and device, processing node and storage medium | |
EP3080957B1 (en) | Establishing a data transfer connection | |
US8908527B2 (en) | Using context labels to scale MAC tables on computer network edge devices | |
CN104704779A (en) | Method and apparatus for accelerating forwarding in software-defined networks | |
CN107211036B (en) | Networking method for data center network and data center network | |
CN106713137B (en) | VPN method, device and system based on segmented routing and SDN technology | |
US20080159301A1 (en) | Enabling virtual private local area network services | |
JP2021530912A (en) | Network slice control method and device, computer readable storage medium | |
CN103401773B (en) | Method and network equipment realizing interboard communication | |
CN107646185A (en) | Operation, management and processing (OAM) in data center environment is covered | |
CN101286922B (en) | Signalling control method, system and apparatus | |
WO2006011952A2 (en) | Technique for transferring data over a packet switched network | |
US7269661B2 (en) | Method using receive and transmit protocol aware logic modules for confirming checksum values stored in network packet | |
CN103152260A (en) | Message forwarding system, method and device | |
CN112422398B (en) | Message transmission method and communication device | |
WO2022166465A1 (en) | Message processing method and related apparatus | |
US20160087889A1 (en) | Supporting multiple iec-101/iec-104 masters on an iec-101/iec-104 translation gateway | |
US20150301571A1 (en) | Methods and apparatus for dynamic mapping of power outlets | |
CN102868606B (en) | Method, primary route device and the system that VRRP heartbeat message sends | |
CN115242698A (en) | Message forwarding method, device, network equipment and storage medium | |
JP4388464B2 (en) | Packet relay device and packet communication network | |
CN114760248B (en) | Message transmission method, device and system | |
CN111447131B (en) | Message de-encapsulation method and device and message encapsulation method and device | |
WO2014117474A1 (en) | Routing method, system, and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160629 |
|
CF01 | Termination of patent right due to non-payment of annual fee |