[go: up one dir, main page]

CN102158395A - Device and method for processing neighbor discovery items of router - Google Patents

Device and method for processing neighbor discovery items of router Download PDF

Info

Publication number
CN102158395A
CN102158395A CN2011100378149A CN201110037814A CN102158395A CN 102158395 A CN102158395 A CN 102158395A CN 2011100378149 A CN2011100378149 A CN 2011100378149A CN 201110037814 A CN201110037814 A CN 201110037814A CN 102158395 A CN102158395 A CN 102158395A
Authority
CN
China
Prior art keywords
neighbor discovery
entry
entries
table management
management module
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
CN2011100378149A
Other languages
Chinese (zh)
Other versions
CN102158395B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110037814.9A priority Critical patent/CN102158395B/en
Publication of CN102158395A publication Critical patent/CN102158395A/en
Priority to PCT/CN2011/081025 priority patent/WO2012109908A1/en
Application granted granted Critical
Publication of CN102158395B publication Critical patent/CN102158395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

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

Abstract

本发明涉及一种路由器邻居发现条目处理的装置,该装置包括微码转发模块,用于在使用邻居发现条目进行报文转发时,对该ND条目的使用进行计数;转发表管理模块,用于向ND协议模块提供ND条目的计数;ND协议模块,用于在ND条目刚变为陈旧状态时,通过转发表管理模块读取各线卡的该ND条目的计数并累加,且在ND条目为陈旧状态特定时间后,再次读取各线卡的该ND条目的计数并累加,比较前后两次读取的ND条目的累加结果,若前后两次读取的ND条目的累加结果一致,则将该ND条目老化删除。另外,本发明还提供了一种路由器邻居发现条目处理的方法。通过本发明的技术方案,保证了ND条目的正常老化,防止出现丢包现象。

Figure 201110037814

The invention relates to a device for processing router neighbor discovery entries. The device includes a microcode forwarding module, which is used to count the use of the ND entry when the neighbor discovery entry is used for message forwarding; a forwarding table management module is used for Provide the count of the ND entry to the ND protocol module; the ND protocol module is used to read and accumulate the count of the ND entry of each line card through the forwarding table management module when the ND entry has just become stale, and when the ND entry is After a certain period of time in the stale state, read the counts of the ND entries of each line card again and accumulate them, and compare the accumulated results of the ND entries read twice before and after. If the accumulated results of the ND entries read twice before and after are consistent, the The ND entry is aged and deleted. In addition, the invention also provides a method for processing router neighbor discovery entries. Through the technical scheme of the invention, the normal aging of the ND entry is guaranteed, and the phenomenon of packet loss is prevented.

Figure 201110037814

Description

一种路由器邻居发现条目处理的装置及方法Device and method for router neighbor discovery entry processing

技术领域technical field

本发明涉及数据通信领域,具体地说涉及一种路由器邻居发现条目处理的装置及方法。The invention relates to the field of data communication, in particular to a device and method for processing router neighbor discovery entries.

背景技术Background technique

随着IPv4地址的日益枯竭,IPv6网络的大量部署逐渐被提上日程,在IPv6协议中,ND(Neighbor Discovery,邻居发现)协议是一个全新的协议,它实现了IPv4的ARP(地址解析协议)、ICMP(控制报文协议)中路由器发现部分、重定向部分的所有功能,并具有邻居不可达检测机制。当一个IPv6节点在网络上出现的时候,直接相连的链路上其他IPv6节点可以通过ND协议发现它,进而获取它的链路层地址。IPv6节点里面IPv6地址与链路层地址的关系表称为邻居条目,简称ND条目,一般它有三个基本字段:IPv6下一跳地址、出接口和链路层MAC地址(网络硬件地址),同时还有ND条目状态、ND条目的邻居状态切换时间等信息。With the increasing depletion of IPv4 addresses, a large number of IPv6 network deployments are gradually put on the agenda. In the IPv6 protocol, ND (Neighbor Discovery, Neighbor Discovery) protocol is a brand new protocol, which implements IPv4 ARP (Address Resolution Protocol) , ICMP (Control Message Protocol), all the functions of the router discovery part and the redirection part, and has a neighbor unreachable detection mechanism. When an IPv6 node appears on the network, other IPv6 nodes on the directly connected link can discover it through the ND protocol, and then obtain its link layer address. The relationship table between IPv6 addresses and link-layer addresses in an IPv6 node is called a neighbor entry, or ND entry for short. Generally, it has three basic fields: IPv6 next-hop address, outgoing interface, and link-layer MAC address (network hardware address). There are also information such as the state of the ND entry, the switching time of the neighbor state of the ND entry, and the like.

RFC2461中规定,ND条目有五种状态,分别是incomplete(不完整)、reachable(可达)、stale(陈旧)、delay(延迟)、probe(探测)。如图1所示,是ND条目状态变迁示意图。当节点要进行地址解析的时候,会主动创建一个状态为incomplete的ND条目,并且发送NS(邻居请求)报文,如果收到回应的NA(邻居通告)报文,说明该邻居是可达的,状态变为reachable;如果收不到回应报文,说明邻居不可达,删除创建的条目。在收到最后一个可达性确认的NA报文后,经过“可达时间”,默认是30秒左右,条目状态就变成stale。在stale状态,如果使用该条目发送报文,其状态变为delay,delay状态持续一段时间,默认是5秒,变成probe,并发送可达性探测的NS报文,如果收到回应报文,状态重新变为reachable;否则,删除该条目。处于stale状态的条目,如果一段时间,默认是24小时,一直没有报文发送,则把该条目老化删除。According to RFC2461, ND entries have five states, which are incomplete (incomplete), reachable (reachable), stale (stale), delay (delayed), and probe (detection). As shown in FIG. 1 , it is a schematic diagram of state transition of an ND entry. When a node wants to perform address resolution, it will actively create an ND entry whose state is incomplete, and send an NS (Neighbor Solicitation) message, and if it receives a response NA (Neighbor Advertisement) message, it means that the neighbor is reachable , the state becomes reachable; if no response message is received, it means that the neighbor is unreachable, and the created entry is deleted. After receiving the last reachability acknowledgment NA message, after the "reachable time", the default is about 30 seconds, the entry status becomes stale. In the stale state, if you use this entry to send a message, its state will change to delay, the delay state lasts for a period of time, the default is 5 seconds, it becomes probe, and an NS message for reachability detection is sent, if a response message is received , the state becomes reachable again; otherwise, delete the entry. For an entry in the stale state, if there is no message sent for a period of time (the default is 24 hours), the entry will be aged and deleted.

在路由器上,一般都是控制面和转发面分开,转发面功能主要由微码实现,负责报文的转发;控制面主要由IPv6协议栈模块实现,通过静态配置、动态学习等手段产生转发面所需要的转发资源,并下发给转发表管理模块,供微码转发报文使用。IPv6协议栈模块负责ND条目的学习,学到下发给转发表管理模块,供微码转发报文使用。如图2所示,是ND条目老化后报文发送示意图。根据RFC2461的规定,ND状态变迁需要报文来触发,而路由器上数据报文大部分都是微码转发,不会送给IPv6协议栈模块,这样处于stale状态的ND条目因为没有报文触发它改变状态,就会一直持续24小时,然后老化删除。这个被老化的ND条目,如果微码一直在使用它转发报文,在它被删除的时候就会导致大量的NO ND报文(微码转发报文时,在转发的时候查不到ND条目,就称为NO ND报文)上送控制面,引起控制面CPU利用率冲高,特别是在ND条目比较多的情况下,会导致ND条目重新学习、下发时间较长,从而产生转发流丢包现象。这个现象会周而复始的出现,默认24小时左右来一次,还有可能因为CPU忙,引起路由协议断链,造成更为严重后果。On routers, the control plane and the forwarding plane are generally separated. The function of the forwarding plane is mainly realized by microcode, which is responsible for forwarding packets. The control plane is mainly realized by the IPv6 protocol stack module, and the forwarding plane is generated by means of static configuration and dynamic learning. The required forwarding resources are sent to the forwarding table management module for the microcode to forward messages. The IPv6 protocol stack module is responsible for the learning of ND entries, and sends the learning to the forwarding table management module for the microcode to forward messages. As shown in FIG. 2 , it is a schematic diagram of message sending after an ND entry is aged. According to the regulations of RFC2461, the ND state transition needs to be triggered by a message, and most of the data messages on the router are forwarded by microcode, and will not be sent to the IPv6 protocol stack module, so the ND entry in the stale state is changed because there is no message to trigger it state, it will last for 24 hours, and then aged and deleted. This aging ND entry, if the microcode has been using it to forward messages, will cause a large number of NO ND messages when it is deleted (when the microcode forwards messages, the ND entry cannot be found when forwarding , which is called NO ND message) is sent to the control plane, causing a high CPU utilization rate on the control plane, especially in the case of a large number of ND entries, which will cause ND entries to be re-learned and delivered for a long time, resulting in forwarding flow packet loss. This phenomenon will appear again and again, by default, once every 24 hours or so, and the routing protocol may be disconnected due to busy CPU, causing more serious consequences.

