CN105450437B - A method of allocating SID and SR node - Google Patents
A method of allocating SID and SR node Download PDFInfo
- Publication number
- CN105450437B CN105450437B CN201410484251.1A CN201410484251A CN105450437B CN 105450437 B CN105450437 B CN 105450437B CN 201410484251 A CN201410484251 A CN 201410484251A CN 105450437 B CN105450437 B CN 105450437B
- Authority
- CN
- China
- Prior art keywords
- node
- sid
- information
- network
- management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/03—Topology update or discovery by updating link state protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及基于IP的传送网(IP RAN)技术,尤指一种分配SID的方法和SR节点。The present invention relates to IP-based transport network (IP RAN) technology, and more particularly, to a method for allocating SIDs and an SR node.
背景技术Background technique
当前,在基于IP的传送网(IP RAN),也称无编号接口网络上,已存在数据通信网络(DCN,Data Communication Network)管理通道自动建立和配置方法,主要通过各节点上自动设定DCN端口、默认生成路由ID(Router ID),通过开放式最短路径优先(OSPF,OpenShortest Path First)协议、地址解析协议(ARP,Address Resolution Protocol)、链路层发现协议(LLDP)等协议的扩展来实现各节点之间的管理IP地址、DCN端口,以及MAC地址的学习,从而实现DCN通道自动建立和配置。At present, on the IP-based transport network (IP RAN), also known as the unnumbered interface network, there is already a data communication network (DCN, Data Communication Network) management channel automatic establishment and configuration method, mainly through the automatic setting of DCN on each node. Port, the default route ID (Router ID) is generated by the extension of the Open Shortest Path First (OSPF, OpenShortest Path First) protocol, Address Resolution Protocol (ARP, Address Resolution Protocol), Link Layer Discovery Protocol (LLDP) and other protocols. Realize the management IP address, DCN port, and MAC address learning between each node, so as to realize the automatic establishment and configuration of DCN channel.
但是,对于SR节点之间,比如各接入节点和汇聚节点之间的业务通道的建立,还需要大量的手动配置,比如:各端口IP地址的配置,内部网关协议(IGP,Interior GatewayProtocol)的配置、LDP协议的配置、伪线信息的配置等。随着接入节点数目的增加,配置的复杂性会大幅提高,相应的配置出错带来的风险也大幅提高。However, for the establishment of service channels between SR nodes, such as between access nodes and aggregation nodes, a large amount of manual configuration is required, such as the configuration of the IP address of each port, the configuration of the interior gateway protocol (IGP, Interior Gateway Protocol). configuration, configuration of LDP protocol, configuration of pseudowire information, etc. With the increase of the number of access nodes, the complexity of configuration will be greatly increased, and the risk of corresponding configuration errors will also be greatly increased.
在现有的分段路由(SR,Segment Routing)技术,即IGP协议基础上启动SR扩展功能实现中,通过IGP协议上的SR扩展,携带SR标识(SR ID,Segment Routing ID,也缩写为SID)的通告,并通过IGP的算法计算出到各SID的最短路径;而报文头封装中的SID堆栈信息,可以指导报文依照封装堆栈路径转发。这样,可以大幅减少相应的LDP协议及伪线信息的配置。但是,现有技术方案中并没有给出如何利用IGP协议上的SR扩展来实现SID的分配的具体实现方案,也不能达到业务通道的自动建立。In the existing segment routing (SR, Segment Routing) technology, that is, in the implementation of the SR extension function based on the IGP protocol, the SR extension on the IGP protocol carries the SR ID (SR ID, Segment Routing ID, also abbreviated as SID). ), and calculates the shortest path to each SID through the IGP algorithm; and the SID stack information in the packet header encapsulation can guide the packet to be forwarded according to the encapsulation stack path. In this way, the configuration of the corresponding LDP protocol and pseudowire information can be greatly reduced. However, the prior art solution does not provide a specific implementation solution of how to use the SR extension on the IGP protocol to realize the allocation of the SID, and the automatic establishment of the service channel cannot be achieved.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题,本发明提供一种分配SID的方法和SR节点,能够实现SID的自动分配。In order to solve the above technical problems, the present invention provides a method for allocating SIDs and an SR node, which can realize automatic allocation of SIDs.
为了达到本发明目的,本发明提供了一种分配分段路由标识SID的方法,包括:分段路由SR管理节点获知网络中SR节点的地址信息并给SR节点分配SID信息;In order to achieve the purpose of the present invention, the present invention provides a method for allocating segment routing identifier SID, comprising: the segment routing SR management node obtains the address information of the SR node in the network and assigns the SID information to the SR node;
SR管理节点通过对内部网关协议IGP报文或配置管理报文的扩展,将分配好的SID信息发送给网络中的各SR节点。The SR management node sends the allocated SID information to each SR node in the network by extending the interior gateway protocol IGP message or the configuration management message.
所述发送包括:The sending includes:
所述SR管理节点通过对IGP报文的扩展,携带一个或一个以上SR节点地址信息对应的SID信息组播发送给所述各SR节点。The SR management node, by extending the IGP message, carries the SID information corresponding to one or more SR node address information by multicast and sends it to the SR nodes.
所述扩展的信息通过ISIS或OSPF的SID分配SID Allocation TLV携带。The extended information is carried by the SID Allocation TLV of ISIS or OSPF.
所述发送还包括:The sending also includes:
所述SR管理节点通过对配置管理报文的扩展,通过配置管理通道,携带一个或一个以上SR节点地址信息对应的SID信息分别发送给所述每个SR节点。The SR management node sends the SID information corresponding to the address information of one or more SR nodes to each SR node respectively by extending the configuration management message and through the configuration management channel.
该方法还包括:The method also includes:
各SR节点接收到所述SID信息后,网络中的所有SR节点通过泛洪组播报文向网络中洪泛自身的SID信息。After each SR node receives the SID information, all SR nodes in the network flood the network with their own SID information by flooding the multicast message.
所述将分配好的SID信息发送给网络中的各SR节点之前,还包括:所述SR管理节点向网络中的各SR节点发送自身具备SID分配能力的通告;Before sending the allocated SID information to each SR node in the network, the method further includes: the SR management node sends a notification that it has the SID allocation capability to each SR node in the network;
所述通告本节点具有SID分配能力具体包括:The announcing that the node has the SID allocation capability specifically includes:
所述SR管理节点通过设置有分配能力标识字段的OSPF或ISIS报文或配置管理报文通告网络中的各SR节点。The SR management node notifies each SR node in the network through an OSPF or ISIS message or a configuration management message provided with an allocation capability identification field.
所述SR管理节点包括两个或两个以上,该方法还包括:The SR management node includes two or more, and the method further includes:
收到所述通告的SR节点按照预先设置的策略选定一个发送通告的SR管理节点为最终的SR管理节点。The SR node that receives the notification selects an SR management node that sends the notification as the final SR management node according to a preset policy.
所述网络中的SR节点获取到所述SR管理节点具备的分配能力后,该方法还包括:计算出一条该SR节点至所述SR管理节点的默认SR业务通道。After the SR node in the network obtains the allocation capability possessed by the SR management node, the method further includes: calculating a default SR service channel from the SR node to the SR management node.
所述SID信息包括节点的地址信息和SID标签信息Label;其中,SID Label包括标签范围,以及索引index或全局Label。The SID information includes the address information of the node and the SID label information Label; wherein, the SID Label includes the label range, and the index or global Label.
当所述网络中接入新增SR节点时,该方法还包括:When the newly added SR node is accessed in the network, the method further includes:
所述SR管理节点通过所述组播或单播方式扩展,给新增SR节点的地址信息分配一个SID,且在所述扩展中还携带有新增SR节点所加入的网络中原有的分配给其它节点的SID信息;The SR management node is expanded through the multicast or unicast mode, and assigns a SID to the address information of the newly added SR node, and the expansion also carries the original assigned address in the network to which the newly added SR node joins. SID information of other nodes;
所述网络中的各SR节点接收到扩展方式通告消息后,根据来自所述SR管理节点的信息更新SID分配信息和地址信息的映射关系。After receiving the extension mode announcement message, each SR node in the network updates the mapping relationship between the SID allocation information and the address information according to the information from the SR management node.
当所述网络中存在SR节点失效时,该方法还包括:When there is an SR node failure in the network, the method further includes:
所述SR管理节点在感知到失效SR节点后,撤销给该失效SR节点地址信息分配的SID信息,且洪泛给所述网络中的其他各SR节点;After sensing the failed SR node, the SR management node revokes the SID information allocated to the address information of the failed SR node, and floods it to other SR nodes in the network;
所述网络中的各SR节点接收到该撤销信息后,经过SPF算法重新计算,删除到失效SR节点的SR转发条目。After each SR node in the network receives the revocation information, it recalculates through the SPF algorithm, and deletes the SR forwarding entry to the failed SR node.
本发明还提供了一种SR节点,至少包括配置管理模块,分配处理模块,以及建立模块,其中,The present invention also provides an SR node, which at least includes a configuration management module, an allocation processing module, and an establishment module, wherein,
配置管理模块,用于自动建立配置管理通道;The configuration management module is used to automatically establish a configuration management channel;
分配处理模块,用于通过扩展的IGP报文或配置管理报文接收分配的SID信息;向网络中洪泛本节点的SID信息。The allocation processing module is used to receive the allocated SID information through the extended IGP message or the configuration management message; flood the SID information of the node to the network.
还包括建立模块,用于计算出一条至所述SR管理节点的默认SR业务通道。It also includes a establishing module for calculating a default SR service channel to the SR management node.
当所述SR节点被确定为SR管理节点时,还包括分配模块,及处理模块,其中,When the SR node is determined to be the SR management node, it also includes an allocation module and a processing module, wherein,
分配模块,用于对SR节点地址信息并分配SID信息;通过对IGP报文或配置管理报文的扩展将分配好的SID信息发送给网络中的各SR节点;The allocation module is used to allocate the SID information to the SR node address information; send the allocated SID information to each SR node in the network by extending the IGP message or the configuration management message;
处理模块,用于通过学习获取全网拓扑关系,将SID信息及全网拓扑关系输出给建立模块。The processing module is used to acquire the topology relationship of the entire network through learning, and output the SID information and the topology relationship of the entire network to the establishment module.
所述分配模块具体用于:通过对IGP报文的扩展,以组播方式将分配好的SID信息发送给网络中的各SR节点;或者,通过配置管理报文的扩展,以单播方式将分配好的SID信息发送给网络中的各SR节点。The distribution module is specifically used for: by extending the IGP message, sending the allocated SID information to each SR node in the network in a multicast mode; or, by extending the configuration management message, in a unicast mode. The allocated SID information is sent to each SR node in the network.
所述SR节点还包括通告模块,用于向网络中的各SR节点发送自身具备SID分配能力的通告。The SR node further includes a notification module, configured to send a notification that it has the SID allocation capability to each SR node in the network.
所述分配模块还用于:为接入新增SR节点分配一个SID信息;The allocating module is also used for: allocating a SID information for accessing the newly added SR node;
所述建立模块还用于:接收到扩展方式通告消息后,根据来自所述SR管理节点的信息更新SID信息和地址信息的映射关系。The establishing module is further configured to update the mapping relationship between the SID information and the address information according to the information from the SR management node after receiving the extension mode announcement message.
所述分配模块还用于:感知到失效SR节点,撤销给该失效SR节点分配的SID信息,且洪泛给所述网络中的其他各SR节点;The allocating module is also used for: sensing the failed SR node, revoke the SID information allocated to the failed SR node, and flood to other SR nodes in the network;
所述建立模块还用于:接收到该撤销信息后,经过SPF算法重新计算,删除到失效SR节点的SR转发条目。The establishment module is further configured to delete the SR forwarding entry to the failed SR node through recalculation by the SPF algorithm after receiving the revocation information.
与现有技术相比,本申请技术方案包括SR管理节点获知网络中SR节点的地址信息并给SR节点分配SID信息;SR管理节点通过IGP报文的组播方式或配置管理报文的扩展,将分配好的SID信息发送给网络中的各SR节点。通过本发明方法,无需对网络上节点或端口进行IP配置和SID等配置,实现了无编号接口的SR节点的SID信息的自动分配和学习。Compared with the prior art, the technical solution of the present application includes that the SR management node obtains the address information of the SR node in the network and allocates SID information to the SR node; the SR management node uses the multicast mode of the IGP message or the extension of the configuration management message, Send the allocated SID information to each SR node in the network. With the method of the invention, it is not necessary to configure the IP and SID of the nodes or ports on the network, thereby realizing the automatic allocation and learning of the SID information of the SR nodes with no numbered interface.
另外,本发明方法通过SR管理节点及网络中的各SR节点间建立业务通道,从而实现了在SR控制节点和各SR节点之间业务通道的自动建立,大大简化了业务通道建立和配置的复杂性。In addition, the method of the present invention establishes a service channel between the SR management node and each SR node in the network, thereby realizing the automatic establishment of the service channel between the SR control node and each SR node, and greatly simplifies the complexity of the establishment and configuration of the service channel. sex.
进一步地,本发明方法通过备份SR业务通道的建立,在原有SR业务通道出现故障情况下,及时地进行了业务路径的切换,实现了SR业务通道快速保护。Furthermore, the method of the present invention, through the establishment of the backup SR service channel, timely switches the service path when the original SR service channel fails, thereby realizing the rapid protection of the SR service channel.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the description, claims and drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1为本发明分配SID的方法的流程图;Fig. 1 is the flow chart of the method for allocating SID of the present invention;
图2为本发明SID分配单播报文数据帧封装格式的示意图;Fig. 2 is the schematic diagram of SID distribution unicast message data frame encapsulation format of the present invention;
图3为本发明泛洪组播报文格式的示意图;Fig. 3 is the schematic diagram of flooding multicast message format of the present invention;
图4为本发明SR节点的组成结构示意图;4 is a schematic diagram of the composition structure of an SR node of the present invention;
图5为本发明第一实施例的网络架构示意图;5 is a schematic diagram of a network architecture according to the first embodiment of the present invention;
图6为本发明第二实施例的网络架构示意图;6 is a schematic diagram of a network architecture according to a second embodiment of the present invention;
图7为本发明IP RAN网络转发示意图;FIG. 7 is a schematic diagram of IP RAN network forwarding according to the present invention;
图8为本发明添加SR节点的实施例的添加转发示意图;8 is a schematic diagram of adding and forwarding according to an embodiment of adding an SR node according to the present invention;
图9为本发明删除SR节点的实施例的删除转发示意图。FIG. 9 is a schematic diagram of deletion and forwarding of an embodiment of deleting an SR node according to the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, the embodiments in the present application and the features in the embodiments may be arbitrarily combined with each other if there is no conflict.
本发明中所述的SR管理节点为网络中选举出来的具有汇聚管理功能的SR节点,SR节点为网络中的除SR管理节点之外的其它SR节点。其中,如何选举属于本领域技术人员的公知技术,其具体实现并不用于限定本发明的保护范围,这里不再赘述。The SR management node described in the present invention is an SR node with a convergence management function elected in the network, and the SR node is other SR nodes in the network except the SR management node. Among them, how to select is a well-known technology of those skilled in the art, and its specific implementation is not used to limit the protection scope of the present invention, and will not be repeated here.
图1为本发明分配SID的方法的流程图,如图1所示,包括:Fig. 1 is the flow chart of the method for allocating SID of the present invention, as shown in Fig. 1, including:
步骤100:SR管理节点获知网络中SR节点的地址信息并给SR节点分配SID信息。Step 100: The SR management node acquires the address information of the SR node in the network and allocates SID information to the SR node.
本步骤中,通过建立DCN管理通道,SR管理节点可以学习到网络中所有SR节点的Router ID以及管理环回IP地址等相关信息。其中,DCN管理通道建立过程属于本领域技术人员的公知技术,具体实现并不用于限定本发明的保护范围,这里不再赘述。In this step, by establishing the DCN management channel, the SR management node can learn the router IDs and management loopback IP addresses and other related information of all SR nodes in the network. The process of establishing the DCN management channel belongs to the well-known technology of those skilled in the art, and the specific implementation is not used to limit the protection scope of the present invention, and will not be repeated here.
本步骤中的SR管理节点分配SID信息包括:The SID information allocated by the SR management node in this step includes:
SR管理节点根据预先规划(由网络默认规则生成,如根据Router ID大小,设置由低到高划分的SID区域范围内的SID值)或配置(如管理员预先配置好SID值)的SID信息,为网络中的每个SR节点及SR管理节点自身分配SID信息。其中,本领域技术人员知道,SID信息包括IPv 6 Router ID或SID标签信息(Label),其中,SID Label包括标签范围,以及索引(index)或全局Label。The SR management node is based on pre-planned (generated by default rules of the network, such as setting the SID value within the range of the SID area divided from low to high according to the size of the Router ID) or configured (for example, the administrator has pre-configured the SID value) SID information, SID information is allocated to each SR node in the network and to the SR management node itself. Wherein, those skilled in the art know that the SID information includes IPv6 Router ID or SID label information (Label), wherein the SID Label includes a label range, and an index (index) or a global Label.
步骤102:SR管理节点通过对IGP报文或配置管理报文的扩展,将分配好的SID信息发送给网络中的各SR节点。具体地,Step 102: The SR management node sends the allocated SID information to each SR node in the network by extending the IGP message or the configuration management message. specifically,
本步骤中,SR管理节点通过对IGP报文的扩展,以组播方式将分配好的SID信息发送给网络中的各SR节点。具体包括:In this step, the SR management node sends the allocated SID information to each SR node in the network in a multicast manner by extending the IGP message. Specifically include:
SR管理节点通过对中间系统到中间系统(ISIS)或OSPF的报文扩展,携带一个或一个以上SR节点地址信息对应的SID信息组播发送给网络中的各SR节点,其中,扩展的信息可以通过ISIS或OSPF的SID分配字段(SID Allocation TLV)字段携带。在扩展字段中的值即SID分配信息包括但不限于携带SR节点的Router ID或环回IP地址,以及所分配SID的SID标签信息(SID Lable);其中,SID Lable包括标签范围、索引(index)或全局label。The SR management node extends the message from the intermediate system to the intermediate system (ISIS) or OSPF, and carries the SID information corresponding to one or more SR node address information by multicast and sends it to each SR node in the network. The extended information can be It is carried by the SID Allocation TLV field of ISIS or OSPF. The value in the extension field, that is, the SID allocation information, includes but is not limited to the Router ID or loopback IP address carrying the SR node, and the SID label information (SID Lable) of the allocated SID; wherein, the SID Lable includes the label range, index (index ) or global label.
具体来讲,比如:预先对OSPF或ISIS进行扩展以携带对节点进行相应前缀的SRSID分配信息的SID Allocation TLV字段。也就是说,类似在OSPF扩展prefix TLV中携带的Prefix SID sub-tlv格式,或ISIS SID Sub-TLV格式,扩展新增一个SID Allocation TLV字段,用于携带SID信息;Specifically, for example, OSPF or ISIS is extended in advance to carry the SID Allocation TLV field of the SRSID allocation information for the corresponding prefix to the node. That is to say, similar to the Prefix SID sub-tlv format carried in the OSPF extension prefix TLV, or the ISIS SID Sub-TLV format, the extension adds a SID Allocation TLV field to carry SID information;
SR管理节点将新增有SID Allocation TLV字段的IGP协议报文通过组播方式(如224.0.0.5)发送给网络中的各SR节点。这里,将网络中每个SR节点的SID信息通过TLV方式,都封装到OSPF prefix TLV格式的新增SID Allocation TLV字段中或ISIS SID Sub-TLV格式的新增SID Allocation TLV字段中,其中,该新增SID Allocation TLV字段中的Value用于携带SR节点的Router ID或环回IP地址,以及所分配SID的SID Lable(标签范围+index或全局label组成)。The SR management node sends the IGP protocol message with the newly added SID Allocation TLV field to each SR node in the network by multicast (eg 224.0.0.5). Here, the SID information of each SR node in the network is encapsulated into the newly added SID Allocation TLV field of the OSPF prefix TLV format or the newly added SID Allocation TLV field of the ISIS SID Sub-TLV format by means of TLV. Added Value in the SID Allocation TLV field to carry the Router ID or loopback IP address of the SR node, and the SID Lable of the allocated SID (label range + index or global label).
网络中的各SR节点接收到该IGP协议报文后,根据IGP协议报文的SID AllocationTLV字段中携带的Router ID,获得节点对应的Router ID所分配的SID Label信息。After receiving the IGP protocol message, each SR node in the network obtains the SID Label information allocated by the router ID corresponding to the node according to the Router ID carried in the SID AllocationTLV field of the IGP protocol message.
本步骤中,SR管理节点通过对配置管理报文的扩展,通过配置管理通道,将分配好的SID信息发送给网络中的各SR节点具体包括:SR管理节点通过配置管理通道,将为网络中每个SR节点所分配的SID信息,携带一个或一个以上SR节点地址信息对应的SID信息以单播方式分别发送给每个SR节点。In this step, the SR management node sends the allocated SID information to each SR node in the network through the expansion of the configuration management message and through the configuration management channel. The SID information allocated by each SR node, carrying the SID information corresponding to one or more SR node address information, is sent to each SR node in a unicast manner.
具体来讲,比如:SR管理节点通过配置管理通道如DCN管理通道,将为网络中每个SR节点所分配的SID等信息,以单播方式,通过SID分配单播报文经由配置管理报文扩展分别发送给每个SR节点。其中,DCN管理通道通过默认的OSPF进程给学习到相互之间的拓扑连接,管理节点将获取到网络中所有的节点地址信息,通过节点地址信息直接和网络各节点进行IP交互的配置管理报文发送,如通过类似NETCONF或SNMP协议给SR节点下发相应的配置时,根据B设备上的这些配置应用模块生成UDP或TCP格式的报文封装,通过DCN管理通道发送这些配置管理报文给相应需配置的节点。需配置节点接收到所述报文后解析配置管理报文中携带的信息,发送给配置管理模块进行解析,配置管理模块将所述配置信息解析到相应配置协议,发送到相关协议进程进行处理。如SID分配单播报文数据帧封装格式如图2所示,其中包括有:IP报文字段,其中定义新的SID单播报文扩展,用于携带特定端口号,以表明该报文是个SID单播报文,接着携带具体的SID具体分配信息,包括如Router ID映射的具体的SID映射。Specifically, for example, through the configuration management channel such as the DCN management channel, the SR management node will distribute the SID and other information allocated to each SR node in the network in a unicast mode, and distribute the unicast message through the SID and expand the configuration management message. sent to each SR node separately. Among them, the DCN management channel learns the topology connection between each other through the default OSPF process, the management node will obtain all the node address information in the network, and directly communicate with the network nodes through the node address information. For example, when the corresponding configuration is delivered to the SR node through a protocol such as NETCONF or SNMP, the application module generates UDP or TCP format packet encapsulation according to the configuration on the B device, and sends these configuration management packets through the DCN management channel to the corresponding Node to configure. After receiving the message, the node to be configured parses the information carried in the configuration management message, and sends it to the configuration management module for analysis. The configuration management module parses the configuration information into a corresponding configuration protocol and sends it to a related protocol process for processing. For example, the data frame encapsulation format of SID allocation unicast message is shown in Figure 2, which includes: IP message field, in which a new SID unicast message extension is defined, which is used to carry a specific port number to indicate that the message is a SID single broadcast message, and then carry specific SID specific allocation information, including specific SID mapping such as Router ID mapping.
网络中的各SR节点获得本节点的SID信息后,网络中的所有SR节点均以组播方式,通过泛洪组播报文向网络中洪泛本节点的SID信息。泛洪组播报文格式如图3所示,其中包括有:OSPF IP报文字段,其中扩展prefix TLV中扩展,用于携带SID Allocation TLV格式。After each SR node in the network obtains the SID information of its own node, all SR nodes in the network flood the network with the SID information of its own node through a flooding multicast message in a multicast manner. The format of the flooding multicast packet is shown in Figure 3, which includes: OSPF IP packet field, which is extended in the prefix TLV, which is used to carry the SID Allocation TLV format.
本步骤中,在SR管理节点通过组播方式或单播方式将SID信息发送给网络中的SR节点,各SR节点接收到所述SID信息后,还包括:网络中的所有SR节点通过泛洪组播报文向网络中洪泛自身的SID信息。In this step, the SR management node sends the SID information to the SR nodes in the network through multicast or unicast, and after each SR node receives the SID information, it further includes: all SR nodes in the network flood the Multicast packets flood the network with their own SID information.
在步骤100之后,步骤102之前,本发明方法还包括:After
步骤101:SR管理节点向网络中的各SR节点发送自身具备SID分配能力的通告。需要说明的是,步骤101可以省略,即系统默认当SR节点被选举为SR管理节点时,SR节点默认当前的SR管理节点具备SR ID分配能力。Step 101: The SR management node sends a notification that it has the SID allocation capability to each SR node in the network. It should be noted that
本步骤具体实现包括:SR管理节点通过扩展IGP协议,向网络中的所有SR节点通告本节点具有SID分配能力。这样,在SR节点接收到该通告信息报文后,SR节点才会对SR管理节点通过DCN通道或IGP方式分配SID信息的确认。具体地,The specific implementation of this step includes: the SR management node notifies all SR nodes in the network that the node has the SID allocation capability by extending the IGP protocol. In this way, after the SR node receives the notification information message, the SR node will confirm the allocation of the SID information by the SR management node through the DCN channel or the IGP manner. specifically,
当SR管理节点通过组播方式分配SID信息时,本步骤中的SR管理节点通过扩展IGP协议,向网络中的所有SR节点通告本节点具有SID分配能力具体包括:When the SR management node allocates SID information through multicast, the SR management node in this step announces to all SR nodes in the network that this node has the SID allocation capability by extending the IGP protocol, which specifically includes:
SR管理节点在OSPF或ISIS报文中设置一个分配能力标识字段,或者扩展一个TLV或子TLV使其新增分配能力标识字段,来标识本节点具备进行节点SID分配能力;The SR management node sets an allocation capability identification field in the OSPF or ISIS message, or expands a TLV or sub-TLV to add an allocation capability identification field to identify the node with the ability to perform node SID allocation;
SR管理节点通过设置有分配能力标识字段的OSPF或ISIS组播方式通告网络中的各SR节点。这样,网络中的各SR节点可以根据该分配能力标识字段对来自SR管理节点的携带有SID Allocation TLV的消息进行确认。The SR management node advertises each SR node in the network through OSPF or ISIS multicast with the allocation capability identification field set. In this way, each SR node in the network can confirm the message carrying the SID Allocation TLV from the SR management node according to the allocation capability identification field.
当SR管理节点通过单播方式分配SID信息时,本步骤中的SR管理节点通过扩展IGP协议,向网络中的所有SR节点通告本节点具有SID分配能力具体包括:When the SR management node allocates SID information through unicast, the SR management node in this step announces to all SR nodes in the network that this node has the SID allocation capability by extending the IGP protocol, which specifically includes:
SR管理节点通过DCN通道,分别向网络中的每个SR节点发送支持SRSID分配能力的通告,以便形成自动业务通道的建立。具体如何添加可以参考在OSPF或ISIS报文中设置一个分配能力标识字段,或者扩展一个TLV或子TLV使其新增分配能力标识字段的方式,这里不做限定。这样,当每个SR节点接收到来自SR管理节点的支持SR SID分配能力通告报文后,如果需要建立SR业务通道,可以主动向SR管理节点发送一个SR SID分配请求报文,之后由SR管理节点以单播方式,为该SR节点分配SID信息。The SR management node sends a notification supporting the SRSID allocation capability to each SR node in the network through the DCN channel, so as to form the establishment of an automatic service channel. For details, please refer to the method of setting an allocation capability identification field in an OSPF or ISIS packet, or extending a TLV or sub-TLV to add an allocation capability identification field, which is not limited here. In this way, after each SR node receives the SR SID allocation capability announcement message from the SR management node, if it needs to establish an SR service channel, it can actively send an SR SID allocation request message to the SR management node, and then the SR manages it. The node allocates SID information to the SR node in a unicast manner.
需要说明的是,当向网络中的各SR节点发送自身具备SID分配能力的通告的SR节点包括两个或两个以上时,收到通告的SR节点按照预先设置的策略选定一个发送通告的SR节点为SR管理节点,其中预先设置的策略可以是根据Router ID大小,选择Router ID最大的,或最小的等。It should be noted that, when there are two or more SR nodes that send the announcement that they have the SID allocation capability to each SR node in the network, the SR node that receives the announcement selects one to send the announcement according to the preset policy. The SR node is an SR management node, and the preset policy may be to select the largest or smallest Router ID according to the size of the Router ID.
进一步地,本发明方法还包括:Further, the inventive method also includes:
步骤103:SR管理节点及网络中的各SR节点间建立业务通道。具体包括:Step 103: Establish a service channel between the SR management node and each SR node in the network. Specifically include:
网络中的SR节点和SR管理节点学习到自身和其他节点的SID信息后,利用SR IGP进程将本地的Router ID和SID通过OSPF扩展prefix TLV中携带的类似Prefix SID sub-tlv格式或类似ISIS SID Sub-TLV格式新增的SID Allocation TLV字段进行组播通告,由此,SR节点间的业务拓扑经由组播报文获取到网络中所有SR节点的拓扑信息;这里,如何学习是现有技术,并不用于限定本发明的保护范围,这里不再赘述;After the SR node and SR management node in the network learn the SID information of themselves and other nodes, they use the SR IGP process to extend the local Router ID and SID through OSPF to extend the prefix SID sub-tlv format carried in the prefix TLV or similar to the ISIS SID. The newly added SID Allocation TLV field in the Sub-TLV format is used for multicast advertisement, so that the service topology between SR nodes can obtain the topology information of all SR nodes in the network through multicast packets; here, how to learn is the prior art, It is not intended to limit the protection scope of the present invention, and will not be repeated here;
接着,每个SR节点通过SPF算法分别计算出一条可到达SR管理节点的最优路径。默认情况下,各SR节点至SR管理节点的最短路径计算以SR管理节点的SID为目的地址进行计算,并自动创建SR业务通道。Next, each SR node calculates an optimal path that can reach the SR management node through the SPF algorithm. By default, the shortest path from each SR node to the SR management node is calculated using the SID of the SR management node as the destination address, and an SR service channel is automatically created.
进一步地,在原有SR业务通道出现故障情况下,为了及时进行业务路径的切换,以实现SR业务通道快速保护,本发明方法还包括:Further, in the case of failure of the original SR service channel, in order to switch the service path in time to realize the rapid protection of the SR service channel, the method of the present invention further includes:
SR管理节点向创建SR业务通道的SR节点下发备份路径策略,以便SR节点预先配置或计算出一条满足备份路径策略的备份SR业务通道;The SR management node delivers the backup path policy to the SR node that created the SR service channel, so that the SR node pre-configures or calculates a backup SR service channel that satisfies the backup path policy;
或者,SR管理节点计算一条SR备份路径,给该SR备份路径上的相关SR节点通告相关转发表信息,构造备份SR业务通道。Alternatively, the SR management node calculates an SR backup path, and notifies the relevant SR nodes on the SR backup path of relevant forwarding table information to construct a backup SR service channel.
这里,SR业务通道快速保护的具体实现属于本领域技术人员的公知技术,并不用于限定本发明的保护范围,这里不再赘述。Here, the specific implementation of the fast protection of the SR service channel belongs to the well-known technology of those skilled in the art, and is not used to limit the protection scope of the present invention, and will not be repeated here.
当所述网络中接入新增SR节点时,该方法还包括:When the newly added SR node is accessed in the network, the method further includes:
SR管理节点通过SID Allocation TLV字段,给新增SR节点的Router ID分配一个SID,且在SID Allocation TLV字段中还携带有新增SR节点所加入的网络中原有的SID信息;The SR management node allocates a SID to the Router ID of the newly added SR node through the SID Allocation TLV field, and the SID Allocation TLV field also carries the original SID information in the network to which the newly added SR node joins;
网络中的各SR节点接收到扩展方式通告消息后,根据来自所述SR管理节点的信息更新SID信息和Router ID的映射关系。After receiving the extended mode announcement message, each SR node in the network updates the mapping relationship between the SID information and the Router ID according to the information from the SR management node.
当网络中存在SR节点失效时,该方法还包括:When there is an SR node failure in the network, the method further includes:
SR管理节点在感知到失效SR节点后,撤销给该失效SR节点分配的SID信息,且洪泛给网络中的其他各SR节点;After sensing the failed SR node, the SR management node revokes the SID information allocated to the failed SR node, and floods it to other SR nodes in the network;
网络中的各SR节点接收到该撤销信息后,经过SPF算法重新计算,删除到失效SR节点的SR转发条目。After each SR node in the network receives the revocation information, it recalculates through the SPF algorithm and deletes the SR forwarding entry to the failed SR node.
通过本发明方法,无需对网络上节点或端口进行IP配置和SID等配置,实现了无编号接口的SR节点的SID信息的自动分配和学习,从而实现了在SR控制节点和各SR节点之间业务通道的自动建立,大大简化了业务通道建立和配置的复杂性。Through the method of the present invention, it is not necessary to perform IP configuration and SID configuration on the nodes or ports on the network, and the automatic allocation and learning of the SID information of the SR nodes with no numbered interface is realized, thereby realizing the connection between the SR control node and each SR node. The automatic establishment of service channels greatly simplifies the complexity of establishment and configuration of service channels.
图4为本发明SR节点的组成结构示意图,如图4所示,至少包括配置管理模块,分配处理模块,其中,FIG. 4 is a schematic diagram of the composition structure of an SR node according to the present invention. As shown in FIG. 4, it at least includes a configuration management module and an allocation processing module, wherein,
配置管理模块,用于自动建立配置管理通道;The configuration management module is used to automatically establish a configuration management channel;
分配处理模块,用于通过扩展的IGP报文或配置管理报文接收分配的SID信息;通过学习获取全网拓扑关系;向网络中洪泛本节点的SID信息。The allocation processing module is used to receive the allocated SID information through the extended IGP message or the configuration management message; obtain the topology relationship of the whole network through learning; and flood the SID information of the node into the network.
还包括:建立模块,用于根据SID信息及全网拓扑关系,通过SPF算法分别计算出一条可到达SR管理节点的默认SR业务通道。It also includes: establishing a module for calculating a default SR service channel that can reach the SR management node through the SPF algorithm according to the SID information and the topology relationship of the entire network.
进一步地,建立模块还用于,接收备份路径策略,以预先配置或计算出一条满足备份路径策略的备份SR业务通道。Further, the establishment module is further configured to receive the backup path policy, so as to preconfigure or calculate a backup SR service channel that satisfies the backup path policy.
当SR节点被选举为SR管理节点时,还包括分配模块,及处理模块,其中,When the SR node is elected as the SR management node, it also includes an allocation module and a processing module, wherein,
分配模块,用于利用DCN管理通道建立过程,获知接入网络的SR节点地址信息并分配SID信息;通过对IGP报文或配置管理报文的扩展将分配好的SID信息发送给网络中的各SR节点;具体地,通过对IGP报文的扩展,以组播方式将分配好的SID信息发送给网络中的各SR节点;或者,通过配置管理报文的扩展,以单播方式将分配好的SID信息发送给网络中的各SR节点。The allocation module is used to obtain the address information of the SR node accessing the network and allocate the SID information by using the DCN management channel establishment process; by extending the IGP message or the configuration management message, the allocated SID information is sent to each network in the network. SR node; specifically, through the expansion of the IGP message, the allocated SID information is sent to each SR node in the network by multicast; The SID information is sent to each SR node in the network.
处理模块,用于通过学习获取全网拓扑关系,将SID信息及全网拓扑关系输出给建立模块。The processing module is used to acquire the topology relationship of the entire network through learning, and output the SID information and the topology relationship of the entire network to the establishment module.
还包括通告模块,用于在配置管理通道建立后,向网络中的各SR节点发送自身具备SID分配能力的通告。It also includes a notification module, configured to send a notification that it has the SID allocation capability to each SR node in the network after the configuration management channel is established.
进一步地,分配模块还用于,下发备份路径策略。Further, the allocation module is further configured to issue a backup path policy.
进一步地,分配模块还用于,计算一条SR备份路径,给该SR备份路径上的相关SR节点通告相关转发表信息,构造备份SR业务通道。Further, the allocation module is further configured to calculate an SR backup path, and notify relevant SR nodes on the SR backup path of relevant forwarding table information to construct a backup SR service channel.
进一步地,further,
分配模块还用于:为接入新增SR节点分配一个SID信息;相应地,The allocation module is also used for: allocating a SID information for accessing the newly added SR node; correspondingly,
建立模块还用于:接收到扩展方式通告消息后,根据来自所述SR管理节点的信息更新SID信息和地址信息的映射关系。The establishing module is further configured to: update the mapping relationship between the SID information and the address information according to the information from the SR management node after receiving the extension mode announcement message.
进一步地,further,
分配模块还用于:感知到失效SR节点,撤销给该失效SR节点分配的SID信息,且洪泛给所述网络中的其他各SR节点;相应地,The allocation module is also used for: sensing the failed SR node, revoke the SID information allocated to the failed SR node, and flood to other SR nodes in the network; accordingly,
建立模块还用于:接收到该撤销信息后,经过SPF算法重新计算,删除到实现SR节点的SR转发条目。The establishment module is further used for: after receiving the revocation information, through recalculation by the SPF algorithm, delete the SR forwarding entry to the realization SR node.
下面结合具体实施例对本发明方法进行详细描述。The method of the present invention will be described in detail below with reference to specific embodiments.
图5为本发明第一实施例的网络架构示意图,如图5所示,网络中包括SR管理节点即节点B,以及三个SR节点即节点A1、节点A2和节点A3。假设网络中的节点A1、节点A2和节点A3接入网络时,均通过设备默认配置加载启动后实现了DCN管理通道自动建立,且通过默认配置加载启动各接入节点上的SR IGP进程。FIG. 5 is a schematic diagram of a network architecture according to the first embodiment of the present invention. As shown in FIG. 5 , the network includes an SR management node, namely Node B, and three SR nodes, namely Node A1, Node A2 and Node A3. Assume that when node A1, node A2, and node A3 in the network access the network, the DCN management channel is automatically established after the default configuration is loaded and started, and the SR IGP process on each access node is started by loading the default configuration.
第一实施采用组播方式发送SID信息,建立业务通道的具体实现包括:The first implementation uses multicast to send SID information, and the specific implementation of establishing a service channel includes:
首先,通过DCN管理通道的自动建立,节点B学习到所有SR节点即节点A1、节点A2和节点A3的Router ID以及管理环回IP地址;并根据预先规划或配置SR ID信息,节点B给每个SR节点即节点A1、节点A2和节点A3及节点B自身分配SID;First, through the automatic establishment of the DCN management channel, Node B learns the Router IDs and management loopback IP addresses of all SR nodes, namely Node A1, Node A2, and Node A3; and according to the pre-planned or configured SR ID information, Node B gives each Each SR node, namely node A1, node A2, node A3 and node B itself allocates SIDs;
接着,节点B通过在OSPF或ISIS报文中设置一个分配能力标识字段,或者扩展一个TLV或子TLV使其新增分配能力标识字段,来标识本节点具备进行节点SID分配能力;通过设置有分配能力标识字段的OSPF或ISIS组播方式通告其他各SR节点即节点A1、节点A2和节点A3;Next, Node B identifies that this node has the ability to perform node SID allocation by setting an allocation capability identification field in the OSPF or ISIS message, or extending a TLV or sub-TLV to add a new allocation capability identification field; The OSPF or ISIS multicast mode of the capability identification field advertises other SR nodes, namely node A1, node A2 and node A3;
之后,节点B将每个SR节点即节点A1、节点A2和节点A3的SID信息通过TLV方式,都封装到OSPF prefix TLV新增的SID Allocation TLV字段中或ISIS协议新增的SIDAllocation TLV字段中,通过特定组播(如224.0.0.5)发送给各SR节点即节点A1、节点A2和节点A3;After that, Node B encapsulates the SID information of each SR node, namely Node A1, Node A2, and Node A3, into the SID Allocation TLV field newly added by the OSPF prefix TLV or the SIDAllocation TLV field newly added by the ISIS protocol by means of TLV. Send to each SR node, namely node A1, node A2 and node A3 through specific multicast (such as 224.0.0.5);
当各SR节点即节点A1、节点A2和节点A3接收到B节点发送过来的扩展的OSPF或ISIS携带SID Allocation TLV的报文后,根据其中所携带的Router ID和SID Label,判断出哪个节点Router ID对应的所分配SID信息,并保存节点B的SID信息和其他SR节点的SID信息,比如:节点A1处理保存自身的SID信息外,还会保存节点A2,节点A3以及节点B的SID信息;When each SR node, namely node A1, node A2 and node A3, receives the extended OSPF or ISIS message that carries the SID Allocation TLV sent by node B, it determines which node is the router based on the Router ID and SID Label carried in it. The allocated SID information corresponding to the ID, and save the SID information of node B and the SID information of other SR nodes, for example: node A1 saves its own SID information, but also saves the SID information of node A2, node A3 and node B;
当每个SR节点即节点A1、节点A2和节点A3学习到自身及其他节点的SR ID信息后,利用SR IGP进程将本地的Router ID和SID通过OSPF扩展prefix TLV中携带的Prefix SIDsub-tlv格式或ISIS SID Sub-TLV格式中新增的SID Allocation TLV字段进行组播通告,由此,业务拓扑经由组播地址获取到网络节点的拓扑信息;After each SR node, namely node A1, node A2 and node A3 learns the SR ID information of itself and other nodes, it uses the SR IGP process to extend the prefix SIDsub-tlv format carried in the prefix TLV to the local Router ID and SID through OSPF Or the newly added SID Allocation TLV field in the ISIS SID Sub-TLV format carries out multicast announcement, thus, the business topology obtains the topology information of the network node via the multicast address;
之后,每个SR节点即节点A1、节点A2和节点A3按照SPF算法分别计算出一条可到达节点B最优路径,自动建立SR业务工作通道;默认情况下,各SR节点即节点A1、节点A2和节点A3至节点B的最短路径计算以节点B节点的SID为目的地址进行计算。After that, each SR node, namely node A1, node A2 and node A3, respectively calculates an optimal path that can reach node B according to the SPF algorithm, and automatically establishes the SR service working channel; by default, each SR node is node A1, node A2 And the shortest path calculation from node A3 to node B is calculated with the SID of node B as the destination address.
这样,当有报文P需要通过节点B转发到外部时,给该报文P默认打上一层到节点B的最短路径的SID报文头,封装头部以Label堆栈形式将默认封装节点B的SID表示报文一定要经过节点B往外转发。而具体在报文转发流程中,各SR节点的转发条目经由SID的最短路径接口映射得出即可。In this way, when there is a packet P that needs to be forwarded to the outside through node B, the SID packet header of the shortest path to node B is added to the packet P by default. The SID indicates that the packet must be forwarded through Node B. Specifically, in the message forwarding process, the forwarding entry of each SR node can be obtained by mapping the shortest path interface of the SID.
图6为本发明第二实施例的网络架构示意图,如图6所示,网络中包括SR管理节点即节点B,以及三个SR节点即节点A1、节点A2和节点A3。假设网络中的节点A1、节点A2和节点A3接入网络时,均通过设备默认配置加载启动后实现了DCN管理通道自动建立,且通过默认配置加载启动各接入节点上的SR IGP进程。FIG. 6 is a schematic diagram of a network architecture according to a second embodiment of the present invention. As shown in FIG. 6 , the network includes an SR management node, namely Node B, and three SR nodes, namely Node A1, Node A2 and Node A3. Assume that when node A1, node A2, and node A3 in the network access the network, the DCN management channel is automatically established after the default configuration is loaded and started, and the SR IGP process on each access node is started by loading the default configuration.
第二实施采用单播方式发送SID信息,建立业务通道的具体实现包括:The second implementation uses unicast to send SID information, and the specific implementation of establishing a service channel includes:
首先,通过DCN管理通道的自动建立,节点B学习到所有SR节点即节点A1、节点A2和节点A3的Router ID以及管理环回IP地址;并根据预先规划或配置SR ID信息,节点B给每个SR节点即节点A1、节点A2和节点A3及节点B自身分配SID;First, through the automatic establishment of the DCN management channel, Node B learns the Router IDs and management loopback IP addresses of all SR nodes, namely Node A1, Node A2, and Node A3; and according to the pre-planned or configured SR ID information, Node B gives each Each SR node, namely node A1, node A2, node A3 and node B itself allocates SIDs;
接着,节点B通过DCN通道,分别向网络中的每个SR节点发送支持SR SID分配能力的通告;Next, Node B sends a notification that supports SR SID allocation capability to each SR node in the network through the DCN channel;
之后,节点B通过DCN管理通道,按照图2所示的SID分配单播报文数据帧封装格式,将为网络中每个SR节点所分配的SID等信息,以单播方式,分别发送给每个SR节点即节点A1、节点A2及节点A3;Afterwards, Node B allocates the unicast packet data frame encapsulation format according to the SID shown in Figure 2 through the DCN management channel, and sends the SID and other information allocated to each SR node in the network to each SR node in a unicast manner. The SR nodes are node A1, node A2 and node A3;
当SR节点即节点A1、节点A2及节点A3接收到节点B发送的SID分配通告报文后,保存本节点所分配SID信息;When the SR nodes, namely node A1, node A2 and node A3, receive the SID allocation notification message sent by node B, save the SID information allocated by this node;
当SR节点即节点A1、节点A2及节点A3接收到的本节点SID后,利用SR IGP进程将本地的Router ID和SID通过OSPF扩展prefix TLV中携带的Prefix SID sub-tlv格式或ISISSID Sub-TLV格式中新增的SID Allocation TLV字段进行组播通告,由此,业务拓扑经由组播地址获取到网络节点的拓扑信息;After the SR nodes, namely node A1, node A2 and node A3, receive the SID of the local node, use the SR IGP process to extend the local Router ID and SID through OSPF to the prefix SID sub-tlv format carried in the prefix TLV or ISISSID Sub-TLV The newly added SID Allocation TLV field in the format performs multicast announcement, whereby the service topology obtains the topology information of the network node via the multicast address;
之后,每个SR节点即节点A1、节点A2和节点A3按照SPF算法分别计算出一条可到达节点B最优路径,自动建立SR业务工作通道;默认情况下,各SR节点即节点A1、节点A2和节点A3至节点B的最短路径计算以节点B节点的SID为目的地址进行计算。After that, each SR node, namely node A1, node A2 and node A3, respectively calculates an optimal path that can reach node B according to the SPF algorithm, and automatically establishes the SR service working channel; by default, each SR node is node A1, node A2 And the shortest path calculation from node A3 to node B is calculated with the SID of node B as the destination address.
这样,当有报文P需要通过节点B转发到外部时,给该报文P默认打上一层到节点B的最短路径的SID报文头,封装头部以Label堆栈形式将默认封装节点B的SID表示报文一定要经过节点B往外转发。而具体在报文转发流程中,各SR节点的转发条目经由SID的最短路径接口映射得出即可。In this way, when there is a packet P that needs to be forwarded to the outside through node B, the SID packet header of the shortest path to node B is added to the packet P by default. The SID indicates that the packet must be forwarded through Node B. Specifically, in the message forwarding process, the forwarding entry of each SR node can be obtained by mapping the shortest path interface of the SID.
图7为本发明IP RAN网络转发示意图,当IP RAN网络内有节点添加时,利用本发明的SID分配方法,无需任何配置自动即可实现IP RAN网络节点的即插即用功能,图8为本发明添加SR节点的实施例的添加转发示意图,如图8所示,假设节点A7为如图7所示网络中新增加的一个SR节点,节点A7接入后通道的自动建立包括:Fig. 7 is a schematic diagram of IP RAN network forwarding according to the present invention. When a node is added in the IP RAN network, the plug-and-play function of IP RAN network nodes can be automatically realized without any configuration by using the SID allocation method of the present invention. A schematic diagram of adding and forwarding according to the embodiment of adding an SR node according to the present invention is shown in FIG. 8 . Assume that node A7 is a newly added SR node in the network as shown in FIG. 7 , and the automatic establishment of the channel after the access of node A7 includes:
节点A7设备上电启动时,默认加载DCN自动管理通道建立所需的配置及默认SRIGP进程,在DCN管理通道建立基础上将会产生的节点A7的Router ID。When the device of node A7 is powered on and started, the configuration required for establishing the DCN automatic management channel and the default SRIGP process are loaded by default, and the Router ID of node A7 will be generated based on the establishment of the DCN management channel.
作为SR管理节点的节点B根据DCN自通通告的Router ID感知到节点A7的存在后,通过本发明图1所示的步骤102中的SID Allocation TLV字段,给节点A7的Router ID分配一个SID,且在SID Allocation TLV字段中还携带有图7所示网络中原有的SID信息(即节点A1-节点A7及节点B的SID信息)。该SID Allocation TLV字段通过如图3的OSP IP报文字段以10型LSA报文携带,或者,以如图2所示的DCN通道以太报文中的IP报文字段携带的扩展方式通告给各SR节点即节点A1-节点A7。After the Node B, which is the SR management node, perceives the existence of the node A7 according to the Router ID advertised by the DCN, it allocates a SID to the Router ID of the node A7 through the SID Allocation TLV field in
各SR节点即节点A1-节点A7接收到扩展方式通告消息后,根据来自节点B的信息更新SID信息和Router ID的映射关系即更新SR转发表,主要为在节点A1-节点A6上增加一条对于节点A7的SR转发,如图8中加粗斜体字所示的A3\A1的转发条目,节点A7上存储所有SR转发条目。SR转发表的形成为各SR节点接收到Router ID及SID信息的映射关系后,通过SRIGP协议发布自身本地的SID信息,各SR节点依据接收到的SR IGP拓扑信息形成SR转发表。After each SR node, that is, node A1-node A7, receives the extension mode announcement message, it updates the mapping relationship between the SID information and the Router ID according to the information from node B, that is, the SR forwarding table is updated. The SR forwarding of the node A7 is the forwarding entry of A3\A1 shown in bold italics in FIG. 8 , and all the SR forwarding entries are stored on the node A7. The SR forwarding table is formed as each SR node publishes its own local SID information through the SRIGP protocol after receiving the mapping relationship between Router ID and SID information, and each SR node forms an SR forwarding table according to the received SR IGP topology information.
这样,在有报文发送到节点B时,对于最短路径需要经过节点A7的转发,节点A7查找本地到节点B的SID的下一跳,对如图8中节点A7中的SR转发表进行查找,映射出int2接口。In this way, when a message is sent to node B, the shortest path needs to be forwarded by node A7, node A7 searches for the next hop of the SID from the local to node B, and searches the SR forwarding table in node A7 as shown in Figure 8. , which maps out the int2 interface.
当IP RAN网络内有节点删除时,如图9所示,假设图7所示的预案IPRAN网络中的节点A3失效,需要删除,则包括:When a node is deleted in the IP RAN network, as shown in Figure 9, it is assumed that the node A3 in the IPRAN network of the plan shown in Figure 7 fails and needs to be deleted, including:
管理节点B在感知到节点A3失效后,撤销给节点A3分配的SID信息,且洪泛给其他各SR节点即节点A1、节点A2,及节点A4~节点A6;After sensing the failure of node A3, management node B revokes the SID information allocated to node A3, and floods it to other SR nodes, namely node A1, node A2, and node A4 to node A6;
各SR节点即节点A1、节点A2,及节点A4~节点A6接收到该撤销信息后,经过SPF算法重新计算,删除到节点A3的SR转发条目,如图9中的粗黑斜线删除的条目;且重新计算出自身到节点B的最短路径,比如节点A1,重新计算出到节点B的最短路径为经过A4\A5\A6可达。After each SR node, that is, node A1, node A2, and node A4 to node A6, after receiving the revocation information, after recalculation by the SPF algorithm, the SR forwarding entry to node A3 is deleted, such as the entry deleted by the bold black slash in Figure 9. ; and recalculate the shortest path from itself to node B, such as node A1, recalculate the shortest path to node B to be reachable through A4\A5\A6.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred examples of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (19)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410484251.1A CN105450437B (en) | 2014-09-19 | 2014-09-19 | A method of allocating SID and SR node |
PCT/CN2014/091800 WO2015131560A1 (en) | 2014-09-19 | 2014-11-20 | Segment routing identifier allocation method and segment routing node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410484251.1A CN105450437B (en) | 2014-09-19 | 2014-09-19 | A method of allocating SID and SR node |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105450437A CN105450437A (en) | 2016-03-30 |
CN105450437B true CN105450437B (en) | 2020-03-06 |
Family
ID=54054442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410484251.1A Active CN105450437B (en) | 2014-09-19 | 2014-09-19 | A method of allocating SID and SR node |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105450437B (en) |
WO (1) | WO2015131560A1 (en) |
Families Citing this family (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107666438B (en) * | 2016-07-27 | 2021-10-22 | 中兴通讯股份有限公司 | Message forwarding method and device |
CN107968752B (en) * | 2016-10-20 | 2020-07-07 | 新华三技术有限公司 | SID acquisition method and device |
CN108023815B (en) * | 2016-11-03 | 2020-10-30 | 中兴通讯股份有限公司 | Information transmission method, device and system |
CN108259341B (en) * | 2017-12-06 | 2020-12-29 | 新华三技术有限公司 | Prefix label distribution method and SDN controller |
CN110300061A (en) * | 2018-03-23 | 2019-10-01 | 中兴通讯股份有限公司 | A kind of method, equipment and storage medium for noticing binding information |
CN113507417B (en) | 2018-10-27 | 2023-05-09 | 华为技术有限公司 | Message processing method, related equipment and computer storage medium |
CN109347740B (en) * | 2018-11-19 | 2022-03-01 | 新华三技术有限公司 | Message forwarding method and device |
CN110233765B (en) * | 2019-06-23 | 2022-08-12 | 何梓菁 | Low-delay network slicing method and equipment |
CN110266587B (en) * | 2019-08-14 | 2019-12-13 | 华为技术有限公司 | Method and device for processing link state information |
CN112511427B (en) | 2020-01-14 | 2024-05-07 | 中兴通讯股份有限公司 | Segment routing service processing method, device, routing equipment and storage medium |
CN113206787B (en) * | 2020-01-31 | 2022-11-15 | 中国移动通信有限公司研究院 | Method and device for processing segment identification |
CN117459443A (en) * | 2020-02-21 | 2024-01-26 | 华为技术有限公司 | A method, device and system for sending messages |
CN113381932B (en) * | 2020-03-09 | 2022-12-27 | 华为技术有限公司 | Method and network equipment for generating segment identifier SID |
CN113382452B (en) * | 2020-03-09 | 2023-04-07 | 中国移动通信有限公司研究院 | Path establishing method, data transmission method, device, network node and storage medium |
CN113438161B (en) * | 2020-03-23 | 2022-10-04 | 华为技术有限公司 | Method and network device for generating segment identification SID |
CN115987866A (en) * | 2020-05-26 | 2023-04-18 | 华为技术有限公司 | A method, device and storage medium for processing notification information |
CN113765789B (en) * | 2020-06-04 | 2025-01-28 | 中兴通讯股份有限公司 | Information processing method, node and computer readable storage medium |
CN111865784B (en) * | 2020-06-17 | 2022-06-07 | 烽火通信科技股份有限公司 | Route visualization method and system of SR network |
CN114006858A (en) * | 2020-07-13 | 2022-02-01 | 中国移动通信有限公司研究院 | IPv6 information discovery method, device, network node and storage medium |
CN114531395B (en) * | 2020-11-23 | 2023-06-16 | 华为技术有限公司 | Method, device and system for advertising processing capability of network device |
CN112671652B (en) * | 2020-11-26 | 2022-08-30 | 新华三技术有限公司 | Message forwarding method and device |
CN113507412B (en) * | 2021-07-08 | 2022-04-19 | 中国人民解放军国防科技大学 | SRv6 router progressive deployment method, system and storage medium in network interconnection |
CN113411256B (en) * | 2021-07-30 | 2021-12-21 | 广东省新一代通信与网络创新研究院 | Service update method, device and segment routing network programming system |
CN113691451B (en) * | 2021-09-22 | 2022-08-19 | 新华三技术有限公司 | Segment identifier determination method and device |
CN113992475B (en) * | 2021-09-23 | 2023-12-26 | 新华三信息安全技术有限公司 | Tunnel establishment method and device |
CN115567434B (en) * | 2022-09-29 | 2024-07-23 | 新华三信息技术有限公司 | Data message forwarding method, device and routing equipment |
CN116208523B (en) * | 2023-02-07 | 2024-09-03 | 重庆奥普泰通信技术有限公司 | BFD-based SRV6 TE tunnel fault detection method and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255807A (en) * | 2011-07-07 | 2011-11-23 | 浙江大学 | Multipath segmental routing method based on multihop network with master-slave structure |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9369371B2 (en) * | 2012-10-05 | 2016-06-14 | Cisco Technologies, Inc. | Method and system for path monitoring using segment routing |
US9049233B2 (en) * | 2012-10-05 | 2015-06-02 | Cisco Technology, Inc. | MPLS segment-routing |
US9559954B2 (en) * | 2013-03-11 | 2017-01-31 | Cisco Technology, Inc. | Indexed segment ID |
US9537718B2 (en) * | 2013-03-15 | 2017-01-03 | Cisco Technology, Inc. | Segment routing over label distribution protocol |
-
2014
- 2014-09-19 CN CN201410484251.1A patent/CN105450437B/en active Active
- 2014-11-20 WO PCT/CN2014/091800 patent/WO2015131560A1/en active Application Filing
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255807A (en) * | 2011-07-07 | 2011-11-23 | 浙江大学 | Multipath segmental routing method based on multihop network with master-slave structure |
Non-Patent Citations (2)
Title |
---|
Considerations for Information Services and Operator Services Using SIP;J. Haluska等;《IETF》;20110815;全文 * |
Segment Routing Architecture;C. Filsfils, Ed.等;《IETF》;20140703;全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2015131560A1 (en) | 2015-09-11 |
CN105450437A (en) | 2016-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105450437B (en) | A method of allocating SID and SR node | |
US8369335B2 (en) | Method and system for extending routing domain to non-routing end stations | |
US10581733B2 (en) | Methods and devices for constructing label and forwarding label packet | |
WO2018006671A1 (en) | Message sending method and apparatus, network architecture, and computer storage medium | |
CN106656781B (en) | Method, device and system for message transmission | |
CN105577502B (en) | Service transmission method and device | |
CN107968750B (en) | Message transmission method, device and node | |
US10771380B2 (en) | Fast control path and data path convergence in layer 2 overlay networks | |
US20160065503A1 (en) | Methods, systems, and computer readable media for virtual fabric routing | |
US8891536B2 (en) | Layer-3 services for united router farm | |
CN106165322B (en) | Proxy for routing protocols to redundant controllers | |
CN109660442B (en) | Method and device for multicast replication in Overlay network | |
EP3846409A1 (en) | Offset label for aggregating multicasts from multiple virtual private networks on a single multicast distribution tree | |
US11240063B2 (en) | Methods, nodes and computer readable media for tunnel establishment per slice | |
CN104052666A (en) | Method and device for realizing host routing reachability | |
US10708185B2 (en) | Dynamic next-hop selection for routes in a network fabric | |
CN104811377B (en) | Generate the method and the network equipment of media access control table | |
WO2011150835A1 (en) | Method for requesting to obtain route information and corresponding route device thereof | |
WO2018177273A1 (en) | Method and apparatus for processing based on bier information | |
CN110620715B (en) | Virtual extended local area network communication method, tunnel endpoint and controller | |
CN117749687A (en) | Bit index routing table establishing method, network equipment and storage medium | |
CN105515999B (en) | Quick convergence method and device for end system address distribution information protocol | |
WO2023173989A1 (en) | Forwarding table generation method and apparatus, and storage medium and electronic apparatus | |
CN117749700A (en) | Corresponding relation acquisition method, parameter notification method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |