CN103595629B - Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network - Google Patents

Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network Download PDF

Info

Publication number
CN103595629B
CN103595629B CN201310632563.8A CN201310632563A CN103595629B CN 103595629 B CN103595629 B CN 103595629B CN 201310632563 A CN201310632563 A CN 201310632563A CN 103595629 B CN103595629 B CN 103595629B
Authority
CN
China
Prior art keywords
router
gateway
irdp
address
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310632563.8A
Other languages
Chinese (zh)
Other versions
CN103595629A (en
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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310632563.8A priority Critical patent/CN103595629B/en
Publication of CN103595629A publication Critical patent/CN103595629A/en
Application granted granted Critical
Publication of CN103595629B publication Critical patent/CN103595629B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a rapid gateway switching method and device for hosts in the IRDP network. The method comprises that a core router regularly detect state information of gateway routers of hosts in a client network; and when the core router detects failure of a certain gateway router, the core router notifies a gateway update message to all IRDP routers which are managed by the core router, so that the corresponding IRDP router is triggered to update a gateway IP address for the host which is influenced by the failure. According to the invention, the host can be rapidly switched to an effective gateway when the present gateway has failure, so that the effectiveness of host communication can be guaranteed.

Description

The method and apparatus that in a kind of irdp network, host gateway is switched fast
Technical field
The present invention relates to communication technical field, the method that in more particularly, to a kind of irdp network, host gateway is switched fast and Device.
Background technology
Irdp (icmp router discovery protocol, router discovery protocol) is icmp (internet Control message protocol, internet control message agreement) an extension, it makes each router week Phase property ground transmits an irdp notification packet, the ip address of notice interface from each multicast interface.Main frame receives this After irdp notification packet, find neighbouring router address such that it is able to dynamically find the ip address of default gateway router. In the environment of a multi-router, irdp is also enabled the host to detect and corrects the mistake being produced due to gateway fails, energy Enough simplify network management task, and achieve redundant configuration in a network.This agreement must be on the main frame being connected to network Realize, and have one or more routers to be directly connected on the same network segment, enable main frame to pass through to monitor network traffics Find the address of a gateway.
In a complex network with multiple routers, network manager can be by the priority of configuration address , do not encourage or do not encourage user certain equipment to be used as default router.One typical example is that configuration is primary and backup Link, in this case, network manager wishes that active link has higher weight.One irdp router is periodically to net User in network sends notification packet, carries life span parameter, subscriber's main station can be in life span in described notification packet Within the scope of preserve the gateway address obtaining.When primary route device breaks down it is not necessary to restart change default route Device, before life span time-out, main frame must refresh its gateway information by another notification packet receiving.If Also it was not received by the notification packet of router before life span time-out, then main frame will find to disappear by using router Breath re-establish an effective default router, or with the next effective routing device notification packet (priority ratio receiving Previous height) sender set up connect.That is, prior art there is a disadvantage in that life span time-out before or Before receiving next effective routing device notice, the flow of main frame will be sent to a router having lost efficacy, and leads to Business Stream Amount is interrupted.
Content of the invention
In view of this, the present invention provides a kind of method that in irdp network, host gateway is switched fast, and is applied to irdp net On the core router of network, this irdp network includes core router and irdp router, and described core router is used for managing Reason lower floor irdp router, described irdp router is the router running irdp agreement, for for the master in client network The ip address information of the currently available gateway router of machine notice, methods described includes:
The status information of the gateway router of each main frame in described core router periodic detection client network;
Gateway router is had to lose in the gateway router of each main frame in client network when described core router detects After effect, described core router updates message to one gateway of all irdp router advertisements that it manages, corresponding to trigger Irdp router is affected main frame more new gateway ip address;
Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp road Include the irdp router of the ip address of the gateway router of this inefficacy by device for advertised address.
The present invention also provides the device that in a kind of irdp network, host gateway is switched fast, and is applied to the core of irdp network On router, this irdp network includes core router and irdp router, and described core router is used for managing lower floor Irdp router, described irdp router is the router running irdp agreement, for noticing for the main frame in client network The ip address information of currently available gateway router, described device includes:
Periodic detection unit, for the status information of the gateway router of each main frame in periodic detection client network;
Message notification unit, has gateway router for working as to detect in client network in the gateway router of each main frame After inefficacy, update message to one gateway of all irdp router advertisements of described core router management, corresponding to trigger Irdp router is affected main frame more new gateway ip address;
Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp road Include the irdp router of the ip address of the gateway router of this inefficacy by device for advertised address.
The present invention also provides the householder method that in a kind of irdp network, host gateway is switched fast, and is applied to irdp network On irdp router, this network includes core router and irdp router, and described core router is used for managing lower floor irdp Router, described irdp router is the router running irdp agreement, for the gateway route currently available for main frame notice The ip address information of device, methods described includes:
Described irdp router receives the gateway renewal message that described core router issues, and described gateway updates message and takes Ip address with the gateway router losing efficacy;
Described irdp router updates message to described gateway and processes, and determines the ip of the gateway router of described inefficacy When address is the ip address of itself notice, it is that affected main frame updates gateway address;
Described update gateway address for affected main frame particularly as follows: the gateway that lost efficacy of notice impacted main frame deletion The ip address of router, then the ip address notification of currently available gateway router is given this main frame.
The present invention also provides the servicing unit that in a kind of irdp network, host gateway is switched fast, and is applied to irdp network On irdp router, this network includes core router and irdp router, and described core router is used for managing lower floor irdp Router, described irdp router is the router running irdp agreement, for the gateway route currently available for main frame notice The ip address information of device, described device includes:
Message receiving unit, updates message for receiving the gateway that described core router issues, described gateway updates report Literary composition carries the ip address of the gateway router of inefficacy;
Gateway updating block, processes for updating message to described gateway, determines the gateway router of described inefficacy Ip address be described irdp router advertisement ip address when, be that affected main frame updates gateway address;
Described update gateway address for affected main frame particularly as follows: the gateway that lost efficacy of notice impacted main frame deletion The ip address of router, then the ip address notification of currently available gateway router is given this main frame.
For existing scheme, the present invention passes through the state letter of gateway router in timing detection client network Breath, when detect have in existing gateway router in client network gateway router lost efficacy after, by core router to All irdp router advertisement gateways of its management update message and are updated for affected main frame with triggering irdp router active Gateway address information, solves when in irdp network, gateway router lost efficacy, the long-time problem interrupted of host service flow.
Brief description
Fig. 1 is the system architecture diagram that a kind of gateway of main frame is switched fast;
Fig. 2 is the system architecture diagram that a kind of gateway of main frame is switched fast;
Fig. 3 is the process chart that in one embodiment of the present invention, core router is coordinated with irdp router;
Fig. 4 is the structural representation of host gateway apparatus for fast switching in irdp network in one embodiment of the present invention;
Fig. 5 is the hardware configuration of the network equipment of core router and irdp router in one embodiment of the present invention Schematic diagram;
Fig. 6 is the structural representation that in irdp network in one embodiment of the present invention, host gateway is switched fast servicing unit Figure.
Specific embodiment
For making the objects, technical solutions and advantages of the present invention become more apparent, develop simultaneously embodiment referring to the drawings, right Scheme of the present invention is described in further detail.
The present invention provides a kind of method that in irdp network, host gateway is switched fast and householder method, is respectively applied to On the core router of irdp network and irdp router, this network includes core router and irdp router, described core Router is used for managing lower floor's irdp router, and described irdp router is the router running irdp agreement, for for client The currently available gateway router address information of main frame notice in the network of end.The concrete framework of this irdp network system, please join See Fig. 1 and Fig. 2.Gateway router can be same equipment with irdp router, distinguished by distinct interface, be in logic Two, be physically one;In addition main frame can be the main frame of only one piece of network interface card, by an inner exchanging net respectively with Irdp router is connected with gateway router or has the main frame of polylith network interface card, by different network interface cards respectively with Irdp router and gateway router connect, and in specific implementation process, have polylith network interface card as more excellent reality using main frame Apply mode.In the present embodiment, concrete networking mode is not particularly limited to.
From the angle of core router by the invention provides the side that in a kind of irdp network, host gateway is switched fast Method, for the angle of irdp router, the invention provides the auxiliary square that in a kind of irdp network, host gateway is switched fast Method.Referring to Fig. 3, core router and irdp router engagement process execution following steps:
Step s401: the status information of the gateway router of each main frame in core router periodic detection client network.
Step s402: have gateway in the gateway router of each main frame when described core router detects in client network After router failure, described core router updates message to trigger to one gateway of all irdp router advertisements that it manages Corresponding irdp router is that impacted main frame updates gateway address.
Wherein, described gateway updates the ip address of the gateway router carrying inefficacy in message;Wherein, described gateway is more New message carries the ip address of the gateway router of inefficacy;Described corresponding irdp router includes this inefficacy for advertised address The ip address of gateway router irdp router, update the irdp router that mates of message with gateway.
Step s403:irdp router receives the gateway renewal message that core router is sent.
Step s404:irdp router updates message to the gateway receiving and processes, and determines the gateway route losing efficacy When the ip address of device is the ip address of itself notice, it is that affected main frame updates gateway address.
Wherein, it is that affected main frame updates gateway address particularly as follows: the net having lost efficacy deleted by the impacted main frame of notice Close the ip address of router, then the ip address notification of currently available gateway router is given this main frame.It implements is logical Cross irdp router by way of sending advertised address on the interface enabling irdp accordingly.
In the present embodiment, core router can in real-time detection network each gateway router state, when net has been detected When closing router failure, for example, certain network interface of gateway router is hindered for some reason and leads to cannot be communicated by this network interface, or gateway When router faults itself leads to cannot communicate by this gateway router, core router will get affected gateway Ip address, this affected gateway ip address is defined as the ip address of the network router of inefficacy, is added to gateway and updates report Wen Zhong, and it is sent to the irdp router of this core router management.
When irdp router detects the gateway renewal message that core router issues, will be with the inefficacy wherein carrying The ip address of gateway router is mated, and specifically refers to be mated the interface enabling irdp, if the match is successful, says The ip address that the address of bright this irdp interface notice includes this inefficacy updates it is possible to actively initiate gateway ip address, to trigger Corresponding main frame is updated to the ip address of this inefficacy so that the ip address of inefficacy can be updated to by corresponding main frame in time The ip address of effect, it is to avoid the problem of message retransmission failure.
The present embodiment, when implementing, core router, also can be in gateway when the gateway ip address of inefficacy is detected Update in message and carry the ip address of new available gateway router, so that corresponding irdp router is by the net having lost efficacy The ip address closing router replaces with the ip address of new available gateway router.
In the present embodiment, when implementing, when the main frame that core router detects in client network has new net When pass router comes into force, this core router also can update messages to all irdp router advertisement second gateways that it manage, With triggering corresponding irdp router, the ip address of the gateway router coming into force is increased in irdp notice list, and at next This address is noticed in secondary irdp notification packet;Wherein, the second gateway renewal message carries the net that current hosts are currently in use Close the ip address of router, and the ip address of the new gateway router coming into force.It is current that second gateway renewal message carries The ip address of the gateway router that main frame is currently in use, can be specifically core router according to from each irdp road managing with it By the situation of the gateway ip address on device, the address of notice on the irdp router needing increase gateway ip address of determination, this Sample, corresponding irdp router just can mate this second gateway and update message.
In the present embodiment, core router send gateway update message after, for guarantee corresponding irdp router can and When this message of process, gateway renewal is carried out to main frame, this core router also can be determined to irdp result.Specifically Ground, when core router receives the response reply message that each irdp router returns, judges the letter that reply message carries When ceasing incorrect, core router sends gateway again and updates message, and the information carrying in the reply message receiving is just Really, the information that wherein reply message carries includes updating the interface of the irdp that message mates with gateway, and reply message carries Information is correctly the quantity of the interface updating the irdp that message mates with gateway carrying in the reply message of each irdp reaction, Update the quantity of the ip address of the gateway router of the inefficacy carrying in message equal to gateway;Further, work as core router When not receiving the reply message that irdp router returns in preset time t 1, send triggering message to each irdp router; Triggering message is used for triggering each irdp router and actively returns reply message to core router.Core router passes through above-mentioned Process it can be ensured that the gateway that corresponding irdp can be processed in time updates message, to carry out gateway to affected main frame in time Ip address updates.
In the present embodiment, irdp receive core router transmission gateway update message when, can by traversal from The irdp interface enabling mates determining that whether this irdp updates message with this gateway, and specifically, irdp router can travel through and make Energy irdp interface, when the irdp advertised address under one of irdp interface mates the net that gateway updates the inefficacy carrying in message During the ip address of pass router, determine that the ip address of the gateway router losing efficacy is the ip address of itself notice.To affected Main frame updates gateway address, specifically mays include: the ip address of the gateway router that irdp router lost efficacy in advertised address coupling Irdp interface on, the ip address of the gateway router losing efficacy deleted by the affected main frame of notice, and by currently available gateway The ip address notification of router gives this main frame.
For ease of the understanding to technical solution of the present invention, below the process of realizing of instantiation is described in detail.
In this example, gateway updates message and may be designed to an icmp message, referred to herein as irdpe message.This message Purpose media access control (mac) address be multicast mac address, purpose ip be network in all-router multicast address, Icmp channel type (type) field definition is 11, and code name (code) field definition is 0.
This message also includes a design option ca (change address) field, and wherein this design option ca field is entered One step includes type type field, irdp-address field and new-address field, wherein, irdp-address field In carry irdp advertised address for coupling configuration, that is, the ip address of the gateway router having lost efficacy or current hosts are The ip address of the gateway router using;The advertised address after renewal is carried, i.e. currently available net in new-address field Close the ip address of router or the ip address of the gateway router newly coming into force.
Above-mentioned type field includes a preset mark value, irdp router can according to the value of this preset mark value Lai Update the advertised address of related irdp interface, this preset mark value comprises three kinds of values, and respectively 0,1 and 2, when this preset mark Value value is that 0 expression increases to the ip address in new-address field in irdp notice list, and in upper irdp once Notice this address in notification packet, that is, increase gateway ip address, for example, new gateway router is detected in core router When coming into force, you can send such irdpe message, irdpe message now is exactly the second above-mentioned gateway renewal message;When pre- If mark value value is the ip ground that the ip address in irdp-address field is replaced with new-address field by 1 expression Location, that is, change gateway ip address, for example, gateway router has been detected in core router and lost efficacy, and had the gateway road come into force again During by device, you can send such irdpe message;When preset mark value value is 2, represent in irdp-address field Ip address delete, that is, delete gateway ip address, such as core router detect gateway router lost efficacy when, you can send this The irdpe message of sample.
New gateway router is detected in core router to come into force, such as gateway router has new interface to come into force When, or when having new gateway router equipment to add, and when gateway router inefficacy has been detected, you can obtain corresponding Gateway ip address, carry in the irdep message of above-mentioned design, be sent to each irdp router.
Process is updated to the gateway ip address of main frame enters to message is updated as gateway based on irdpe message below Row explanation.
(1) core router, that is, irdp core router can the having of gateway router in real-time collecting client network Effect and fail message, in gateway ip address inefficacy is detected, or have during the gateway ip address newly come into force it is possible to by phase The respective field that the gateway ip address answered is added in irdpe message, and send.
Wherein, core router specifically can detect (bidirectional by linkage (track), two-way converting Forwarding detection, bfd), Network Quality Analysis (network quality analyzer, nqa) etc., specifically real Existing process is same or like with existing process, will not be described here.
Wherein, core router can carry out the state of real-time detection gateway router within the cycle setting, and this cycle leads to Often than the notice cycle is short of the irdp notification packet of irdp router.
For example, after core router detects and has gateway router to lose efficacy in client network, core router is to it One irdpe message of all irdp router advertisements of management, now in this irdpe message, irdp-address field carries mistake The ip address of the gateway router of effect, the value of statistical indicant of the type field in design option ca is 2.When there being multiple gateway roads in network When being lost efficacy by device, multiple design option ca fields can be carried in irdpe message, carry phase in irdp-address field respectively The ip address of the gateway router of the inefficacy answered.
Meanwhile, if core router is detected simultaneously by the new gateway router coming into force, can be by design option a The value of statistical indicant of type field is 1, and increases the gateway router that this newly comes into force in new-address.
If additionally, when core router only detects the new gateway router coming into force, can be by design option a The value of statistical indicant of type field is 0, and the ip ground of the gateway router that setting current hosts use in irdp-address field Location, and increase the ip address of the gateway router that this newly comes into force in new-address.Wherein, irdp-address field The ip address determining, can be specifically core router according to from each irdp interface of each irdp router managing with it The advertised address information of notice list, and the management strategy of itself, determine which irdp needing in which irdp router The ip address of this new gateway router coming into force is increased on interface, and one of notice list on this irdp interface is noticed Address is as the ip address in this irdp-address field.
The gateway router of come into force or inefficacy described here, specifically refers to an interface of gateway router, or It is gateway router equipment itself, the ip address of corresponding gateway router, also correspond to the ip address of the corresponding interface.
(2) after irdp router (irdp router) receives irdpe message, according to the information updating carrying in message Irdp configuration information (updating the advertised address under this interface) under corresponding interface, first sends last (final) route after renewal Notice (router advertisement, ra), to inform the default gateway address that main frame deletion had been lost efficacy, retransmits irdp Notification packet, i.e. the currently available gateway router address of irdp ra notice main frame.
Wherein, after irdp router receives irdpe message, the interface enabling irdp, the irdp under interface can be traveled through Advertised address mates the irdp-address in irdpe message, and that is, the gateway ip address of interface notice includes this irdp- During the ip address that address field carries, just illustrate that this irdp router mates this irdp message, need to corresponding interface Advertised address is updated.
Specifically, the ip address in new-address field can be increased to if type field is 0, irdp router In irdp notice list, and notice this address in upper irdp notification packet once;If type field is 1, will lead to Accuse the address that address is irdp-address and replace with new-address, needing first to send advertised address is irdp-address And life span is 0 irdp, retransmits irdp notification packet and carry currently valid advertised address new-address;Message If type field is 2, the address that advertised address is irdp-address is deleted, now also will first send advertised address is Irdp-address and life span are 0 irdp, retransmit irdp notification packet and carry currently valid advertised address new- address.
Wherein, all have corresponding advertised address under each irdp interface of irdp router, that is, be advertised to client net The main frame of network can be using current gateway ip address, when there being the gateway ip address of new or inefficacy it is possible to this notice Address is updated, simultaneously can be by sending the irdp notification packet (net sending to the main frame in client network to main frame The ip address closed), to update the gateway ip address of main frame.Irdp router, when noticing gateway ip address, can be taken by control The life span of band, to determine whether that corresponding gateway ip address deleted by main frame, such as there is gateway ip ground on main frame Location, and receive this gateway ip address of irdp router transmission again, and when life span is 0, then explanation irdp router instruction This gateway ip address deleted by this main frame, and when life span is normal value, then illustrates that this corresponding gateway ip address is to make With main frame, then when life span is to 0, determines corresponding gateway ip address failure, needs the notice issuing from irdp router Reselection gateway ip address in address.
Wherein, in described irdpe message, when preset mark value value is 1, then this message i.e. corresponding and above-mentioned the Two gateways update message, and when preset mark value value is 2 or 3, then the i.e. corresponding and above-mentioned gateway of this message updates message.
(3) after irdp router is to irdpe Message processing, also can be by way of returning response reply message, so that core Heart router determines irdp router this irdpe message whether processed.
In practical application, irdp router may not receive irdp core due to due to various networks The irdpe message that router sends, leads to advertised address not to be modified (renewal), or due to irdp router equipment by Process a part of irdpe message in busy of system (because irdpe message may carry multiple ca options, and each ca choosing The corresponding gateway ip address of Xiang Junhui needs to update, and same irdp router also likely to be present the irdp of a large amount of enables Interface), or, irdp core router is likely to not receive, because of network reason, the reply report that irdp router sends Literary composition.Therefore, irdp core router needs the reply message sending by irdp router to avoid at irdp router Manage or processed irdpe message.
Specifically, after irdp router processes and completes the irdpe message from core router receiving, irdp route Device will carry in reply message response to core router to the result of above-mentioned irdpe message.Preferably implement a kind of In mode, reply message can also be designed to an icmp message, identical with irdpe message format, and purpose mac address is The mac address of core router, purpose ip address is the ip address of core router, and icmp layer tpye field definition is 12, if Meter option car (change address result) field further includes the irdp interface field matching, irdp- Address field and new-address field.The irdp interface field wherein matching connects for depositing the irdp matching Mouthful;Irdp-address field is used for depositing the advertised address matching, and new-address field is logical after renewal for depositing Accuse address, determine that irdp router is correctly processed to irdpe message in order to core router.
When core router receives the response reply message that each irdp router returns, judge that reply message carries Information incorrect when, core router send again gateway update message, the letter carrying in the reply message receiving Breath is correct, and the information that wherein reply message carries includes updating the interface of the irdp that message mates with gateway, and reply message is taken The information of band is correctly the number of the interface updating the irdp that message mates with gateway carrying in the reply message of each irdp reaction Amount, updates the quantity of the ip address of the gateway router of the inefficacy carrying in message equal to gateway.Each irdp router terminates During to irdpe message, all it can be processed, that is, be mated, determine and whether there is the interface enabling irdp from it Advertised address includes the ip address in the irdp-address of the ra in irdpe message, and can return corresponding report after treatment Literary composition, and, if not mating irdpe message, can without any interface in irdp interface field, if coupling, Add corresponding content in respective field in reply message;Meanwhile, if irdp router does not mate irdpe message, also may be used Without transmission reply message.
For example, the irdp interface quantity matching in irdp interface field in this reply message is sky, or core route Device have advertised the gateway router of two inefficacies but irdp router only matches one, is now likely due to irdp route Device part of interface error handle leads to, and then core router sends gateway renewal message again, until irdp router institute Irdp interface is had all correctly to process irdpe message, the irdp number of ports matching in the reply message of irdp router response When amount is identical with the ip number of addresses that described gateway updates the gateway router having lost efficacy carrying in message, stop sending Irdpe message.
When core router does not receive the reply message of irdp router return in preset time t 1, can send Triggering message gives each irdp router;This triggering message is used for triggering each irdp router and actively returns reply message to core Router.In this way it can be ensured that irdp router can return in time to the reply message after irdpe Message processing.
Specifically, when core route does not receive the reply of irdp router response in predetermined time t1, now It is probably that irdp router does not receive the irdpe message that core router is sent due to due to various networks, lead to lead to Accuse address not to be modified, or because irdp router has processed a part of irdp interface for busy due to system, that is, not Have process to complete the irdpe message from core router that receives it is also possible to core router because of network reason not Have and receive the reply message that irdp router is sent, then core router sends triggering message to irdp router, in one kind In preferred embodiment, the form of triggering message is identical with irdpe message, and differing only in code field definition is 1, represents Simply test packet, the configuration parameter of the unactual irdp interface changing irdp router, but irdp router can be triggered and send out Send reply message.After irdp router receives the triggering message that described core router is sent, by current to described The result of irdpe message carries and is sent to described core router in reply message, and now irdp router is sent to Correct result may not be carried in the reply message of core router, core router receive this reply message with This is checking the correctness to irdpe Message processing for the irdp router each irdp interface.If still processing mistake, core route Device sends irdpe message again, until the reply message of irdp router response carries correct information.The wherein predetermined time Value t1, in the present invention program and be not particularly limited, in specific enforcement, those skilled in the art can as the case may be by It is set to the integral multiple in irdp advertising of route cycle or other values.
Refer to Fig. 4, the present invention also provides the method that in a kind of a kind of and above-mentioned irdp network, host gateway is switched fast Corresponding device 60, is applied on the core router of irdp network, and this irdp network includes core router and irdp road By device, described core router is used for managing lower floor's irdp router, and described irdp router is the route running irdp agreement Device, for the ip address information of the gateway router currently available for the main frame notice in client network.This device 60 is concrete May include:
Periodic detection unit 61: for the status information of the gateway router of each main frame in periodic detection client network;
Message notification unit 62: have gateway to route in the gateway router of each main frame in client network for working as to detect After device lost efficacy, update message to one gateway of all irdp router advertisements of described core router management, to trigger correspondence Irdp router be affected main frame more new gateway ip address.
Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp road Include the irdp router of the ip address of the gateway router of this inefficacy by device for advertised address.
Device 60 provided in an embodiment of the present invention implement the explanation that process can be found in said method embodiment, here Repeat no more.
In said apparatus 60, described gateway updates the ip address that message also carries new available gateway router, with Toilet state corresponding irdp router the ip address of the described gateway router having lost efficacy is replaced with described new available The ip address of gateway router;
In said apparatus 60, described message notification unit 62 is further useful for client is detected when periodic detection unit When main frame in network has new gateway router to come into force, to all irdp router advertisements the of described core router management Two gateways update message, to trigger corresponding irdp router, the ip address of the gateway router coming into force are increased to irdp notice In list, and notice this address in upper irdp notification packet once;Wherein, described second gateway updates message and carries and works as The ip address of the gateway router that front main frame is currently in use, and the ip address of the gateway router coming into force.
As shown in figure 4, said apparatus 60 may also include support Unit 63, for receiving respectively when described core router During the response reply message that irdp router returns, when judging that the information that reply message carries is incorrect, send described again Gateway updates message, and the information carrying in the reply message receiving is correct, the packet that wherein reply message carries Include the interface updating the irdp that message mates with gateway, the information that reply message carries is correctly the reply report of each irdp reaction The quantity of the interface updating the irdp that message mates with gateway carrying in literary composition, updates, equal to gateway, the inefficacy carrying in message The quantity of the ip address of gateway router;And for not receiving irdp road in preset time t 1 when described core router During the reply message being returned by device, send triggering message to each irdp router;Described triggering message is used for triggering each irdp road Reply message is actively returned to core router by device.
Referring to Fig. 5, it is corresponding with host gateway fast switch over method in a kind of above-mentioned irdp network that the present embodiment provides Device, specifically can also be realized by the hardware shown in Fig. 5, and specifically, the controller (cpu) in Fig. 5 is connected with memory And other hardware, wherein, in memory, deposit program or instruction, cpu can pass through to read the program in memory or instruction, Execution is corresponding to be operated, and other hardware can be specifically communication interfaces etc., can receive or send message.
Specifically, cpu passes through to read the program in memory or instruction, executable following operation:
Cpu passes through reading program or instruction, the state letter of the gateway router of each main frame in timing detection client network Breath, when detect have gateway router to lose efficacy in the gateway router of each main frame in client network after, to its manage all One gateway of irdp router advertisement updates message, to trigger corresponding irdp router for affected main frame more new gateway ip Address.Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp router Include the irdp router of the ip address of the gateway router of this inefficacy for advertised address.
Cpu passes through reading program or instruction, can update in message in gateway and also carry new available gateway router Ip address so that described corresponding irdp router the ip address of the described gateway router having lost efficacy is replaced with described The ip address of new available gateway router.
Cpu passes through reading program or instruction, it may also be used for have new gateway road when the main frame in client network is detected When being come into force by device, update message to all irdp router advertisement second gateways that it manages, to trigger corresponding irdp route Device increases to the ip address of the gateway router coming into force in irdp notice list, and logical in upper irdp notification packet once Accuse this address;Wherein, described second gateway updates the ip address that message carries the gateway router that current hosts are currently in use, And the ip address of the new gateway router coming into force.
Cpu passes through reading program or instruction, it may also be used for have new gateway router to give birth in client network when detecting During effect, update message to all irdp router advertisement second gateways of management, will be come into force with triggering corresponding irdp router The ip address of gateway router increase in irdp notice list, and notice this ground in upper irdp notification packet once Location;
Cpu passes through reading program or instruction, it may also be used for when the response reply message receiving each irdp router return When, when judging that the information that reply message carries is incorrect, send described gateway again and update message, until the reply receiving The information carrying in message is correct, and the information that wherein reply message carries includes updating connecing of the irdp that message mates with gateway Mouthful, carry in the reply message that the information that reply message carries correctly is reacted for each irdp updates what message mated with gateway The quantity of the interface of irdp, updates the quantity of the ip address of the gateway router of the inefficacy carrying in message equal to gateway;
And for when not receiving the reply message of irdp router return in preset time t 1, sending triggering Message gives each irdp router;Described triggering message is used for triggering each irdp router and actively returns reply message to core road By device.
Refer to Fig. 6, the present invention also provides the auxiliary that in a kind of a kind of and above-mentioned irdp network, host gateway is switched fast The corresponding device of method 70, is applied on the irdp router of irdp network, this irdp network include core router and Irdp router, described core router is used for managing lower floor's irdp router, and described irdp router is to run irdp agreement Router, for the ip address information for the main frame currently available gateway router of notice in client network.This device Including:
Message receiving unit 71, updates message for receiving the gateway that described core router issues, described gateway updates Message carries the ip address of the gateway router of inefficacy;
Gateway updating block 72, is processed for updating message to described gateway, determines the gateway route of described inefficacy When the ip address of device is the ip address of itself notice, it is that affected main frame updates gateway address.
Wherein, described update gateway address for affected main frame particularly as follows: the impacted main frame of notice is deleted and lost efficacy Gateway router ip address, then by the ip address notification of currently available gateway router give this main frame.
Device 70 provided in an embodiment of the present invention implement the explanation that process can be found in said method embodiment, here Repeat no more.
In said apparatus 70, described gateway updating block 72 updates message to described gateway and processes, and specifically mays include: Traversal enables irdp interface, carries when the described gateway of irdp advertised address coupling under one of irdp interface updates in message The ip address of the gateway router of inefficacy when, determine the gateway router of described inefficacy ip address be itself notice ip ground Location;
Correspondingly, described gateway updating block 72 is that affected main frame updates gateway address, specifically mays include: in notice Address is mated on the irdp interface of the ip address of gateway router of described inefficacy, and described inefficacy deleted by the affected main frame of notice Gateway router ip address, and by the ip address notification of described currently available gateway router give this main frame.
In said apparatus 70, described message receiving unit 71 can be additionally used in receiving the second net that described core router issues Close and update message, described second gateway updates the ip address that message carries the gateway router that current hosts are currently in use, with And the ip address of the gateway router coming into force;
Described gateway updating block 72 can be additionally used in described second gateway renewal message is processed, and determines described current When the ip address of the gateway router that main frame is currently in use is the ip address of itself notice, by the ip ground of the gateway router coming into force Location increases in irdp notice list, and notices this address in upper irdp notification packet once.
In said apparatus 70, described gateway updating block 72 can be further used for described irdp router process and completes institute After stating gateway renewal message, return reply message to core router;The information carrying in described reply message is described Mate described gateway in irdp router and update message irdp interface;
And for described irdp router after receiving the triggering message that described core router is sent, will be currently right The result of described gateway renewal message carries and is sent to described core router in reply message.
The corresponding dress of householder method being switched fast with host gateway in a kind of above-mentioned irdp network that the present embodiment provides Put, specifically can also be realized by the hardware shown in Fig. 5, specifically, the controller (cpu) in Fig. 5 be connected with memory with And other hardware, wherein, in memory, deposit program or instruction, cpu can hold by reading program or instruction in memory Row is corresponding to be operated, and other hardware can be specifically communication interfaces etc., can receive or send message.
Specifically, cpu passes through to read the program in memory or instruction, executable following operation:
Cpu passes through reading program or instruction, receives the gateway renewal message that described core router issues, described gateway is more New message carries the ip address of the gateway router of inefficacy;
Cpu passes through reading program or instruction, updates message to described gateway and processes, determines the gateway road of described inefficacy During the ip address being itself notice by the ip address of device, it is that affected main frame updates gateway address;Described for affected master Machine updates gateway address particularly as follows: the ip address of the gateway router having lost efficacy deleted by the impacted main frame of notice, then will be current The ip address notification of available gateway router gives this main frame.
Cpu passes through reading program or instruction, updates message to described gateway and processes, specifically mays include:
Described irdp router traversal enables irdp interface, when the irdp advertised address coupling under one of irdp interface When described gateway updates the ip address of the gateway router of inefficacy carrying in message, determine the gateway router of described inefficacy Ip address is the ip address of itself notice;
Described for affected main frame update gateway address, specifically may include:
Described irdp router mates on the irdp interface of the ip address of gateway router of described inefficacy in advertised address, Notice the ip address that the gateway router of described inefficacy deleted by affected main frame, and by described currently available gateway router Ip address notification give this main frame.
Cpu passes through reading program or instruction, it may also be used for receive the second gateway renewal report that described core router issues Literary composition, described second gateway updates the ip address that message carries the gateway router that current hosts are currently in use, and new life The ip address of the gateway router of effect;And process for message is updated to described second gateway, determine described current master When the ip address of the gateway router that machine is currently in use is the ip address of itself notice, by the ip address of the gateway router coming into force Increase in irdp notice list, and notice this address in upper irdp notification packet once.
Cpu passes through reading program or instruction, it may also be used for processes after completing described gateway renewal message, returns reply report Core router given in literary composition;The information carrying in described reply message is to mate described gateway in described irdp router to update report Civilian irdp interface;And it is used for after receiving the triggering message that described core router is sent, will currently to described gateway more The result of new message carries and is sent to described core router in reply message.
It will be appreciated by those skilled in the art that the unit in device in embodiment can be distributed according to embodiment description It is disposed other than in one or more devices of the present embodiment it is also possible to carry out respective change in the device of embodiment.Above-mentioned reality The unit applying example can merge into a unit, also can be further split into multiple submodule.Foregoing invention embodiment sequence number is only Only for description, do not represent the quality of embodiment.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvement done etc., should be included within the scope of protection of the invention.

Claims (16)

1. a kind of method that in irdp network, host gateway is switched fast, is applied on the core router of irdp network, should Irdp network includes core router and irdp router, and described core router is used for managing lower floor's irdp router, institute Stating irdp router is the router running irdp agreement, for the gateway currently available for the main frame notice in client network The ip address information of router is it is characterised in that methods described includes:
The status information of the gateway router of each main frame in described core router periodic detection client network;
After described core router detects and has gateway router to lose efficacy in the gateway router of each main frame in client network, Described core router updates message to one gateway of all irdp router advertisements that it manages, to trigger corresponding irdp road It is affected main frame more new gateway ip address by device;
Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp router Include the irdp router of the ip address of the gateway router of this inefficacy for advertised address.
2. the method for claim 1 also carries new available gateway it is characterised in that described gateway updates message The ip address of router, so that the ip address of the described gateway router having lost efficacy is replaced by described corresponding irdp router Ip address for described new available gateway router.
3. method according to claim 1 is it is characterised in that also include:
When the main frame that described core router detects in client network has new gateway router to come into force, described core road Message is updated to all irdp router advertisement second gateways that it manages from device, will be come into force with triggering corresponding irdp router The ip address of gateway router increase in irdp notice list, and notice this ground in upper irdp notification packet once Location;
Wherein, described second gateway updates the ip address that message carries the gateway router that current hosts are currently in use, and The ip address of the new gateway router coming into force.
4. method as claimed in claim 1 or 2 is it is characterised in that methods described further includes:
When described core router receives the response reply message that each irdp router returns, judge that reply message carries Information incorrect when, described core router sends described gateway again and updates message, in the reply message receiving The information carrying is correct, and the information that wherein reply message carries includes updating the interface of the irdp that message mates with gateway, Carry in the reply message that the information that reply message carries correctly is reacted for each irdp updates what message mated with gateway The quantity of the interface of irdp, updates the quantity of the ip address of the gateway router of the inefficacy carrying in message equal to gateway;
When described core router does not receive the reply message of irdp router return in preset time t 1, send and touch Transmit messages literary composition to each irdp router;Described triggering message is used for triggering each irdp router and actively returns reply message to core Router.
5. the device that in a kind of irdp network, host gateway is switched fast, is applied on the core router of irdp network, should Irdp network includes core router and irdp router, and described core router is used for managing lower floor's irdp router, institute Stating irdp router is the router running irdp agreement, for the gateway currently available for the main frame notice in client network The ip address information of router is it is characterised in that described device includes:
Periodic detection unit, for the status information of the gateway router of each main frame in periodic detection client network;
Message notification unit, has gateway router to lose efficacy for working as to detect in the gateway router of each main frame in client network Afterwards, update message to one gateway of all irdp router advertisements of described core router management, to trigger corresponding irdp Router is affected main frame more new gateway ip address;
Wherein, described gateway updates the ip address that message carries the gateway router of inefficacy;Described corresponding irdp router Include the irdp router of the ip address of the gateway router of this inefficacy for advertised address.
6. device as claimed in claim 5 also carries new available gateway it is characterised in that described gateway updates message The ip address of router, so that the ip address of the described gateway router having lost efficacy is replaced by described corresponding irdp router Ip address for described new available gateway router.
7. device according to claim 5 it is characterised in that
Described message notification unit, is further used for there is new net when the main frame that periodic detection unit detects in client network When pass router comes into force, all irdp router advertisement second gateways to the management of described core router update messages, to touch To send out irdp router corresponding increase to the ip address of the gateway router coming into force in irdp notice list, and upper once This address is noticed in irdp notification packet;
Wherein, described second gateway updates the ip address that message carries the gateway router that current hosts are currently in use, and The ip address of the gateway router coming into force.
8. the device as described in claim 5 or 6 is it is characterised in that described device also includes:
Support Unit, for when described core router receives the response reply message that each irdp router returns, judging When information that reply message carries is incorrect, sends described gateway again and update message, in the reply message receiving The information carrying is correct, and the information that wherein reply message carries includes updating the interface of the irdp that message mates with gateway, Carry in the reply message that the information that reply message carries correctly is reacted for each irdp updates what message mated with gateway The quantity of the interface of irdp, updates the quantity of the ip address of the gateway router of the inefficacy carrying in message equal to gateway;
And for not receiving the reply message of irdp router return in preset time t 1 when described core router When, send triggering message to each irdp router;Described triggering message is used for triggering each irdp router and actively returns reply to be reported Core router given in literary composition.
9. the householder method that in a kind of irdp network, host gateway is switched fast, is applied on the irdp router of irdp network, This network includes core router and irdp router, and described core router is used for managing lower floor's irdp router, described Irdp router is the router running irdp agreement, for the ip address letter of the gateway router currently available for main frame notice Breath is it is characterised in that methods described includes:
Described irdp router receives the gateway renewal message that described core router issues, and described gateway updates message and carries The ip address of the gateway router losing efficacy;
Described irdp router updates message to described gateway and processes, and determines the ip address of the gateway router of described inefficacy For itself notice ip address when, be that affected main frame updates gateway address;
Described update gateway address for affected main frame particularly as follows: the gateway route having lost efficacy deleted by the impacted main frame of notice The ip address of device, then the ip address notification of currently available gateway router is given this main frame.
10. method as claimed in claim 9 is it is characterised in that described irdp router is carried out to described gateway renewal message Process, specifically include:
Described irdp router traversal enables irdp interface, when the irdp advertised address coupling under one of irdp interface is described When gateway updates the ip address of the gateway router of inefficacy carrying in message, determine the ip ground of the gateway router of described inefficacy Location is the ip address of itself notice;
Described for affected main frame update gateway address, specifically include:
Described irdp router mates on the irdp interface of the ip address of gateway router of described inefficacy in advertised address, notice The ip address of the gateway router of described inefficacy deleted by affected main frame, and the ip by described currently available gateway router Address notification gives this main frame.
11. methods as claimed in claim 9 are it is characterised in that also include:
Described irdp router receives the second gateway renewal message that described core router issues, and described second gateway updates report Literary composition carries the ip address of the gateway router that current hosts are currently in use, and the ip ground of the new gateway router coming into force Location;
Described irdp router updates message to described second gateway and processes, and determines the net that described current hosts are currently in use When the ip address of pass router is the ip address of itself notice, the ip address of the gateway router coming into force is increased to irdp notice In list, and notice this address in upper irdp notification packet once.
12. methods as claimed in claim 9 are it is characterised in that methods described further includes:
Described irdp router is processed after completing described gateway renewal message, returns reply message to core router;Described The information carrying in reply message is to mate described gateway in described irdp router to update message irdp interface;
Described irdp router, after receiving the triggering message that described core router is sent, will currently update to described gateway The result of message carries and is sent to described core router in reply message.
The servicing unit that in a kind of 13. irdp networks, host gateway is switched fast, is applied on the irdp router of irdp network, This network includes core router and irdp router, and described core router is used for managing lower floor's irdp router, described Irdp router is the router running irdp agreement, for the ip address letter of the gateway router currently available for main frame notice Breath is it is characterised in that described device includes:
Message receiving unit, updates message for receiving the gateway that described core router issues, described gateway updates message and takes Ip address with the gateway router losing efficacy;
Gateway updating block, processes for updating message to described gateway, determines the ip of the gateway router of described inefficacy When address is the ip address of described irdp router advertisement, it is that affected main frame updates gateway address;
Described update gateway address for affected main frame particularly as follows: the gateway route having lost efficacy deleted by the impacted main frame of notice The ip address of device, then the ip address notification of currently available gateway router is given this main frame.
14. devices as claimed in claim 13 are it is characterised in that described gateway updating block enters to described gateway renewal message Row is processed, and specifically includes: traversal enables irdp interface, when the irdp advertised address under one of irdp interface mates described net When closing the ip address of the gateway router of inefficacy carrying in renewal message, determine the ip address of the gateway router of described inefficacy Ip address for described irdp router advertisement;
Described gateway updating block is that affected main frame updates gateway address, specifically includes: mate described mistake in advertised address On the irdp interface of the ip address of gateway router of effect, the gateway router of described inefficacy deleted by the affected main frame of notice Ip address, and the ip address notification of described currently available gateway router is given this main frame.
15. devices as claimed in claim 13 are it is characterised in that described message receiving unit is additionally operable to receive described core road Message is updated by the second gateway that device issues, described second gateway updates message and carries the gateway road that current hosts are currently in use By the ip address of device, and the ip address of the gateway router coming into force;
Described gateway updating block is additionally operable to described second gateway renewal message is processed, and is determining described current hosts When the ip address of the gateway router using is the ip address of described irdp router advertisement, by the ip of the gateway router coming into force Address increases in irdp notice list, and notices this address in upper irdp notification packet once.
16. devices as claimed in claim 13 are it is characterised in that described gateway updating block is further used for described irdp road Processed by device after completing described gateway renewal message, return reply message to core router;Carry in described reply message Information be to mate described gateway in described irdp router to update message irdp interface;
And for described irdp router after receiving the triggering message that described core router is sent, will be currently to described The result of gateway renewal message carries and is sent to described core router in reply message.
CN201310632563.8A 2013-11-29 2013-11-29 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network Active CN103595629B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310632563.8A CN103595629B (en) 2013-11-29 2013-11-29 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310632563.8A CN103595629B (en) 2013-11-29 2013-11-29 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network

Publications (2)

Publication Number Publication Date
CN103595629A CN103595629A (en) 2014-02-19
CN103595629B true CN103595629B (en) 2017-01-18

Family

ID=50085618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310632563.8A Active CN103595629B (en) 2013-11-29 2013-11-29 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network

Country Status (1)

Country Link
CN (1) CN103595629B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591920B (en) * 2015-09-15 2018-12-11 新华三技术有限公司 RA message processing method and device based on IRDP
CN106789662B (en) * 2016-01-04 2020-08-14 新华三技术有限公司 Route announcement method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030069990A1 (en) * 2001-10-05 2003-04-10 D'annunzio Michael A. Router discovery protocol on a mobile internet protocol based network
US20060075126A1 (en) * 2004-09-29 2006-04-06 Lehrschall Ronald W Method for fast switchover and recovery of a media gateway
CN101562531A (en) * 2008-04-15 2009-10-21 中国移动通信集团公司 Method and system for processing network fault and router
CN100576815C (en) * 2001-09-06 2009-12-30 波音公司 Based on the router discover method on the network of mobile IP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100576815C (en) * 2001-09-06 2009-12-30 波音公司 Based on the router discover method on the network of mobile IP
US20030069990A1 (en) * 2001-10-05 2003-04-10 D'annunzio Michael A. Router discovery protocol on a mobile internet protocol based network
US20060075126A1 (en) * 2004-09-29 2006-04-06 Lehrschall Ronald W Method for fast switchover and recovery of a media gateway
CN101562531A (en) * 2008-04-15 2009-10-21 中国移动通信集团公司 Method and system for processing network fault and router

Also Published As

Publication number Publication date
CN103595629A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN109831341B (en) Method and device for rapidly switching redundant double network cards
CN101517544B (en) Network routing to the socket
CN100579034C (en) Method for reporting equipment information, system and device for obtaining equipment information
JP5801175B2 (en) Packet communication apparatus and method
CN102694718B (en) A kind of VPLS fast rerouting method and equipment
CN101335689B (en) Traceroute implementing method and equipment
CN102932499B (en) Method and device for learning media access control (MAC) addresses in virtual private lan service (VPLS) networks
CN102340451B (en) Trace route testing method, system, device and equipment
CN110034971A (en) Detect the method and device of business chain
CN101174975B (en) Periodic line fault location method and system in Ethernet
CN105636011A (en) Communications methods, system and apparatus
CN101094121B (en) Method, system and device for detecting Ethernet links among not direct connected devices
CN102904818A (en) Method and device for updating ARP (Address Resolution Protocol) information table
CN103595629B (en) Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network
US20060002306A1 (en) Failure detection of path information corresponding to a transmission path
CN104333467B (en) A kind of gateway proxy method and apparatus of track traffic wireless network links failure
US20120182885A1 (en) Testing Connectivity in Networks Using Overlay Transport Virtualization
US7636315B2 (en) Broadcast traceroute
WO2011144139A1 (en) Method and device for detecting internet protocol address collision in autonomous system
CN106911548A (en) A kind of tunnel state changing method and device
JP5333793B2 (en) Topology specifying method and topology specifying device
Cisco Troubleshooting Internetworking Systems
Cisco AppleTalk Commands
CN105025028A (en) IP black hole discovering method based on flow analysis
Cisco AppleTalk Routing Commands

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.