目前针对这种,IPv6里面没有提出明确的解决方案,一般都是参考IPv4的ARP模块做的。ARP通常有以下几种做法:1、动态ARP转换为静态ARP;2、ARP老化时间到之前再重新学习ARP。具体到IPv6就是把动态ND条目转化为静态ND条目,或者在ND老化时间到之前重新学习。这两种方法有明显的局限性,都会导致一些不用的ND条目长期存在,占用有限ND表资源,严重的会导致后续新增的转发流量因为没有ND条目而大量丢包。At present, there is no clear solution in IPv6 for this, and it is generally done with reference to the ARP module of IPv4. ARP usually has the following methods: 1. Convert dynamic ARP to static ARP; 2. Relearn ARP before the ARP aging time expires. Specifically for IPv6, it is to convert dynamic ND entries into static ND entries, or relearn before the ND aging time expires. These two methods have obvious limitations, which will cause some unused ND entries to exist for a long time, occupying limited ND table resources, and seriously causing a large number of subsequent packet loss due to the lack of ND entries for newly added forwarding traffic.

发明内容Contents of the invention

本发明解决的技术问题是提供了一种路由器邻居发现条目处理的装置,通过该装置,保证了ND条目的正常老化,防止出现丢包现象。另外,本发明还提供了一种路由器邻居发现条目处理的方法。The technical problem solved by the invention is to provide a router neighbor discovery entry processing device, which ensures normal aging of ND entries and prevents packet loss. In addition, the invention also provides a method for processing router neighbor discovery entries.

本发明提供的一种路由器邻居发现条目处理的装置包括,A device for processing router neighbor discovery entries provided by the present invention includes:

微码转发模块,用于在使用邻居发现条目进行报文转发时,对该ND条目的使用进行计数;The microcode forwarding module is used to count the use of the ND entry when the neighbor discovery entry is used for message forwarding;

转发表管理模块,用于向ND协议模块提供ND条目的计数;The forwarding table management module is used to provide the count of ND entries to the ND protocol module;

ND协议模块,用于在ND条目刚变为陈旧状态时,通过转发表管理模块读取各线卡的该ND条目的计数并累加,且在ND条目为陈旧状态特定时间后,再次读取各线卡的该ND条目的计数并累加,比较前后两次读取的ND条目的累加结果,若前后两次读取的ND条目的累加结果一致,则将该ND条目老化删除。The ND protocol module is used to read and accumulate the counts of the ND entries of each line card through the forwarding table management module when the ND entry just becomes obsolete, and to read each count again after the ND entry is obsolete for a specific time. The ND entry of the line card is counted and accumulated, and the accumulated results of the ND entries read twice before and after are compared. If the accumulated results of the ND entries read twice before and after are consistent, the ND entry is aged and deleted.

优选地,所述ND协议模块,还用于在前后两次读取的ND条目的累加结果不一致时,将所述ND条目状态变为迟延状态,并进行可达性探测,若探测结果可达,则更改ND条目状态,重新下发给转发表管理模块,供微码使用,否则删除所述ND条目。Preferably, the ND protocol module is further configured to change the state of the ND entry into a delayed state and perform reachability detection when the accumulative results of the two read ND entries are inconsistent, and if the detection result is reachable , then change the state of the ND entry and re-send it to the forwarding table management module for use by the microcode, otherwise delete the ND entry.

优选地,所述对ND条目的使用进行计数为,Preferably, said counting the use of ND entries is,

每次使用该ND条目转发一个报文,使用计数累加一次。Each time a packet is forwarded using this ND entry, the usage count is added up once.

优选地,通过转发表管理模块读取各线卡的该ND条目的计数并累加后,Preferably, after the count of the ND entry of each line card is read by the forwarding table management module and accumulated,

将累加结果保存在ND条目中。Save the accumulated result in the ND entry.

优选地,所述特定时间为老化删除之前的任一段时间。Preferably, the specific time is any period before aging deletion.

本发明还提供了一种路由器ND条目处理的方法,所述方法包括,The present invention also provides a method for processing router ND entries, the method comprising:

微码转发模块在使用ND条目转发报文时,对该ND条目的使用进行计数;When the microcode forwarding module uses the ND entry to forward the message, the use of the ND entry is counted;

ND协议模块在ND条目状态变为stale时,通过转发表管理模块读取各线卡的该ND条目对应的使用计数并累加;When the ND entry state becomes stale, the ND protocol module reads and accumulates the usage count corresponding to the ND entry of each line card through the forwarding table management module;

ND协议模块在stale状态为特定时候后,再次通过转发表管理模块读取各线卡的该ND条目对应的使用计数并累加;After the ND protocol module is in the stale state for a specific time, it reads and accumulates the usage count corresponding to the ND entry of each line card through the forwarding table management module again;

判断两次使用计数累加结果是否一致,在一致的情况下,将该ND条目老化删除。Determine whether the accumulated results of the two usage counts are consistent, and if they are consistent, age and delete the ND entry.

优选地,所述方法还包括,Preferably, the method also includes,

在前后两次使用计数累加结果不一致时,将所述ND条目状态变为delay状态,并进行可达性探测,若探测结果可达,则更改ND条目状态,重新下发给转发表管理模块,供微码使用,否则删除所述ND条目。When the accumulative results of the two usage counts are inconsistent, the state of the ND entry is changed to the delay state, and the reachability detection is performed. If the detection result is reachable, the state of the ND entry is changed and sent to the forwarding table management module again. For use by microcode, otherwise remove said ND entry.

优选地,所述对该ND条目的使用进行计数为,Preferably, said counting the use of the ND entry is,

每次使用该ND条目转发一个报文,则使用计数累加一次。Each time the ND entry is used to forward a packet, the usage count is incremented once.

优选地,所述通过转发表管理模块读取各线卡的该ND条目对应的使用计数并累加后,Preferably, after reading and accumulating the use counts corresponding to the ND entries of each line card through the forwarding table management module,

将累加结果保存在ND条目中。Save the accumulated result in the ND entry.

优选地,所述特定时间为老化删除之前的任一段时间。Preferably, the specific time is any period before aging deletion.

与现有技术相比,本发明的技术方案保证了ND条目的正常老化,有效地规避了由于ND条目老化的原因导致的转发流量因为没有ND条目而大量丢包,保证了路由器的正常运作。Compared with the prior art, the technical solution of the present invention ensures the normal aging of ND entries, effectively avoids a large amount of packet loss of forwarding traffic due to the aging of ND entries due to the lack of ND entries, and ensures the normal operation of the router.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:

图1是ND条目状态变迁示意图;Figure 1 is a schematic diagram of state transitions of ND entries;

图2是ND条目老化后报文发送示意图;Figure 2 is a schematic diagram of message sending after ND entry aging;

图3是本发明实施例一的结构图;Fig. 3 is a structural diagram of Embodiment 1 of the present invention;

图4是本发明实施例二的流程图。FIG. 4 is a flow chart of Embodiment 2 of the present invention.

具体实施方式Detailed ways

为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚、明白,以下结合附图和实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

如图3所示,是本发明实施例一的结构图,提供了一种路由器报文转发的装置,所述装置包括ND协议模块、转发表管理模块、微码转发模块,其中,As shown in FIG. 3 , it is a structural diagram of Embodiment 1 of the present invention, and a device for forwarding router messages is provided. The device includes an ND protocol module, a forwarding table management module, and a microcode forwarding module, wherein,

微码转发模块,在使用ND条目进行报文转发时,对该ND条目使用进行计数,每次使用该ND条目转发一个报文,使用计数累加一次;需要说明的是,此处的计数累加一次并不限定于每次使用该ND条目转发一个报文,也可以是其他形式,使用该ND条目转发两个或多个报文,使用计数累加一次;The microcode forwarding module, when using an ND entry for message forwarding, counts the use of the ND entry, and each time a message is forwarded using the ND entry, the usage count is accumulated once; it should be noted that the count here is accumulated once It is not limited to using the ND entry to forward one message each time, and it can also be in other forms, use the ND entry to forward two or more messages, and use the count to accumulate once;

转发表管理模块,用于向ND协议模块提供ND条目的计数;The forwarding table management module is used to provide the count of ND entries to the ND protocol module;

其具体形式是,提供ND条目使用计数的读取通道,供ND协议模块读取该计数;Its specific form is to provide a read channel for the usage count of ND entries for the ND protocol module to read the count;

ND协议模块,在ND条目刚变成stale状态的时候,通过转发表管理模块读取各个线卡的该ND条目的使用计数并累加,把累加结果保存在ND条目中,这个使用计数也可以在用户界面显示;在ND条目处于stale状态一特定时间段后,默认24小时,老化删除之前,再次读取各个线卡的该ND条目的使用计数并累加;将前后两次读取的ND使用计数累加结果进行比较,如果两者一致,表明在这一段时间内,该ND条目没有被使用,可以老化删除(忽略使用计数翻转这种小概率的情况);如果不一致,表明在这段时间内,该ND条目仍然在使用,这时可以把该ND条目状态改变成delay状态,再进行可达性探测,探测结果如果仍然可达,则把新的MAC信息通过转发表管理模块写给微码;否则删除条目。The ND protocol module, when the ND entry just becomes the stale state, reads and accumulates the use count of the ND entry of each line card through the forwarding table management module, and saves the accumulated result in the ND entry. The user interface displays; after the ND entry is in the stale state for a specific period of time, 24 hours by default, before aging and deleting, the usage count of the ND entry of each line card is read again and accumulated; the ND usage count read twice before and after Comparing the cumulative results, if the two are consistent, it indicates that the ND entry has not been used during this period of time, and can be aged and deleted (ignoring the small probability of usage count reversal); if not, it indicates that during this period, The ND entry is still in use. At this time, the state of the ND entry can be changed to the delay state, and then reachability detection is performed. If the detection result is still reachable, the new MAC information is written to the microcode through the forwarding table management module; Otherwise delete the entry.

如图4所示,是本发明实施例二的流程图,提供了一种路由器报文转发的方法,所述方法包括,As shown in FIG. 4, it is a flow chart of Embodiment 2 of the present invention, which provides a method for router message forwarding. The method includes:

实施方法,包括以下步骤:The implementation method includes the following steps:

S401,微码转发模块在使用ND条目转发报文时,把ND条目的使用进行计数;S401, when the microcode forwarding module uses the ND entry to forward the message, count the use of the ND entry;

需要说明的是,此处的计数累加一次并不限定于每次使用该ND条目转发一个报文,也可以是其他形式,使用该ND条目转发两个或多个报文,使用计数累加一次;It should be noted that the accumulation of the count here is not limited to using the ND entry to forward one packet each time, and it can also be in other forms, using the ND entry to forward two or more packets, and using the count to accumulate once;

S402,ND协议模块在ND条目状态变为stale时,通过转发表管理模块读取各个线卡的该ND条目对应的使用计数并累加,累加结果保存在该ND条目里面,这个结果也可以在用户界面显示;S402, when the state of the ND entry becomes stale, the ND protocol module reads and accumulates the usage count corresponding to the ND entry of each line card through the forwarding table management module, and the accumulated result is stored in the ND entry, and this result can also be stored in the user interface display;

S403,ND协议模块在stale状态老化删除前,再次通过转发表管理模块读取各个线卡的该ND条目对应的使用计数并累加;S403, the ND protocol module reads and accumulates the usage count corresponding to the ND entry of each line card through the forwarding table management module again before the stale state is aged out and deleted;

S404判断两次使用计数累加结果是否一致,若两者一致就可以认为在进入stale状态的这一段时间内没有报文使用该ND条目进行转发,可以删除;若不一致就认为在进入stale状态的这一段时间内,有报文使用该ND条目进行转发,该条目不能删除,重新进行一下可达性探测,更新一下ND状态,重新下发给转发表管理模块,供微码使用。S404 judges whether the two use count accumulation results are consistent, if the two are consistent, it can be considered that there is no message to use this ND entry to forward during the period of time entering the stale state, and can be deleted; For a period of time, there are messages forwarded using this ND entry. This entry cannot be deleted. Re-perform the reachability detection, update the ND status, and re-send it to the forwarding table management module for use by the microcode.

上述说明示出并描述了本发明的一个优选实施例,但如前所述,应当理解本发明并非局限于本文所披露的形式,不应看作是对其他实施例的排除,而可用于各种其他组合、修改和环境,并能够在本文所述发明构想范围内,通过上述教导或相关领域的技术或知识进行改动。而本领域人员所进行的改动和变化不脱离本发明的精神和范围,则都应在本发明所附权利要求的保护范围内。The above description shows and describes a preferred embodiment of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various Various other combinations, modifications, and environments can be made within the scope of the inventive concept described herein, by the above teachings or by skill or knowledge in the relevant field. However, changes and changes made by those skilled in the art do not depart from the spirit and scope of the present invention, and should all be within the protection scope of the appended claims of the present invention.

Claims (10)

1.一种路由器邻居发现条目处理的装置,其特征在于,所述装置包括,1. A device for router neighbor discovery entry processing, characterized in that the device comprises, 微码转发模块,用于在使用邻居发现条目进行报文转发时,对该邻居发现条目的使用进行计数;The microcode forwarding module is used for counting the use of the neighbor discovery entry when the neighbor discovery entry is used for message forwarding; 转发表管理模块,用于向邻居发现协议模块提供邻居发现条目的计数;The forwarding table management module is used to provide the neighbor discovery protocol module with the count of neighbor discovery entries; 邻居发现协议模块,用于在邻居发现条目刚变为陈旧状态时,通过转发表管理模块读取各线卡的该邻居发现条目的计数并累加,且在邻居发现条目为陈旧状态特定时间后,再次读取各线卡的该邻居发现条目的计数并累加,比较前后两次读取的邻居发现条目的累加结果,若前后两次读取的邻居发现条目的累加结果一致,则将该邻居发现条目老化删除。The neighbor discovery protocol module is used to read and accumulate the counts of the neighbor discovery entries of each line card through the forwarding table management module when the neighbor discovery entry has just become stale, and after the neighbor discovery entry is stale for a certain period of time, Read the counts of the neighbor discovery entries of each line card again and accumulate them, and compare the accumulated results of the neighbor discovery entries read twice before and after. If the accumulated results of the neighbor discovery entries read twice before and after are consistent, the neighbor discovery Entries are aged and deleted. 2.根据权利要求1所述的装置,其特征在于,2. The device according to claim 1, characterized in that, 所述邻居发现协议模块,还用于在前后两次读取的邻居发现条目的累加结果不一致时,将所述邻居发现条目状态变为迟延状态,并进行可达性探测,若探测结果可达,则更改邻居发现条目状态,重新下发给转发表管理模块,供微码使用,否则删除所述邻居发现条目。The neighbor discovery protocol module is further configured to change the state of the neighbor discovery entry into a delayed state when the accumulative results of the neighbor discovery entries read twice before and after are inconsistent, and perform reachability detection, if the detection result is reachable , then change the state of the neighbor discovery entry and resend it to the forwarding table management module for use by the microcode; otherwise, delete the neighbor discovery entry. 3.根据权利要求1或2所述的装置,其特征在于,所述对邻居发现条目的使用进行计数为,3. The device according to claim 1 or 2, wherein the counting the use of neighbor discovery entries is: 每次使用该邻居发现条目转发一个报文,使用计数累加一次。Each time a packet is forwarded using this neighbor discovery entry, the usage count is incremented once. 4.根据权利要求1或2所述的装置,其特征在于,通过转发表管理模块读取各线卡的该邻居发现条目的计数并累加后,4. The device according to claim 1 or 2, characterized in that, after the counting of the neighbor discovery entries of each line card is read and accumulated by the forwarding table management module, 将累加结果保存在邻居发现条目中。Save the accumulated result in a neighbor discovery entry. 5.根据权利要求1或2所述的装置,其特征在于,5. The device according to claim 1 or 2, characterized in that, 所述特定时间为老化删除之前的任一段时间。The specific time is any period before aging deletion. 6.一种路由器邻居发现条目处理的方法,其特征在于,所述方法包括,6. A method for router neighbor discovery entry processing, characterized in that the method comprises, 微码转发模块在使用邻居发现条目转发报文时,对该邻居发现条目的使用进行计数;When the microcode forwarding module uses the neighbor discovery entry to forward the message, it counts the use of the neighbor discovery entry; 邻居发现协议模块在邻居发现条目状态变为陈旧时,通过转发表管理模块读取各线卡的该邻居发现条目对应的使用计数并累加;The neighbor discovery protocol module reads and accumulates the usage count corresponding to the neighbor discovery entry of each line card through the forwarding table management module when the state of the neighbor discovery entry becomes stale; 邻居发现协议模块在陈旧状态为特定时间后,再次通过转发表管理模块读取各线卡的该邻居发现条目对应的使用计数并累加;The neighbor discovery protocol module reads the usage count corresponding to the neighbor discovery entry of each line card through the forwarding table management module again after the stale state is a specific time, and accumulates it; 判断两次使用计数累加结果是否一致,在一致的情况下,将该邻居发现条目老化删除。Determine whether the accumulated results of the two usage counts are consistent, and if they are consistent, the neighbor discovery entry is aged and deleted. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括,7. The method of claim 6, further comprising, 在前后两次使用计数累加结果不一致时,将所述邻居发现条目状态变为迟延状态,并进行可达性探测,若探测结果可达,则更改邻居发现条目状态,重新下发给转发表管理模块,供微码使用,否则删除所述邻居发现条目。When the accumulative results of the usage counts in the previous two times are inconsistent, the state of the neighbor discovery entry is changed to a delayed state, and a reachability detection is performed. If the detection result is reachable, the state of the neighbor discovery entry is changed and re-delivered to the forwarding table management module for use by microcode, otherwise remove said neighbor discovery entry. 8.根据权利要求6或7所述的方法,其特征在于,所述对该邻居发现条目的使用进行计数为,8. The method according to claim 6 or 7, wherein the counting the use of the neighbor discovery entry is: 每次使用该邻居发现条目转发一个报文,则使用计数累加一次。Each time a packet is forwarded using this neighbor discovery entry, the usage count is incremented once. 9.根据权利要求6或7所述的方法,其特征在于,所述通过转发表管理模块读取各线卡的该邻居发现条目对应的使用计数并累加后,9. The method according to claim 6 or 7, characterized in that, after the usage count corresponding to the neighbor discovery entry of each line card is read by the forwarding table management module and accumulated, 将累加结果保存在邻居发现条目中。Save the accumulated result in a neighbor discovery entry. 10.根据权利要求6或7所述的方法,其特征在于,10. The method according to claim 6 or 7, characterized in that, 所述特定时间为老化删除之前的任一段时间。The specific time is any period before aging deletion.
CN201110037814.9A 2011-02-14 2011-02-14 Device and method for processing neighbor discovery items of router Active CN102158395B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110037814.9A CN102158395B (en) 2011-02-14 2011-02-14 Device and method for processing neighbor discovery items of router
PCT/CN2011/081025 WO2012109908A1 (en) 2011-02-14 2011-10-20 Device and method for processing router neighbor discovery entry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110037814.9A CN102158395B (en) 2011-02-14 2011-02-14 Device and method for processing neighbor discovery items of router

Publications (2)

Publication Number Publication Date
CN102158395A true CN102158395A (en) 2011-08-17
CN102158395B CN102158395B (en) 2015-06-03

Family

ID=44439592

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110037814.9A Active CN102158395B (en) 2011-02-14 2011-02-14 Device and method for processing neighbor discovery items of router

Country Status (2)

Country Link
CN (1) CN102158395B (en)
WO (1) WO2012109908A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109908A1 (en) * 2011-02-14 2012-08-23 中兴通讯股份有限公司 Device and method for processing router neighbor discovery entry
CN105635138A (en) * 2015-12-28 2016-06-01 华为技术有限公司 Method and apparatus for preventing ARP attacks
CN107911501A (en) * 2017-12-29 2018-04-13 迈普通信技术股份有限公司 Address resolution method and device
US20220224626A1 (en) * 2021-01-12 2022-07-14 Hewlett Packard Enterprise Development Lp System and method for dynamic tuning of neighbor aging
CN115883427A (en) * 2021-09-29 2023-03-31 华为技术有限公司 Aging method and device for address conversion protocol table item and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760264B (en) * 2022-04-20 2024-06-18 浪潮思科网络科技有限公司 Neighbor state optimization method, device and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993033B1 (en) * 2001-04-04 2006-01-31 Advanced Micro Devices, Inc. Method and apparatus for synchronizing aging operations associated with an address table
CN101730063A (en) * 2009-11-19 2010-06-09 福建星网锐捷网络有限公司 Neighbor table entry resource recovery method, device and IPv6 (internet protocol version 6) node
CN101834778A (en) * 2009-12-18 2010-09-15 中兴通讯股份有限公司 Method for processing neighbor discovery protocol item and three-layer switching equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340276A (en) * 2008-08-11 2009-01-07 杭州华三通信技术有限公司 Method, apparatus and exchange routing apparatus preventing IPv6 data packet attack
CN102158395B (en) * 2011-02-14 2015-06-03 中兴通讯股份有限公司 Device and method for processing neighbor discovery items of router

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6993033B1 (en) * 2001-04-04 2006-01-31 Advanced Micro Devices, Inc. Method and apparatus for synchronizing aging operations associated with an address table
CN101730063A (en) * 2009-11-19 2010-06-09 福建星网锐捷网络有限公司 Neighbor table entry resource recovery method, device and IPv6 (internet protocol version 6) node
CN101834778A (en) * 2009-12-18 2010-09-15 中兴通讯股份有限公司 Method for processing neighbor discovery protocol item and three-layer switching equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012109908A1 (en) * 2011-02-14 2012-08-23 中兴通讯股份有限公司 Device and method for processing router neighbor discovery entry
CN105635138A (en) * 2015-12-28 2016-06-01 华为技术有限公司 Method and apparatus for preventing ARP attacks
CN105635138B (en) * 2015-12-28 2019-02-12 华为技术有限公司 A method and device for preventing ARP attack
CN107911501A (en) * 2017-12-29 2018-04-13 迈普通信技术股份有限公司 Address resolution method and device
US20220224626A1 (en) * 2021-01-12 2022-07-14 Hewlett Packard Enterprise Development Lp System and method for dynamic tuning of neighbor aging
US11398971B1 (en) * 2021-01-12 2022-07-26 Hewlett Packard Enterprise Development Lp System and method for dynamic tuning of neighbor aging
CN115883427A (en) * 2021-09-29 2023-03-31 华为技术有限公司 Aging method and device for address conversion protocol table item and readable storage medium

Also Published As

Publication number Publication date
CN102158395B (en) 2015-06-03
WO2012109908A1 (en) 2012-08-23

Similar Documents

Publication Publication Date Title
CN102325076B (en) Method for discovering PMTU (Path Maximum Transfer Unit) and node
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
CN102158395B (en) Device and method for processing neighbor discovery items of router
US9246939B2 (en) Preventing neighbor-discovery based denial of service attacks
EP3823225A1 (en) Communication method, communication device and communication system
WO2013082819A1 (en) Layer 2 network loop processing method, apparatus and network device
CN101494549B (en) Method for transmitting multicast data by RPR and RPR node
WO2016086713A1 (en) Equal-cost multi-path outbound interface update method and apparatus
CN101202664A (en) Method for reporting device information, system and device for obtaining device information
CN106878186B (en) The method of routing update, the network equipment and system in network
CN103117930B (en) The detection method of static routing configuration and device
WO2018184487A1 (en) Bier message forwarding method and device
CN104580025A (en) Method for establishing in-band connection in open flow network and switch
US11895021B2 (en) Message sending and receiving method, apparatus, and system
CN102045234B (en) Buffering and overtime processing methods of route address mapping information as well as tunnel router
CN104660509A (en) Forward processing method of data message in access gateway
CN111698154A (en) Method and device for inhibiting frequent migration of host route
CN100411383C (en) A method for realizing message forwarding in routing equipment
CN103609066B (en) Method and node for querying operation administration maintenance configuration information
Cisco DECnet Commands
Cisco DECnet Commands
Cisco DECnet Commands
Cisco DECnet Commands
Cisco DECnet Commands
WO2022042386A1 (en) Method for controlling message sending, network device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant