CN105591920A - IRDP-based RA message processing method and device - Google Patents

IRDP-based RA message processing method and device Download PDF

Info

Publication number
CN105591920A
CN105591920A CN201510583388.7A CN201510583388A CN105591920A CN 105591920 A CN105591920 A CN 105591920A CN 201510583388 A CN201510583388 A CN 201510583388A CN 105591920 A CN105591920 A CN 105591920A
Authority
CN
China
Prior art keywords
address
message
priority
state
record
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
CN201510583388.7A
Other languages
Chinese (zh)
Other versions
CN105591920B (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.)
Hangzhou 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 CN201510583388.7A priority Critical patent/CN105591920B/en
Publication of CN105591920A publication Critical patent/CN105591920A/en
Application granted granted Critical
Publication of CN105591920B publication Critical patent/CN105591920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The invention discloses an IRDP-based RA message processing method and an IRDP-based RA message processing device. The IRDP-based RA message processing method comprises the steps of: sending a first RA message carrying IP addresses of interfaces and priorities of the IP addresses through the interfaces of equipment; receiving the first RA message, saving the IP address with the highest priority among all the IP addresses carried by the received first RA message, and setting a state of the IP address to be valid when the priority of the saved IP address is higher than the priorities of all the IP addresses of incoming interfaces of the first RA message carrying the saved IP address; and sending a second RA message used for indicating a host to delete an IP address of a default gateway when detecting that the state of other gateway routing equipment to which the saved IP address belongs is unavailable and the state of the saved IP address is valid, deleting the saved IP address and its state after sending the second RA message, and sending the first RA message through the interface of the equipment immediately.

Description

RA message processing method and device based on IRDP
Technical field
The application relates to network communications technology field, particularly a kind of RA message place based on IRDPReason method and device.
Background technology
If the main frame in network wants to send message to network-external, this main frame need to obtain present networksIP (InternetProtocol, the Internet Protocol) address of at least one interior gateway router, and willWherein the IP address of a gateway router is set to the IP address of default gateway, thereby by acquiescence netClose and forward the packet away. The mode that main frame obtains the IP address of default gateway mainly contains two kinds:
First kind of way is the IP address net by default of a gateway router of manual configuration on main frameThe IP address of closing, still, this mode needs manual static configuration and maintenance, has increased configuration effort amount,And can not adapt to the dynamic change of network;
The second way is that main frame is intercepted the routing protocol packet in network, from routing protocol packet, obtainsThe IP address of at least one gateway router, and wherein the IP address of a gateway router is set toThe IP address of default gateway. But this mode requires main frame can identify the message of various Routing Protocols,This requires too high for a main frame, and operation state route association not on gateway router sometimesView, now main frame just cannot listen to routing protocol packet.
In order to address the above problem, IRDP (ICMPRouterDiscoveryProtocol, ICMP are proposedRouter discovery protocol), this agreement be ICMP (InternetControlMessageProtocol, mutuallyNetworking control messaging protocol) an expansion, adopt two kinds of new icmp packet types to realize main frameTo the discovery of gateway router, make main frame can dynamically find the IP of gateway router in local networkAddress, and wherein the IP address of a gateway router is set to the IP address of default gateway. IRDPVariation that can dynamically adapting network, does not safeguard by hand a large amount of configurations yet, and does not rely on anyA kind of concrete Routing Protocol.
Gateway router periodically sends RA (Router by the interface that has enabled IRDP on this equipmentAdvertisement, route announcement) message, (also can announce hand for the IP address of announcing this interfaceThe Agent IP address of moving static configuration), priority and the life span (LifeTime) of this IP addressDeng. In addition, in the time that a main frame has just been connected on network, it can initiatively send RS (RouterSolicitation, route requests) message is asked the IP address of gateway router, instead of passive waitRA message. If the RS message that main frame sends is not responded, it can retransmit RS report several timesLiterary composition is until reach number of retransmissions threshold value. When main frame cannot get gateway router by above-mentioned active modeIP address time, it can also by gateway router periodically the RA message of bulletin obtain gateway roadBy the IP address of device.
Main frame receives after RA message, the IP address of carrying from all RA messages of receiving, selects oneThe IP address that individual priority is the highest, is set to the IP address of the default gateway of the machine.
If it is unavailable that the state of default gateway becomes, for example, default gateway break down or main frame andLink failure between default gateway, so, main frame can arrive in the life span of the IP address of default gatewayAfter reaching, send RS message and send RA message with the gateway router in informing network, thereby again establishPut the IP address of new default gateway, that is, main frame need to be waited until the life span of the IP address of default gatewayAfter arrival, could ask the gateway router in network to send RA message to reselect a priorityThe highest IP address is as the IP address of new default gateway. Like this, become at the state of former default gatewayAfter unavailable and arrange before the IP address of new default gateway during this period of time in, maximum during this period of timeCan reach the life span of former default gateway ip address, main frame still can mail to message former default gateway,Thereby can cause flow interruption.
Summary of the invention
In view of this, the application provides a kind of RA message processing method and device based on IRDP.
The application's technical scheme is as follows:
On the one hand, provide a kind of RA message processing method based on IRDP, be applied to gateway routeEquipment, the method comprises:
Interface by this equipment sends a RA message, wherein, carries this and connect in a RA messageIP address and the priority thereof of mouth;
Receive the RA message that other gateway routing device is sent in network, preserve receive all firstThe IP address that Internet Protocol IP address medium priority that RA message carries is the highest also arranges the IP address of preservationState, wherein, in the priority of the IP address of preserving higher than a RA report of IP address that carries preservationWhen the priority of all IP address of the incoming interface of literary composition, state is set to effectively; In the one RA message, carryThere are IP address and the priority thereof of the outgoing interface of a RA message;
When the state of other gateway routing device under the IP address that preservation detected becomes when unavailable, ifThe state of IP address of preserving be effectively, send be used to indicate main frame deletion default gateway IP address theTwo RA messages, are sending after the 2nd RA message, delete IP address and the state thereof preserved, and immediatelyInterface by this equipment sends a RA message.
On the other hand, also provide a kind of RA message process device based on IRDP, be applied to gateway routeIn equipment, this device comprises:
Receiver module, a RA message of sending for receiving other gateway routing device of network, wherein,In the one RA message, carry IP address and the priority thereof of the outgoing interface of a RA message;
Detection module, for detection of the state of other gateway routing device in network;
Preserve module, the Internet Protocol IP carrying for preserving all RA messages that receiver module receivesThe IP address that address medium priority is the highest also arranges the state of the IP address of preservation, wherein, and the IP preservingThe priority of address is higher than all IP address of incoming interface of a RA message of IP address of carrying preservationWhen priority, state is set to effectively;
Sending module, sends a RA message for the periodic interface by this equipment, and wherein, this is the years oldIn one RA message, carry IP address and the priority thereof of this interface; Also for guarantor being detected when detection moduleThe state of other gateway routing device under the IP address of preserving in storing module becomes when unavailable, if preserveThe state of IP address be effectively, send be used to indicate main frame delete default gateway IP address secondRA message; Also, for after sending the 2nd RA message, send first by the interface of this equipment immediatelyRA message;
Removing module, for send the 2nd RA message at sending module after, deletes to preserve in module and preservesIP address and state thereof.
In the application's above technical scheme, the arbitrary gateway router in network is by the interface of this equipmentThe IP address of this interface and a RA message of priority thereof are carried in transmission, receive other gateway in networkThe IP address of outgoing interface and a RA message of priority thereof of what router was sent carry this message, protectDeposit the IP address that IP address medium priority that all RA messages of receiving carry is the highest the IP ground of preservingThe priority of location is higher than all IP address of incoming interface of a RA message of IP address of carrying this preservationWhen priority, the state of the IP address of preservation is set to effectively; When detecting under the IP address of this preservationThe state of other gateway router become when unavailable, if the state of the IP address of this preservation is effectively,Send the IP address (IP of the default gateway of main frame that the 2nd RA message is used to indicate main frame deletion default gatewayAddress is the IP address of this preservation), sending after the 2nd RA message, delete the IP address of this preservationAnd state, and send a RA message by the interface of this equipment immediately, so that main frame can resetThe IP address of new default gateway also sends message by new default gateway. Like this, on non-default gateway, can preserveThe IP address of default gateway is also set to effective status, when detecting that the state of default gateway becomes when unavailable,The IP address that notice main frame is deleted default gateway in time, thus main frame can become at the state of default gatewayWhen unavailable, delete immediately the IP address of the default gateway losing efficacy, and without the IP ground of default gateway by the timeThe life span of location is just deleted after arriving, and follow-up, main frame is that available gateway router is sent out at the state of receivingAfter the RA message coming, be the IP address of reconfigurable new default gateway, effectively shortened acquiescence netThe state closing becomes unavailable the caused host data stream break period.
Brief description of the drawings
Fig. 1 is the flow chart of the RA message processing method based on IRDP of the embodiment of the present application;
Fig. 2 is a kind of network architecture schematic diagram of reality;
Fig. 3 is the structural representation of the RA message process device based on IRDP of the embodiment of the present application.
Detailed description of the invention
In prior art, unavailable if the state of default gateway becomes, main frame need to reset newlyThe IP address of default gateway, still, the state of former default gateway become unavailable after and arrange newBefore the IP address of default gateway during this period of time in, main frame still can mail to message former default gateway,Thereby can cause flow interruption. In order to solve the above-mentioned problems in the prior art, below the applicationIn embodiment, provide a kind of RA message processing method based on IRDP, and one can be applied thisThe RA message process device based on IRDP of method.
The RA message processing method based on IRDP of the embodiment of the present application can be by the arbitrary net in networkPass router is carried out. Arbitrary gateway router periodically (has enabled IRDP by the interface of this equipmentInterface) send a RA message, when announcing the IP address of this interface and priority and existenceBetween.
As shown in Figure 1, the RA message processing method based on IRDP of the embodiment of the present application comprises followingStep:
Step S102, receives the RA message that in network, other gateway router is sent;
Step S104, judges whether to receive a RA message, if so, performs step S106,Otherwise, execution step S102;
Wherein, a RA message is in prior art gateway router by having enabled on this equipmentThe RA message that the interface of IRDP sends, this RA message (also can for the IP address of announcing this interfaceTo announce the Agent IP address of manual static configuration), priority and the life span etc. of this IP address.For convenience, the above-mentioned RA message of prior art is called to a RA message herein, and incite somebody to actionThe RA message that is hereinafter used to indicate the IP address of main frame deletion default gateway is called the 2nd RA message.
Step S106, judges on this equipment whether record IP address, if so, performs step S118, no, execution step S108;
Step S108, record IP address that IP address medium priority that a RA message carries is the highest andPriority, performs step S110 afterwards;
Step S110, all IP address of the IP address of relatively recording and the incoming interface of a RA messagePriority, performs step S112 afterwards;
Concrete, the IP address that can relatively record in step S110 and the incoming interface of a RA messageThe priority of the highest IP address of all IP address medium priority, if the priority of the IP address of record is highIn the priority of the highest IP address of this priority, the priority of the IP address of declare record higher than this firstThe priority of all IP address of the incoming interface of RA message.
Step S112, judges that the priority of IP address of record is whether higher than the incoming interface of a RA messageThe priority of all IP address, if so, perform step S114, otherwise, execution step S116;
Step S114, the state of the IP address of record is set to effectively;
Step S116, it is invalid that the state of the IP address of record is set to;
Step S118, the highest IP address and the note of IP address medium priority that relatively a RA message carriesThe priority of the IP address of record;
Step S120, judges the excellent of IP address that IP address medium priority that a RA message carries is the highestFirst level, whether higher than the priority of the IP address of record, if so, performs step S122, otherwise, carry out stepRapid S102;
Step S122 is the IP that a RA message carries by the IP address of record and priority update thereofIP address and priority thereof that address medium priority is the highest, perform step S110 afterwards.
By above-mentioned steps S102~step S122, on gateway router, finally can preserve all RA that receiveThat the highest IP address of IP address medium priority that message carries, and preferential in the IP address of preservingLevel when carrying the priority of all IP address of incoming interface of a RA message of IP address of this preservation,Its state is set to effectively, and in the priority of the IP address of this preservation at least one lower than this incoming interfaceWhen the priority of IP address, it is invalid that its state is set to.
Gateway router also can detect the state of other gateway router, for example, can pass through BFD(BidirectionalForwardingDetection, two-way converting detects) or other detection technique are examinedSurvey. When detecting that the state of a certain other gateway router becomes when unavailable, for example, this other gateway roadThere is event in the link having been occurred between fault or this gateway router and this other gateway router by deviceBarrier, now, this gateway router can enter the IP address of the IP address of this other gateway router and this preservationRow relatively, if both are identical, while being effective, sends the 2nd RA report at the state of the IP address of this preservationLiterary composition is used to indicate main frame and deletes the IP address of default gateway (the IP address of the default gateway on main frame is this guarantorThe IP address of depositing). If the IP address of this other gateway router is different from the IP address of this preservation, or,But the IP address of the IP address of this other gateway router and identical this preservation in IP address of this preservationState is invalid, can not process.
Concrete, the value of Routeraddress (router address) field in the 2nd RA message is set to thisThe IP address of preserving on equipment, the value of Lifetime field is set to 0. Like this, the main frame in network is receivedAfter the 2nd RA message, be 0 according to the value of Lifetime field in the 2nd RA message, will delete the machineThe IP address of default gateway, the IP address of this default gateway is the IP address of above-mentioned preservation. In addition,Consider message dropping problem, gateway router can send the 2nd RA message N time, and the value of N canTo be configured according to actual conditions. After sending the 2nd RA message, gateway router can be deletedThe IP address of this preservation and priority and state, and immediately by having enabled connecing of IRDP on this equipmentMouth sends a RA, wherein, carries IP address, this IP of this interface in a RA message of transmissionPriority and the life span etc. of address. Main frame in network is available gateway route at the state of receivingAfter the RA message that device is sent, reselect a highest IP address of priority and be set to the machineThe IP address of default gateway.
In the method for the embodiment of the present application, the arbitrary gateway router in network is sent out by the interface of this equipmentSend and carry the IP address of this interface and a RA message of priority thereof, receive other gateway road in networkThe one RA message of the IP address of the outgoing interface that carries this message of being sent by device and priority thereof, preservesThe IP address that IP address medium priority that all RA messages of receiving carry is the highest the IP address of preservingPriority higher than all IP address excellent of incoming interface of a RA message of IP address that carries this preservationWhen first level, the state of the IP address of preservation is set to effectively; Under the IP address that this preservation detectedThe state of other gateway router becomes when unavailable, if the state of the IP address of this preservation is effectively, sends outSend the 2nd RA message to be used to indicate main frame and delete (the IP ground of the default gateway of main frame, the IP address of default gatewayLocation is the IP address of this preservation), sending after the 2nd RA message, delete this preservation IP address andIts state, and send a RA message by the interface of this equipment immediately, so that main frame can reset newlyThe IP address of default gateway also sends message by new default gateway. Like this, on non-default gateway, can preserve silentRecognize the IP address of gateway and be set to effective status, when detecting that the state of default gateway becomes when unavailable,The IP address that notice main frame is deleted default gateway in time, thus main frame can become at the state of default gatewayWhen unavailable, delete immediately the IP address of the default gateway losing efficacy, and without the IP ground of default gateway by the timeThe life span of location is just deleted after arriving, and follow-up, main frame is that available gateway router is sent out at the state of receivingAfter the RA message coming, be the IP address of reconfigurable new default gateway, effectively shortened acquiescence netThe state closing becomes unavailable the caused host data stream break period.
Taking the network architecture shown in Fig. 2 as example, describe the method in above-described embodiment in detail below. ?In the network architecture shown in Fig. 2, on gateway router 1, the IP address of interface is 10.154.5.1, this IPThe priority of address is 500, and on gateway router 2, the IP address of interface is 10.154.5.2, this IP groundThe priority of location is 400, and on gateway router 3, the IP address of interface is 10.154.5.3, this IP addressPriority be 300. On host A and host B, the IP address of default gateway is set to 10.154.5.1.
Gateway router 1 sends a RA message, and in a RA message, carrying priority is 500IP address 10.154.5.1, gateway router 2 sends a RA message, in a RA messageCarry priority and be 400 IP address 10.154.5.2, gateway router 3 sends a RA message,In the one RA message, carry priority and be 300 IP address 10.154.5.3. Finally, gateway routeIn device 1, preserve IP address 10.154.5.2 and priority 400 thereof, state is set to invalid; Gateway roadBy preserving IP address 10.154.5.1 and priority 500 thereof in device 2, state is set to effectively; GatewayIn router three, preserve IP address 10.154.5.1 and priority 500 thereof, state is set to effectively.
Between gateway router 1, gateway router 2 and gateway router 3, mutually carry out BFD detection.When detecting that the state of gateway router 1 becomes when unavailable, gateway router 2 can send the 2nd RAMessage, is sending IP address 10.154.5.1 and the priority 500 thereof of after the 2nd RA message, deleting preservationAnd effective status, and send immediately a RA who carries IP address 10.154.5.2 and priority 400 thereofMessage, wherein, the value of the Routeraddress field of the 2nd RA message is set to 10.154.5.1, LifetimeThe value of field is set to 0; Gateway router 3 can send the 2nd RA message, is sending the 2nd RA messageIP address 10.154.5.1 and priority 500 and effective status that rear deletion is preserved, and send and take immediatelyWith a RA message of IP address 10.154.5.3 and priority 3 00 thereof, wherein, the 2nd RA messageThe value of Routeraddress field be set to 10.154.5.1, the value of Lifetime field is set to 0.
After host A and host B are received the 2nd RA message, according to Lifetime in the 2nd RA messageThe value of field is 0, can delete the IP address 10.154.5.1 of the default gateway in the machine. Follow-up, receivingAfter the RA message that gateway router 2 and gateway router 3 are sent, can select priorityHigh IP address 10.154.5.2 is as the IP address of the default gateway of the machine.
For the method for above-described embodiment, in the embodiment of the present application, also provide one can apply the methodThe RA message process device based on IRDP, this device can be applied to gateway routing device, as netClose in router.
As shown in Figure 3, in the RA message process device based on IRDP, can comprise with lower module: receiveModule 201, detection module 202, preservation module 203, sending module 204 and removing module 205, wherein:
Receiver module 201, a RA message of sending for receiving other gateway routing device of network, itsIn, in a RA message, carry IP address and the priority thereof of the outgoing interface of a RA message;
Detection module 202, for detection of the state of other gateway routing device in network;
Preserve module 203, the IP carrying for preserving all RA messages that receiver module 201 receivesThe IP address that address medium priority is the highest also arranges the state of the IP address of preservation, wherein, and the IP preservingThe priority of address is higher than all IP address of incoming interface of a RA message of IP address of carrying this preservationPriority time, state is set to effectively, in the priority of the IP address of this preservation lower than this incoming interface extremelyWhile lacking the priority of an IP address, state is set to invalid;
Sending module 204, sends a RA message for the interface that periodically passes through this equipment, wherein,In the one RA message, carry IP address and the priority thereof of this interface; Also for working as detection module 202Detecting that the state of preserving other gateway routing device under the IP address of preserving in module 203 becomes can notUsed time, if the state of the IP address of preserving is effectively, send the IP that is used to indicate main frame deletion default gatewayThe 2nd RA message of address; Also for after sending the 2nd RA message, connecing by this equipment immediatelyMouth sends a RA message;
Removing module 205, after sending the 2nd RA message at sending module 204, deletes and preserves mouldIP address and the state thereof in piece 203, preserved.
Wherein, preserve module 203 and comprise with lower unit: record cell, comparing unit and state set unit,Wherein:
Record cell, after receiving a RA message at receiver module 201, if not yet record IPAddress, the IP address that IP address medium priority that the RA message received of record carries is the highest andPriority; If it is preferential also to compare for comparing unit the IP address that the RA message received carriesThe priority of the highest IP address of level is higher than the priority of the IP address of record, by the IP address of record andIts priority update is IP address and the priority thereof that this priority is the highest;
Comparing unit, the IP address of carrying for a RA message of receiving in recording unit records is excellentAfter IP address and priority thereof that first level is the highest, or, at record cell by the IP address of record and excellentAfter first level is updated to the IP address and priority thereof that this priority is the highest, the relatively IP address of record and thisThe priority of all IP address of the incoming interface of one RA message; If also record for record cellIP address, the highest IP address of IP address medium priority that a RA message of relatively receiving carries withThe priority of the IP address of record;
State set unit, if compare for comparing unit record IP address priority higher than this firstThe priority of all IP address of the incoming interface of RA message, by the state of the IP address of recording unit recordsBe set to effectively, otherwise it is invalid to be set to.
Wherein, the state that carries in the 2nd RA message is the IP address of effectively preserving, and, this IP groundThe life span of location is 0.
Wherein, detection module 202 detects the state of other gateway routing device by BFD.
To sum up, the above embodiment of the application can reach following technique effect:
Arbitrary gateway router in network sends the IP address of carrying this interface by the interface of this equipmentAnd a RA message of priority, what in reception network, other gateway router was sent carries this newspaperThe IP address of outgoing interface and a RA message of priority thereof of literary composition, preserve all RA messages of receivingThe IP address that the IP address medium priority that carries is the highest and in the priority of the IP address of preserving higher than carryingWhen the priority of all IP address of the incoming interface of the one RA message of the IP address of this preservation, will protectThe state of the IP address of depositing is set to effectively; Other gateway under the IP address that this preservation detectedThe state of router becomes when unavailable, if the state of the IP address of this preservation is effectively, sends secondRA message is used to indicate main frame and deletes the IP address of default gateway (the IP address of the default gateway of main frameFor the IP address of this preservation), sending after the 2nd RA message, delete this preservation IP address andIts state, and send a RA message by the interface of this equipment immediately, so that main frame can be established againPut the IP address of new default gateway and send message by new default gateway. Like this, meeting on non-default gatewayPreserve the IP address of default gateway and be set to effective status, when the state that default gateway detected becomes notWhen available, the IP address that notice main frame is deleted default gateway in time, thus main frame can be at acquiescence netThe state closing becomes when unavailable, deletes immediately the IP address of the default gateway losing efficacy, and without by the time silentRecognize gateway IP address life span arrive after just delete, follow-up, main frame is available at the state of receivingThe RA message sent of gateway router after be the IP address of reconfigurable new default gateway, haveThe shortening of effect the state of default gateway become unavailable the caused host data stream break period.
The foregoing is only the application's preferred embodiment, not in order to limit the application, all at thisWithin the spirit and principle of application, any amendment of making, be equal to replacement, improvement etc., all should be included inWithin the scope of the application's protection.

Claims (10)

1. the route announcement RA based on internet control message protocol router discovery protocol IRDPMessage processing method, is applied to gateway routing device, it is characterized in that, described method comprises:
Interface by this equipment sends a RA message, wherein, carries this and connect in a RA messageIP address and the priority thereof of mouth;
Receive the RA message that other gateway routing device is sent in network, preserve receive all firstThe IP address that Internet Protocol IP address medium priority that RA message carries is the highest also arranges the IP address of preservationState, wherein, the priority of the IP address of described preservation higher than carry described preservation IP addressWhen the priority of all IP address of the incoming interface of one RA message, state is set to effectively; The one RA reportIn literary composition, carry IP address and the priority thereof of the outgoing interface of a RA message;
The state of other gateway routing device under the IP address that described preservation detected becomes unavailableTime, if the state of the IP address of described preservation is effectively, sends and to be used to indicate main frame and to delete default gatewayThe 2nd RA message of IP address, is sending after the 2nd RA message, delete described preservation IP address andIts state, and send a RA message by the interface of this equipment immediately.
2. method according to claim 1, is characterized in that, preferential in the IP address of described preservationLevel is during lower than the priority of at least one IP address of described incoming interface, and state is set to invalid.
3. method according to claim 1, is characterized in that, receives other gateway route in network and establishesThe RA message that preparation is come, the Internet Protocol IP ground that all RA messages that preservation is received carryThe IP address that location medium priority is the highest the method that the state of the IP address of preservation is set comprise:
After receiving a RA message, if not yet record IP address on this equipment, record is receivedThe highest IP address and the priority thereof of IP address medium priority that the one RA message carries, relatively recordsThe priority of all IP address of the incoming interface of IP address and a RA message, if the IP address of recordPriority is higher than the priority of all IP address of this incoming interface, and the state of the IP address of record is set toEffectively, otherwise it is invalid to be set to;
If recorded IP address on this equipment, the IP ground that a RA message of relatively receiving carriesThe priority of the IP address that location medium priority is the highest and the IP address of record, if the highest IP ground of this priorityThe priority of location, higher than the priority of the IP address of record, by the IP address of record and priority update thereof isIP address and priority thereof that this priority is the highest, relatively entering of the IP address of record and a RA messageThe priority of all IP address of interface, if the priority of the IP address of record is higher than all IP of this incoming interfaceThe priority of address, the state of the IP address of record is set to effectively, otherwise it is invalid to be set to.
4. method according to claim 1, is characterized in that, in the 2nd RA message, carries stateFor the IP address of effective described preservation, and the life span of this IP address is 0.
5. method according to claim 1, is characterized in that, detects BFD examine by two-way convertingSurvey the state of other gateway routing device.
6. the route announcement RA based on internet control message protocol router discovery protocol IRDPMessage process device, is applied in gateway routing device, it is characterized in that, described device comprises:
Receiver module, a RA message of sending for receiving other gateway routing device of network, wherein,In the one RA message, carry the Internet Protocol IP address of outgoing interface of a RA message and preferentialLevel;
Detection module, for detection of the state of other gateway routing device in network;
Preserve module, the IP address of carrying for preserving all RA messages that described receiver module receivesThe IP address that medium priority is the highest also arranges the state of the IP address of preservation, wherein, and at the IP of described preservationThe priority of address is higher than all IP ground of incoming interface of a RA message of IP address that carries described preservationWhen the priority of location, state is set to effectively;
Sending module, sends a RA message for the periodic interface by this equipment, and wherein, this is the years oldIn one RA message, carry IP address and the priority thereof of this interface; Also for detecting when described detection moduleState to other gateway routing device under the IP address of preserving in described preservation module becomes unavailableTime, if the state of the IP address of preserving is effectively, send the IP ground that is used to indicate main frame deletion default gatewayThe 2nd RA message of location; Also for after sending the 2nd RA message, immediately by the interface of this equipmentSend a RA message;
Removing module, after sending the 2nd RA message at described sending module, deletes described preservation mouldIP address and the state thereof in piece, preserved.
7. device according to claim 6, is characterized in that, preferential in the IP address of described preservationLevel is during lower than the priority of at least one IP address of described incoming interface, and state is set to invalid.
8. device according to claim 6, is characterized in that, described preservation module comprises: recordUnit, comparing unit and state set unit, wherein:
Described record cell, after receiving a RA message at described receiver module, if record not yetIP address, the IP address that IP address medium priority that the RA message received of record carries is the highest andIts priority; If also compare for described comparing unit the IP address that the RA message received carriesThe priority of the IP address that medium priority is the highest is higher than the priority of the IP address of record, by the IP of recordAddress and priority update thereof are IP address and the priority thereof that this priority is the highest;
Described comparing unit, the IP carrying for a RA message of receiving in described recording unit recordsAfter IP address and priority thereof that address medium priority is the highest, or, described record cell by recordIP address and priority update thereof are after the IP address and priority thereof that this priority is the highest, relatively recordThe priority of all IP address of the incoming interface of IP address and a RA message; If also for described recordIn unit, record IP address, preferential in the IP address that a RA message of relatively receiving carriesThe priority of the IP address that level is the highest and the IP address of record;
Described state set unit, if compare the priority of IP address of record for described comparing unit highIn the priority of all IP address of the incoming interface of a RA message, by described recording unit recordsThe state of IP address is set to effectively, otherwise it is invalid to be set to.
9. device according to claim 6, is characterized in that, in the 2nd RA message, carries stateFor the IP address of effective described preservation, and the life span of this IP address is 0.
10. device according to claim 6, is characterized in that, described detection module passes through two-way convertingDetect the state that BFD detects other gateway routing device.
CN201510583388.7A 2015-09-15 2015-09-15 RA message processing method and device based on IRDP Active CN105591920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510583388.7A CN105591920B (en) 2015-09-15 2015-09-15 RA message processing method and device based on IRDP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510583388.7A CN105591920B (en) 2015-09-15 2015-09-15 RA message processing method and device based on IRDP

Publications (2)

Publication Number Publication Date
CN105591920A true CN105591920A (en) 2016-05-18
CN105591920B CN105591920B (en) 2018-12-11

Family

ID=55931156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510583388.7A Active CN105591920B (en) 2015-09-15 2015-09-15 RA message processing method and device based on IRDP

Country Status (1)

Country Link
CN (1) CN105591920B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230729A (en) * 2016-08-29 2016-12-14 杭州华三通信技术有限公司 The method and apparatus that a kind of network appliance address is noticed
CN108092841A (en) * 2016-11-22 2018-05-29 中兴通讯股份有限公司 A kind of maintaining method, the apparatus and system of gateway routing iinformation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060087907A (en) * 2005-01-31 2006-08-03 삼성전자주식회사 Default router selection system and method in internet protocal network system
CN101785259A (en) * 2007-06-21 2010-07-21 艾利森电话股份有限公司 Method and system for assigning routers to hosts
US20120182978A1 (en) * 2011-01-14 2012-07-19 Masputra Cahya A System and Method For Managing Routers and Communication Interfaces On A Computing Device
CN103595629A (en) * 2013-11-29 2014-02-19 杭州华三通信技术有限公司 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060087907A (en) * 2005-01-31 2006-08-03 삼성전자주식회사 Default router selection system and method in internet protocal network system
CN101785259A (en) * 2007-06-21 2010-07-21 艾利森电话股份有限公司 Method and system for assigning routers to hosts
US20120182978A1 (en) * 2011-01-14 2012-07-19 Masputra Cahya A System and Method For Managing Routers and Communication Interfaces On A Computing Device
CN103595629A (en) * 2013-11-29 2014-02-19 杭州华三通信技术有限公司 Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230729A (en) * 2016-08-29 2016-12-14 杭州华三通信技术有限公司 The method and apparatus that a kind of network appliance address is noticed
CN106230729B (en) * 2016-08-29 2019-09-17 新华三技术有限公司 A kind of method and apparatus of network appliance address notice
CN108092841A (en) * 2016-11-22 2018-05-29 中兴通讯股份有限公司 A kind of maintaining method, the apparatus and system of gateway routing iinformation
CN108092841B (en) * 2016-11-22 2022-09-02 中兴通讯股份有限公司 Method, device and system for maintaining gateway routing information

Also Published As

Publication number Publication date
CN105591920B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
US10425328B2 (en) Load distribution architecture for processing tunnelled internet protocol traffic
US8320242B2 (en) Active response communications network tap
CN108259344B (en) Telemeasuring method and device
US8432916B2 (en) Method and router for implementing mirroring
US8363551B2 (en) Measuring network metrics
JP4524686B2 (en) Cluster system, cluster member and program
JP5883743B2 (en) Method for reducing communication interruption time in packet communication networks
US11233694B2 (en) Method and device for processing communication path
WO2016090978A1 (en) Traffic switching method and device
US10880778B2 (en) Message cache management in a mesh network
CN110663223B (en) Determining quality of service for network tunnels
US7974188B2 (en) Repeater and communication method
WO2017128901A1 (en) Forwarding control method and device
CN101442429B (en) Method and system for implementing disaster-tolerating of business system
US20050122957A1 (en) Router, traffic volume control method therefor, communication system, and traffic control program recorded computer-readable recording medium
US11757747B2 (en) Preventing traffic outages during address resolution protocol (ARP) storms
CN105591920A (en) IRDP-based RA message processing method and device
US8724458B2 (en) Methods and devices for controlling data unit handling
CN101179504B (en) Method, system and network appliance to restrain routing
WO2011030799A1 (en) Communication network, communication nodes, and auxiliary band control system
JP4351368B2 (en) Data transfer method and communication apparatus using the same
US20100017539A1 (en) Method and device for the exchange of data
US11956328B1 (en) Avoiding stuck subscriber sessions on a disaggregated broadband network gateway
WO2024000140A1 (en) Message transmission
JP4449684B2 (en) bridge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant