CN104270310B - A kind of message processing method and equipment based on RIP - Google Patents

A kind of message processing method and equipment based on RIP Download PDF

Info

Publication number
CN104270310B
CN104270310B CN201410514460.6A CN201410514460A CN104270310B CN 104270310 B CN104270310 B CN 104270310B CN 201410514460 A CN201410514460 A CN 201410514460A CN 104270310 B CN104270310 B CN 104270310B
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.)
Active
Application number
CN201410514460.6A
Other languages
Chinese (zh)
Other versions
CN104270310A (en
Inventor
王剑鸣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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

Abstract

The invention discloses a kind of message processing method and equipment based on RIP, this method includes:The network equipment generates polyaluminium chloride PAC, and generates null interface corresponding to the polyaluminium chloride PAC and route;The outgoing interface of the null interface route is NULL interfaces, and the metric of the null interface route is to specify numerical value, and metric is to specify numerical value to be used to make the network equipment refusal issue the null interface route;The network equipment issues the polyaluminium chloride PAC to neighboring net-work device;The network equipment, if the message matches the null interface route, abandons the message when receiving message.In the embodiment of the present invention, it is not necessary to which outgoing interface corresponding to manual configuration polyaluminium chloride PAC route for the null interface of NULL interfaces.

Description

A kind of message processing method and equipment based on RIP
Technical field
The present invention relates to communication technical field, especially a kind of message processing method and equipment based on RIP.
Background technology
RIP (Routing Information Protocol, routing information protocol) is that one kind is based on distance vector algorithm Agreement, RIP arrives at the distance of location using hop count to weigh, and hop count is referred to as metric.In RIP networks, network is set The hop count of standby (such as router) to neighboring net-work device is 0, by a network equipment up to when hop count be 1, by that analogy. In order to limit convergence time, RIP provides that hop count takes the integer between 0-15, and the hop count more than or equal to 16 is defined as infinite Greatly, i.e., destination address is unreachable.
Each operation RIP one routing table of network device management, every record in the routing table include following information:
Destination address, the IP address of purpose equipment;
Next hop address, in order to arrive at location, it is necessary to the interface IP address of the neighboring net-work device passed through;
Outgoing interface, the outgoing interface used when E-Packeting in present networks equipment;
Metric, the path cost of present networks equipment to destination address;
Route time, from current elapsed time is updated to for the last time, when being updated every time, route time is reset For 0.
The network equipment is after RIP is started, it is necessary to which periodicity (default time is 30 seconds) is sent to neighboring net-work device Route in local routing table, the route received is safeguarded in local routing table by neighboring net-work device.Further, in order to subtract The issue quantity routeing less, reduces the route scale that neighboring net-work device is safeguarded, the network equipment is sent to neighboring net-work device During route, polyaluminium chloride PAC corresponding to a plurality of route can be generated, and send the polyaluminium chloride PAC to neighboring net-work device, rather than to Neighboring net-work device sends this plurality of route, and neighboring net-work device also only needs to safeguard polyaluminium chloride PAC, so as to reduce route rule Mould.
As shown in figure 1, being the application scenarios schematic diagram of polyaluminium chloride PAC, the local routing table of the network equipment 1 includes route 100.1.1.0/24 road is not directly transmitted when sending route to the network equipment 2 with route 100.1.2.0/24, the network equipment 1 By 100.1.1.0/24 and route 100.1.2.0/24, but generate 100.1.2.0/24 pairs of route 100.1.1.0/24 and route The polyaluminium chloride PAC 100.1.0.0/16 answered, and polyaluminium chloride PAC 100.1.0.0/16 is sent to the network equipment 2, by the network equipment 2 Polyaluminium chloride PAC 100.1.0.0/16 is safeguarded in local routing table.
Under aforesaid way, the network equipment 1 is sent to present networks equipment 1 receiving the network equipment 2 based on polyaluminium chloride PAC During message, possibly it can not know how to handle the message.For example, the network equipment 2 is 100.1.1.0/24 receiving destination address Message when, match polyaluminium chloride PAC 100.1.0.0/16, by destination address be 100.1.1.0/24 message be sent to network Equipment 1;When the network equipment 1 receives the message that destination address is 100.1.1.0/24, route 100.1.1.0/24 is matched, and lead to The message that outgoing interface sending destination location corresponding to crossing route 100.1.1.0/24 is 100.1.1.0/24.The network equipment 2 is being received During to the message that destination address is 100.1.3.0/24, polyaluminium chloride PAC 100.1.0.0/16 is matched, is by destination address 100.1.3.0/24 message be sent to the network equipment 1;The network equipment 1 receives the message that destination address is 100.1.3.0/24 When, it is not known that how the message that processing intent address is 100.1.3.0/24, the network equipment 1 can not forward or abandon the report Text.
The content of the invention
The embodiment of the present invention provides a kind of message processing method based on routing information protocol RIP, and this method is applied to bag In the RIP networks for including multiple network equipments, it the described method comprises the following steps:
The network equipment generates polyaluminium chloride PAC corresponding to multiple routes, and generates null interface road corresponding to the polyaluminium chloride PAC By;The outgoing interface of the null interface route is empty NULL interfaces, and the metric of the null interface route is to specify numerical value, metric Make network equipment refusal issue null interface route to specify numerical value to be used for;
The network equipment issues the polyaluminium chloride PAC to the neighboring net-work device of present networks equipment;
The network equipment is sent to present networks equipment receiving the neighboring net-work device based on the polyaluminium chloride PAC During message, if the message matches the null interface route, the message is abandoned.
The network equipment generates polyaluminium chloride PAC corresponding to multiple routes, and generates null interface corresponding to the polyaluminium chloride PAC The process of route, is specifically included:
Route in the network equipment traversal local routing table, if there is multiple routes to be configured as in local routing table Polymerization methodses are issued, then the network equipment generates polyaluminium chloride PAC corresponding to the multiple route;
Metric corresponding to each route in the multiple route of the network equipment acquisition, and determine the measurement of minimum Value, and determine that metric corresponding to the polyaluminium chloride PAC is the minimum metric;
When metric corresponding to the polyaluminium chloride PAC is less than the specified numerical value, then the network equipment generation is described poly- Combining is route by corresponding null interface;It is when metric corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, then described Network equipment refusal generates null interface route corresponding to the polyaluminium chloride PAC.
The priority of the null interface route is assigned priority, and the assigned priority is less than in the multiple route The priority each routeing;The route time of the null interface route is specified time, and route time is used for the specified time In the route time for making the network equipment refusal refresh the null interface route, and refusal is deleted the sky because of routing aging and connect Mouth route.
The network equipment is sent to present networks equipment receiving the neighboring net-work device based on the polyaluminium chloride PAC During message, if the message matches the null interface route, the message is abandoned, is specifically included:The network equipment When receiving the message, judge whether the message matches multiple routes corresponding to the polyaluminium chloride PAC;If matching To multiple routes corresponding to the polyaluminium chloride PAC, then the network equipment is according to message described in the routing forwarding matched;If Multiple routes corresponding to the polyaluminium chloride PAC are not matched, then it is described poly- to judge whether the message matches for the network equipment Combining is route by corresponding null interface;If matching the null interface route, the network equipment abandons the message.
After the network equipment generates null interface route corresponding to the polyaluminium chloride PAC, methods described further comprises: When metric corresponding to the polyaluminium chloride PAC changes, after the network equipment obtains change corresponding to the polyaluminium chloride PAC Metric;When the metric after change corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, the network equipment Null interface corresponding to the polyaluminium chloride PAC is deleted to route;Or the network equipment is cancelling present networks equipment to the neighbours After the polyaluminium chloride PAC of network equipment issue, the network equipment deletes null interface route corresponding to the polyaluminium chloride PAC.
The embodiment of the present invention provides a kind of network equipment, applied to the routing information protocol RIP including multiple network equipments In network, the network equipment specifically includes:Generation module, for generating polyaluminium chloride PAC corresponding to multiple routes, and generate institute Null interface corresponding to polyaluminium chloride PAC is stated to route;Wherein, the outgoing interface of the null interface route is empty NULL interfaces, and the sky connects The metric of mouth route is to specify numerical value, and metric is the specified numerical value for making the network equipment refusal issue the sky Interface route;
Sending module, for issuing the polyaluminium chloride PAC to the neighboring net-work device of the network equipment;
Processing module, for being sent to the network equipment based on the polyaluminium chloride PAC receiving the neighboring net-work device Message when, if the message matches null interface route, abandon the message.
The generation module, specifically for the route in traversal local routing table, if there is multiple roads in local routing table By being configured as polymerization methodses issue, then polyaluminium chloride PAC corresponding to the multiple route is generated;
Metric corresponding to each route in the multiple route is obtained, and determines the metric of minimum, and determines institute It is the minimum metric to state metric corresponding to polyaluminium chloride PAC;
When metric corresponding to the polyaluminium chloride PAC is less than the specified numerical value, then generate corresponding to the polyaluminium chloride PAC Null interface is route;When metric corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, then refusal generates the polymerization Null interface corresponding to route is route.
The priority of the null interface route is assigned priority, and the assigned priority is less than in the multiple route The priority each routeing;The route time of the null interface route is specified time, and route time is used for the specified time In the route time for making the network equipment refusal refresh the null interface route, and refusal is deleted the sky because of routing aging and connect Mouth route.
The processing module, specifically for when receiving the message, judging it is described poly- whether the message matches Combining is by corresponding multiple routes;If multiple routes corresponding to the polyaluminium chloride PAC are matched, according to the route matched Forward the message;If not matching multiple routes corresponding to the polyaluminium chloride PAC, whether the message is determined whether Null interface corresponding to the polyaluminium chloride PAC is matched to route;If matching the null interface route, the message is abandoned.
The processing module, it is additionally operable to after null interface route corresponding to the polyaluminium chloride PAC is generated, when the polymerization When metric changes corresponding to route, the metric after changing corresponding to the polyaluminium chloride PAC is obtained;When the polymerization road When being not less than the specified numerical value by the metric after corresponding change, delete null interface corresponding to the polyaluminium chloride PAC and route; Or after the polyaluminium chloride PAC that the network equipment is issued to the neighboring net-work device is cancelled, delete the polymerization Null interface corresponding to route is route.
Based on above-mentioned technical proposal, in the embodiment of the present invention, when generating polyaluminium chloride PAC corresponding to multiple routes, pass through life It is route into null interface corresponding to polyaluminium chloride PAC, is receiving neighboring net-work device based on polyaluminium chloride PAC and be sent to the report of present networks equipment Wen Shi, if message matches null interface route, network equipment dropping packets.Based on above-mentioned processing, polyaluminium chloride PAC is being used RIP networks in, it is not necessary to outgoing interface corresponding to manual configuration polyaluminium chloride PAC for NULL (sky) interface null interface route, avoid The network equipment does not know how to handle the problem of neighboring net-work device is sent to the message of present networks equipment based on polyaluminium chloride PAC.
Brief description of the drawings
Fig. 1 is the application scenarios schematic diagram of the polyaluminium chloride PAC proposed in the prior art;
Fig. 2 is a kind of message processing method schematic flow sheet based on RIP provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of network equipment provided in an embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of message processing method based on RIP, should For in the RIP networks including multiple network equipments.Application scenarios schematic diagram using Fig. 1 as the embodiment of the present invention, in RIP networks Including network equipment A and network equipment B, network equipment A is network equipment B neighboring net-work device, and network equipment B is that network is set Standby A neighboring net-work device.Under above-mentioned application scenarios, as shown in Fig. 2 being somebody's turn to do the message processing method based on RIP including following Step:
Step 201, the network equipment generates polyaluminium chloride PAC corresponding to multiple routes, and sky corresponding to generating the polyaluminium chloride PAC connects Mouth route.The outgoing interface of null interface route is NULL interfaces, and the metric of null interface route is to specify numerical value, and metric is to refer to Fixed number value is used to make network equipment refusal issue null interface route.
Wherein, null interface route is referred to as NULL (sky) routes.
Wherein, NULL interfaces are a kind of virtual interfaces, i.e., NULL interfaces are to be in the virtual of UP (normal) state forever connecing Mouthful, but NULL interfaces can not E-Packet, and can not configure IP address and link layer protocol.Based on this, when the outgoing interface of message For NULL interfaces when, then the network equipment needs to abandon the message.Further, those skilled in the art can also be by NULL interfaces Referred to as NULL0 interfaces.
Wherein, the metric of null interface route is to specify numerical value, and it is the maximum that RIP provides hop count that this, which specifies numerical value, when RIP provides that hop count takes the integer between 0-15, and when the hop count more than or equal to 16 is defined as infinity, then specified numerical value is 15.Further, null interface route belongs to local concept, and null interface route is never distributed on neighboring net-work device.
In the embodiment of the present invention, the priority of null interface route is assigned priority, and assigned priority is needed less than polymerization The priority of each route in multiple routes corresponding to route, so as to ensure the network equipment when receiving message, preferential With multiple routes corresponding to polyaluminium chloride PAC, if do not match multiple routes corresponding to polyaluminium chloride PAC, matching aggregation can be just removed Null interface corresponding to route is route.In the specific implementation, the priority that null interface is route can be arranged into lowest priority (such as Priority 255), to ensure that the priority of null interface route is excellent less than each route in multiple routes corresponding to polyaluminium chloride PAC First level.
In the embodiment of the present invention, the route time of null interface route is specified time, and route time is used for for specified time Network equipment refusal is refreshed the route time of null interface route, and refuse because routing aging deletes null interface route.Therefore, it is empty Interface route does not have aging mechanism, i.e. null interface route will not be deleted due to reaching ageing time.For example, null interface is route Route time forever be 0, then regardless of whether receive match the null interface route message, the null interface route route when Between will not be updated.
The destination address phase of the destination address and polyaluminium chloride PAC that are route based on above-mentioned analysis, null interface corresponding to polyaluminium chloride PAC Together, the next hop address of null interface route is identical with the next hop address of polyaluminium chloride PAC, and the outgoing interface of null interface route is NULL Interface, the metric of null interface route are to specify numerical value 15, and the priority of null interface route is assigned priority 255, null interface The route time of route is specified time 0 forever.
In the embodiment of the present invention, the network equipment generates polyaluminium chloride PAC corresponding to multiple routes, and it is corresponding to generate polyaluminium chloride PAC Null interface route process, be specifically including but not limited to following manner:Route in network equipment traversal local routing table, such as There are multiple routes to be configured as polymerization methodses issue in fruit local routing table, then the network equipment is generated and gathered corresponding to this multiple route Combining by.The network equipment obtains metric corresponding to each route in this multiple route, and determines the metric of minimum, and really Metric corresponding to polyaluminium chloride PAC is determined for minimum metric.Further, specified when metric corresponding to polyaluminium chloride PAC is less than During numerical value (such as 15), then null interface corresponding to network equipment generation polyaluminium chloride PAC is route;When metric corresponding to polyaluminium chloride PAC not During less than specified numerical value, then null interface corresponding to network equipment refusal generation polyaluminium chloride PAC is route.
Wherein, the network equipment after RIP is started, it is necessary to periodically (default time is 30 seconds) to neighboring net-work device The route in local routing table is sent, safeguards the route received in local routing table by neighboring net-work device.Based on this, up to When sending the cycle to route, all routes in network equipment traversal local routing table.For each route currently traversed, If the route by horizontal segmentation, need not issue the route to neighboring net-work device.If the route is not by level point Cut, and the route is not configured as polymerization methodses issue, then the route is directly distributed to neighboring net-work device by the network equipment. If the route is not by horizontal segmentation, and the route is configured as polymerization methodses issue, then is configured as polymerizeing for multiple The route that mode is issued, the network equipment generate polyaluminium chloride PAC corresponding to this multiple route.
Horizontal segmentation (Split Horizon) refers to:The route that the network equipment is acquired from some interface, will not be from the interface Neighboring net-work device is sent back to again, so as to reduce bandwidth consumption, and prevents route loop.
As shown in figure 1, configuration route 100.1.1.0/24 and route in the local routing table of the network equipment 1 100.1.2.0/24 issued for polymerization methodses.For other routes in local routing table, the network equipment 1 directly issues route To the network equipment 2, the processing no longer repeats in detail.For route 100.1.1.0/24 and route 100.1.2.0/24, network is set Standby 1 does not directly transmit route 100.1.1.0/24 and route 100.1.2.0/24 to the network equipment 2, but generates route 100.1.1.0/24 with route 100.1.2.0/24 corresponding to polyaluminium chloride PAC 100.1.0.0/16.Afterwards, the network equipment 1 obtains road Metric (being assumed to be 8) as corresponding to 100.1.1.0/24, and obtain route 100.1.2.0/24 corresponding to metric (be assumed to be 10), and determine that minimum metric is 8, and determine metric corresponding to polyaluminium chloride PAC 100.1.0.0/16 for minimum measurement Value 8.Numerical value (such as 15) is specified because metric 8 corresponding to polyaluminium chloride PAC 100.1.0.0/16 is less than, therefore, network equipment generation Null interface corresponding to polyaluminium chloride PAC 100.1.0.0/16 is route, the destination address and polyaluminium chloride PAC 100.1.0.0/ of null interface route 16 destination address is identical, i.e. the destination address of null interface route is 100.1.0.0/16, and null interface route does not need the cycle Property update, it is not required that periodically to neighboring net-work device issue.
In the embodiment of the present invention, the network equipment works as polyaluminium chloride PAC after null interface route corresponding to generation polyaluminium chloride PAC When corresponding metric changes, the network equipment obtains the metric after changing corresponding to polyaluminium chloride PAC;When polyaluminium chloride PAC pair When metric after the change answered is not less than specified numerical value, the network equipment deletes null interface route corresponding to polyaluminium chloride PAC.Or For the network equipment after the polyaluminium chloride PAC that revocation present networks equipment is issued to neighboring net-work device, the network equipment deletes the polymerization road It is route by corresponding null interface.
For example, being 12 when measuring value changes corresponding to route 100.1.1.0/24, spent corresponding to route 100.1.2.0/24 When value remains as 10, the network equipment determines that minimum metric is 10, and determines corresponding to polyaluminium chloride PAC 100.1.0.0/16 Metric is minimum metric 10.Because metric 10 corresponding to polyaluminium chloride PAC 100.1.0.0/16 is still less than specified numerical value 15, therefore, the network equipment 1 need not delete null interface corresponding to polyaluminium chloride PAC 100.1.0.0/16 and route.In another example work as route 100.1.1.0/24 corresponding measurement value changes are 15, when measurement value changes are 18 corresponding to route 100.1.2.0/24, network Equipment determines that minimum metric is 15, and determines metric corresponding to polyaluminium chloride PAC 100.1.0.0/16 for minimum metric 15.Numerical value 15 is specified because metric 15 corresponding to polyaluminium chloride PAC 100.1.0.0/16 is not less than, therefore, the network equipment 1 needs Delete null interface route corresponding to polyaluminium chloride PAC 100.1.0.0/16.In another example the network equipment 1 revocation present networks equipment 1 to After the polyaluminium chloride PAC 100.1.0.0/16 that the network equipment 2 is issued, the network equipment 1 needs to delete polyaluminium chloride PAC 100.1.0.0/16 Corresponding null interface route.
In the said process of the embodiment of the present invention, the network equipment can when generating polyaluminium chloride PAC corresponding to multiple routes, Null interface corresponding to the polyaluminium chloride PAC is automatically generated to route, and during generation null interface route, network equipment generation The destination address of null interface route is identical with the destination address of polyaluminium chloride PAC, the next hop address and polyaluminium chloride PAC of null interface route Next hop address it is identical, the outgoing interface of null interface route be NULL interfaces, and the metric of null interface route is specified numerical value 15, The priority of null interface route is assigned priority 255, and the route time of null interface route is specified time 0 forever.Above-mentioned In the generating process of null interface route, realized automatically by the network equipment, it is not necessary to which manual configuration null interface is route.
Step 202, the network equipment issues polyaluminium chloride PAC to the neighboring net-work device of present networks equipment.
For example, polyaluminium chloride PAC 100.1.0.0/16 is sent to the network equipment 2 by the network equipment 1, by the network equipment 2 in local Polyaluminium chloride PAC 100.1.0.0/16 is safeguarded in routing table.Further, the network equipment 1 need not be by polyaluminium chloride PAC 100.1.0.0/ Null interface route is sent to the network equipment 2 corresponding to 16.
Step 203, the network equipment is receiving neighboring net-work device based on polyaluminium chloride PAC and is being sent to the report of present networks equipment Wen Shi, if the message matches null interface route, the network equipment abandons the message.
In the embodiment of the present invention, the network equipment is set receiving neighboring net-work device and be sent to present networks based on polyaluminium chloride PAC During standby message, if the message matches null interface route, the network equipment abandons the process of the message, specifically includes but not It is limited to following manner:The network equipment is sent to the message of present networks equipment receiving neighboring net-work device based on polyaluminium chloride PAC When, judge whether the message matches multiple routes corresponding to polyaluminium chloride PAC;If match multiple roads corresponding to polyaluminium chloride PAC By then the network equipment is according to the routing forwarding message matched;If multiple routes, net corresponding to polyaluminium chloride PAC are not matched Network equipment judges whether message matches null interface corresponding to polyaluminium chloride PAC and route;If matching null interface route, due to The outgoing interface of null interface route is NULL interfaces, and therefore, the network equipment abandons the message.
Wherein, the network equipment by multiple corresponding to polyaluminium chloride PAC by routeing, under null interface route corresponding to polyaluminium chloride PAC It is dealt on the FIB (Forwarding Information Base, forwarding information storehouse) or drive module of hardware forwarding chip, by Hardware forwarding chip is based on the routing forwarding message safeguarded in FIB or drive module.
For example, the network equipment 2 matches polyaluminium chloride PAC when receiving the message that destination address is 100.1.1.0/24 100.1.0.0/16 the message that destination address is 100.1.1.0/24 is sent to the network equipment 1;The network equipment 1 receives purpose When address is 100.1.1.0/24 message, judge whether destination address matches polyaluminium chloride PAC for 100.1.1.0/24 message 100.1.0.0/16 corresponding multiple routes (routeing 100.1.1.0/24 and route 100.1.2.0/24), due to matching road By 100.1.1.0/24, therefore, the network equipment 1 sends purpose according to outgoing interface corresponding to the route 100.1.1.0/24 matched Address is 100.1.1.0/24 message.
In another example the network equipment 2 matches polyaluminium chloride PAC when receiving the message that destination address is 100.1.3.0/24 100.1.0.0/16 the message that destination address is 100.1.3.0/24 is sent to the network equipment 1;The network equipment 1 receives purpose When address is 100.1.3.0/24 message, judge whether destination address matches polyaluminium chloride PAC for 100.1.3.0/24 message 100.1.0.0/16 corresponding multiple routes (routeing 100.1.1.0/24 and route 100.1.2.0/24), due to not matching 100.1.1.0/24 and route 100.1.2.0/24 are route, the network equipment 1 judges message of the destination address for 100.1.3.0/24 Whether match null interface corresponding to polyaluminium chloride PAC 100.1.0.0/16 and route 100.1.0.0/16, because destination address is 100.1.3.0/24 message can match null interface route 100.1.0.0/16, and null interface route 100.1.0.0/16's Outgoing interface is NULL interfaces, and therefore, the network equipment 1 abandons the message that destination address is 100.1.3.0/24.
Based on above-mentioned processing, in the embodiment of the present invention, for the unknown unicast message of purpose, (such as destination address is 100.1.3.0/24 message), the network equipment 2 can abandon the message that destination address is 100.1.3.0/24, without by mesh Address be 100.1.3.0/24 message be sent to the network equipment 1, so as to avoid causing loop.And in the prior art, it is right In the unknown unicast message of purpose (message that such as destination address is 100.1.3.0/24), the network equipment 2 does not know how to handle Destination address is 100.1.3.0/24 message, thereby increases and it is possible to the message that destination address is 100.1.3.0/24 can be sent into network Equipment 1, so as to cause loop.
Based on above-mentioned technical proposal, in the embodiment of the present invention, when generating polyaluminium chloride PAC corresponding to multiple routes, pass through life It is route into null interface corresponding to polyaluminium chloride PAC, is receiving neighboring net-work device based on polyaluminium chloride PAC and be sent to the report of present networks equipment Wen Shi, if message matches null interface route, present networks equipment abandons the message.Based on above-mentioned processing, polymerization is being used In the RIP networks of route, it is not necessary to which the null interface that outgoing interface corresponding to manual configuration polyaluminium chloride PAC is NULL is route, and avoids network Equipment does not know how to handle the problem of neighboring net-work device is sent to the message of present networks equipment based on polyaluminium chloride PAC.
Based on the inventive concept same with the above method, a kind of network equipment is additionally provided in the embodiment of the present invention, is applied In the routing information protocol RIP networks including multiple network equipments, as shown in figure 3, the network equipment specifically includes:Generation Module 11, for generating polyaluminium chloride PAC corresponding to multiple routes, and generate null interface corresponding to the polyaluminium chloride PAC and route;Its In, the outgoing interface of the null interface route is empty NULL interfaces, and the metric of null interface route is to specify numerical value, measurement It is worth and is used to make the network equipment refusal issue the null interface route for the specified numerical value;Sending module 12, for institute The neighboring net-work device for stating the network equipment issues the polyaluminium chloride PAC;Processing module 13, for receiving the neighbor networks When equipment is sent to the message of the network equipment based on the polyaluminium chloride PAC, if the message matches the null interface road By then abandoning the message.
The generation module 11, specifically for the route in traversal local routing table, if had in local routing table multiple Route is configured as polymerization methodses issue, then generates polyaluminium chloride PAC corresponding to the multiple route;
Metric corresponding to each route in the multiple route is obtained, and determines the metric of minimum, and determines institute It is the minimum metric to state metric corresponding to polyaluminium chloride PAC;
When metric corresponding to the polyaluminium chloride PAC is less than the specified numerical value, then generate corresponding to the polyaluminium chloride PAC Null interface is route;When metric corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, then refusal generates the polymerization Null interface corresponding to route is route.
In the embodiment of the present invention, the priority of the null interface route is assigned priority, and the assigned priority is less than The priority of each route in the multiple route;The route time of null interface route is specified time, route time It is used to make the network equipment refusal refresh the route time of the null interface route for the specified time, and refuses because of route The null interface route is deleted in aging.
The processing module 13, specifically for when receiving the message, judging it is described whether the message matches Multiple routes corresponding to polyaluminium chloride PAC;If multiple routes corresponding to the polyaluminium chloride PAC are matched, according to the road matched By forwarding the message;If not matching multiple routes corresponding to the polyaluminium chloride PAC, determine whether that the message is It is no to match null interface route corresponding to the polyaluminium chloride PAC;If matching the null interface route, the message is abandoned.
The processing module 13, it is additionally operable to after null interface route corresponding to the polyaluminium chloride PAC is generated, when described poly- When combining is changed by corresponding metric, the metric after changing corresponding to the polyaluminium chloride PAC is obtained;When the polymerization When metric after changing corresponding to route is not less than the specified numerical value, null interface road corresponding to the polyaluminium chloride PAC is deleted By;Or after the polyaluminium chloride PAC that the network equipment is issued to the neighboring net-work device is cancelled, delete described poly- Combining is route by corresponding null interface.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can close And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases Good embodiment.Based on such understanding, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including It is dry to instruct to cause a computer equipment (be personal computer, server, or network equipment etc.) to perform this hair Method described in bright each embodiment.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, Module or flow in accompanying drawing are not necessarily implemented necessary to the present invention.It will be appreciated by those skilled in the art that in embodiment Device in module can according to embodiment describe be distributed in the device of embodiment, respective change position can also be carried out In one or more devices different from the present embodiment.The module of above-described embodiment can be merged into a module, can also It is further split into multiple submodule.The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.With Several specific embodiments of the upper disclosed only present invention, still, the present invention is not limited to this, any those skilled in the art Member can think of change should all fall into protection scope of the present invention.

Claims (10)

1. a kind of message processing method based on routing information protocol RIP, this method is applied to the RIP for including multiple network equipments In network, it is characterised in that the described method comprises the following steps:
The network equipment generates polyaluminium chloride PAC corresponding to multiple routes, and generates null interface corresponding to the polyaluminium chloride PAC and route;Institute The outgoing interface for stating null interface route is empty NULL interfaces, and the metric of the null interface route is to specify numerical value, and metric is to refer to Fixed number value is used to make network equipment refusal issue null interface route;
The network equipment issues the polyaluminium chloride PAC to the neighboring net-work device of present networks equipment;
The network equipment is sent to the message of present networks equipment receiving the neighboring net-work device based on the polyaluminium chloride PAC When, if the message matches the null interface route, abandon the message.
2. the method as described in claim 1, it is characterised in that the network equipment generates polymerization road corresponding to multiple routes By, and the process that null interface corresponding to the polyaluminium chloride PAC is route is generated, specifically include:
Route in the network equipment traversal local routing table, if there is multiple routes to be configured as polymerizeing in local routing table Mode is issued, then the network equipment generates polyaluminium chloride PAC corresponding to the multiple route;
Metric corresponding to each route in the multiple route of the network equipment acquisition, and the metric of minimum is determined, And determine that metric corresponding to the polyaluminium chloride PAC is the minimum metric;
When metric corresponding to the polyaluminium chloride PAC is less than the specified numerical value, then the network equipment generates the polymerization road It is route by corresponding null interface;When metric corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, then the network Equipment refusal generates null interface route corresponding to the polyaluminium chloride PAC.
3. method as claimed in claim 1 or 2, it is characterised in that the priority of the null interface route is assigned priority, The assigned priority is less than the priority of each route in the multiple route;The route time of null interface route is Specified time, route time are the route time for being used to specified time make the network equipment refusal refresh null interface route, and Refusal deletes null interface route because of routing aging.
4. method as claimed in claim 1 or 2, it is characterised in that the network equipment is receiving the neighboring net-work device When being sent to the message of present networks equipment based on the polyaluminium chloride PAC, if the message matches the null interface route, The process of the message is abandoned, is specifically included:
It is more corresponding to the polyaluminium chloride PAC to judge whether the message matches when receiving the message for the network equipment Individual route;If matching multiple routes corresponding to the polyaluminium chloride PAC, the network equipment turns according to the route matched Send out message described;If not matching multiple routes corresponding to the polyaluminium chloride PAC, the network equipment judges the message Null interface corresponding to the polyaluminium chloride PAC whether is matched to route;If matching the null interface route, the network is set It is standby to abandon the message.
5. method as claimed in claim 1 or 2, it is characterised in that the network equipment is generated corresponding to the polyaluminium chloride PAC After null interface route, methods described further comprises:
When metric corresponding to the polyaluminium chloride PAC changes, the network equipment obtains to be become corresponding to the polyaluminium chloride PAC Metric after change;When the metric after change corresponding to the polyaluminium chloride PAC is not less than the specified numerical value, the network Equipment deletes null interface route corresponding to the polyaluminium chloride PAC;Or
The network equipment is described after the polyaluminium chloride PAC that revocation present networks equipment is issued to the neighboring net-work device The network equipment deletes null interface route corresponding to the polyaluminium chloride PAC.
A kind of 6. network equipment, applied in the routing information protocol RIP networks including multiple network equipments, it is characterised in that The network equipment specifically includes:
Generation module, for generating polyaluminium chloride PAC corresponding to multiple routes, and generate null interface road corresponding to the polyaluminium chloride PAC By;Wherein, the outgoing interface of the null interface route is empty NULL interfaces, and the metric of null interface route counts to specify Value, metric are that the specified numerical value is used to make the network equipment refusal issue the null interface route;
Sending module, for issuing the polyaluminium chloride PAC to the neighboring net-work device of the network equipment;
Processing module, for receiving the neighboring net-work device based on the polyaluminium chloride PAC and being sent to the report of the network equipment Wen Shi, if the message matches the null interface route, abandon the message.
7. the network equipment as claimed in claim 6, it is characterised in that
The generation module, specifically for the route in traversal local routing table, if there is multiple route quilts in local routing table Polymerization methodses issue is configured to, then generates polyaluminium chloride PAC corresponding to the multiple route;
The generation module, specifically it is additionally operable to obtain metric corresponding to each route in the multiple route, and determines most Small metric, and determine that metric corresponding to the polyaluminium chloride PAC is the minimum metric;When the polyaluminium chloride PAC pair When the metric answered is less than the specified numerical value, then generates null interface corresponding to the polyaluminium chloride PAC and route;When the polymerization road When being not less than the specified numerical value by corresponding metric, then refusal generates null interface route corresponding to the polyaluminium chloride PAC.
8. the network equipment as claimed in claims 6 or 7, it is characterised in that the priority of the null interface route is excellent to specify First level, the assigned priority are less than the priority of each route in the multiple route;The route of the null interface route Time is specified time, and route time is the route time for being used to specified time make network equipment refusal refresh null interface route, Refusal deletes null interface route because of routing aging.
9. the network equipment as claimed in claims 6 or 7, it is characterised in that
The processing module, specifically for when receiving the message, judging whether the message matches the polymerization road By corresponding multiple routes;If multiple routes corresponding to the polyaluminium chloride PAC are matched, according to the routing forwarding matched The message;If not matching multiple routes corresponding to the polyaluminium chloride PAC, determine whether the message matches It is route to null interface corresponding to the polyaluminium chloride PAC;If matching the null interface route, the message is abandoned.
10. the network equipment as claimed in claims 6 or 7, it is characterised in that
The processing module, it is additionally operable to after null interface route corresponding to the polyaluminium chloride PAC is generated, when the polyaluminium chloride PAC When corresponding metric changes, the metric after changing corresponding to the polyaluminium chloride PAC is obtained;When the polyaluminium chloride PAC pair When metric after the change answered is not less than the specified numerical value, deletes null interface corresponding to the polyaluminium chloride PAC and route;Or After the polyaluminium chloride PAC that the network equipment is issued to the neighboring net-work device is cancelled, the polyaluminium chloride PAC pair is deleted The null interface route answered.
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 CN104270310A (en) 2015-01-07
CN104270310B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Citations (2)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8638788B2 (en) * 2011-11-22 2014-01-28 Telefonaktiebolaget L M Ericsson (Publ) Replication management for remote multicast replication network

Patent Citations (2)

* 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

Also Published As

Publication number Publication date
CN104270310A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
US11658896B2 (en) Routing table creation method, electronic device, and network
US9967183B2 (en) Source routing with entropy-header
TWI653855B (en) Transmission path optimization method and software-defined networking controller using the method
CN105900390B (en) Link control node, chainlink control method and communication system
JP6920533B2 (en) Data flow transmission
CN104283791B (en) Three etale topologies in a kind of SDN determine method and apparatus
CN102739518B (en) A kind of flow load sharing method and apparatus
CN105553680A (en) System and method for creating virtual interfaces based on network characteristics
US10498634B2 (en) Packet processing method and system, and device
US20150295813A1 (en) Method and Apparatus for Determining Traffic Forwarding Path and Communications System
KR102342723B1 (en) Multi-homed network routing and forwarding method based on programmable network technology
CN107517157A (en) A kind of determining method of path, device and system
CN108768856A (en) A kind of route processing method and device
CN107786450A (en) A kind of data message transmission method, device and machinable medium
CN106817299A (en) The list item generation method and device and message forwarding method of software defined network
CN101686188B (en) Method for establishing route table, routing method and router in hierarchy sequential address packet network
CN106031103A (en) Communication system, control device, communication control method and program
WO2016049926A1 (en) Data packet processing apparatus and method
CN103391249B (en) Neighborhood relationship building method in a kind of IS-IS network and equipment
CN103188171B (en) A kind of method for dispatching message and equipment
CN104270310B (en) A kind of message processing method and equipment based on RIP
CN108600106B (en) A kind of DEU data exchange unit and method of low time delay
CN102158422A (en) Message forwarding method and equipment for layer 2 ring network
Wang et al. Edge-based traffic engineering for OSPF networks
AU2013235426B2 (en) Routing a data packet in a communication network

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
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant