CN104270310A - Message processing method and device based on RIP - Google Patents

Message processing method and device based on RIP Download PDF

Info

Publication number
CN104270310A
CN104270310A CN201410514460.6A CN201410514460A CN104270310A CN 104270310 A CN104270310 A CN 104270310A CN 201410514460 A CN201410514460 A CN 201410514460A CN 104270310 A CN104270310 A CN 104270310A
Authority
CN
China
Prior art keywords
route
polyaluminium chloride
network equipment
chloride pac
null 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.)
Granted
Application number
CN201410514460.6A
Other languages
Chinese (zh)
Other versions
CN104270310B (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 CN201410514460.6A priority Critical patent/CN104270310B/en
Publication of CN104270310A publication Critical patent/CN104270310A/en
Application granted granted Critical
Publication of CN104270310B publication Critical patent/CN104270310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message processing method and device based on an RIP. The method includes the steps that a merging route and a null interface route corresponding to the merging route are generated by a network device; an outcoming interface of the null interface route is a NULL interface and the metric value of the null interface route is a designated numerical value and used for making the network device refuse to issue the null interface route; the network device issues the merging route to a neighbor network device; when the network device receives a message and if the message is matched with the null interface route, the message is abandoned. According to the method and device, the null interface route which corresponds to the merging route and is provided with the NULL interface serving as the outcoming interface does not need to be manually configured.

Description

A kind of message processing method based on RIP and equipment
Technical field
The present invention relates to communication technical field, especially a kind of message processing method based on RIP and equipment.
Background technology
RIP (Routing Information Protocol, routing information protocol) is a kind of agreement based on distance vector algorithm, and RIP uses jumping figure to weigh the distance arriving destination address, and jumping figure is called metric.In RIP network, the network equipment (as router) is 0 to the jumping figure of neighboring net-work device, and jumping figure when can be reached by a network equipment is 1, by that analogy.In order to limit convergence time, RIP specifies that jumping figure gets the integer between 0-15, and the jumping figure being more than or equal to 16 is defined as infinity, and namely destination address is unreachable.
Network device management routing table of each operation RIP, the every bar record in this routing table comprises following information:
Destination address, the IP address of object equipment;
Next hop address, in order to arrive destination address, needs the interface IP address of the neighboring net-work device of process;
Outgoing interface, the outgoing interface used when present networks equipment E-Packets;
Metric, present networks equipment is to the path cost of destination address;
Route time, from being updated to current institute elapsed time for the last time, when being updated, route time resets to 0 at every turn.
The network equipment, after startup RIP, needs the route sent to neighboring net-work device in local routing table of periodically (default time is 30 seconds), is safeguarded the route received by neighboring net-work device in local routing table.Further, in order to reduce the publish quantities of route, reduce the route scale that neighboring net-work device is safeguarded, the network equipment is when sending route to neighboring net-work device, the polyaluminium chloride PAC that many routes are corresponding can be generated, and send this polyaluminium chloride PAC to neighboring net-work device, instead of send this many routes to neighboring net-work device, and neighboring net-work device also only needs to safeguard polyaluminium chloride PAC, thus reduce route scale.
As shown in Figure 1, for the application scenarios schematic diagram of polyaluminium chloride PAC, the local routing table of the network equipment 1 comprises route 100.1.1.0/24 and route 100.1.2.0/24, the network equipment 1 is when sending route to the network equipment 2, directly do not send route 100.1.1.0/24 and route 100.1.2.0/24, but generate polyaluminium chloride PAC 100.1.0.0/16 corresponding to route 100.1.1.0/24 and route 100.1.2.0/24, and polyaluminium chloride PAC 100.1.0.0/16 is sent to the network equipment 2, in local routing table, safeguard polyaluminium chloride PAC 100.1.0.0/16 by the network equipment 2.
Under aforesaid way, the network equipment 1, when receiving the network equipment 2 and sending to the message of present networks equipment 1 based on polyaluminium chloride PAC, possibly cannot know how to process this message.Such as, the network equipment 2, when receiving destination address and being the message of 100.1.1.0/24, matches polyaluminium chloride PAC 100.1.0.0/16, is that the message of 100.1.1.0/24 sends to the network equipment 1 by destination address; The network equipment 1 receives destination address when being the message of 100.1.1.0/24, matches route 100.1.1.0/24, and is the message of 100.1.1.0/24 by the outgoing interface sending destination location that route 100.1.1.0/24 is corresponding.The network equipment 2, when receiving destination address and being the message of 100.1.3.0/24, matches polyaluminium chloride PAC 100.1.0.0/16, is that the message of 100.1.3.0/24 sends to the network equipment 1 by destination address; The network equipment 1 receives destination address when being the message of 100.1.3.0/24, does not know how processing intent address is the message of 100.1.3.0/24, and the network equipment 1 cannot forward or abandon this message.
Summary of the invention
The embodiment of the present invention provides a kind of message processing method based on routing information protocol RIP, and the method is applied to and comprises in the RIP network of multiple network equipment, said method comprising the steps of:
The network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generates null interface route corresponding to described polyaluminium chloride PAC; The outgoing interface of described null interface route is empty NULL interface, and the metric of described null interface route is for specifying numerical value, and metric makes the network equipment refuse to issue null interface route for specifying numerical value to be used for;
The described network equipment issues described polyaluminium chloride PAC to the neighboring net-work device of present networks equipment;
The described network equipment, when receiving described neighboring net-work device and sending to the message of present networks equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandons described message.
The described network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generates the process of null interface route corresponding to described polyaluminium chloride PAC, specifically comprises:
Route in described network equipment traversal local routing table, issue if there is multiple route to be configured to polymerization methods in local routing table, then the described network equipment generates polyaluminium chloride PAC corresponding to described multiple route;
The metric that each route in the described multiple route of described network equipment acquisition is corresponding, and determine minimum metric, and determine that the metric that described polyaluminium chloride PAC is corresponding is described minimum metric;
When the metric that described polyaluminium chloride PAC is corresponding is less than described appointment numerical value, then the described network equipment generates null interface route corresponding to described polyaluminium chloride PAC; When the metric that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, then described network equipment refusal generates null interface route corresponding to described polyaluminium chloride PAC.
The priority of described null interface route is assigned priority, and described assigned priority is lower than the priority of each route in described multiple route; The route time of described null interface route is the fixed time, and route time is the route time of described fixed time for making the described network equipment refuse to refresh described null interface route, and refuses to delete described null interface route because of routing aging.
The described network equipment is when receiving described neighboring net-work device and sending to the message of present networks equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandon described message, specifically comprise: the described network equipment, when receiving described message, judges whether described message matches multiple routes corresponding to described polyaluminium chloride PAC; If match multiple routes that described polyaluminium chloride PAC is corresponding, then the described network equipment is according to message described in the routing forwarding matched; If do not match multiple routes that described polyaluminium chloride PAC is corresponding, then the described network equipment judges whether described message matches null interface route corresponding to described polyaluminium chloride PAC; If match described null interface route, then the described network equipment abandons described message.
After the described network equipment generates null interface route corresponding to described polyaluminium chloride PAC, described method comprises further: when the metric that described polyaluminium chloride PAC is corresponding changes, and the described network equipment obtains the metric after change corresponding to described polyaluminium chloride PAC; When the metric after the change that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, the described network equipment deletes null interface route corresponding to described polyaluminium chloride PAC; Or the described network equipment is cancelling present networks equipment to after the described polyaluminium chloride PAC that described neighboring net-work device is issued, and the described network equipment deletes null interface route corresponding to described polyaluminium chloride PAC.
The embodiment of the present invention provides a kind of network equipment, be applied to and comprise in the routing information protocol RIP network of multiple network equipment, the described network equipment specifically comprises: generation module, for generating polyaluminium chloride PAC corresponding to multiple route, and generates null interface route corresponding to described polyaluminium chloride PAC; Wherein, the outgoing interface of described null interface route is empty NULL interface, and the metric of described null interface route is for specifying numerical value, and metric is that described appointment numerical value is used for making the described network equipment refuse to issue described null interface route;
Sending module, for issuing described polyaluminium chloride PAC to the neighboring net-work device of the described network equipment;
Processing module, for when receiving described neighboring net-work device and sending to the message of the described network equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandons described message.
Described generation module, specifically for the route in traversal local routing table, issues if there is multiple route to be configured to polymerization methods in local routing table, then generates the polyaluminium chloride PAC that described multiple route is corresponding;
Obtain the metric that each route in described multiple route is corresponding, and determine minimum metric, and determine that the metric that described polyaluminium chloride PAC is corresponding is described minimum metric;
When the metric that described polyaluminium chloride PAC is corresponding is less than described appointment numerical value, then generate the null interface route that described polyaluminium chloride PAC is corresponding; When the metric that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, then refusal generates null interface route corresponding to described polyaluminium chloride PAC.
The priority of described null interface route is assigned priority, and described assigned priority is lower than the priority of each route in described multiple route; The route time of described null interface route is the fixed time, and route time is the route time of described fixed time for making the described network equipment refuse to refresh described null interface route, and refuses to delete described null interface route because of routing aging.
Described processing module, specifically for when receiving described message, judges whether described message matches multiple routes corresponding to described polyaluminium chloride PAC; If match multiple routes that described polyaluminium chloride PAC is corresponding, then according to message described in the routing forwarding matched; If do not match multiple routes that described polyaluminium chloride PAC is corresponding, then judge whether described message matches null interface route corresponding to described polyaluminium chloride PAC further; If match described null interface route, then abandon described message.
Described processing module, also for after generating null interface route corresponding to described polyaluminium chloride PAC, when the metric that described polyaluminium chloride PAC is corresponding changes, obtains the metric after change corresponding to described polyaluminium chloride PAC; When the metric after the change that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, delete the null interface route that described polyaluminium chloride PAC is corresponding; Or, cancelling the described network equipment to after the described polyaluminium chloride PAC that described neighboring net-work device is issued, delete the null interface route that described polyaluminium chloride PAC is corresponding.
Based on technique scheme, in the embodiment of the present invention, when the polyaluminium chloride PAC that the multiple route of generation is corresponding, by generating null interface route corresponding to polyaluminium chloride PAC, when receiving neighboring net-work device and sending to the message of present networks equipment based on polyaluminium chloride PAC, if message matches null interface route, then network equipment dropping packets.Based on above-mentioned process, in the RIP network using polyaluminium chloride PAC, do not need outgoing interface that manual configuration polyaluminium chloride PAC is corresponding to be the null interface route of NULL (sky) interface, avoid the network equipment not know how to process neighboring net-work device sends to the message of present networks equipment problem based on polyaluminium chloride PAC.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram of the polyaluminium chloride PAC proposed in prior art;
Fig. 2 is a kind of message processing method schematic flow sheet based on RIP that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of network equipment that the embodiment of the present invention provides.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of message processing method based on RIP, is applied to and comprises in the RIP network of multiple network equipment.Take Fig. 1 as the application scenarios schematic diagram of the embodiment of the present invention, RIP network comprises network equipment A and network equipment B, and network equipment A is the neighboring net-work device of network equipment B, and network equipment B is the neighboring net-work device of network equipment A.Under above-mentioned application scenarios, as shown in Figure 2, should comprise the following steps based on the message processing method of RIP:
Step 201, the network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generates null interface route corresponding to this polyaluminium chloride PAC.The outgoing interface of null interface route is NULL interface, and the metric of null interface route is for specifying numerical value, and metric makes the network equipment refuse to issue null interface route for specifying numerical value to be used for.
Wherein, null interface route also can be called NULL (sky) route.
Wherein, NULL interface is a kind of virtual interface, and namely NULL interface is the virtual interface being forever in UP (normally) state, but NULL interface can not E-Packet, can not configuration of IP address and link layer protocol.Based on this, when the outgoing interface of message is NULL interface, then the network equipment needs to abandon this message.Further, NULL interface also can be called NULL0 interface by those skilled in the art.
Wherein, the metric of null interface route is for specifying numerical value, and this appointment numerical value is the maximum that RIP specifies jumping figure, gets the integer between 0-15 when RIP specifies jumping figure, when the jumping figure being greater than or equal to 16 is defined as infinity, then specifies numerical value to be 15.Further, null interface route belongs to local concept, and null interface route is distributed on neighboring net-work device never.
In the embodiment of the present invention, the priority of null interface route is assigned priority, assigned priority needs the priority lower than each route in multiple routes corresponding to polyaluminium chloride PAC, thus ensure that the network equipment is when receiving message, multiple routes that priority match polyaluminium chloride PAC is corresponding, if when not matching multiple route corresponding to polyaluminium chloride PAC, the null interface route that matching aggregation route is corresponding just can be gone.In specific implementation, the priority of null interface route can be set to lowest priority (as priority 2 55), to ensure the priority of the priority of null interface route lower than each route in multiple routes corresponding to polyaluminium chloride PAC.
In the embodiment of the present invention, the route time of null interface route is the fixed time, and route time is the route time of fixed time for making the network equipment refuse to refresh null interface route, and refusal is because of routing aging deletion null interface route.Therefore, null interface route does not have aging mechanism, and namely null interface route can not be deleted due to arrival ageing time.Such as, the route time of null interface route is 0 forever, then no matter whether receive the message matching this null interface route, the route time of this null interface route all can not be updated.
Based on above-mentioned analysis, the destination address of the null interface route that polyaluminium chloride PAC is corresponding is identical with the destination address of polyaluminium chloride PAC, the next hop address of null interface route is identical with the next hop address of polyaluminium chloride PAC, the outgoing interface of null interface route is NULL interface, the metric of null interface route is for specifying numerical value 15, the priority of null interface route is assigned priority 255, and the route time of null interface route is the fixed time 0 forever.
In the embodiment of the present invention, the network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generate the process of null interface route corresponding to polyaluminium chloride PAC, specifically include but not limited to as under type: the route in network equipment traversal local routing table, if have multiple route to be configured to polymerization methods in local routing table to issue, then the network equipment generates polyaluminium chloride PAC corresponding to this multiple route.The network equipment obtains metric corresponding to each route in this multiple route, and determines minimum metric, and determines that the metric that polyaluminium chloride PAC is corresponding is minimum metric.Further, when the metric that polyaluminium chloride PAC is corresponding is less than appointment numerical value (as 15), then the network equipment generates null interface route corresponding to polyaluminium chloride PAC; When the metric that polyaluminium chloride PAC is corresponding is not less than appointment numerical value, then network equipment refusal generates null interface route corresponding to polyaluminium chloride PAC.
Wherein, the network equipment, after startup RIP, needs the route sent to neighboring net-work device in local routing table of periodically (default time is 30 seconds), is safeguarded the route received by neighboring net-work device in local routing table.Based on this, when reaching route and sending the cycle, all routes in network equipment traversal local routing table.For the current each route traversed, if this route is by horizontal segmentation, then do not need to issue this route to neighboring net-work device.If this route is not by horizontal segmentation, and this route is not configured to polymerization methods issue, then this route is directly distributed to neighboring net-work device by the network equipment.If this route is not by horizontal segmentation, and this route is configured to polymerization methods issue, then for multiple route being configured to polymerization methods and issuing, the network equipment generates polyaluminium chloride PAC corresponding to this multiple route.
Horizontal segmentation (Split Horizon) refers to: the route that the network equipment is acquired from certain interface, can not send back to neighboring net-work device again from this interface, thus reduces bandwidth consumption, and prevents route loop.
As shown in Figure 1, in the local routing table of the network equipment 1, configure route 100.1.1.0/24 and route 100.1.2.0/24 is that polymerization methods is issued.For other route in local routing table, route is directly distributed to the network equipment 2 by the network equipment 1, and this process repeats no longer in detail.For route 100.1.1.0/24 and route 100.1.2.0/24, the network equipment 1 does not directly send route 100.1.1.0/24 and route 100.1.2.0/24 to the network equipment 2, but generates polyaluminium chloride PAC 100.1.0.0/16 corresponding to route 100.1.1.0/24 and route 100.1.2.0/24.Afterwards, the network equipment 1 obtains metric corresponding to route 100.1.1.0/24 (being assumed to be 8), and obtain metric corresponding to route 100.1.2.0/24 (being assumed to be 10), and determine that minimum metric is 8, and determine that the metric that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is minimum metric 8.Because the metric 8 that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is less than appointment numerical value (as 15), therefore, the network equipment generates null interface route corresponding to polyaluminium chloride PAC 100.1.0.0/16, the destination address of null interface route is identical with the destination address of polyaluminium chloride PAC 100.1.0.0/16, namely the destination address of null interface route is 100.1.0.0/16, this null interface route does not need to be updated periodically, and does not need periodically to issue to neighboring net-work device yet.
In the embodiment of the present invention, the network equipment is after generating null interface route corresponding to polyaluminium chloride PAC, and when the metric that polyaluminium chloride PAC is corresponding changes, the network equipment obtains the metric after change corresponding to polyaluminium chloride PAC; When the metric after the change that polyaluminium chloride PAC is corresponding is not less than appointment numerical value, the network equipment deletes null interface route corresponding to polyaluminium chloride PAC.Or the network equipment is cancelling present networks equipment to after the polyaluminium chloride PAC that neighboring net-work device is issued, and the network equipment deletes null interface route corresponding to this polyaluminium chloride PAC.
Such as, the metric corresponding as route 100.1.1.0/24 is changed to 12, when the metric that route 100.1.2.0/24 is corresponding is still 10, the network equipment determines that minimum metric is 10, and determines that the metric that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is minimum metric 10.Because the metric 10 that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is still less than appointment numerical value 15, therefore, the network equipment 1 does not need to delete null interface route corresponding to polyaluminium chloride PAC 100.1.0.0/16.Again such as, the metric corresponding as route 100.1.1.0/24 is changed to 15, when the metric that route 100.1.2.0/24 is corresponding is changed to 18, the network equipment determines that minimum metric is 15, and determines that the metric that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is minimum metric 15.Because the metric 15 that polyaluminium chloride PAC 100.1.0.0/16 is corresponding is not less than appointment numerical value 15, therefore, the network equipment 1 needs to delete null interface route corresponding to polyaluminium chloride PAC 100.1.0.0/16.Again such as, the network equipment 1 is cancelling present networks equipment 1 to after the polyaluminium chloride PAC 100.1.0.0/16 that the network equipment 2 is issued, and the network equipment 1 needs to delete null interface route corresponding to polyaluminium chloride PAC 100.1.0.0/16.
In the said process of the embodiment of the present invention, the network equipment can when the polyaluminium chloride PAC that the multiple route of generation is corresponding, automatically the null interface route that this polyaluminium chloride PAC is corresponding is generated, and in the process generating null interface route, the destination address of the null interface route that the network equipment generates is identical with the destination address of polyaluminium chloride PAC, the next hop address of null interface route is identical with the next hop address of polyaluminium chloride PAC, the outgoing interface of null interface route is NULL interface, the metric of null interface route is for specifying numerical value 15, the priority of null interface route is assigned priority 255, the route time of null interface route is the fixed time 0 forever.In the generative process of above-mentioned null interface route, automatically realize by the network equipment, do not need manual configuration null interface route.
Step 202, the network equipment issues polyaluminium chloride PAC to the neighboring net-work device of present networks equipment.
Such as, polyaluminium chloride PAC 100.1.0.0/16 is sent to the network equipment 2 by the network equipment 1, safeguards polyaluminium chloride PAC 100.1.0.0/16 by the network equipment 2 in local routing table.Further, the network equipment 1 does not need null interface route corresponding for polyaluminium chloride PAC 100.1.0.0/16 to send to the network equipment 2.
Step 203, the network equipment is when receiving neighboring net-work device and sending to the message of present networks equipment based on polyaluminium chloride PAC, if this message matches null interface route, then the network equipment abandons this message.
In the embodiment of the present invention, the network equipment is when receiving neighboring net-work device and sending to the message of present networks equipment based on polyaluminium chloride PAC, if this message matches null interface route, then the network equipment abandons the process of this message, specifically include but not limited to as under type: the network equipment, when receiving neighboring net-work device and sending to the message of present networks equipment based on polyaluminium chloride PAC, judges whether this message matches multiple routes corresponding to polyaluminium chloride PAC; If match multiple routes that polyaluminium chloride PAC is corresponding, then the network equipment is according to the routing forwarding message matched; If do not match multiple routes that polyaluminium chloride PAC is corresponding, then the network equipment judges whether message matches null interface route corresponding to polyaluminium chloride PAC; If match null interface route, then because the outgoing interface of null interface route is NULL interface, therefore, the network equipment abandons this message.
Wherein, the network equipment is by by FIB (the Forwarding Information Base of null interface route sending-down corresponding to multiple routes corresponding for polyaluminium chloride PAC, polyaluminium chloride PAC to hardware forwarding chip, forwarding information base) or driver module on, by hardware forwarding chip based on the routing forwarding message safeguarded in FIB or driver module.
Such as, the network equipment 2, when receiving destination address and being the message of 100.1.1.0/24, matches polyaluminium chloride PAC 100.1.0.0/16, is that the message of 100.1.1.0/24 sends to the network equipment 1 by destination address; The network equipment 1 receives destination address when being the message of 100.1.1.0/24, judge destination address is whether the message of 100.1.1.0/24 matches multiple routes corresponding to polyaluminium chloride PAC 100.1.0.0/16 (i.e. route 100.1.1.0/24 and route 100.1.2.0/24), owing to matching route 100.1.1.0/24, therefore, the network equipment 1 is the message of 100.1.1.0/24 according to the outgoing interface sending destination location that the route 100.1.1.0/24 matched is corresponding.
Again such as, the network equipment 2, when receiving destination address and being the message of 100.1.3.0/24, matches polyaluminium chloride PAC 100.1.0.0/16, is that the message of 100.1.3.0/24 sends to the network equipment 1 by destination address, the network equipment 1 receives destination address when being the message of 100.1.3.0/24, judge destination address is whether the message of 100.1.3.0/24 matches multiple routes corresponding to polyaluminium chloride PAC 100.1.0.0/16 (i.e. route 100.1.1.0/24 and route 100.1.2.0/24), owing to not matching route 100.1.1.0/24 and route 100.1.2.0/24, the network equipment 1 judges destination address is whether the message of 100.1.3.0/24 matches null interface route 100.1.0.0/16 corresponding to polyaluminium chloride PAC 100.1.0.0/16, the message being 100.1.3.0/24 due to destination address can match null interface route 100.1.0.0/16, and the outgoing interface of null interface route 100.1.0.0/16 is NULL interface, therefore, the network equipment 1 abandons the message that destination address is 100.1.3.0/24.
Based on above-mentioned process, in the embodiment of the present invention, for the unicast message (if destination address is the message of 100.1.3.0/24) of object the unknown, the network equipment 2 can abandon the message that destination address is 100.1.3.0/24, and the network equipment 1 can not be sent at the message by destination address being 100.1.3.0/24, thus avoid causing loop.And in the prior art, for the unicast message (if destination address is the message of 100.1.3.0/24) of object the unknown, the network equipment 2 does not know how processing intent address is the message of 100.1.3.0/24, and may be that the message of 100.1.3.0/24 sends to the network equipment 1 by destination address, thus cause loop.
Based on technique scheme, in the embodiment of the present invention, when the polyaluminium chloride PAC that the multiple route of generation is corresponding, by generating null interface route corresponding to polyaluminium chloride PAC, when receiving neighboring net-work device and sending to the message of present networks equipment based on polyaluminium chloride PAC, if message matches null interface route, then present networks equipment abandons this message.Based on above-mentioned process, in the RIP network using polyaluminium chloride PAC, do not need outgoing interface that manual configuration polyaluminium chloride PAC is corresponding to be the null interface route of NULL, avoid the network equipment not know how to process neighboring net-work device sends to the message of present networks equipment problem based on polyaluminium chloride PAC.
Based on the inventive concept same with said method, a kind of network equipment is additionally provided in the embodiment of the present invention, be applied to and comprise in the routing information protocol RIP network of multiple network equipment, as shown in Figure 3, the described network equipment specifically comprises: generation module 11, for generating polyaluminium chloride PAC corresponding to multiple route, and generate null interface route corresponding to described polyaluminium chloride PAC; Wherein, the outgoing interface of described null interface route is empty NULL interface, and the metric of described null interface route is for specifying numerical value, and metric is that described appointment numerical value is used for making the described network equipment refuse to issue described null interface route; Sending module 12, for issuing described polyaluminium chloride PAC to the neighboring net-work device of the described network equipment; Processing module 13, for when receiving described neighboring net-work device and sending to the message of the described network equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandons described message.
Described generation module 11, specifically for the route in traversal local routing table, issues if there is multiple route to be configured to polymerization methods in local routing table, then generates the polyaluminium chloride PAC that described multiple route is corresponding;
Obtain the metric that each route in described multiple route is corresponding, and determine minimum metric, and determine that the metric that described polyaluminium chloride PAC is corresponding is described minimum metric;
When the metric that described polyaluminium chloride PAC is corresponding is less than described appointment numerical value, then generate the null interface route that described polyaluminium chloride PAC is corresponding; When the metric that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, then refusal generates null interface route corresponding to described polyaluminium chloride PAC.
In the embodiment of the present invention, the priority of described null interface route is assigned priority, and described assigned priority is lower than the priority of each route in described multiple route; The route time of described null interface route is the fixed time, and route time is the route time of described fixed time for making the described network equipment refuse to refresh described null interface route, and refuses to delete described null interface route because of routing aging.
Described processing module 13, specifically for when receiving described message, judges whether described message matches multiple routes corresponding to described polyaluminium chloride PAC; If match multiple routes that described polyaluminium chloride PAC is corresponding, then according to message described in the routing forwarding matched; If do not match multiple routes that described polyaluminium chloride PAC is corresponding, then judge whether described message matches null interface route corresponding to described polyaluminium chloride PAC further; If match described null interface route, then abandon described message.
Described processing module 13, also for after generating null interface route corresponding to described polyaluminium chloride PAC, when the metric that described polyaluminium chloride PAC is corresponding changes, obtains the metric after change corresponding to described polyaluminium chloride PAC; When the metric after the change that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, delete the null interface route that described polyaluminium chloride PAC is corresponding; Or, cancelling the described network equipment to after the described polyaluminium chloride PAC that described neighboring net-work device is issued, delete the null interface route that described polyaluminium chloride PAC is corresponding.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1., based on a message processing method of routing information protocol RIP, the method is applied to and comprises in the RIP network of multiple network equipment, it is characterized in that, said method comprising the steps of:
The network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generates null interface route corresponding to described polyaluminium chloride PAC; The outgoing interface of described null interface route is empty NULL interface, and the metric of described null interface route is for specifying numerical value, and metric makes the network equipment refuse to issue null interface route for specifying numerical value to be used for;
The described network equipment issues described polyaluminium chloride PAC to the neighboring net-work device of present networks equipment;
The described network equipment, when receiving described neighboring net-work device and sending to the message of present networks equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandons described message.
2. the method for claim 1, is characterized in that, the described network equipment generates polyaluminium chloride PAC corresponding to multiple route, and generates the process of null interface route corresponding to described polyaluminium chloride PAC, specifically comprises:
Route in described network equipment traversal local routing table, issue if there is multiple route to be configured to polymerization methods in local routing table, then the described network equipment generates polyaluminium chloride PAC corresponding to described multiple route;
The metric that each route in the described multiple route of described network equipment acquisition is corresponding, and determine minimum metric, and determine that the metric that described polyaluminium chloride PAC is corresponding is described minimum metric;
When the metric that described polyaluminium chloride PAC is corresponding is less than described appointment numerical value, then the described network equipment generates null interface route corresponding to described polyaluminium chloride PAC; When the metric that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, then described network equipment refusal generates null interface route corresponding to described polyaluminium chloride PAC.
3. method as claimed in claim 1 or 2, it is characterized in that, the priority of described null interface route is assigned priority, and described assigned priority is lower than the priority of each route in described multiple route; The route time of described null interface route is the fixed time, and route time is the route time of fixed time for making the described network equipment refuse to refresh null interface route, and refusal is because of routing aging deletion null interface route.
4. method as claimed in claim 1 or 2, it is characterized in that, the described network equipment when receiving described neighboring net-work device and sending to the message of present networks equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandon the process of described message, specifically comprise:
The described network equipment, when receiving described message, judges whether described message matches multiple routes corresponding to described polyaluminium chloride PAC; If match multiple routes that described polyaluminium chloride PAC is corresponding, then the described network equipment is according to message described in the routing forwarding matched; If do not match multiple routes that described polyaluminium chloride PAC is corresponding, then the described network equipment judges whether described message matches null interface route corresponding to described polyaluminium chloride PAC; If match described null interface route, then the described network equipment abandons described message.
5. method as claimed in claim 1 or 2, it is characterized in that, after the described network equipment generates null interface route corresponding to described polyaluminium chloride PAC, described method comprises further:
When the metric that described polyaluminium chloride PAC is corresponding changes, the described network equipment obtains the metric after change corresponding to described polyaluminium chloride PAC; When the metric after the change that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, the described network equipment deletes null interface route corresponding to described polyaluminium chloride PAC; Or,
The described network equipment is cancelling present networks equipment to after the described polyaluminium chloride PAC that described neighboring net-work device is issued, and the described network equipment deletes null interface route corresponding to described polyaluminium chloride PAC.
6. a network equipment, is applied to and comprises in the routing information protocol RIP network of multiple network equipment, it is characterized in that, the described network equipment specifically comprises:
Generation module, for generating polyaluminium chloride PAC corresponding to multiple route, and generates null interface route corresponding to described polyaluminium chloride PAC; Wherein, the outgoing interface of described null interface route is empty NULL interface, and the metric of described null interface route is for specifying numerical value, and metric is that described appointment numerical value is used for making the described network equipment refuse to issue described null interface route;
Sending module, for issuing described polyaluminium chloride PAC to the neighboring net-work device of the described network equipment;
Processing module, for when receiving described neighboring net-work device and sending to the message of the described network equipment based on described polyaluminium chloride PAC, if described message matches described null interface route, then abandons described message.
7. the network equipment as claimed in claim 6, is characterized in that,
Described generation module, specifically for the route in traversal local routing table, issues if there is multiple route to be configured to polymerization methods in local routing table, then generates the polyaluminium chloride PAC that described multiple route is corresponding;
Obtain the metric that each route in described multiple route is corresponding, and determine minimum metric, and determine that the metric that described polyaluminium chloride PAC is corresponding is described minimum metric;
When the metric that described polyaluminium chloride PAC is corresponding is less than described appointment numerical value, then generate the null interface route that described polyaluminium chloride PAC is corresponding; When the metric that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, then refusal generates null interface route corresponding to described polyaluminium chloride PAC.
8. the network equipment as claimed in claims 6 or 7, it is characterized in that, the priority of described null interface route is assigned priority, and described assigned priority is lower than the priority of each route in described multiple route; The route time of described null interface route is the fixed time, and route time is the route time of fixed time for making the network equipment refuse to refresh null interface route, refuses because of routing aging deletion null interface route.
9. the network equipment as claimed in claims 6 or 7, is characterized in that,
Described processing module, specifically for when receiving described message, judges whether described message matches multiple routes corresponding to described polyaluminium chloride PAC; If match multiple routes that described polyaluminium chloride PAC is corresponding, then according to message described in the routing forwarding matched; If do not match multiple routes that described polyaluminium chloride PAC is corresponding, then judge whether described message matches null interface route corresponding to described polyaluminium chloride PAC further; If match described null interface route, then abandon described message.
10. the network equipment as claimed in claims 6 or 7, is characterized in that,
Described processing module, also for after generating null interface route corresponding to described polyaluminium chloride PAC, when the metric that described polyaluminium chloride PAC is corresponding changes, obtains the metric after change corresponding to described polyaluminium chloride PAC; When the metric after the change that described polyaluminium chloride PAC is corresponding is not less than described appointment numerical value, delete the null interface route that described polyaluminium chloride PAC is corresponding; Or, cancelling the described network equipment to after the described polyaluminium chloride PAC that described neighboring net-work device is issued, delete the null interface route that described polyaluminium chloride PAC is corresponding.
CN201410514460.6A 2014-09-29 2014-09-29 A kind of message processing method and equipment based on RIP Active CN104270310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410514460.6A CN104270310B (en) 2014-09-29 2014-09-29 A kind of message processing method and equipment based on RIP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410514460.6A CN104270310B (en) 2014-09-29 2014-09-29 A kind of message processing method and equipment based on RIP

Publications (2)

Publication Number Publication Date
CN104270310A true CN104270310A (en) 2015-01-07
CN104270310B CN104270310B (en) 2018-04-06

Family

ID=52161803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410514460.6A Active CN104270310B (en) 2014-09-29 2014-09-29 A kind of message processing method and equipment based on RIP

Country Status (1)

Country Link
CN (1) CN104270310B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005110A (en) * 2018-08-29 2018-12-14 新华三技术有限公司合肥分公司 Generate the method and device of polyaluminium chloride PAC
CN116782336A (en) * 2019-10-22 2023-09-19 华为技术有限公司 Communication method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932268A (en) * 2012-11-05 2013-02-13 杭州迪普科技有限公司 Data packet transmitting method and device
CN102957610A (en) * 2012-12-03 2013-03-06 杭州华三通信技术有限公司 Routing processing method and routing forward equipment
US20130128886A1 (en) * 2011-11-22 2013-05-23 Kunal R. Shah Replication Management for Remote Multicast Replication Network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130128886A1 (en) * 2011-11-22 2013-05-23 Kunal R. Shah Replication Management for Remote Multicast Replication Network
CN102932268A (en) * 2012-11-05 2013-02-13 杭州迪普科技有限公司 Data packet transmitting method and device
CN102957610A (en) * 2012-12-03 2013-03-06 杭州华三通信技术有限公司 Routing processing method and routing forward equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109005110A (en) * 2018-08-29 2018-12-14 新华三技术有限公司合肥分公司 Generate the method and device of polyaluminium chloride PAC
CN109005110B (en) * 2018-08-29 2021-05-28 新华三技术有限公司合肥分公司 Method and device for generating aggregation route
CN116782336A (en) * 2019-10-22 2023-09-19 华为技术有限公司 Communication method and device
US11895014B2 (en) 2019-10-22 2024-02-06 Huawei Technologies Co., Ltd. Aggregated route communication method and apparatus

Also Published As

Publication number Publication date
CN104270310B (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN102739518B (en) A kind of flow load sharing method and apparatus
CN107370673B (en) Method, controller and system for establishing forwarding path in network
US10715490B2 (en) Firewall cluster
CN105553680A (en) System and method for creating virtual interfaces based on network characteristics
CN104283791A (en) Three-layer topology determining method and device in SDN network
US10511518B2 (en) Mechanism and framework for finding optimal multicast tree roots without the knowledge of traffic sources and receivers for Fabricpath and TRILL
US9590890B2 (en) Transfer apparatus, server, and route changing method
CN109450793B (en) Method and device for scheduling service traffic
CN107547391A (en) A kind of message transmitting method and device
US20150381773A1 (en) Dual-Homed External Network Access in a Distributed Internet Protocol (IP) Router
CN104579977A (en) Bandwidth constraint multipath routing method and system for SDN controller
US20170201466A1 (en) Data packet processing apparatus and method
GB2578415A (en) Methods and systems for transmitting information packets through tunnel groups at a network node
US20170222953A1 (en) User packet forwarding control method and processing node
CN104486224A (en) Routing learning method and equipment
CN106031103A (en) Communication system, control device, communication control method and program
CN103200071A (en) MTSP multiple-case calculating method and MTSP multiple-case calculating equipment
US9979698B2 (en) Local internet with quality of service (QoS) egress queuing
CN110650092B (en) Data processing method and device
CN107070790A (en) A kind of route learning method and routing device
CN103391249A (en) Neighborship establishing method and device in IS-IS (intermediate system to intermediate system) network
WO2016095142A1 (en) Data forwarding method, device and system in software-defined networking (sdn)
CN114640557A (en) Gateway and cloud network system
CN109067657B (en) Message processing method and device
CN103986654A (en) LSP generating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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