CN105591920B - RA message processing method and device based on IRDP - Google Patents
RA message processing method and device based on IRDP Download PDFInfo
- Publication number
- CN105591920B CN105591920B CN201510583388.7A CN201510583388A CN105591920B CN 105591920 B CN105591920 B CN 105591920B CN 201510583388 A CN201510583388 A CN 201510583388A CN 105591920 B CN105591920 B CN 105591920B
- Authority
- CN
- China
- Prior art keywords
- address
- message
- priority
- state
- interface
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application discloses a kind of RA message processing method and device based on IRDP, wherein this method comprises: sending the first RA message of the IP address and its priority that carry the interface by the interface of this equipment;Receive the first RA message, it saves in the IP address that all first RA messages for receiving carry the IP address of highest priority and when the priority of the IP address of preservation is higher than the priority for all IP address of the incoming interface of the first RA message for carrying the IP address saved, sets effective for its state;When the state of other gateway routing devices belonging to the IP address for detecting preservation becomes unavailable, if the state of the IP address saved is effective, then send the 2nd RA message for being used to indicate the IP address that host deletes default gateway, after having sent the 2nd RA message, the IP address and its state saved is deleted, and the first RA message is sent by the interface of this equipment immediately.
Description
Technical field
This application involves network communication technology field, in particular to a kind of RA message processing method and dress based on IRDP
It sets.
Background technique
If the host in network wants to send message to network-external, which needs to obtain in present networks at least
IP (Internet Protocol, Internet Protocol) address of one gateway router, and by wherein gateway router
IP address is set as the IP address of default gateway, to be forwarded the packet away by default gateway pass.Host obtains default net
There are mainly two types of the modes of the IP address of pass:
First way is IP of the IP address as default gateway of on host one gateway router of manual configuration
Location, still, this mode need manual static configuration and maintenance, increase configuration work amount, and do not adapt to the dynamic of network
State variation;
The second way is that host listens to routing protocol packet in network, and at least one is obtained from routing protocol packet
The IP address of gateway router, and set the IP address of a wherein gateway router to the IP address of default gateway.But
This mode requires host that can identify the messages of various Routing Protocols, this required for a host it is too high, and
Sometimes not operation state Routing Protocol on gateway router, host just can not listen to routing protocol packet at this time.
To solve the above-mentioned problems, IRDP (ICMP Router Discovery Protocol, ICMP router is proposed
It was found that agreement), which is ICMP (Internet Control Message Protocol, internet control message protocol)
One extension, realize discovery of the host to gateway router using two kinds of new icmp packet types, enable the host to
It dynamically finds the IP address of gateway router in local network, and sets silent for the IP address of a wherein gateway router
Recognize the IP address of gateway.IRDP can largely be configured, and do not depend on the variation of dynamically adapting network without safeguarding by hand
In any specific Routing Protocol.
Gateway router periodically passes through the interface transmission RA (Router that IRDP is enabled in this equipment
Advertisement, route announcement) message, the IP address for announcing the interface (can also announce the generation of manual static configuration
Manage IP address), the priority of the IP address and life span (LifeTime) etc..In addition, when a host is just connected to net
When on network, it can request the IP of gateway router with active transmission RS (Router Solicitation, route requests) message
Address, rather than passively wait RA message.If the RS message that host is sent is not responded, it can retransmit RS several times
Message is until reach number of retransmissions threshold value.When host can not get by above-mentioned active mode the IP address of gateway router
When, it can also obtain the IP address of gateway router by the RA message of gateway router periodic announcements.
After host receives RA message, a highest priority is selected from the IP address that all RA messages received carry
IP address, be set as the IP address of the default gateway of the machine.
If the state of default gateway becomes unavailable, for example, default gateway breaks down or host and default gateway
Between link failure, then, host can the life span of the IP address of default gateway arrival after, send RS message to notify
Gateway router in network sends RA message, to reset the IP address of new default gateway, that is, host needs wait until to write from memory
After recognizing the life span arrival of the IP address of gateway, it just can request that the gateway router in network sends RA message to reselect
IP address of the IP address of one highest priority as new default gateway.In this way, in the state of former default gateway, become can not
With in this period later and before the IP address of the new default gateway of setting, this period, maximum can reach former default gateway
The life span of IP address, message still can be sent to former default gateway by host, to will lead to flow interruption.
Summary of the invention
In view of this, this application provides a kind of RA message processing method and device based on IRDP.
The technical solution of the application is as follows:
On the one hand, a kind of RA message processing method based on IRDP is provided, gateway routing device, this method packet are applied to
It includes:
The first RA message is sent by the interface of this equipment, wherein the IP of the interface is carried in the first RA message
Location and its priority;
The first RA message that other gateway routing devices are sent in network is received, all first RA messages received is saved and takes
In the Internet protocol IP address of band the IP address of highest priority and be arranged preservation IP address state, wherein saving
IP address priority be higher than carry save IP address the first RA message incoming interface all IP address priority
When, state is set as effective;The IP address and its priority of the outgoing interface of the first RA message are carried in first RA message;
When the state of other gateway routing devices belonging to the IP address for detecting preservation becomes unavailable, if save
The state of IP address be it is effective, then send be used to indicate host delete default gateway IP address the 2nd RA message, sending
After complete 2nd RA message, the IP address and its state of preservation are deleted, and the first RA message is sent by the interface of this equipment immediately.
On the other hand, a kind of RA message process device based on IRDP is additionally provided, is applied in gateway routing device, it should
Device includes:
Receiving module, the first RA message sent for receiving other gateway routing devices in network, wherein the first RA report
The IP address and its priority of the outgoing interface of the first RA message are carried in text;
Detection module, for detecting the state of other gateway routing devices in network;
Preserving module, for saving in the Internet protocol IP address that all first RA messages that receiving module receives carry
The IP address of highest priority and be arranged preservation IP address state, wherein preservation IP address priority be higher than take
When the priority of all IP address of the incoming interface of the first RA message with the IP address saved, state is set as effective;
Sending module, for periodically sending the first RA message by the interface of this equipment, wherein the first RA message
In carry the IP address and its priority of the interface;It is also used to detect the IP address saved in preserving module when detection module
When the state of affiliated other gateway routing devices becomes unavailable, if save IP address state be it is effective, send use
The 2nd RA message of the IP address of default gateway is deleted in instruction host;It is also used to after having sent the 2nd RA message, immediately
The first RA message is sent by the interface of this equipment;
Removing module, for after sending module has sent the 2nd RA message, deleting the IP saved in preserving module
Location and its state.
In the above technical scheme of the application, any gateway router in network is sent by the interface of this equipment to be carried
The IP address of the interface and its first RA message of priority, receive network in other gateway routers send carry this newspaper
The IP address of the outgoing interface of text and its first RA message of priority save excellent in the IP address that all RA messages received carry
The highest IP address of first grade is simultaneously higher than the first RA message of the IP address for carrying the preservation in the priority of the IP address of preservation
When the priority of all IP address of incoming interface, set effective for the state of the IP address of preservation;When detecting the preservation
When the state of other gateway routers belonging to IP address becomes unavailable, if the state of the IP address of the preservation be it is effective,
Send the 2nd RA message be used to indicate host delete default gateway IP address (IP address of the default gateway of host is the guarantor
The IP address deposited), after having sent the 2nd RA message, the IP address and its state of the preservation are deleted, and pass through this equipment immediately
Interface send the first RA message, the IP address of new default gateway can be reset so as to host and sent out by new default gateway
It delivers newspaper text.In this way, the IP address of default gateway can be saved on non-default gateway and be set as effective status, when detecting default net
When the state of pass becomes unavailable, host can be notified to delete the IP address of default gateway in time, thus, host can be in default net
When the state of pass becomes unavailable, the IP address of the default gateway of failure is deleted immediately, without the IP until default gateway
The life span of location is just deleted after reaching, subsequent, and host is in the first RA that the state that receives is that available gateway router is sent
It is the IP address of reconfigurable new default gateway after message, the state for effectively shortening default gateway becomes unavailable and made
At the host data stream break period.
Detailed description of the invention
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 actual network architecture schematic diagram;
Fig. 3 is the structural schematic diagram of the RA message process device based on IRDP of the embodiment of the present application.
Specific embodiment
In the prior art, if the state of default gateway becomes unavailable, host needs to reset new default gateway
IP address, still, after the state of former default gateway becomes unavailable and before the IP address of the new default gateway of setting
This period in, message still can be sent to former default gateway by host, to will lead to flow interruption.It is existing in order to solve
The above problem present in technology provides a kind of RA message processing method based on IRDP in the application following embodiment, with
And a kind of RA message process device based on IRDP that can apply this method.
The RA message processing method based on IRDP of the embodiment of the present application can be held by any gateway router in network
Row.The interface (enabling the interface of IRDP) that any gateway router periodically passes through this equipment sends the first RA message,
For announcing the IP address and its priority and life span of the interface.
As shown in Figure 1, the RA message processing method based on IRDP of the embodiment of the present application the following steps are included:
Step S102 receives the first RA message that other gateway routers are sent in network;
Step S104 judges whether to receive a first RA message, if so, thening follow the steps S106, otherwise, executes step
Rapid S102;
Wherein, the first RA message as sent out by enabling the interface of IRDP in this equipment in the prior art by gateway router
The RA message sent, the RA message are used to announce the IP address of the interface (with can also announcing the Agent IP of manual static configuration
Location), the priority of the IP address and life span etc..For convenience, the above-mentioned RA message of the prior art is claimed herein
For the first RA message, and the RA message for being hereinafter used to indicate the IP address that host deletes default gateway is known as the 2nd RA report
Text.
Step S106 judges whether recorded IP address in this equipment, if so, thening follow the steps S118, otherwise, executes step
Rapid S108;
Step S108 records the IP address and its priority of highest priority in the IP address of the first RA message carrying,
Step S110 is executed later;
Step S110 compares the priority of all IP address of the IP address of record and the incoming interface of the first RA message,
Step S112 is executed later;
Specifically, all IP of the IP address of record and the incoming interface of the first RA message can be compared in step s 110
The priority of the IP address of highest priority in address, if the priority of the IP address of record is with being higher than the IP of the highest priority
The priority of location then illustrates that the priority of the IP address of record is higher than the excellent of all IP address of the incoming interface of the first RA message
First grade.
Step S112, judges whether the priority of the IP address of record is higher than all IP of the incoming interface of the first RA message
Otherwise the priority of address, executes step S116 if so, thening follow the steps S114;
Step S114 sets effective for the state of the IP address of record;
Step S116 sets invalid for the state of the IP address of record;
Step S118 compares the IP of the IP address of highest priority and record in the IP address of the first RA message carrying
The priority of location;
Step S120, judge the first RA message carry IP address in highest priority IP address priority whether
Higher than the priority of the IP address of record, if so, thening follow the steps S122, otherwise, step S102 is executed;
The IP address of record and its priority update are preferential in the IP address of the first RA message carrying by step S122
The highest IP address of grade and its priority, execute step S110 later.
S102~step S122 through the above steps eventually saves all RA messages received on gateway router and carries
IP address in highest priority that IP address, and the priority of the IP address of preservation be higher than carry the preservation IP
It when the priority of all IP address of the incoming interface of the first RA message of address, sets its state to effectively, and in the preservation
IP address priority lower than the incoming interface at least one IP address priority when, set invalid for its state.
Gateway router can also detect the state of other gateway routers, for example, can pass through BFD (Bidirectional
Forwarding Detection, two-way converting detection) or other detection techniques detected.When detecting a certain other gateways
When the state of router becomes unavailable, for example, other gateway routers have occurred failure or this gateway router and are somebody's turn to do
Failure has occurred in link between other gateway routers, at this point, this gateway router can be by the IP of other gateway routers
Address is compared with the IP address of the preservation, if the two is identical, when the state of the IP address of the preservation is effective, is sent
2nd RA message be used to indicate host delete default gateway IP address (IP address of the default gateway on host is the preservation
IP address).If the IP address of other gateway routers is different from the IP address of the preservation, alternatively, other gateway routings
The IP address of device and the IP address of the preservation it is identical, but the preservation IP address state be it is invalid, then not will do it processing.
Specifically, the value of Router address (router address) field in the 2nd RA message is set in this equipment and protects
The value of the IP address deposited, Lifetime field is set to 0.In this way, after the host in network receives the 2nd RA message, according to this second
The value of Lifetime field is 0 in RA message, will delete the IP address of the default gateway of the machine, the IP address of the default gateway is
For the IP address of above-mentioned preservation.Furthermore, it is contemplated that message loss problem, gateway router can send the 2nd RA message of n times, N
Value can be configured according to the actual situation.After having sent the 2nd RA message, gateway router will be deleted the preservation
IP address and its priority and state, and send the first RA by enabling the interface of IRDP in this equipment immediately, wherein hair
The IP address of the interface, the priority of the IP address and life span etc. are carried in the first RA message sent.Host in network
After the state that receives is the first RA message that available gateway router is sent, the IP of a highest priority is reselected
Address is set as the IP address of the default gateway of the machine.
In the method for the embodiment of the present application, any gateway router in network sends to carry by the interface of this equipment to be somebody's turn to do
The IP address of interface and its first RA message of priority, receive network in other gateway routers send carry this message
Outgoing interface IP address and its priority the first RA message, save preferential in the IP address that all RA messages for receiving carry
The highest IP address of grade is simultaneously higher than entering for the first RA message of the IP address for carrying the preservation in the priority of the IP address of preservation
When the priority of all IP address of interface, set effective for the state of the IP address of preservation;As the IP for detecting the preservation
When the state of other gateway routers belonging to address becomes unavailable, if the state of the IP address of the preservation be it is effective, send out
Send the 2nd RA message be used to indicate host delete default gateway IP address (IP address of the default gateway of host is the preservation
IP address), after having sent the 2nd RA message, delete the IP address and its state of the preservation, and immediately by this equipment
Interface sends the first RA message, can reset the IP address of new default gateway so as to host and be sent by new default gateway
Message.In this way, the IP address of default gateway can be saved on non-default gateway and be set as effective status, when detecting default gateway
State when becoming unavailable, the IP address of default gateway can be deleted by notice host in time, thus, host can be in default gateway
State when becoming unavailable, the IP address of the default gateway of failure is deleted immediately, without waiting until the IP address of default gateway
Life span reach after just delete, it is subsequent, host the state that receives be available gateway router send the first RA report
It is the IP address of reconfigurable new default gateway after text, the state for effectively shortening default gateway becomes unavailable caused
The host data stream break period.
Below by taking the network architecture shown in Fig. 2 as an example, the method in above-described embodiment is described in detail.Shown in Fig. 2
In the network architecture, the IP address of interface is 10.154.5.1 on gateway router 1, and the priority of the IP address is 500, gateway road
IP address by interface on device 2 is 10.154.5.2, the priority of the IP address is 400, the IP of interface on gateway router 3
Location is 10.154.5.3, and the priority of the IP address is 300.The IP address of default gateway is set as on host A and host B
10.154.5.1。
Gateway router 1 sends the first RA message, and the IP address that priority is 500 is carried in the first RA message
10.154.5.1, gateway router 2 sends the first RA message, and the IP address that priority is 400 is carried in the first RA message
10.154.5.2, gateway router 3 sends the first RA message, and the IP address that priority is 300 is carried in the first RA message
10.154.5.3.Finally, IP address 10.154.5.2 and its priority 400 are preserved in gateway router 1, state is set as nothing
Effect;IP address 10.154.5.1 and its priority 500 are preserved in gateway router 2, state is set as effective;Gateway router
IP address 10.154.5.1 and its priority 500 are preserved in 3, state is set as effective.
BFD detection is mutually carried out between gateway router 1, gateway router 2 and gateway router 3.When detecting gateway
When the state of router 1 becomes unavailable, gateway router 2 can send the 2nd RA message, delete after having sent the 2nd RA message
Except the IP address 10.154.5.1 and its priority 500 and effective status of preservation, and sends carry IP address immediately
10.154.5.2 and its first RA message of priority 400, wherein the value of the Router address field of the 2nd RA message is set
Value for 10.154.5.1, Lifetime field is set to 0;Gateway router 3 can send the 2nd RA message, send the 2nd RA
The IP address 10.154.5.1 and its priority 500 and effective status of preservation are deleted after message, and send carry IP address immediately
10.154.5.3 and its first RA message of priority 3 00, wherein the value of the Router address field of the 2nd RA message is set
Value for 10.154.5.1, Lifetime field is set to 0.
It is 0 according to the value of Lifetime field in the 2nd RA message after host A and host B receive the 2nd RA message,
It will be deleted the IP address 10.154.5.1 of the default gateway in the machine.It is subsequent, receiving gateway router 2 and gateway router 3
After the first RA message sent, the IP address 10.154.5.2 of highest priority can be selected as the IP of the default gateway of the machine
Address.
For the method for above-described embodiment, additionally provided in the embodiment of the present application it is a kind of can using this method based on
The RA message process device of IRDP, which can be applied to gateway routing device, in gateway router.
As shown in figure 3, may include with lower module in the RA message process device based on IRDP: receiving module 201, detection
Module 202, preserving module 203, sending module 204 and removing module 205, in which:
Receiving module 201, the first RA message sent for receiving other gateway routing devices in network, wherein first
The IP address and its priority of the outgoing interface of the first RA message are carried in RA message;
Detection module 202, for detecting the state of other gateway routing devices in network;
Preserving module 203, it is preferential in the IP address that all first RA messages that receiving module 201 receives carry for saving
The state of the highest IP address of grade and the IP address that preservation is set, wherein be higher than to carry in the priority of the IP address of preservation and be somebody's turn to do
When the priority of all IP address of the incoming interface of the first RA message of the IP address of preservation, state is set as effectively, in the guarantor
When the priority for the IP address deposited is lower than the priority of at least one IP address of the incoming interface, state is set as invalid;
Sending module 204, for periodically sending the first RA message by the interface of this equipment, wherein the first RA
The IP address and its priority of the interface are carried in message;It is also used to protect in preserving module 203 when detection module 202 detects
When the state of other gateway routing devices belonging to the IP address deposited becomes unavailable, if the state of the IP address saved is to have
Effect then sends the 2nd RA message for being used to indicate the IP address that host deletes default gateway;It is also used to sending the 2nd RA report
After text, the first RA message is sent by the interface of this equipment immediately;
Removing module 205, for deleting and being protected in preserving module 203 after sending module 204 has sent the 2nd RA message
The IP address and its state deposited.
It wherein, include with lower unit in preserving module 203: recording unit, comparing unit and state set unit, in which:
Recording unit, for if not yet recording IP address, remembering after receiving module 201 receives the first RA message
Record the IP address and its priority of highest priority in the IP address that the first RA message received carries;If being also used to relatively more single
The priority that member compares the IP address of highest priority in the IP address that the first RA message received carries is higher than record
The priority of IP address, then by IP address that the IP address of record and its priority update are the highest priority and its preferential
Grade;
Comparing unit, for the highest priority in the IP address that the first RA message that recording unit records receive carries
IP address and its priority after, alternatively, by the IP address of record and its priority update being the priority in recording unit
After highest IP address and its priority, compare all IP address of the IP address of record and the incoming interface of the first RA message
Priority;If being also used to have been recorded with IP address in recording unit, compare the IP that the first RA message received carries
The priority of the IP address of the IP address and record of highest priority in address;
State set unit, if the priority for comparing unit to compare the IP address of record is higher than the first RA message
Incoming interface all IP address priority, then set the state of the IP address of recording unit records to effectively, otherwise, if
It is invalid to be set to.
Wherein, the stateful IP address effectively to save is carried in the 2nd RA message, also, when the existence of the IP address
Between be 0.
Wherein, detection module 202 detects the state of other gateway routing devices by BFD.
To sum up, the application above embodiments can achieve following technical effect:
Any gateway router in network sends the IP address for carrying the interface and its preferential by the interface of this equipment
First RA message of grade, receive other gateway routers are sent in network the IP address of the outgoing interface for carrying this message and its
First RA message of priority saves the IP address of highest priority in the IP address that all RA messages received carry and is protecting
The priority for the IP address deposited is higher than the excellent of all IP address for carrying the incoming interface of the first RA message of IP address of the preservation
When first grade, set effective for the state of the IP address of preservation;Other gateway roads belonging to the IP address for detecting the preservation
When becoming unavailable from the state of device, if the state of the IP address of the preservation be it is effective, send the 2nd RA message be used to indicate
Host deletes the IP address (IP address of the default gateway of host is the IP address of the preservation) of default gateway, is sending the
After two RA messages, the IP address and its state of the preservation are deleted, and the first RA message is sent by the interface of this equipment immediately, with
Just host can reset the IP address of new default gateway and send message by new default gateway.In this way, non-default gateway
On can save the IP address of default gateway and be set as effective status, when the state for detecting default gateway becomes unavailable,
Can in time notice host delete default gateway IP address, thus, host can when the state of default gateway becomes unavailable,
The IP address for deleting the default gateway of failure immediately, the life span without the IP address until default gateway are just deleted after reaching
It removes, subsequent, host is i.e. reconfigurable new silent after the first RA message that the state that receives is that available gateway router is sent
Recognize the IP address of gateway, effectively shorten default gateway state become it is unavailable caused by host data stream interrupt when
Between.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of route announcement RA message processing method based on internet control message protocol router discovery protocol IRDP, is answered
For gateway routing device, which is characterized in that the described method includes:
Send the first RA message by the interface of this equipment, wherein carried in the first RA message the interface IP address and
Its priority;
The first RA message that other gateway routing devices are sent in network is received, saves what all first RA messages received carried
In Internet protocol IP address the IP address of highest priority and be arranged preservation IP address state, wherein in the preservation
The priority of IP address be higher than the excellent of all IP address for carrying the incoming interface of the first RA message of IP address of the preservation
When first grade, state is set as effective;The IP address of the outgoing interface of the first RA message and its preferential is carried in first RA message
Grade;
When the state of other gateway routing devices belonging to the IP address for detecting the preservation becomes unavailable, if the guarantor
The state for the IP address deposited be it is effective, then send be used to indicate host delete default gateway IP address the 2nd RA message,
After having sent the 2nd RA message, the IP address and its state of the preservation are deleted, and sends the by the interface of this equipment immediately
One RA message.
2. the method according to claim 1, wherein the priority in the IP address of the preservation enters lower than described in
When the priority of at least one IP address of interface, state is set as invalid.
3. the method according to claim 1, wherein receiving other gateway routing devices are sent in network first
RA message saves the IP address of highest priority in the Internet protocol IP address that all first RA messages received carry and sets
The method for setting the state of the IP address of preservation includes:
After receiving the first RA message, if not yet recording IP address in this equipment, the first RA message received is recorded
The IP address and its priority of highest priority in the IP address of carrying, compare the IP address of record and entering for the first RA message
The priority of all IP address of interface, if the priority of the IP address of record is higher than the preferential of all IP address of the incoming interface
Grade, then set the state of the IP address of record to effectively, otherwise, be set as invalid;
If having been recorded with IP address in this equipment, compare in the IP address that the first RA message that receives carries priority most
The priority of the IP address of high IP address and record, if the priority of the IP address of the highest priority is with being higher than the IP of record
The priority of location, then be the IP address and its priority of the highest priority by the IP address of record and its priority update, than
Compared with the priority of all IP address of the incoming interface of the IP address and the first RA message of record, if the IP address of record is preferential
Grade is higher than the priority of all IP address of the incoming interface, then sets the state of the IP address of record to effectively, otherwise, setting
It is invalid.
4. the method according to claim 1, wherein being carried in the 2nd RA message stateful for the effective guarantor
The IP address deposited, also, the life span of the IP address is 0.
5. the method according to claim 1, wherein detecting BFD by two-way converting to detect other gateway roads
By the state of equipment.
6. a kind of route announcement RA message process device based on internet control message protocol router discovery protocol IRDP, is answered
For in gateway routing device, which is characterized in that described device includes:
Receiving module, the first RA message sent for receiving other gateway routing devices in network, wherein in the first RA message
Carry the Internet protocol IP address and its priority of the outgoing interface of the first RA message;
Detection module, for detecting the state of other gateway routing devices in network;
Preserving module, for saving highest priority in the IP address that all first RA messages that the receiving module receives carry
IP address and be arranged preservation IP address state, wherein the preservation IP address priority be higher than carry described in
When the priority of all IP address of the incoming interface of the first RA message of the IP address of preservation, state is set as effective;
Sending module, for periodically sending the first RA message by the interface of this equipment, wherein taken in the first RA message
IP address and its priority with the interface;It is also used to detect the IP saved in the preserving module when the detection module
When the state of other gateway routing devices belonging to address becomes unavailable, if save IP address state be it is effective, send out
Send the 2nd RA message for being used to indicate the IP address that host deletes default gateway;It is also used to after having sent the 2nd RA message,
The first RA message is sent by the interface of this equipment immediately;
Removing module is deleted and is saved in the preserving module for after the sending module has sent the 2nd RA message
IP address and its state.
7. device according to claim 6, which is characterized in that enter lower than described in the priority of the IP address of the preservation
When the priority of at least one IP address of interface, state is set as invalid.
8. device according to claim 6, which is characterized in that the preserving module include: recording unit, comparing unit and
State set unit, in which:
The recording unit, for if not yet recording IP address, remembering after the receiving module receives the first RA message
Record the IP address and its priority of highest priority in the IP address that the first RA message received carries;If being also used to the ratio
The priority that the IP address of highest priority in the IP address that the first RA message received carries is compared compared with unit is higher than note
The priority of the IP address of record, then by IP address that the IP address of record and its priority update are the highest priority and its excellent
First grade;
The comparing unit, for the priority in the IP address that the first RA message that the recording unit records receive carries
After highest IP address and its priority, alternatively, being by the IP address of record and its priority update in the recording unit
After the IP address and its priority of the highest priority, compare the institute of the IP address of record and the incoming interface of the first RA message
There is the priority of IP address;If being also used to have been recorded with IP address in the recording unit, compare the first RA received
The priority of the IP address of the IP address and record of highest priority in the IP address that message carries;
The state set unit, if the priority for the comparing unit to compare the IP address of record is higher than the first RA
The state of the IP address of the recording unit records, then be provided with by the priority of all IP address of the incoming interface of message
Effect, otherwise, is set as invalid.
9. device according to claim 6, which is characterized in that carried in the 2nd RA message stateful for the effective guarantor
The IP address deposited, also, the life span of the IP address is 0.
10. device according to claim 6, which is characterized in that the detection module detects BFD by two-way converting to examine
Survey the state of other gateway routing devices.
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 CN105591920A (en) | 2016-05-18 |
CN105591920B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106230729B (en) * | 2016-08-29 | 2019-09-17 | 新华三技术有限公司 | A kind of method and apparatus of network appliance address notice |
CN108092841B (en) * | 2016-11-22 | 2022-09-02 | 中兴通讯股份有限公司 | Method, device and system for maintaining gateway routing information |
Citations (3)
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 |
CN103595629A (en) * | 2013-11-29 | 2014-02-19 | 杭州华三通信技术有限公司 | Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8873527B2 (en) * | 2011-01-14 | 2014-10-28 | Apple Inc. | System and method for managing routers and communication interfaces on a computing device |
-
2015
- 2015-09-15 CN CN201510583388.7A patent/CN105591920B/en active Active
Patent Citations (3)
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 |
CN103595629A (en) * | 2013-11-29 | 2014-02-19 | 杭州华三通信技术有限公司 | Rapid gateway switching method and device for hosts in IRDP (ICMP Router Discovery Protocol) network |
Also Published As
Publication number | Publication date |
---|---|
CN105591920A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7672245B2 (en) | Method, device, and system for detecting layer 2 loop | |
EP2536066A1 (en) | Link detecting method, apparatus and system | |
JP2014090468A (en) | Ethernet oam at intermediate nodes in pbt network | |
WO2020135391A1 (en) | Operation administration and maintenance (ioam) packet transmission method, and corresponding apparatus | |
CN109586959B (en) | Fault detection method and device | |
CN104702444B (en) | The treating method and apparatus of ERPS protocol massages | |
WO2012029422A1 (en) | Communication quality monitoring system, communication quality monitoring method, and storage medium | |
US10979349B2 (en) | Methods and apparatuses for flexible mobile steering in cellular networks | |
US9313090B2 (en) | Tunnel fault detection method and traffic engineering node | |
CN112673602B (en) | Method and device for avoiding broadcast storm | |
CN109120492B (en) | Storage unit, source switch, message forwarding method and mirror image system | |
CN103684953A (en) | Method and device for avoiding data traffic loss in an Ethernet ring multihomed, in an active-standby manner, to a virtual private LAN service transport network | |
WO2017128901A1 (en) | Forwarding control method and device | |
CN102868569A (en) | Method, node and system for detecting performance of three-layer virtual private network | |
WO2018032869A1 (en) | Method and device for controlling multicast transmission | |
JP5678678B2 (en) | Provider network and provider edge device | |
JPWO2012014509A1 (en) | Unauthorized access blocking control method | |
CN105591920B (en) | RA message processing method and device based on IRDP | |
US9515923B2 (en) | Method and device for processing interconnected ring in multi-protocol label switching | |
US10476774B2 (en) | Selective transmission of bidirectional forwarding detection (BFD) messages for verifying multicast connectivity | |
WO2015180265A1 (en) | Multi-link protection switching method and device | |
CN108243117B (en) | Flow monitoring method and device and electronic equipment | |
CN108259325B (en) | Route maintenance method and route equipment | |
WO2015024523A1 (en) | Ip bearer network failure determining method and system | |
JP5520741B2 (en) | Communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |