WO2014000181A1 - Open shortest path first based neighbor establishing method, node, and system - Google Patents

Open shortest path first based neighbor establishing method, node, and system Download PDF

Info

Publication number
WO2014000181A1
WO2014000181A1 PCT/CN2012/077627 CN2012077627W WO2014000181A1 WO 2014000181 A1 WO2014000181 A1 WO 2014000181A1 CN 2012077627 W CN2012077627 W CN 2012077627W WO 2014000181 A1 WO2014000181 A1 WO 2014000181A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
synchronization
node
interface
interfaces
Prior art date
Application number
PCT/CN2012/077627
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 华为技术有限公司
Priority to PCT/CN2012/077627 priority Critical patent/WO2014000181A1/en
Priority to CN201280001546.8A priority patent/CN103004150B/en
Publication of WO2014000181A1 publication Critical patent/WO2014000181A1/en

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
    • H04L45/03Topology update or discovery by updating link state protocols

Landscapes

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

Abstract

The present invention is applicable in the field of communications, and provides an open shortest path first (OSPF) based neighbor establishing method. The method comprises: under the OSPF protocol, a node sending a hello packet to all interfaces of the other nodes in a region to perform neighbor synchronization; the node obtaining an interface being the first to reach a 2Way state among the interfaces, initiating link-state database (LSDB) synchronization to the interface being the first to reach the 2Way state, and suspending synchronization of a subsequent state of the remaining interfaces except the interface that the LSDB synchronization is initiated to, the subsequent state being a state following the 2Way state; after the state of the interface being the first to reach the 2Way state reaches a full state, the node sending a link-related LSA to the remaining interfaces to perform synchronization with the remaining interfaces and perform neighbor establishing, the other nodes in the region being synchronized to each other. The method provided by the present invention has the advantage of the small amount of transmitted data.

Description

最短路径优先邻居建立方法、节点及系统  Shortest path first neighbor establishment method, node and system 技术领域Technical field
本发明属于通信领域,尤其涉及一种最短路径优先邻居建立技术。The present invention belongs to the field of communications, and in particular, to a shortest path first neighbor establishment technique.
背景技术Background technique
最短路径优先(Open Shortest Path First ,OSPF)是一个内部网关协议,它是基于链路状态的路由协议,在OSPF的接口状态可用的情况下,两个接口之间(对端的两个接口)间隔发送hello报文,然后建立两个接口的双向通信,在建立双向通信后,两个接口之间交换一系列报文达到数据库同步,至此,两个接口之间形成紧邻关系,这个过程一般称为OSPF的邻居建立的过程。Shortest path first (Open Shortest Path First) (OSPF) is an internal gateway protocol. It is a link-state-based routing protocol. When the OSPF interface status is available, the two interfaces (the two interfaces on the peer end) send hello packets at intervals, and then establish two. Two-way communication between two interfaces. After two-way communication is established, a series of packets are exchanged between the two interfaces to achieve database synchronization. At this point, the two interfaces form an immediate relationship. This process is generally called the OSPF neighbor establishment process.
然而OSPF是基于接口进行同步的,也就是每一个接口都会向对端的接口发起邻居建立的过程,即使是两个网元之间的多个并行链路;例如在两个网元(为了叙述的方便,这里以网元1和网元2为例)中存在两个并行链路,分别为链路1和链路2,链路1对应的接口为接口1和接口2,链路2对应的接口为接口3和接口4,此时,当网元1或网元2复位后,网元1通过接口1向网元2的接口2请求一个链路状态宣告(Link-State Advertisement ,LSA)后,如果接口1没有收到LSA,接口3和接口4已经开始LSA的同步了,这样在接口3和接口4之间还会再次同步这个LSA。这样就导致了同一个LSA发送多次,这在邻居很多,链路状态数据库(Link-State Database,LSDB)很大的网络下,所有邻居都要达到FULL状态(两邻居网元完全是紧邻关系时的状态)需要传输很多的报文,数据传输量大。However, OSPF is based on the interface to synchronize, that is, each interface initiates the process of establishing a neighbor to the peer interface, even if there are multiple parallel links between two network elements; for example, in two network elements (for the purpose of description) Conveniently, there are two parallel links in the network element 1 and the network element 2, respectively, which are link 1 and link 2, and the interface corresponding to link 1 is interface 1 and interface 2, and link 2 corresponds. The interface is interface 3 and interface 4. At this time, after the network element 1 or the network element 2 is reset, the network element 1 requests a link state advertisement (Link-State) to the interface 2 of the network element 2 through the interface 1. Advertisement After LSA, if interface L does not receive LSA, interface 3 and interface 4 have started LSA synchronization, so that the LSA is synchronized again between interface 3 and interface 4. This causes the same LSA to be sent multiple times, which is a lot of neighbors, the link state database (Link-State) Database, LSDB) Under a large network, all neighbors must reach the FULL state (the state where the two neighboring NEs are completely in close proximity). A large number of packets need to be transmitted, and the amount of data transmission is large.
技术问题technical problem
本发明实施例的目的在于提供一种最短路径优先邻居建立方法,旨在解决现有的技术方案传输报文多,数据传输量大的问题。The purpose of the embodiments of the present invention is to provide a method for establishing a shortest path first neighbor, which aims to solve the problem that the prior art solution has a large number of transmission messages and a large amount of data transmission.
技术解决方案Technical solution
一方面,本发明实施例提供一种OSPF邻居建立方法,所述方法包括:In one aspect, the embodiment of the present invention provides an OSPF neighbor establishment method, where the method includes:
在最短路径优先OSPF协议下,节点向区域内的其他节点的所有与本节点相连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;In the shortest path first OSPF protocol, the node sends hello packets to all interfaces of other nodes in the area that are connected to the local node to perform neighbor synchronization, and synchronization is completed between other nodes in the area.
节点获取所有接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起链路状态数据库LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,所述后续状态为:2Way状态以后的状态;The node obtains the interface that first reaches the 2Way state of all the interfaces, initiates the link state database LSDB synchronization for the interface that first reaches the 2Way state, and suspends the synchronization of the subsequent states of the remaining interfaces except the initiated LSDB synchronization, the subsequent state. Is: the state after the 2Way state;
在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。After the state of the interface that first reaches the 2Way state reaches the full state, the node sends a link-related link state announcement LSA to the remaining interfaces to implement synchronization with the remaining interfaces and implement neighbor establishment.
本发明实施例提供一种节点,所述节点包括:An embodiment of the present invention provides a node, where the node includes:
发送单元,用于向区域内的其他节点的与本节点相连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;a sending unit, configured to send a hello message to the interface connected to the local node of the other node in the area to perform neighbor synchronization, and synchronization is completed between other nodes in the area;
获取暂停单元,用于获取其他节点的接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态同步,所述后续状态为:2Way状态以后的状态;Obtaining a suspending unit, which is used to obtain an interface that reaches the 2Way state in the interface of the other node, initiates LSDB synchronization on the interface that first reaches the 2Way state, and suspends subsequent state synchronization of the remaining interfaces except the initiated LSDB synchronization. The subsequent state is: the state after the 2Way state;
剩余同步单元,用于在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。The remaining synchronization unit is configured to: after the state of the interface that first reaches the 2Way state reaches the full state, the node sends the link-related link state announcement LSA to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
本发明实施例提供一种OSPF邻居建立系统,所述系统包括:第一节点和其他节点;An embodiment of the present invention provides an OSPF neighbor establishment system, where the system includes: a first node and other nodes;
所述第一节点,用于在最短路径优先OSPF协议下,向区域内的其他节点的所有与所述第一节点连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;The first node is configured to send a hello packet to all interfaces of the other nodes in the area that are connected to the first node to perform neighbor synchronization under the shortest path first OSPF protocol, and perform other node synchronization in the area. Synchronization has been completed;
所述第一节点还用于获取所有接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起链路状态数据库LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,所述后续状态为:2Way状态以后的状态;The first node is further configured to obtain an interface that first reaches the 2Way state of all the interfaces, initiates a link state database LSDB synchronization for the interface that first reaches the 2Way state, and suspends the subsequent state of the remaining interfaces except the initiated LSDB synchronization. Synchronization, the subsequent state is: a state after the 2Way state;
在最先达到2Way状态的接口的状态达到full状态后,达到full状态的接口所属的节点,用于将剩余LSA洪泛给剩余接口所属的节点;After the state of the interface that reaches the 2Way state reaches the full state, the node to which the interface that reaches the full state belongs is used to flood the remaining LSAs to the nodes to which the remaining interfaces belong.
所述第一节点,用于向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。The first node is configured to send a link state advertisement LSA associated with the link to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
有益效果Beneficial effect
在本发明实施例中,本发明提供的技术方案具有传输报文少,数据传输量小的优点。In the embodiment of the present invention, the technical solution provided by the present invention has the advantages of less transmission packets and small data transmission amount.
附图说明DRAWINGS
图1是本发明具体实施方式提供的一种OSPF建立方法的流程图;1 is a flowchart of an OSPF establishment method according to an embodiment of the present invention;
图2是本发明具体实施方式提供的一种节点的结构图;2 is a structural diagram of a node according to an embodiment of the present invention;
图3是本发明一实施例提供的网络结构图;3 is a network structure diagram according to an embodiment of the present invention;
图4是本发明一实施例提供的一种最短路径优先邻居建立方法的流程图。FIG. 4 is a flowchart of a method for establishing a shortest path first neighbor according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明具体实施方式提供一种OSPF邻居建立方法,该方法由网络侧节点完成,该方法在OSPF下完成,该方法如图1所示,包括如下步骤:The embodiment of the present invention provides an OSPF neighbor establishment method, which is completed by a network side node. The method is implemented in OSPF. The method is as shown in FIG. 1 and includes the following steps:
S11、节点向区域内的其他节点的所有与本节点连接的接口发送hello报文以进行邻居同步;S11. The node sends a hello packet to all interfaces of the other nodes in the area that are connected to the node to perform neighbor synchronization.
S12、节点获取接口中最先达到2Way状态(一种同步的状态,在此状态完成时,两端接口的网元能够互相通信)的接口,对该最先达到2Way状态的接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,后续状态为:2Way状态以后的状态;S12. The node that obtains the first 2Way state (a synchronous state, when the state is completed, the network elements of the interfaces at both ends can communicate with each other) initiates LSDB synchronization on the interface that first reaches the 2Way state. Suspending synchronization of subsequent states except the LSDB synchronization has been initiated, and the subsequent state is: the state after the 2Way state;
S13、在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的LSA以实现与剩余接口的同步并实现邻居建立。S13. After the state of the interface that first reaches the 2Way state reaches the full state, the node sends a link-related LSA to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
需要说明的是,上述与链路相关的LSA具体可以包括:1号LSA、9号LSA;另外,需要说明的是,在以太网链路中,与链路相关的LSA还可以包括:2号LSA。It should be noted that the link-related LSAs may include: LSA No. 1 and LSA No. 9; and, in addition, in the Ethernet link, the link-related LSA may further include: LSA.
需要说明的是,根据RFC2328的规定,区域内每同步一条链路,1号LSA就需要刷新一次,所以1号LSA在邻居建立和洪泛时均需要携带。It should be noted that, according to the provisions of RFC 2328, for each link in the area, the LSA number 1 needs to be refreshed once, so the LSA No. 1 needs to be carried in the neighbor establishment and flooding.
需要说明的是,上述区域内的其他节点之间均已经完成同步,另外,上述最先达到2Way状态的接口有可能为多个接口,当最先达到2Way状态的接口为多个时,则可以从最先达到2Way状态的多个接口中任意选择一个接口进行LSDB同步。It should be noted that the synchronization is completed between other nodes in the foregoing area. In addition, the interface that first reaches the 2Way state may be multiple interfaces. When the interface that first reaches the 2Way state is multiple, Select one of the multiple interfaces that first reached the 2Way state to perform LSDB synchronization.
可选的,上述方法在S13之前还可以包括:Optionally, the foregoing method may further include: before S13:
达到full状态的接口所属的节点将剩余LSA洪泛给所述剩余接口所属的节点;其中所述剩余LSA包括:除9号LSA以外的LSA。The node to which the interface in the full state belongs is flooded with the remaining LSAs to the node to which the remaining interfaces belong; the remaining LSAs include: LSAs other than the LSA No. 9.
可选的,上述S11的实现方法具体包括:Optionally, the implementation method of the foregoing S11 specifically includes:
节点在检测所述区域内有新链路时,向区域内的其他节点的所有接口发送hello报文以进行邻居同步。When detecting a new link in the area, the node sends a hello packet to all interfaces of other nodes in the area to perform neighbor synchronization.
可选的,上述方法在S13之后,还可以包括:当节点所有链路同时启动或者节点重新启动时,所有接口都会收到邻居节点发送的Hello报文。Optionally, after the step S13, the foregoing method may include: when all the links of the node are started at the same time or the node is restarted, all the interfaces receive the Hello packet sent by the neighboring node.
本发明提供的方法对区域内的所有节点发送hello报文后,仅对最先达到2Way状态的接口的状态进行LSDB同步,暂停剩余接口的后续状态同步,当该接口达到full状态(一种同步的状态,在此状态完成时,同步已经完成)后,对剩余接口发送与链路相关的LSA即可实现同步。由于对剩余接口的同步仅需传输与链路相关的LSA,其他的LSA(除9号LSA以外的LSA,例如10号LSA)均无需传输(因为根据RFC2328以及扩展协议的相关规定,其他的LSA均由最先达到full状态的接口洪泛给剩余接口),所以其具有传输报文少,数据传输量小的优点。After the method of the present invention sends a hello message to all the nodes in the area, the LSDB is synchronized only to the state of the interface that first reaches the 2Way state, and the subsequent state synchronization of the remaining interfaces is suspended. When the interface reaches the full state (a type of synchronization) The state, when the state is completed, the synchronization has been completed, can be synchronized by sending the link-related LSA to the remaining interfaces. Since the synchronization of the remaining interfaces only needs to transmit the LSA associated with the link, other LSAs (LSAs other than the LSA No. 9, such as LSA No. 10) do not need to be transmitted (because other LSAs are required according to RFC2328 and the extended protocol). Both of them are flooded to the remaining interfaces by the interface that first reaches the full state, so it has the advantages of less transmission packets and small data transmission.
本发明具体实施方式还提供一种节点,该节点如图2所示,包括:A specific embodiment of the present invention further provides a node, as shown in FIG. 2, including:
发送单元21,用于向区域内的其他节点的与本节点相连接的接口发送hello报文以进行邻居同步;The sending unit 21 is configured to send a hello packet to the interface connected to the local node of the other nodes in the area to perform neighbor synchronization.
获取暂停单元22,用于获取其他节点的接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态同步,所述后续状态为:2Way状态以后的状态;The obtaining and suspending unit 22 is configured to obtain an interface that reaches the 2Way state in the interface of the other node, initiates LSDB synchronization on the interface that first reaches the 2Way state, and suspends subsequent state synchronization of the remaining interfaces except the initiated LSDB synchronization. The subsequent state is: the state after the 2Way state;
剩余同步单元23,用于在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的LSA以实现与剩余接口的同步并实现邻居建立;所述区域内的其他节点之间已完成同步。The remaining synchronization unit 23 is configured to: after the state of the interface that first reaches the 2Way state reaches the full state, the node sends the link-related LSA to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment; The synchronization has been completed between the other nodes.
本发明提供的节点对区域内的所有节点发送hello报文后,仅对最先达到2Way状态的接口的状态进行LSDB同步,暂停剩余接口的后续状态同步,当该接口达到full状态(一种同步的状态,在此状态完成时,同步已经完成)后,对剩余接口发送与链路相关的LSA即可实现同步。由于对剩余接口的同步仅需传输与链路相关的LSA,其他的LSA(除9号LSA以外的LSA,例如10号LSA)均无需传输(因为根据RFC2328以及扩展协议的相关规定,其他的LSA均由最先达到full状态的接口洪泛给剩余接口),所以其具有传输报文少,数据传输量小的优点。After the node sends a hello packet to all the nodes in the area, the LSDB synchronizes only the state of the interface that first reaches the 2Way state, and the subsequent state synchronization of the remaining interfaces is suspended. When the interface reaches the full state (a type of synchronization) The state, when the state is completed, the synchronization has been completed, can be synchronized by sending the link-related LSA to the remaining interfaces. Since the synchronization of the remaining interfaces only needs to transmit the LSA associated with the link, other LSAs (LSAs other than the LSA No. 9, such as LSA No. 10) do not need to be transmitted (because other LSAs are required according to RFC2328 and the extended protocol). Both of them are flooded to the remaining interfaces by the interface that first reaches the full state, so it has the advantages of less transmission packets and small data transmission.
可选的,上述最先达到2Way状态的接口为多个接口,当最先达到2Way状态的接口为多个时,获取暂停单元22具体用于:Optionally, the interface that first reaches the 2Way state is multiple interfaces. When the interface that first reaches the 2Way state is multiple, the obtaining and suspending unit 22 is specifically configured to:
获取其他节点的接口中最先达到2Way状态的多个接口,从所述多个接口中任意选择一个接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的LSDB同步。The LSDB synchronization of the remaining interfaces of the other nodes is obtained.
可选的,上述与链路相关的链路状态宣告LSA具体包括:Optionally, the link state declaration LSA associated with the foregoing link specifically includes:
9号LSA和1号LSA。LSA No. 9 and LSA No. 1.
可选的,上述节点还包括:Optionally, the foregoing node further includes:
检测单元24,用于检测所述区域内是否有新链路,当检测所述区域内有连续时,控制发送单元21向区域内的其他节点的所有接口发送hello报文以进行邻居同步。The detecting unit 24 is configured to detect whether there is a new link in the area. When detecting that there is continuity in the area, the control sending unit 21 sends a hello message to all interfaces of other nodes in the area to perform neighbor synchronization.
本发明还提供一种OSPF邻居建立系统,该系统包括:第一节点和其他节点;The present invention also provides an OSPF neighbor establishment system, which includes: a first node and other nodes;
所述第一节点,用于在最短路径优先OSPF协议下,向区域内的其他节点的所有与第一节点连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;The first node is configured to send a hello packet to all interfaces connected to the first node of other nodes in the area to perform neighbor synchronization under the shortest path first OSPF protocol, and the other nodes in the area have been Complete synchronization;
所述第一节点还用于获取所有接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起链路状态数据库LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,所述后续状态为:2Way状态以后的状态;The first node is further configured to obtain an interface that first reaches the 2Way state of all the interfaces, initiates a link state database LSDB synchronization for the interface that first reaches the 2Way state, and suspends the subsequent state of the remaining interfaces except the initiated LSDB synchronization. Synchronization, the subsequent state is: a state after the 2Way state;
在最先达到2Way状态的接口的状态达到full状态后,达到full状态的接口所属的节点,用于将剩余LSA洪泛给剩余接口所属的节点;After the state of the interface that reaches the 2Way state reaches the full state, the node to which the interface that reaches the full state belongs is used to flood the remaining LSAs to the nodes to which the remaining interfaces belong.
所述第一节点,用于向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。The first node is configured to send a link state advertisement LSA associated with the link to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
本发明提供的系统的第一节点对区域内的所有节点发送hello报文后,仅对最先达到2Way状态的接口的状态进行LSDB同步,暂停其他接口的同步,当该接口达到full状态(一种同步的状态,在此状态完成时,同步已经完成)后,对剩余接口发送与链路相关的LSA即可实现同步。由于对剩余接口的同步仅需传输与链路相关的LSA,其他的LSA均无需传输(因为根据RFC2328以及扩展协议的相关规定,其他的LSA均由最先达到full状态的接口洪泛给剩余接口),所以其具有传输报文少,数据传输量小的优点。After the first node of the system of the present invention sends a hello message to all the nodes in the area, the LSDB is synchronized only to the state of the interface that first reaches the 2Way state, and the synchronization of other interfaces is suspended. When the interface reaches the full state (1) The state of synchronization, when the state is completed, the synchronization has been completed, and synchronization is performed by sending the link-related LSA to the remaining interfaces. Since the synchronization of the remaining interfaces only needs to transmit the LSA associated with the link, the other LSAs do not need to be transmitted (because the other LSAs are flooded to the remaining interfaces by the interface that first reaches the full state according to RFC2328 and the extended protocol. ), so it has the advantage of less transmission messages and a small amount of data transmission.
实施例Example
本发明提供一实施例,本实施例提供一种OSPF邻居建立方法,本实施例实现的网络结构图如图3所示,其中,区域1中包含有RTA、RTB、RTC、RTD;区域2中包含有RTE、RTF、RTG和RTA;另外,RTB、RTC、RTD之间已经完成了LSDB同步,RTE、RTF、RTG之间也已经完成了LSDB同步,这里假设RTB、RTC、RTD分别有一个接口与RTA连接,本实施例提供的方法以区域1为例,该方法如图4所示,包括:The present invention provides an embodiment. This embodiment provides an OSPF neighbor establishment method. The network structure diagram implemented in this embodiment is shown in FIG. 3, where area 1 includes RTA, RTB, RTC, and RTD; and area 2 It includes RTE, RTF, RTG and RTA. In addition, LSDB synchronization has been completed between RTB, RTC and RTD. LSDB synchronization has also been completed between RTE, RTF and RTG. It is assumed that RTB, RTC and RTD each have an interface. The method provided in this embodiment is exemplified by the area 1. The method is as shown in FIG. 4, and includes:
S41、RTA在RTB、RTC和RTD的所有接口发送hello报文进行同步;S41. The RTA sends hello packets on all interfaces of the RTB, RTC, and RTD for synchronization.
S42、在RTB的接口(假设其最先达到)达到2Way状态时,RTA对RTB的接口进行LSDB同步,暂停RTC和RTD的接口的后续状态的同步操作; S42. When the interface of the RTB (assuming that it is first reached) reaches the 2Way state, the RTA performs LSDB synchronization on the interface of the RTB, and suspends the synchronization operation of the subsequent states of the interface of the RTC and the RTD;
S43、在RTB的接口达到full状态后,RTA对RTC接口和RTD接口发送数据库描述报文(Database Description packet ,DD)报文后,然后发送与链路相关的LSA以实现与RTC接口和RTD接口(即剩余接口)的同步。S43. After the interface of the RTB reaches the full state, the RTA sends a database description message to the RTC interface and the RTD interface (Database Description) After the packet, DD) message, the link-related LSA is then sent to synchronize with the RTC interface and the RTD interface (ie, the remaining interfaces).
下面介绍一个本实施例实现的原理,因为区域1内的RTB、RTC、RTD之间已经完成了同步,所以RTA在需要与区域1内的节点同步时,在区域1中有一个接口(RTB接口)已经达到full状态时,RTB与RTA同步完成后,会将RTB上已有的RTC和RTD的信息泛洪给RTA ,当然在实际情况中,如果还有其他的同步节点,那么RTB也同样会把上述其他的同步节点的信息洪泛给RTA;这样RTA在与RTC和RTD之间同步时,仅需发送与链路相关的LSA,这样就能减少LSA的数量,减少数据的传输量。The following is a principle implemented in this embodiment. Since the synchronization between the RTB, RTC, and RTD in the area 1 has been completed, the RTA has an interface (RTB interface) in the area 1 when it needs to synchronize with the node in the area 1. When the full state is reached, after the RTB and RTA are synchronized, the information of the existing RTC and RTD on the RTB is flooded to the RTA. Of course, in the actual situation, if there are other synchronization nodes, the RTB will also flood the information of the other synchronization nodes to the RTA; thus, the RTA only needs to send and chain when synchronizing with the RTC and the RTD. Road-related LSAs can reduce the number of LSAs and reduce the amount of data transferred.
需要说明的是,上述LSA的具体定义可以参见RFC2328协议、RFC3620以及与其相关的扩展协议。It should be noted that the specific definition of the foregoing LSA can be referred to the RFC2328 protocol, RFC3620, and an extension protocol related thereto.
在区域2中邻居建立的方法与区域1的基本相同,不同点仅在于区域1中的RTB、RTC、RTD替换成区域2中的RTE、RTF、RTG。The method of neighbor establishment in area 2 is basically the same as that of area 1, except that the RTB, RTC, and RTD in area 1 are replaced with RTE, RTF, and RTG in area 2.
上述单元和系统实施例中,所包括的各个模块或单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。In the above unit and system embodiment, each module or unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific name of each functional module is also They are only used to facilitate mutual differentiation and are not intended to limit the scope of the present invention.
本领域技术人员可以理解,本发明实施例提供的技术方案全部或部分步骤是可以通过程序指令相关的硬件来完成。比如可以通过计算机运行程来完成。该程序可以存储在可读取存储介质,例如,随机存储器、磁盘、光盘等。Those skilled in the art can understand that all or part of the technical solutions provided by the embodiments of the present invention can be completed by using related hardware of the program instructions. For example, it can be done by computer running. The program can be stored in a readable storage medium such as a random access memory, a magnetic disk, an optical disk, or the like.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (11)

  1. 一种OSPF邻居建立方法,其特征在于,所述方法包括:An OSPF neighbor establishment method, the method includes:
    在最短路径优先OSPF协议下,节点向区域内的其他节点的所有与本节点相连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;In the shortest path first OSPF protocol, the node sends hello packets to all interfaces of other nodes in the area that are connected to the local node to perform neighbor synchronization, and synchronization is completed between other nodes in the area.
    节点获取所有接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起链路状态数据库LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,所述后续状态为:2Way状态以后的状态;The node obtains the interface that first reaches the 2Way state of all the interfaces, initiates the link state database LSDB synchronization for the interface that first reaches the 2Way state, and suspends the synchronization of the subsequent states of the remaining interfaces except the initiated LSDB synchronization, the subsequent state. Is: the state after the 2Way state;
    在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。After the state of the interface that first reaches the 2Way state reaches the full state, the node sends a link-related link state announcement LSA to the remaining interfaces to implement synchronization with the remaining interfaces and implement neighbor establishment.
  2. 根据权利要求1所述的方法,其特征在于,当最先达到2Way状态的接口为多个时,所述对该最先达到2Way状态的接口发起LSDB同步具体包括:The method according to claim 1, wherein when the number of interfaces that reach the 2Way state is the first, the initiating the LSDB synchronization for the interface that first reaches the 2Way state includes:
    从最先达到2Way状态的多个接口中任意选择一个接口进行LSDB同步。Select one of the multiple interfaces that first reached the 2Way state to perform LSDB synchronization.
  3. 根据权利要求1所述的方法,其特征在于,所述与链路相关的链路状态宣告LSA具体包括:The method according to claim 1, wherein the link state advertisement LSA associated with the link specifically includes:
    9号LSA和1号LSA。LSA No. 9 and LSA No. 1.
  4. 根据权利要求1所述的方法,所述方法在节点向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立之前还包括:The method according to claim 1, further comprising: before the node sends the link-related link state announcement LSA to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment:
    达到full状态的接口所属的节点将剩余LSA洪泛给所述剩余接口所属的节点;其中所述剩余LSA包括:除9号LSA以外的LSA。The node to which the interface in the full state belongs is flooded with the remaining LSAs to the node to which the remaining interfaces belong; the remaining LSAs include: LSAs other than the LSA No. 9.
  5. 根据权利要求1所述的方法,其特征在于,所述节点向区域内的其他节点的所有接口发送hello报文以进行邻居同步包括:The method according to claim 1, wherein the node sends a hello message to all interfaces of other nodes in the area for neighbor synchronization, including:
    节点在检测所述区域内有新链路时,向区域内的其他节点的所有接口发送hello报文以进行邻居同步。When detecting a new link in the area, the node sends a hello packet to all interfaces of other nodes in the area to perform neighbor synchronization.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:当节点所有链路同时启动或者节点重新启动时,所有接口都会收到邻居节点发送的Hello报文。The method according to claim 1, wherein the method further comprises: when all the links of the node are started at the same time or the node is restarted, all the interfaces receive the Hello message sent by the neighboring node.
  7. 一种节点,其特征在于,所述节点包括:A node, wherein the node comprises:
    发送单元,用于向区域内的其他节点的与本节点相连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;a sending unit, configured to send a hello message to the interface connected to the local node of the other node in the area to perform neighbor synchronization, and synchronization is completed between other nodes in the area;
    获取暂停单元,用于获取其他节点的接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态同步,所述后续状态为:2Way状态以后的状态;Obtaining a suspending unit, which is used to obtain an interface that reaches the 2Way state in the interface of the other node, initiates LSDB synchronization on the interface that first reaches the 2Way state, and suspends subsequent state synchronization of the remaining interfaces except the initiated LSDB synchronization. The subsequent state is: the state after the 2Way state;
    剩余同步单元,用于在最先达到2Way状态的接口的状态达到full状态后,节点向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。The remaining synchronization unit is configured to: after the state of the interface that first reaches the 2Way state reaches the full state, the node sends the link-related link state announcement LSA to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
  8. 根据权利要求7所述的节点,其特征在于,当最先达到2Way状态的接口为多个时,所述获取暂停单元具体用于:The node according to claim 7, wherein when the number of interfaces that first reach the 2Way state is plural, the acquisition suspension unit is specifically configured to:
    获取其他节点的接口中最先达到2Way状态的多个接口,从所述多个接口中任意选择一个接口发起LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态同步。The interface of the other node that is the first to reach the 2Way state is obtained, and any one of the multiple interfaces is selected to initiate the LSDB synchronization, and the subsequent state synchronization of the remaining interfaces except the initiated LSDB synchronization is suspended.
  9. 根据权利要求7所述的节点,其特征在于,所述与链路相关的链路状态宣告LSA具体包括:The node according to claim 7, wherein the link state declaration LSA associated with the link specifically includes:
    9号LSA和1号LSA 。LSA No. 9 and LSA No. 1.
  10. 根据权利要求7所述的节点,其特征在于,所述节点还包括:The node according to claim 7, wherein the node further comprises:
    检测单元,用于检测所述区域内是否有新链路,当检测所述区域内有连续时,控制所述发送单元向区域内的其他节点的所有接口发送hello报文以进行邻居同步。The detecting unit is configured to detect whether there is a new link in the area. When detecting that there is continuity in the area, the sending unit is configured to send a hello message to all interfaces of other nodes in the area to perform neighbor synchronization.
  11. 一种OSPF邻居建立系统,其特征在于,所述系统包括:第一节点和其他节点;An OSPF neighbor establishment system, where the system includes: a first node and other nodes;
    所述第一节点,用于在最短路径优先OSPF协议下,向区域内的其他节点的所有与所述第一节点连接的接口发送hello报文以进行邻居同步,所述区域内的其他节点之间已完成同步;The first node is configured to send a hello packet to all interfaces of the other nodes in the area that are connected to the first node to perform neighbor synchronization under the shortest path first OSPF protocol, and perform other node synchronization in the area. Synchronization has been completed;
    所述第一节点还用于获取所有接口中最先达到2Way状态的接口,对该最先达到2Way状态的接口发起链路状态数据库LSDB同步,暂停除已发起LSDB同步以外的剩余接口的后续状态的同步,所述后续状态为:2Way状态以后的状态;The first node is further configured to obtain an interface that first reaches the 2Way state of all the interfaces, initiates a link state database LSDB synchronization for the interface that first reaches the 2Way state, and suspends the subsequent state of the remaining interfaces except the initiated LSDB synchronization. Synchronization, the subsequent state is: a state after the 2Way state;
    在最先达到2Way状态的接口的状态达到full状态后,达到full状态的接口所属的节点,用于将剩余LSA洪泛给剩余接口所属的节点;After the state of the interface that reaches the 2Way state reaches the full state, the node to which the interface that reaches the full state belongs is used to flood the remaining LSAs to the nodes to which the remaining interfaces belong.
    所述第一节点,用于向该剩余接口发送与链路相关的链路状态宣告LSA以实现与剩余接口的同步并实现邻居建立。The first node is configured to send a link state advertisement LSA associated with the link to the remaining interface to implement synchronization with the remaining interfaces and implement neighbor establishment.
PCT/CN2012/077627 2012-06-27 2012-06-27 Open shortest path first based neighbor establishing method, node, and system WO2014000181A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/077627 WO2014000181A1 (en) 2012-06-27 2012-06-27 Open shortest path first based neighbor establishing method, node, and system
CN201280001546.8A CN103004150B (en) 2012-06-27 2012-06-27 Shortest path first neighbor establishing method, node and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/077627 WO2014000181A1 (en) 2012-06-27 2012-06-27 Open shortest path first based neighbor establishing method, node, and system

Publications (1)

Publication Number Publication Date
WO2014000181A1 true WO2014000181A1 (en) 2014-01-03

Family

ID=47930701

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077627 WO2014000181A1 (en) 2012-06-27 2012-06-27 Open shortest path first based neighbor establishing method, node, and system

Country Status (2)

Country Link
CN (1) CN103004150B (en)
WO (1) WO2014000181A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414645B (en) * 2013-07-24 2017-02-08 北京华为数字技术有限公司 Link status database synchronization method, controller and system
CN103490922B (en) * 2013-09-10 2017-02-08 迈普通信技术股份有限公司 Control system and method for OSPF protocol neighbor setup process
CN109873764B (en) * 2019-02-21 2021-12-24 杭州迪普科技股份有限公司 Method, device and electronic equipment for establishing oriented OSPF (open shortest Path first) neighbor relation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866962A (en) * 2006-03-13 2006-11-22 华为技术有限公司 Method and system for rapidly building neighborhood
US7248579B1 (en) * 2002-10-15 2007-07-24 Cisco Technology, Inc. System and method for providing a link state database (LSDB) snapshot for neighbor synchronization
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7903583B2 (en) * 2005-07-11 2011-03-08 Cisco Technology, Inc. Unsynchronized adjacencies in OSPF
CN100499658C (en) * 2005-11-12 2009-06-10 华为技术有限公司 Method for avoiding redundant Flood
CN100384126C (en) * 2005-12-24 2008-04-23 华为技术有限公司 Link station information transmission method based on multi-interface route equipment
CN101588303B (en) * 2009-06-22 2011-11-09 福建星网锐捷网络有限公司 Link status notice information interaction method and OSPF device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7248579B1 (en) * 2002-10-15 2007-07-24 Cisco Technology, Inc. System and method for providing a link state database (LSDB) snapshot for neighbor synchronization
CN1866962A (en) * 2006-03-13 2006-11-22 华为技术有限公司 Method and system for rapidly building neighborhood
CN102318287A (en) * 2011-06-30 2012-01-11 华为技术有限公司 Methods and device to establish router neighbors

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MOY, J.: "OSPF Version 2, RFC2328", IETF, April 1998 (1998-04-01) *

Also Published As

Publication number Publication date
CN103004150B (en) 2015-07-08
CN103004150A (en) 2013-03-27

Similar Documents

Publication Publication Date Title
US11032056B2 (en) Efficient unicast signaling in a precision time protocol enabled packet network
EP3570505B1 (en) Symmetric path/link over lag interface using lldp for time synchronization between two nodes using ptp
WO2008131624A1 (en) Distributed ethernet system and method for detecting fault based thereon
CN111865779B (en) Route synchronization method and cross-device link aggregation group
WO2011035674A1 (en) Method for accelerating data switching during ethernet ring network failure
CN103441936B (en) Issuing method of forwarding adjacent link
EP2597830A1 (en) Method, router bridge, and system for trill network protection
CN107248913B (en) Quantum key synchronization system and method based on dynamic networking fault detection
CN103841025A (en) Communication system and network relay device
WO2012068845A1 (en) Method and system for time synchronization
BR112012022549B1 (en) METHOD AND SYSTEM TO MAKE ACCESSIBILITY OF THE DESTINATION ROUTE IN THE ACCESS RING OF THE PACKAGE TRANSPORT NETWORK
WO2012034330A1 (en) Method, system and convergence loop apparatus for synchronization between apparatuses in convergence network
WO2014000181A1 (en) Open shortest path first based neighbor establishing method, node, and system
WO2012105051A1 (en) Communication system, communication method, and communication device
CN111565073A (en) Wireless optical difference synchronization method and system based on 5G communication
WO2011134371A1 (en) Method for synchronizing clocks and clock synchronization device
JP2013509744A (en) Method and clock device for processing high precision time protocol messages
US20130336117A1 (en) Distributed processing scheme to support ieee 1588 ptp over multiple ports spanning a lag
WO2010048875A1 (en) Method, device of cluster system extension and cluster system
CN106982397B (en) Substation communication network based on return detection and time synchronization safety method thereof
WO2012146097A1 (en) Vpls network and ethernet ring switching method and device
JP2011205285A (en) Relay node, and relay processing program
WO2014086041A1 (en) Stream forwarding method for message, and message forwarding device
WO2017067260A1 (en) Method, device and system for networking intelligent terminals
WO2011144111A2 (en) Synchronization detection method for link state database, and routing device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280001546.8

Country of ref document: CN

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

Ref document number: 12879696

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: 12879696

Country of ref document: EP

Kind code of ref document: A1