WO2016177112A1 - Method and device for implementing link state message refresh - Google Patents

Method and device for implementing link state message refresh Download PDF

Info

Publication number
WO2016177112A1
WO2016177112A1 PCT/CN2016/076389 CN2016076389W WO2016177112A1 WO 2016177112 A1 WO2016177112 A1 WO 2016177112A1 CN 2016076389 W CN2016076389 W CN 2016076389W WO 2016177112 A1 WO2016177112 A1 WO 2016177112A1
Authority
WO
WIPO (PCT)
Prior art keywords
link state
packet
refresh
message
parameter
Prior art date
Application number
PCT/CN2016/076389
Other languages
French (fr)
Chinese (zh)
Inventor
何建军
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177112A1 publication Critical patent/WO2016177112A1/en

Links

Images

Definitions

  • This document relates to, but is not limited to, dynamic routing technology, and more particularly to a method and apparatus for implementing link state message refresh.
  • Dynamic routing protocols include: distance vector routing algorithm and link state routing algorithm; distance vector routing algorithms include Routing Information Protocol (RIP) and Border Gateway Protocol (BGP); link state routing algorithms include open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (ISIS).
  • distance vector routing algorithms include Routing Information Protocol (RIP) and Border Gateway Protocol (BGP); link state routing algorithms include open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (ISIS).
  • OSPF Open Shortest Path First
  • ISIS Intermediate System-to-Intermediate System
  • each router maintains a table listing the currently known best paths to each target, which are constantly updated by exchanging information between neighbors, and finally each Routers have the best path to reach each destination. Because the distance vector routing algorithm has certain shortcomings, for example, when the network topology changes, the distance vector algorithm takes too long to converge to a stable state, and thus the link state routing algorithm gradually emerges.
  • the neighbors are discovered by sending and receiving HELLO messages, and the link state database (LSDB, Link State Database) is synchronized between the neighbors, and the local router uses the synchronized LSDB to construct the shortest.
  • the Path First (SPF) tree finally calculates the best path to each destination address.
  • the link state packets in OSPF and ISIS are respectively associated with the Link State Advertisement (LSA) and the Link State Protocol Data Unit (LSP).
  • LSA Link State Advertisement
  • LSP Link State Protocol Data Unit
  • the age of the LSA is the minimum value when it is generated.
  • the maximum age of survival is Max age. When the age of survival reaches Max age, the information of the LSA will no longer be used; when the LSP is first generated, the age is Max. When the age of survival reaches 0, the information of the LSP will not be used. Used again.
  • OSPF and ISIS periodically refresh the link state packets and send the refreshed link state packets to other routers.
  • FIG 1 is a schematic diagram of the connection between the test instrument and the device under test.
  • the router in Figure 1 is a large-capacity road.
  • the router as the device under test will be notified by the test instrument of a large number of routing and link status messages during the test; due to the limitations of the performance of the test instrument, the link status messages advertised by some test instruments have not been refreshed in time.
  • the device has been aging on the device under test.
  • the device under test has deleted the route corresponding to the aging link state packet that has not been refreshed in time, which affects the performance test of the large-capacity route.
  • the embodiment of the invention provides a method and a device for implementing link state packet refreshing, which can prevent the performance test of the link state message on the device under test from affecting the large-capacity route.
  • the embodiment of the present invention provides a method for implementing link state packet refresh, including:
  • the preset packet refreshing parameter is read when the aging time of the link state packet is reached according to the preset period.
  • the method further includes: before reading the preset packet refresh parameter,
  • the preset message refresh parameters are added according to performance test requirements.
  • the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
  • the packet refreshing parameter further includes: a limiting parameter that is configured to refresh only part of the link state packets in the instance of the link state packet that needs to be refreshed;
  • the defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
  • the method further includes: deleting the link state packet corresponding to the instance number that is not included in the packet refresh parameter when the lifetime of the link state packet reaches the aging time.
  • the embodiment of the present invention further provides an apparatus for implementing link state message refreshing, including: a detecting and reading unit and a determining refreshing unit; wherein
  • the detecting and reading unit is configured to detect the lifetime of the link state message according to a preset period. Read the preset packet refresh parameter when the aging time is reached;
  • the determining the refreshing unit is configured to determine, according to the packet refreshing parameter, whether to refresh the link state packet whose lifetime is up to the aging time.
  • the device further includes an adding unit,
  • the adding unit is configured to add a preset message refresh parameter read by the detecting reading unit according to the performance testing requirement.
  • the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
  • the packet refreshing parameter further includes: a limiting parameter that is configured to refresh only part of the link state packets in the instance of the link state packet that needs to be refreshed;
  • the defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
  • the device further includes a deleting unit configured to
  • the deletion unit is configured to delete the link state packet corresponding to the instance number that is not included in the packet refresh parameter when the age of the link state packet reaches the aging time.
  • the technical solution provided by the embodiment of the present invention includes: when detecting that the lifetime of the link state packet reaches the aging time according to the preset period, reading the preset packet refresh parameter; refreshing according to the packet The parameter determines whether to refresh the link state packet whose lifetime reaches the aging time.
  • the link state packet with the aging time of the aging time is refreshed according to the preset packet refreshing parameter, so that the link state packet is aged on the device to be tested, and the link state message is corresponding.
  • the route is removed to affect the performance test of bulk routing.
  • Figure 1 is a schematic view of the docking of the test instrument and the device under test
  • FIG. 2 is a flowchart of a method for implementing link state packet refresh according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of an apparatus for implementing link state packet refresh according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for implementing link state packet refreshing according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step 200 Read the preset packet refresh parameter when the lifetime of the link state packet reaches the aging time according to the preset period.
  • the preset period is set according to the age of the link state message advertised by the test instrument. Since the test instrument advertises a large number of link state messages, the start time and the age of survival may be different, in order to avoid The link state packet aging is invalidated when the aging time is reached. The preset period is set to the minimum unit time of the lifetime.
  • the link state packet whose aging time reaches the aging time of the present application refers to a link state packet generated by the non-device under test, and the device under test may be a router.
  • the method of the embodiment of the present invention further includes: before reading a preset packet refresh parameter,
  • adding a packet refresh parameter may add a packet refresh function in the setting interface of the device under test, and set a packet refresh parameter in the packet refresh function.
  • the packet refreshing parameter may include: an instance number and a refresh time of the link state packet to be refreshed.
  • the packet refreshing parameter may further include: defining a limited parameter for refreshing only part of the link state packet in the instance of the link state packet to be refreshed; wherein the limiting parameter includes: a link state that needs to be refreshed The link state advertiser and/or link state identifier of the partial link state message in the instance of the message.
  • the limited parameter includes the link state advertiser, it indicates that only the link state message generated by the router corresponding to the link state advertiser is refreshed; when the qualified parameter includes the link state identifier, Indicates that only one link state packet corresponding to the link state identifier is refreshed.
  • Step 201 Determine, according to the read packet refresh parameter, whether to refresh the link state packet whose lifetime reaches the aging time.
  • the packet refresh parameter includes only the instance number and the refresh time of the link state packet to be refreshed, all the link state packets corresponding to the instance number are refreshed according to the refresh time; the chain corresponding to the instance number
  • a route state packet contains a qualified parameter, only the link state packet defined by the limit parameter is refreshed.
  • the link state packet that does not contain the instance number is not refreshed.
  • the method of the embodiment of the present invention further includes: deleting the link state packet corresponding to the instance number not included in the packet refresh parameter when the lifetime of the link state packet reaches the aging time.
  • the detection of the aging time, the reading of the packet refresh parameter, and the deletion of the link state message can be implemented by the central processing unit of the device under test; the related information can be stored in the device under test. In the storage medium.
  • the method of the embodiment of the present invention may be performed by a device under test, and the device under test may include a router.
  • the link state packet with the aging time of the aging time is refreshed according to the preset packet refreshing parameter, so that the link state packet is aged on the device to be tested, and the link state message is corresponding.
  • the route is removed to affect the performance test of bulk routing.
  • FIG. 3 is a structural diagram of an apparatus for implementing link state packet refreshing according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a detecting and reading unit and a determining refreshing unit;
  • the detecting and reading unit is configured to read the preset packet refreshing parameter when the lifetime of the link state packet reaches the aging time according to the preset period;
  • the determining the refreshing unit is configured to determine, according to the packet refreshing parameter, whether to refresh the link state packet whose lifetime is up to the aging time.
  • the device of the embodiment of the present invention further includes an adding unit, and the adding unit is configured to
  • a preset message refresh parameter read by the detection read unit is added.
  • the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
  • the packet refreshing parameter may further include: limiting only the link state packet that needs to be refreshed. a limited parameter for refreshing part of the link state message in the instance;
  • the qualified parameters include: a link state announcer and/or a link state identifier of a part of the link state messages in the instance of the link state message to be refreshed.
  • the device of the embodiment of the present invention further includes a deleting unit, and the deleting unit is configured to delete the link state packet corresponding to the instance number not included in the packet refreshing parameter when the age of the link state message reaches the aging time.
  • the foregoing technical solution prevents the link status message from being aged on the device under test, and the route corresponding to the link state message is deleted, which affects the performance test of the large-capacity route.

Abstract

A method and device for implementing a link state message refresh, comprising: upon detecting, on the basis of a preset cycle, that the service age of a link state message has reached an old age, reading pre-configured message refresh parameters; on the basis of read message refresh parameters, determining whether to refresh said link state message. In the method of the present invention, a link state message having a service age that has reached an old age is refreshed according to pre-configured message refresh parameters. In this way, link state messages becoming old on a device-under-test, which results in the deletion of routing corresponding to said link state messages and thereby affects large-capacity router performance testing, is avoided.

Description

一种实现链路状态报文刷新的方法及装置Method and device for realizing link state message refreshing 技术领域Technical field
本文涉及但不限于动态路由技术,尤指一种实现链路状态报文刷新的方法及装置。This document relates to, but is not limited to, dynamic routing technology, and more particularly to a method and apparatus for implementing link state message refresh.
背景技术Background technique
动态路由协议包括:距离矢量路由算法和链路状态路由算法;距离矢量路由算法包括路由信息协议(RIP,Routing Information Protoco)和边界网关协议(BGP,Border Gateway Protocol);链路状态路由算法包括开放式最短路径优先(OSPF,Open Shortest Path First)和中间系统-中间系统(ISIS,Intermediate System-to-Intermediate System)。Dynamic routing protocols include: distance vector routing algorithm and link state routing algorithm; distance vector routing algorithms include Routing Information Protocol (RIP) and Border Gateway Protocol (BGP); link state routing algorithms include open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (ISIS).
在距离矢量路由算法中,每一台路由器维护一张表,表中列举了当前已知的到每个目标的最佳路径,这些表通过邻居之间的相互交换信息而不断被更新,最终每台路由器都有到达每个目的地的最佳路径。由于距离矢量路由算法存在一定的缺点,比如当网络拓扑结构发生变化后距离矢量算法需要太长时间才能收敛到稳定状态,由此逐渐出现了链路状态路由算法。在链路状态路由算法中,通过发送和接收打招呼(HELLO)报文来发现邻居,邻居之间进行链路状态数据库(LSDB,Link State Database)的同步,本地路由器利用同步完成的LSDB来构造最短路径优先(SPF,Shortest Path First)树,最终计算出到达每一个目的地址的最佳路径。OSPF和ISIS中的链路状态报文分别对应为链路状态通告(LSA,Link State Advertisement)和链路状态协议数据单元(LSP,Link State Protocol Data Unit),LSA刚产生时年龄为最小值0,最大生存年龄为Max age,当生存年龄到达Max age时,该LSA的信息将不再被利用;LSP刚产生时年龄为最大值Max age,当生存年龄到达0时,该LSP的信息将不再被利用。为防止链路状态报文老化,OSPF和ISIS会定期刷新链路状态报文并且将刷新后的链路状态报文发送给其他路由器。In the distance vector routing algorithm, each router maintains a table listing the currently known best paths to each target, which are constantly updated by exchanging information between neighbors, and finally each Routers have the best path to reach each destination. Because the distance vector routing algorithm has certain shortcomings, for example, when the network topology changes, the distance vector algorithm takes too long to converge to a stable state, and thus the link state routing algorithm gradually emerges. In the link state routing algorithm, the neighbors are discovered by sending and receiving HELLO messages, and the link state database (LSDB, Link State Database) is synchronized between the neighbors, and the local router uses the synchronized LSDB to construct the shortest. The Path First (SPF) tree finally calculates the best path to each destination address. The link state packets in OSPF and ISIS are respectively associated with the Link State Advertisement (LSA) and the Link State Protocol Data Unit (LSP). The age of the LSA is the minimum value when it is generated. The maximum age of survival is Max age. When the age of survival reaches Max age, the information of the LSA will no longer be used; when the LSP is first generated, the age is Max. When the age of survival reaches 0, the information of the LSP will not be used. Used again. To prevent link state packets from aging, OSPF and ISIS periodically refresh the link state packets and send the refreshed link state packets to other routers.
大容量路由性能测试是数据通信设备最基本的测试要求之一,图1为测试仪器与被测设备对接的示意图,如图1所示,图1中的路由器为大容量路 由,路由器作为被测设备在测试过程中会被测试仪器通告大量路由和链路状态报文;由于测试仪器本身性能的限制,会导致部分测试仪器通告的链路状态报文还未及时刷新,就已经在被测设备上老化,被测设备删除未及时刷新就已老化的链路状态报文对应的路由,影响了大容量路由的性能测试。The large-capacity routing performance test is one of the most basic test requirements for data communication equipment. Figure 1 is a schematic diagram of the connection between the test instrument and the device under test. As shown in Figure 1, the router in Figure 1 is a large-capacity road. The router as the device under test will be notified by the test instrument of a large number of routing and link status messages during the test; due to the limitations of the performance of the test instrument, the link status messages advertised by some test instruments have not been refreshed in time. The device has been aging on the device under test. The device under test has deleted the route corresponding to the aging link state packet that has not been refreshed in time, which affects the performance test of the large-capacity route.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种实现链路状态报文刷新的方法及装置,能够避免链路状态报文在被测设备上老化影响大容量路由的性能测试。The embodiment of the invention provides a method and a device for implementing link state packet refreshing, which can prevent the performance test of the link state message on the device under test from affecting the large-capacity route.
其中,本发明实施例提供了一种实现链路状态报文刷新的方法,包括:The embodiment of the present invention provides a method for implementing link state packet refresh, including:
按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;The preset packet refreshing parameter is read when the aging time of the link state packet is reached according to the preset period.
根据读取的报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。Determines whether to refresh the link state packet whose lifetime reaches the aging time according to the read packet refresh parameter.
可选的,所述方法还包括:所述读取预先设置的报文刷新参数之前,Optionally, the method further includes: before reading the preset packet refresh parameter,
根据性能测试需求添加所述预先设置的报文刷新参数。The preset message refresh parameters are added according to performance test requirements.
可选的,所述报文刷新参数包括:需要刷新的链路状态报文的实例号和刷新时间。Optionally, the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
可选的,报文刷新参数还包括:限定仅对所述需要刷新的链路状态报文的实例中部分链路状态报文进行刷新的限定参数;Optionally, the packet refreshing parameter further includes: a limiting parameter that is configured to refresh only part of the link state packets in the instance of the link state packet that needs to be refreshed;
所述限定参数包括:需要刷新的链路状态报文的实例中所述部分链路状态报文的链路状态通告者和/或链路状态标识。The defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
可选的,所述方法还包括:链路状态报文的生存年龄达到老化时间时,删除所述报文刷新参数中未包含的实例号对应的链路状态报文。Optionally, the method further includes: deleting the link state packet corresponding to the instance number that is not included in the packet refresh parameter when the lifetime of the link state packet reaches the aging time.
另一方面,本发明实施例还提供一种实现链路状态报文刷新的装置,包括:检测读取单元和确定刷新单元;其中,On the other hand, the embodiment of the present invention further provides an apparatus for implementing link state message refreshing, including: a detecting and reading unit and a determining refreshing unit; wherein
检测读取单元设置为,按照预设周期检测到链路状态报文的生存年龄达 到老化时间时,读取预先设置的报文刷新参数;The detecting and reading unit is configured to detect the lifetime of the link state message according to a preset period. Read the preset packet refresh parameter when the aging time is reached;
确定刷新单元设置为,根据报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。The determining the refreshing unit is configured to determine, according to the packet refreshing parameter, whether to refresh the link state packet whose lifetime is up to the aging time.
可选的,所述装置还包括添加单元,Optionally, the device further includes an adding unit,
添加单元设置为,根据性能测试需求,添加所述检测读取单元读取的预先设置的报文刷新参数。The adding unit is configured to add a preset message refresh parameter read by the detecting reading unit according to the performance testing requirement.
可选的,报文刷新参数包括:需要刷新的链路状态报文的实例号和刷新时间。Optionally, the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
可选的,报文刷新参数还包括:限定仅对所述需要刷新的链路状态报文的实例中部分链路状态报文进行刷新的限定参数;Optionally, the packet refreshing parameter further includes: a limiting parameter that is configured to refresh only part of the link state packets in the instance of the link state packet that needs to be refreshed;
所述限定参数包括:需要刷新的链路状态报文的实例中所述部分链路状态报文的链路状态通告者和/或链路状态标识。The defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
可选的,该装置还包括删除单元设置为,Optionally, the device further includes a deleting unit configured to
删除单元设置为,链路状态报文的生存年龄达到老化时间时,删除所述报文刷新参数中未包含的实例号对应的链路状态报文。The deletion unit is configured to delete the link state packet corresponding to the instance number that is not included in the packet refresh parameter when the age of the link state packet reaches the aging time.
与相关技术相比,本发明实施例提供的技术方案,包括:按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;根据报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。本发明实施例方法通过对生存年龄达到老化时间的链路状态报文,按照预先设置的报文刷新参数进行刷新,避免了链路状态报文在被测设备上老化造成链路状态报文对应的路由被删除影响大容量路由的性能测试。Compared with the related art, the technical solution provided by the embodiment of the present invention includes: when detecting that the lifetime of the link state packet reaches the aging time according to the preset period, reading the preset packet refresh parameter; refreshing according to the packet The parameter determines whether to refresh the link state packet whose lifetime reaches the aging time. In the method of the embodiment of the present invention, the link state packet with the aging time of the aging time is refreshed according to the preset packet refreshing parameter, so that the link state packet is aged on the device to be tested, and the link state message is corresponding. The route is removed to affect the performance test of bulk routing.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为测试仪器与被测设备对接的示意图;Figure 1 is a schematic view of the docking of the test instrument and the device under test;
图2为本发明实施例实现链路状态报文刷新的方法的流程图;2 is a flowchart of a method for implementing link state packet refresh according to an embodiment of the present invention;
图3为本发明实施例实现链路状态报文刷新的装置的结构程图。 FIG. 3 is a structural diagram of an apparatus for implementing link state packet refresh according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图2为本发明实施例实现链路状态报文刷新的方法的流程图,如图2所示,包括:2 is a flowchart of a method for implementing link state packet refreshing according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
步骤200、按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;Step 200: Read the preset packet refresh parameter when the lifetime of the link state packet reaches the aging time according to the preset period.
需要说明的是,预设周期根据测试仪器通告的链路状态报文的生存年龄设定,由于测试仪器通告大量的链路状态报文在起始时间和生存年龄上均可能存在不同,为了避免无法及时的检测到生存年龄达到老化时间造成链路状态报文老化,预设周期优先设定为生存年龄的最小单位时间。另外,本申请生存年龄达到老化时间的链路状态报文是指非被测设备自身生成的链路状态报文,被测设备可以是路由器。It should be noted that the preset period is set according to the age of the link state message advertised by the test instrument. Since the test instrument advertises a large number of link state messages, the start time and the age of survival may be different, in order to avoid The link state packet aging is invalidated when the aging time is reached. The preset period is set to the minimum unit time of the lifetime. In addition, the link state packet whose aging time reaches the aging time of the present application refers to a link state packet generated by the non-device under test, and the device under test may be a router.
本发明实施例方法还包括:读取预先设置的报文刷新参数之前,The method of the embodiment of the present invention further includes: before reading a preset packet refresh parameter,
根据性能测试需求添加预先设置的报文刷新参数。这里,添加报文刷新参数可以通过在被测设备的设置界面添加报文刷新功能,在报文刷新功能中设置添加报文刷新参数;Add pre-set message refresh parameters based on performance test requirements. Here, adding a packet refresh parameter may add a packet refresh function in the setting interface of the device under test, and set a packet refresh parameter in the packet refresh function.
需要说明的是,性能测试需求为本领域技术人员的公知常识,根据对性能测试需求进行分析,本领域技术人员可以清楚知道需要添加哪些报文刷新参数。It should be noted that the performance testing requirements are common knowledge of those skilled in the art. According to the analysis of the performance testing requirements, those skilled in the art can clearly know which packet refreshing parameters need to be added.
可选的,报文刷新参数可以包括:需要刷新的链路状态报文的实例号和刷新时间。Optionally, the packet refreshing parameter may include: an instance number and a refresh time of the link state packet to be refreshed.
可选的,报文刷新参数还可以包括:限定仅对需要刷新的链路状态报文的实例中部分链路状态报文进行刷新的限定参数;其中,限定参数包括:需要刷新的链路状态报文的实例中部分链路状态报文的链路状态通告者和/或链路状态标识。Optionally, the packet refreshing parameter may further include: defining a limited parameter for refreshing only part of the link state packet in the instance of the link state packet to be refreshed; wherein the limiting parameter includes: a link state that needs to be refreshed The link state advertiser and/or link state identifier of the partial link state message in the instance of the message.
需要说明的是,限定参数包含链路状态通告者时,表示只刷新链路状态通告者对应的路由器产生的链路状态报文;限定参数包含链路状态标识时, 表示只刷新链路状态标识对应的一条链路状态报文。It should be noted that when the limited parameter includes the link state advertiser, it indicates that only the link state message generated by the router corresponding to the link state advertiser is refreshed; when the qualified parameter includes the link state identifier, Indicates that only one link state packet corresponding to the link state identifier is refreshed.
步骤201、根据读取的报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。Step 201: Determine, according to the read packet refresh parameter, whether to refresh the link state packet whose lifetime reaches the aging time.
需要说明的是,报文刷新参数中只包含需要刷新的链路状态报文的实例号和刷新时间时,对实例号对应的所有链路状态报文按照刷新时间进行刷新;实例号对应的链路状态报文包含有限定参数时,仅对限定参数限定的链路状态报文进行刷新;对不包含实例号的链路状态报文不进行刷新处理。It is to be noted that, when the packet refresh parameter includes only the instance number and the refresh time of the link state packet to be refreshed, all the link state packets corresponding to the instance number are refreshed according to the refresh time; the chain corresponding to the instance number When a route state packet contains a qualified parameter, only the link state packet defined by the limit parameter is refreshed. The link state packet that does not contain the instance number is not refreshed.
本发明实施例方法还包括:链路状态报文的生存年龄达到老化时间时,删除报文刷新参数中未包含的实例号对应的链路状态报文。The method of the embodiment of the present invention further includes: deleting the link state packet corresponding to the instance number not included in the packet refresh parameter when the lifetime of the link state packet reaches the aging time.
需要说明的是,生存年龄达到老化时间的检测、报文刷新参数的读取、及对链路状态报文的删除等可以通过被测设备的中央处理器实现;相关信息可以存储在被测设备的存储介质中。It should be noted that the detection of the aging time, the reading of the packet refresh parameter, and the deletion of the link state message can be implemented by the central processing unit of the device under test; the related information can be stored in the device under test. In the storage medium.
本发明实施例方法可以由被测设备执行,被测设备可以包括路由器。The method of the embodiment of the present invention may be performed by a device under test, and the device under test may include a router.
本发明实施例方法通过对生存年龄达到老化时间的链路状态报文,按照预先设置的报文刷新参数进行刷新,避免了链路状态报文在被测设备上老化造成链路状态报文对应的路由被删除影响大容量路由的性能测试。In the method of the embodiment of the present invention, the link state packet with the aging time of the aging time is refreshed according to the preset packet refreshing parameter, so that the link state packet is aged on the device to be tested, and the link state message is corresponding. The route is removed to affect the performance test of bulk routing.
图3为本发明实施例实现链路状态报文刷新的装置的结构程图,如图3所示,包括:检测读取单元和确定刷新单元;其中,3 is a structural diagram of an apparatus for implementing link state packet refreshing according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a detecting and reading unit and a determining refreshing unit;
检测读取单元设置为,按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;The detecting and reading unit is configured to read the preset packet refreshing parameter when the lifetime of the link state packet reaches the aging time according to the preset period;
确定刷新单元设置为,根据报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。The determining the refreshing unit is configured to determine, according to the packet refreshing parameter, whether to refresh the link state packet whose lifetime is up to the aging time.
本发明实施例装置还包括添加单元,添加单元设置为,The device of the embodiment of the present invention further includes an adding unit, and the adding unit is configured to
根据性能测试需求,添加检测读取单元读取的预先设置的报文刷新参数。According to the performance test requirements, a preset message refresh parameter read by the detection read unit is added.
可选的,报文刷新参数包括:需要刷新的链路状态报文的实例号和刷新时间。Optionally, the packet refreshing parameter includes: an instance number and a refresh time of the link state packet to be refreshed.
可选的,报文刷新参数还可以包括:限定仅对需要刷新的链路状态报文 的实例中部分链路状态报文进行刷新的限定参数;Optionally, the packet refreshing parameter may further include: limiting only the link state packet that needs to be refreshed. a limited parameter for refreshing part of the link state message in the instance;
限定参数包括:需要刷新的链路状态报文的实例中部分链路状态报文的链路状态通告者和/或链路状态标识。The qualified parameters include: a link state announcer and/or a link state identifier of a part of the link state messages in the instance of the link state message to be refreshed.
本发明实施例装置还包括删除单元,删除单元设置为,链路状态报文的生存年龄达到老化时间时,删除报文刷新参数中未包含的实例号对应的链路状态报文。The device of the embodiment of the present invention further includes a deleting unit, and the deleting unit is configured to delete the link state packet corresponding to the instance number not included in the packet refreshing parameter when the age of the link state message reaches the aging time.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。”One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions. The invention is not limited to any specific form of combination of hardware and software. ”
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。The embodiments disclosed in the present application are as described above, but the descriptions are only for the purpose of understanding the present application, and are not intended to limit the present application, such as the specific implementation method in the embodiments of the present invention. Any modifications and changes in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the disclosure. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案避免了链路状态报文在被测设备上老化造成链路状态报文对应的路由被删除影响大容量路由的性能测试。 The foregoing technical solution prevents the link status message from being aged on the device under test, and the route corresponding to the link state message is deleted, which affects the performance test of the large-capacity route.

Claims (11)

  1. 一种实现链路状态报文刷新的方法,包括:A method for implementing link state packet refreshing includes:
    按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;The preset packet refreshing parameter is read when the aging time of the link state packet is reached according to the preset period.
    根据读取的报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。Determines whether to refresh the link state packet whose lifetime reaches the aging time according to the read packet refresh parameter.
  2. 根据权利要求1所述的方法,所述方法还包括:所述读取预先设置的报文刷新参数之前,The method according to claim 1, further comprising: before said reading a preset message refresh parameter,
    根据性能测试需求添加所述预先设置的报文刷新参数。The preset message refresh parameters are added according to performance test requirements.
  3. 根据权利要求1或2所述的方法,其中,所述报文刷新参数包括:需要刷新的链路状态报文的实例号和刷新时间。The method according to claim 1 or 2, wherein the message refresh parameter comprises: an instance number and a refresh time of a link state message to be refreshed.
  4. 根据权利要求3所述的方法,所述报文刷新参数还包括:限定仅对所述需要刷新的链路状态报文的实例中部分链路状态报文进行刷新的限定参数;The method according to claim 3, wherein the message refresh parameter further comprises: a defined parameter that defines to refresh only part of the link state message in the instance of the link state message that needs to be refreshed;
    所述限定参数包括:需要刷新的链路状态报文的实例中所述部分链路状态报文的链路状态通告者和/或链路状态标识。The defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
  5. 根据权利要求3所述的方法,所述方法还包括:链路状态报文的生存年龄达到老化时间时,删除所述报文刷新参数中未包含的实例号对应的链路状态报文。The method according to claim 3, further comprising: deleting a link state message corresponding to the instance number not included in the packet refresh parameter when the age of the link state message reaches the aging time.
  6. 一种实现链路状态报文刷新的装置,包括:检测读取单元和确定刷新单元;其中,An apparatus for implementing link state message refreshing, comprising: detecting a reading unit and determining a refreshing unit; wherein
    检测读取单元设置为,按照预设周期检测到链路状态报文的生存年龄达到老化时间时,读取预先设置的报文刷新参数;The detecting and reading unit is configured to read the preset packet refreshing parameter when the lifetime of the link state packet reaches the aging time according to the preset period;
    确定刷新单元设置为,根据报文刷新参数确定是否刷新生存年龄达到老化时间的链路状态报文。The determining the refreshing unit is configured to determine, according to the packet refreshing parameter, whether to refresh the link state packet whose lifetime is up to the aging time.
  7. 根据权利要求6所述的装置,所述装置还包括添加单元,The apparatus according to claim 6, further comprising an adding unit,
    添加单元设置为,根据性能测试需求添加所述检测读取单元读取的预先 设置的报文刷新参数。The adding unit is configured to add the pre-reading read by the detecting reading unit according to the performance testing requirement Set the packet refresh parameters.
  8. 根据权利要求6或7所述的装置,其中,所述报文刷新参数包括:需要刷新的链路状态报文的实例号和刷新时间。The apparatus according to claim 6 or 7, wherein the message refresh parameter comprises: an instance number and a refresh time of a link state message to be refreshed.
  9. 根据权利要求8所述的装置,所述报文刷新参数还包括:限定仅对所述需要刷新的链路状态报文的实例中部分链路状态报文进行刷新的限定参数;The apparatus according to claim 8, wherein the message refreshing parameter further comprises: defining a limited parameter for refreshing only part of the link state message in the instance of the link state message that needs to be refreshed;
    所述限定参数包括:需要刷新的链路状态报文的实例中所述部分链路状态报文的链路状态通告者和/或链路状态标识。The defined parameter includes a link state advertiser and/or a link state identifier of the partial link state message in the instance of the link state message to be refreshed.
  10. 根据权利要求8所述的装置,所述装置还包括删除单元,The apparatus according to claim 8, further comprising a deletion unit,
    删除单元设置为,链路状态报文的生存年龄达到老化时间时,删除所述报文刷新参数中未包含的实例号对应的链路状态报文。The deletion unit is configured to delete the link state packet corresponding to the instance number that is not included in the packet refresh parameter when the age of the link state packet reaches the aging time.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~5中任一项所述的方法。 A computer storage medium having stored therein computer executable instructions for performing the method of any one of claims 1 to 5.
PCT/CN2016/076389 2015-07-28 2016-03-15 Method and device for implementing link state message refresh WO2016177112A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510451833.4A CN106713145A (en) 2015-07-28 2015-07-28 Method and device for refreshing link state message
CN201510451833.4 2015-07-28

Publications (1)

Publication Number Publication Date
WO2016177112A1 true WO2016177112A1 (en) 2016-11-10

Family

ID=57218048

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076389 WO2016177112A1 (en) 2015-07-28 2016-03-15 Method and device for implementing link state message refresh

Country Status (2)

Country Link
CN (1) CN106713145A (en)
WO (1) WO2016177112A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669320A (en) * 2016-12-20 2020-09-15 华为技术有限公司 Method for processing message and network equipment

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108123876B (en) * 2017-12-14 2020-08-11 新华三技术有限公司 Border gateway protocol BGP routing information processing method and device
CN109450738A (en) * 2018-12-19 2019-03-08 迈普通信技术股份有限公司 Chain circuit detecting method, device and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543134A (en) * 2003-04-28 2004-11-03 华为技术有限公司 Method for ensuring consistent configurations among subsystems in distributed VLAN
CN103095590A (en) * 2013-01-05 2013-05-08 杭州华三通信技术有限公司 Method and network device for suppressing link status message periodical refreshing and aging
US8699376B2 (en) * 2007-12-21 2014-04-15 At&T Intellectual Property Ii, Lp Method and system for de-synchronizing link state message refreshes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035676B (en) * 2010-12-07 2014-08-13 中兴通讯股份有限公司 ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
JP5925082B2 (en) * 2012-08-09 2016-05-25 日本電信電話株式会社 Speech synthesis apparatus, method and program
CN104184708B (en) * 2013-05-22 2017-07-14 新华三技术有限公司 Suppress the method and edge device ED of MAC Address attack in EVI networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543134A (en) * 2003-04-28 2004-11-03 华为技术有限公司 Method for ensuring consistent configurations among subsystems in distributed VLAN
US8699376B2 (en) * 2007-12-21 2014-04-15 At&T Intellectual Property Ii, Lp Method and system for de-synchronizing link state message refreshes
CN103095590A (en) * 2013-01-05 2013-05-08 杭州华三通信技术有限公司 Method and network device for suppressing link status message periodical refreshing and aging

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669320A (en) * 2016-12-20 2020-09-15 华为技术有限公司 Method for processing message and network equipment
CN111669320B (en) * 2016-12-20 2023-04-21 华为技术有限公司 Method for processing message and network equipment

