CN101383727A - Router maintaining method and router - Google Patents

Router maintaining method and router Download PDF

Info

Publication number
CN101383727A
CN101383727A CNA2008101722160A CN200810172216A CN101383727A CN 101383727 A CN101383727 A CN 101383727A CN A2008101722160 A CNA2008101722160 A CN A2008101722160A CN 200810172216 A CN200810172216 A CN 200810172216A CN 101383727 A CN101383727 A CN 101383727A
Authority
CN
China
Prior art keywords
router
announcement
information
area network
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101722160A
Other languages
Chinese (zh)
Other versions
CN101383727B (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 CN2008101722160A priority Critical patent/CN101383727B/en
Publication of CN101383727A publication Critical patent/CN101383727A/en
Application granted granted Critical
Publication of CN101383727B publication Critical patent/CN101383727B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a maintenance method of a router and a router thereof. The method comprises: the router obtains and stores information of a first router distributing router advertisement in a local area network; first router is detected to be broken down; according to the information of the first router, the router imitates the first router to distribute the advertisement of the failure of the first router to the terminal in the local area network. When detecting that other routers break down, the router notifies the breakdown routers to the terminal in the local area network by the way of imitating the router advertisement, so the time of shutting off the terminal after the routers are broken down is shortened.

Description

Router maintaining method and router
Technical field
The present invention relates to communication technical field, relate in particular to a kind of router maintaining method and router.
Background technology
IPv6 (Internet Protocol Version 6, IPv 6) is the second generation standard agreement of network layer protocol as the upgraded version of IPv4, is also referred to as IPng (IP Next Generation, next generation Internet).The most significant difference is between IPv6 and the IPv4: the length of IP address is increased to 128 bits from 32 bits.
In the IPv6 agreement, new terminal need not be carried out manual configuration after joining existing network, disposes automatically by discovery of router discovery/prefix and address, can finish the configuration that is necessary.The discovery procedure of router discovery/prefix realizes that by RS (Router Solicitation, router solicitation) message and RA (Router Advertisement, router advertisement) message detailed process comprises as shown in Figure 1:
When step s101, starting terminal, send request by RS message to router, request prefix and other configuration informations are to be used for the configuration of terminal.
Step s102, router return RA message to terminal, comprising prefix information option.In addition, router also can be issued RA message the cycle, and the cycle of transmission is the random value in a pre-configured scope.
Step s103, terminal are utilized address prefix and other configuration parameters in the RA message that router returns, automatically configuration of IP v6 address and other information.
In a local area network (LAN), the router of a plurality of issue router advertisement message can occur, but other parameters except source IP address should be consistent in the router advertisement message of sending, in order to avoid cause the terminal configuration confusion in the same local area network (LAN).The benefit that occurs the router of a plurality of issue router advertisements in a local area network (LAN) is to allow the terminal in the local area network (LAN) learn a plurality of default routers, terminal can be according to the strategy of this locality, select different routers as first-selected router, if when current first-selected router breaks down, can reselect another router as first-selected router.
Problems of the prior art are that when the router cisco unity malfunction of certain issue router advertisement message, when in time not sending router advertisement message again, terminal can not in time perceive router and go wrong.Terminal need be deleted from default router list through the router that the long period will lose efficacy, and causes the cutout time oversize (at least 3 seconds), and this business for some delay sensitives is flagrant.
Summary of the invention
The invention provides a kind of router maintaining method and router, to shorten the time of terminal cutout after router breaks down.
For achieving the above object, the invention provides a kind of router maintaining method, comprising:
Obtain and local storage area network in the information of the first router of issue router advertisement;
Detecting described the first router breaks down;
According to the information of described the first router, the terminal of counterfeit described the first router in described local area network (LAN) issued the announcement that described the first router lost efficacy.
Wherein, the information of described the first router comprises: the Internet Protocol IP address of described the first router, media access control MAC address, MTU MTU information and address prefix.
Wherein, the described the first router that detects breaks down and comprises:
By the method for heartbeat detection, the described the first router of issuing router advertisement in the LAN is detected; When in predetermined times, not receiving the response of described the first router, judge that described the first router breaks down.
Wherein, the terminal of described counterfeit the first router in described local area network (LAN) issued the announcement that described the first router lost efficacy and comprised:
The announcement that the structure the first router lost efficacy, the source IP address of described announcement are that the source MAC of the IP address of described the first router, described announcement is that MAC Address, the MTU information in the described announcement and the address prefix of described the first router obtains according to the information of described the first router; Router time-to-live Router Lifetime in the described announcement is 0;
Terminal in described local area network (LAN) is issued the announcement that described the first router lost efficacy.
Wherein, the terminal of described counterfeit the first router in described local area network (LAN) also comprises after issuing the announcement of described the first router inefficacy:
The information of the described the first router of the local storage of deletion.
The present invention also provides a kind of router, comprising:
Information acquisition unit is used for obtaining the information that also local storage area network is issued the first router of router advertisement;
Whether detecting unit is used to detect described the first router and breaks down;
The announcement transmitting element, be used for when described detecting unit detects described the first router and breaks down, the information of the described the first router of obtaining according to described information acquisition unit, the terminal of counterfeit described the first router in described local area network (LAN) are issued the announcement that described the first router lost efficacy.
Wherein, described detecting unit is specially:
The heartbeat detection subelement is used for the method by heartbeat detection, and the described the first router of issuing router advertisement in the LAN is detected; When in predetermined times, not receiving the response of described the first router, judge that described the first router breaks down.
Wherein, described announcement transmitting element specifically comprises:
Announcement constructor unit, be used for the announcement that the information structuring the first router of the described the first router obtained according to described information acquisition unit lost efficacy, the source IP address of described announcement is that the source MAC of the IP address of described the first router, described announcement is that MAC Address, the MTU information in the described announcement and the address prefix of described the first router obtains according to the information of described the first router; Router time-to-live Router Lifetime in the described announcement is 0;
Announcement sends subelement, is used for issuing to the terminal of described local area network (LAN) the announcement of the first router inefficacy of described announcement constructor unit structure.
Wherein, also comprise:
The information deletion unit is used for deleting the information of the described the first router of storing in the described information acquisition unit after the counterfeit described the first router of described announcement transmitting element is issued the announcement of described the first router inefficacy to the terminal of described local area network (LAN).
Compared with prior art, the present invention has the following advantages:
Among the present invention, when other routers broke down, the mode by counterfeit issue router advertisement was the terminal in the router advertisement local area network (LAN) that breaks down in router detection, shortened terminal and broken down time of back cutout at router.
Description of drawings
Fig. 1 is the schematic diagram of mutual RS message and RA message between terminal and router in the prior art;
Fig. 2 is the flow chart of router maintaining method among the present invention;
Fig. 3 is the application scenarios schematic diagram of router maintaining method among the present invention;
Fig. 4 is another flow chart of router maintaining method among the present invention;
Fig. 5 is the structural representation of router device among the present invention;
Fig. 6 is another structural representation of router device among the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The invention provides a kind of maintaining method of router, as shown in Figure 2, comprising:
Step s201, obtain and local storage area network in the information of the first router of issue router advertisement.
Step s202, detect the first router and break down.
Step s203, according to the information of the first router, the announcement that the terminal issue the first router of counterfeit the first router in local area network (LAN) lost efficacy.
In the said method provided by the invention, in router detection when other routers break down, mode by counterfeit issue router advertisement is the terminal in the router advertisement local area network (LAN) that breaks down, and shortened terminal and broken down time of back cutout at router.
Below in conjunction with a concrete application scenarios, the embodiment of the sending method of router advertisement message among the present invention is described.With network environment shown in Figure 3 is example, is deployed with two router Router A and Router B in local area network (LAN), and the terminal A in the local area network (LAN), terminal B are connected with two routers respectively with terminal C, by with the mutual realization address configuration of router.
At first the major parameter in the router advertisement RA message that terminal sends describes to router-A and router B.Generally speaking, comprise in the RA message:
Router Lifetime (router time-to-live): the expression router is as the time (unit is second) of default router.(the interface that comprises shutdown issue router advertisement when router is not re-used as advertizing router, situations such as the following electricity of management), it is 0 router advertisement that router can initiatively send a Router Lifetime, and the terminal in the notice local area network (LAN) is deleted this router from default router list.
Prefix Information: represent prefix information, not only comprise the information of address prefix in the prefix information, also comprise first-selected lifetime (preferred lifetime) and effective lifetime (validlifetime) of this address prefix.After terminal is received the RA message of router transmission, can be according to first-selected lifetime and effective lifetime of this information updating prefix.In effective lifetime, the address that generates can normally be used automatically; Effectively after the lifetime, the address that generates is with deleted automatically.
Should be that example illustrates application process of the present invention with the detection of with router-A router B being carried out in the scene, be understandable that, router B also can detect router-A based on same or analogous method, for router B repeat specification is not carried out in the detection of router-A.,
Explanation based on Router Lifetime in the above-mentioned router advertisement RA message, in the router maintaining method of the present invention, when router-A detects router B and breaks down, sending a Router Lifetime by the counterfeit router B of router-A is 0 router advertisement, and each terminal in the notice local area network (LAN): router B should not appear in the default router list.Thereby each terminal in the triggering local area network (LAN) makes instant router B self in time not send router advertisement message fast with router B deletion from the default gateway tabulation, and terminal also in time perceives router B fault, has shortened the cutout time.,
Concrete, as shown in Figure 4, the router maintaining method of implementing in the router-A among the present invention may further comprise the steps:
Step s401, Router B issue router advertisement message when operate as normal.
When step s402, Router A receive the router advertisement message of Router B transmission, the information of RouterB is kept at this locality, the information of preserving comprises IP address, MAC (Medium Access Control, the medium access control) address, receive the interface of router advertisement, MTU (Maximum TransmissionUnits, maximum transmission unit) information and address prefix etc.
Step s403, Router A carry out heartbeat detection to the address of Router B, send heartbeat detection message to Router B.Concrete, Router A can begin the heartbeat detection to Router B address automatically according to the information of the Router B that obtains.
Step s404, Router B send the heartbeat response message to router-A when operate as normal.
Step s405, certain moment Router B break down.
Step s406, Router A N continuous time (for example being set to 3 times) do not receive the heartbeat response message of Router B, judge the heartbeat detection failure, and Router B breaks down.
Step s407, Router A are according to the information of the Router B that preserves, and structure Router Lifetime is 0 router advertisement message.The source IP address of router advertisement message is that the source MAC of IP address, the router advertisement message of Router B is the MAC Address of Router B, the MTU information in the router advertisement message and address prefix obtain according to the information of the Router B that preserves among the step s402; Router time-to-live Router Lifetime in the router advertisement message is 0.
The counterfeit Router B of step s408, Router A issues this router advertisement message, makes that the terminal in the network is deleted Router B from the default gateway tabulation.
Afterwards, the information deletion of the Router B that Router A can preserve this locality, cancellation is to the heartbeat detection of Router B.In addition, be 0 router advertisement if Router A receives Router Lifetime that Router B initiatively sends, if local information of preserving Router B, the information deletion of the Router B that this locality is preserved then, and cancellation is to the heartbeat detection of Router B.
In the above-mentioned application scenarios of the present invention, be that example has illustrated the embodiment of router maintaining method among the present invention to be deployed with router in the local area network (LAN).In actual applications, can have more complicated networking scene in the local area network (LAN), be three or more as the quantity of router.When in more complicated networking scene, implementing router maintaining method of the present invention, as for the router more than three, can all detect other routers by each router, and when detecting other arbitrary router failures all counterfeit issue router advertisement; Also can dispose each router and only specific destination router be detected counterfeit issue router advertisement when detecting the destination router fault.Be understandable that it is similar with the implementation method in the simple scenario shown in Figure 4 to above-mentioned Fig. 3 that it implements principle, therefore be not repeated in this description at this.
In the said method provided by the invention, in router detection when other routers break down, mode by counterfeit issue router advertisement is the terminal in the router advertisement local area network (LAN) that breaks down, and shortened terminal and broken down time of back cutout at router.Can use BFD (BidirectionalForwarding Detection, two-way forwarding detects) as the means of heartbeat detection, concrete, can between two routers, set up the BFD session, by regularly sending out BFD session method of message between the router mutually, make a router can detect end-to-end router and whether break down.The interval of heartbeat detection can be shortened to 10ms by the BFD method, the time of cutout can be shortened to about 40ms.
The present invention also provides a kind of router, as shown in Figure 5, comprising:
Information acquisition unit 10 is used for obtaining the information that also local storage area network is issued the first router of router advertisement.
Whether detecting unit 20 is used to detect the first router and breaks down.
Announcement transmitting element 30 is used for when detecting unit 20 detects the first router and breaks down, the information of the first router of obtaining according to information acquisition unit 10, the announcement that the terminal issue the first router of counterfeit the first router in local area network (LAN) lost efficacy.
The information of the first router that relates among the present invention comprises: the Internet Protocol IP address of the first router, media access control MAC address, MTU MTU information and address prefix.
The structure of this router can also comprise as shown in Figure 6:
Information deletion unit 40 is used in announcement transmitting element 30 counterfeit the first router after the announcement of the terminal issue the first router inefficacy of local area network (LAN) the information of the first router of storage in the deletion information acquisition unit 10.
Detecting unit 20 is specially: heartbeat detection subelement 21, be used for method by heartbeat detection, and the first router of issuing router advertisement in the LAN is detected; When in predetermined times, not receiving the response of the first router, judge that the first router breaks down.For example can use the means of BFD as heartbeat detection, concrete, can between two routers, set up the BFD session, by regularly sending out BFD session method of message between the router mutually, make a router can detect end-to-end router and whether break down.
Announcement transmitting element 30 specifically comprises:
Announcement constructor unit 31, be used for the announcement that the information structuring the first router of the first router obtained according to information acquisition unit 10 lost efficacy, the source IP address of announcement is that to be MTU information in the MAC Address of the first router, the announcement and address prefix obtain according to the information of the first router the source MAC of IP address, the announcement of the first router; Router time-to-live Router Lifetime in the announcement is 0;
Announcement sends subelement 32, is used for the announcement that the first router of constructor unit 31 structures lost efficacy that notifies of terminal to local area network (LAN).
In the said equipment provided by the invention, in router detection when other routers break down, mode by counterfeit issue router advertisement is the terminal in the router advertisement local area network (LAN) that breaks down, and shortened terminal and broken down time of back cutout at router.Can use the means of BFD, the interval of heartbeat detection can be shortened to 10ms, the time of cutout can be shortened to about 40ms as heartbeat detection.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (9)

1, a kind of maintaining method of router is characterized in that, comprising:
Obtain and local storage area network in the information of the first router of issue router advertisement;
Detecting described the first router breaks down;
According to the information of described the first router, the terminal of counterfeit described the first router in described local area network (LAN) issued the announcement that described the first router lost efficacy.
2, the method for claim 1 is characterized in that, the information of described the first router comprises: the Internet Protocol IP address of described the first router, media access control MAC address, MTU MTU information and address prefix.
3, the method for claim 1 is characterized in that, the described the first router that detects breaks down and comprises:
By the method for heartbeat detection, the described the first router of issuing router advertisement in the LAN is detected; When in predetermined times, not receiving the response of described the first router, judge that described the first router breaks down.
4, method as claimed in claim 2 is characterized in that, the announcement that the terminal of described counterfeit the first router in described local area network (LAN) issued described the first router inefficacy comprises:
The announcement that the structure the first router lost efficacy, the source IP address of described announcement are that the source MAC of the IP address of described the first router, described announcement is that MAC Address, the MTU information in the described announcement and the address prefix of described the first router obtains according to the information of described the first router; Router time-to-live Router Lifetime in the described announcement is 0;
Terminal in described local area network (LAN) is issued the announcement that described the first router lost efficacy.
As claim 1 or 4 described methods, it is characterized in that 5, the terminal of described counterfeit the first router in described local area network (LAN) also comprises after issuing the announcement of described the first router inefficacy:
The information of the described the first router of the local storage of deletion.
6, a kind of router is characterized in that, comprising:
Information acquisition unit is used for obtaining the information that also local storage area network is issued the first router of router advertisement;
Whether detecting unit is used to detect described the first router and breaks down;
The announcement transmitting element, be used for when described detecting unit detects described the first router and breaks down, the information of the described the first router of obtaining according to described information acquisition unit, the terminal of counterfeit described the first router in described local area network (LAN) are issued the announcement that described the first router lost efficacy.
7, router as claimed in claim 6 is characterized in that, described detecting unit is specially:
The heartbeat detection subelement is used for the method by heartbeat detection, and the described the first router of issuing router advertisement in the LAN is detected; When in predetermined times, not receiving the response of described the first router, judge that described the first router breaks down.
8, router as claimed in claim 6 is characterized in that, described announcement transmitting element specifically comprises:
Announcement constructor unit, be used for the announcement that the information structuring the first router of the described the first router obtained according to described information acquisition unit lost efficacy, the source IP address of described announcement is that the source MAC of the IP address of described the first router, described announcement is that MAC Address, the MTU information in the described announcement and the address prefix of described the first router obtains according to the information of described the first router; Router time-to-live Router Lifetime in the described announcement is 0;
Announcement sends subelement, is used for issuing to the terminal of described local area network (LAN) the announcement of the first router inefficacy of described announcement constructor unit structure.
9, as each described router in the claim 6 to 8, it is characterized in that, also comprise:
The information deletion unit is used for deleting the information of the described the first router of storing in the described information acquisition unit after the counterfeit described the first router of described announcement transmitting element is issued the announcement of described the first router inefficacy to the terminal of described local area network (LAN).
CN2008101722160A 2008-10-31 2008-10-31 Router maintaining method and router Expired - Fee Related CN101383727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101722160A CN101383727B (en) 2008-10-31 2008-10-31 Router maintaining method and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101722160A CN101383727B (en) 2008-10-31 2008-10-31 Router maintaining method and router

Publications (2)

Publication Number Publication Date
CN101383727A true CN101383727A (en) 2009-03-11
CN101383727B CN101383727B (en) 2010-12-08

Family

ID=40463365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101722160A Expired - Fee Related CN101383727B (en) 2008-10-31 2008-10-31 Router maintaining method and router

Country Status (1)

Country Link
CN (1) CN101383727B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401847A (en) * 2009-07-08 2013-11-20 中兴通讯股份有限公司 Counterfeit judging method
WO2016112484A1 (en) * 2015-01-12 2016-07-21 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for router maintenance

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1265593C (en) * 2002-11-19 2006-07-19 华为技术有限公司 Detecting method of reachability among IP network equipments and its application in public dialing network platform accessing backup
CN100370736C (en) * 2003-09-02 2008-02-20 华为技术有限公司 Method for managing resources based on planes
CN100596117C (en) * 2007-11-09 2010-03-24 杭州华三通信技术有限公司 A route information spreading method and router

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401847A (en) * 2009-07-08 2013-11-20 中兴通讯股份有限公司 Counterfeit judging method
CN103401847B (en) * 2009-07-08 2016-12-28 中兴通讯股份有限公司 A kind of counterfeit determination methods
WO2016112484A1 (en) * 2015-01-12 2016-07-21 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for router maintenance
US10257021B2 (en) 2015-01-12 2019-04-09 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for router maintenance

Also Published As

Publication number Publication date
CN101383727B (en) 2010-12-08

Similar Documents

Publication Publication Date Title
US10298538B2 (en) Address resolution
CN103580880B (en) Method, equipment and system abnormal a kind of fast notification CGN
US7885294B2 (en) Signaling compression information using routing protocols
CN101621414B (en) Method and apparatus for discovering network resource and topology
CN101459594B (en) BFD packet transmitting method, link failure detection method and apparatus
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
CN102694672A (en) Method for parameter migration of virtual machine, equipment and virtual machine server
CN101447895A (en) Collocation method for synchronizing network management and network element and device thereof
CN102377833B (en) Method and device for managing network address translation
CN101764751A (en) Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN101848171A (en) Data transmission method based on GRE tunnel, device and system
US20140082158A1 (en) Method, apparatus and system for configuring network device
CN104135460A (en) Method for keeping push channel active and push server
CN102333335A (en) Service recovery method, equipment and system for wireless local area network (WLAN)
CN102868569A (en) Method, node and system for detecting performance of three-layer virtual private network
CN102761482A (en) Method for building BGP (border gateway protocol) neighbor and equipment therefore
US20140032782A1 (en) Method and apparatus for route selection of host in multihoming site
CN101577723B (en) Method for preventing neighbor discovery protocol message attack and device
CN103188153B (en) BFD file transmitting method and equipment on a kind of broadcasting network link
CN102447703B (en) A kind of heat backup method and system, CGN equipment
CN102638396B (en) Load balancing method and device
CN101383727B (en) Router maintaining method and router
CN109150711B (en) Protection switching method, device and storage medium for point-to-multipoint two-layer multicast service
CN103873339A (en) Method and device for distributing virtual gateway router
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address

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.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101208

Termination date: 20201031