Also Published As

Publication number Publication date
CN106713145A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
US9680745B2 (en) Multi-domain source routed forwarding based on collaborating network controllers
US9374304B2 (en) End-to end route tracing over a named-data network
US10560376B2 (en) Semantic information for labels in border gateway protocol
US8427970B2 (en) Apparatus and method for determining a service interruption time measurement
US9838243B2 (en) Transformative requests
US20160050142A1 (en) Transmission path switching
US10122627B2 (en) Network routing through an overlay network
US10404598B1 (en) Managing next hop groups in routers
US9438510B2 (en) Calculating a route
WO2016177112A1 (en) Method and device for implementing link state message refresh
US11805047B2 (en) Method and apparatus for controlling network traffic path
Papán et al. The survey of current IPFRR mechanisms
CN112671652B (en) Message forwarding method and device
US10680941B2 (en) Graceful restart procedures for label switched paths with label stacks
US11271844B2 (en) Routing in fat tree networks using negative disaggregation advertisements
WO2016177136A1 (en) Method and device for implementing link state advertisement processing
WO2017000566A1 (en) Method and apparatus for acquiring mru value of device interface
WO2018036453A1 (en) Method for synchronizing topology information in sfc network and routing network element
WO2017162202A1 (en) Link state information processing
US10735252B2 (en) Outside router fault detection
JP2008219187A (en) Route information changing method, route information changing device, and route information changing program
WO2022266905A1 (en) Forwarding path generating method and apparatus, network device, and storage medium
WO2011107049A2 (en) Label switched path checking method and detection system
JP4906764B2 (en) Route loop detection apparatus, route loop detection method, and computer program
WO2016173195A1 (en) Method for advertising route and withdrawing route and corresponding routing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789106

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789106

Country of ref document: EP

Kind code of ref document: A1