CN115987883A - Forwarding path generation method, SDN controller, slicing network system and storage medium - Google Patents
Forwarding path generation method, SDN controller, slicing network system and storage medium Download PDFInfo
- Publication number
- CN115987883A CN115987883A CN202211684737.0A CN202211684737A CN115987883A CN 115987883 A CN115987883 A CN 115987883A CN 202211684737 A CN202211684737 A CN 202211684737A CN 115987883 A CN115987883 A CN 115987883A
- Authority
- CN
- China
- Prior art keywords
- path
- forwarding
- target
- network
- slice network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及切片网络领域,特别涉及一种转发路径生成方法、SDN控制器、切片网络系统及计算机可读存储介质。The present invention relates to the field of slicing networks, in particular to a method for generating a forwarding path, an SDN controller, a slicing network system and a computer-readable storage medium.
背景技术Background technique
为提升网络资源的利用效率,切片网络应运而生。常见的切片网络通常可利用SDN控制器(Software Defined Network,软件定义网络)在同一组转发设备中部署多个相互隔离的业务切片网络,其中SDN控制器用于管控各业务切片网络的信息,而转发设备用于承载各业务切片网络实际的业务流量。In order to improve the utilization efficiency of network resources, network slices emerge as the times require. Common slicing networks can usually use SDN controllers (Software Defined Networks) to deploy multiple isolated service slicing networks in the same group of forwarding devices. The device is used to bear the actual service traffic of each service slice network.
相关技术中,由于不同的网络切片之间是严格隔离的,当某一个切片网络的某些链路发生故障时,并且SDN控制器无法在发生故障的切片网络中为故障路径生成替换转发路径时,故障路径对应的业务流量就会中断。假若要强行利用其它业务网络切片中的路径传输上述故障路径的流量,则又会破会网络切片间的隔离态势,并挤占其它业务网络切片中的带宽资源。In related technologies, due to the strict isolation between different network slices, when some links of a slice network fail, and the SDN controller cannot generate a replacement forwarding path for the faulty path in the failed slice network , the service traffic corresponding to the faulty path will be interrupted. If it is necessary to forcibly use the paths in other service network slices to transmit the traffic of the above-mentioned faulty paths, it will break the isolation situation between network slices and occupy bandwidth resources in other service network slices.
因此,如何为业务切片网络中存在故障的故障路径生成替换转发路径,是本领域技术人员亟需解决的技术问题。Therefore, how to generate a replacement forwarding path for a faulty path in a service slicing network is a technical problem urgently needed to be solved by those skilled in the art.
发明内容Contents of the invention
本发明的目的是提供一种转发路径生成方法、SDN控制器、切片网络系统及计算机可读存储介质,可额外增加专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量的逃生切片网络,以避免故障路径的业务流量中断或是挤占其它业务切片网络带宽的情况。The purpose of the present invention is to provide a forwarding path generation method, an SDN controller, a slice network system, and a computer-readable storage medium, which can additionally increase the escape of business traffic corresponding to a faulty and unrecoverable path in the service slice network Slicing the network to avoid interruption of service traffic on the faulty path or crowding out the bandwidth of other service slicing networks.
为解决上述技术问题,本发明提供一种转发路径生成方法,应用于SDN控制器,所述方法包括:In order to solve the above technical problems, the present invention provides a method for generating a forwarding path, which is applied to an SDN controller, and the method includes:
当检测到目标业务切片网络中出现故障的目标路径时,确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径;When detecting a faulty target path in the target service slicing network, determine whether an alternative forwarding path corresponding to the target path can be generated in the target service slicing network;
当确定所述目标业务切片网络中不可生成所述替换转发路径时,在逃生切片网络中生成所述替换转发路径;When it is determined that the replacement forwarding path cannot be generated in the target service slice network, generate the replacement forwarding path in the escape slice network;
将所述逃生切片网络中生成的替换转发路径下发至所述目标路径对应的目标转发设备,以使所述目标转发设备利用接收到的替换转发路径更新所述目标路径,并利用更新后的目标路径进行业务数据传输。Sending the replacement forwarding path generated in the escape slice network to the target forwarding device corresponding to the target path, so that the target forwarding device uses the received replacement forwarding path to update the target path, and uses the updated The target path is used for business data transmission.
优选地,在确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径之后,还包括:Preferably, after determining whether an alternative forwarding path corresponding to the target path can be generated in the target service slicing network, the method further includes:
当确定所述目标业务切片网络中可生成所述替换转发路径时,将所述目标业务切片网络中生成的替换转发路径下发至所述目标转发设备。When it is determined that the replacement forwarding path can be generated in the target service slicing network, deliver the replacement forwarding path generated in the target service slicing network to the target forwarding device.
优选地,在检测到目标业务切片网络中出现故障的目标路径之前,还包括:Preferably, before detecting a faulty target path in the target service slicing network, the method further includes:
接收转发设备在检测到故障链路时发送的与所述故障链路对应的故障链路信息;receiving the faulty link information corresponding to the faulty link sent by the forwarding device when the faulty link is detected;
确定所述故障链路信息对应的目标业务切片网络,并将所述目标业务切片网络中经过所述故障链路的所述目标路径标记为已故障;determining the target service slice network corresponding to the faulty link information, and marking the target path passing through the faulty link in the target service slice network as failed;
相应的,所述确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径,包括:Correspondingly, the determining whether an alternative forwarding path corresponding to the target path can be generated in the target service slicing network includes:
利用所述故障链路信息更新所述目标业务切片网络的拓扑信息,并根据更新后的拓扑信息确定是否可生成所述替换转发路径。Utilizing the faulty link information to update the topology information of the target service slice network, and determining whether the alternative forwarding path can be generated according to the updated topology information.
优选地,所述接收转发设备在检测到故障链路时发送的与所述故障链路对应的故障链路信息,包括:Preferably, the faulty link information corresponding to the faulty link sent by the receiving and forwarding device when a faulty link is detected includes:
通过BGP-LS协议接收所述转发设备发送的所述故障链路信息。Receive the faulty link information sent by the forwarding device through the BGP-LS protocol.
优选地,在检测到目标业务切片网络中出现故障的目标路径之前,还包括:Preferably, before detecting a faulty target path in the target service slicing network, the method further includes:
将所有业务切片网络中的链路标记为第一链路,并为各所述第一链路设置第一代价值,以及将所述逃生切片网络中的链路标记为第二链路,并为各所述第二链路设置第二代价值;各所述第二代价值均小于各所述第一代价值;Marking links in all service slice networks as first links, setting a first generation value for each of the first links, and marking links in the escape slice network as second links, and Setting a second generation value for each of the second links; each of the second generation values is smaller than each of the first generation values;
将所述第一链路的信息及对应的第一代价值、第二链路的信息及对应的第二代价值部署至各转发设备,以使各所述转发设备在检测到将其作为入节点的路径发生故障且确定所述SDN控制器无法下发所述路径对应的第一替换转发路径时,依照最小代价原则并根据所述第一代价值和所述第二代价值在所述第一链路和第二链路中确定所述路径对应的第二替换转发路径,并利用所述第二替换转发路径进行业务数据传输。Deploying the information of the first link and the corresponding first generation value, the information of the second link and the corresponding second generation value to each forwarding device, so that each forwarding device detects that it is used as an input When the path of the node fails and it is determined that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path, according to the minimum cost principle and according to the first generation value and the second generation value in the second A second alternative forwarding path corresponding to the path is determined in the first link and the second link, and the second alternative forwarding path is used to transmit service data.
优选地,所述转发设备检测将其作为入节点的路径发生故障,包括:Preferably, the forwarding device detects that the path using it as an ingress node fails, including:
所述转发设备通过IGP协议检测所述路径是否故障。The forwarding device detects whether the path is faulty through the IGP protocol.
优选地,所述确定所述SDN控制器无法下发所述路径对应的第一替换转发路径,包括:Preferably, the determining that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path includes:
所述转发设备在根据PCEP协议确定所述SDN控制器未处于活动状态时确定所述SDN控制器无法下发所述路径对应的第一替换转发路径。When the forwarding device determines that the SDN controller is not in an active state according to the PCEP protocol, it determines that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path.
本发明还提供一种转发路径生成装置,应用于SDN控制器,所述装置包括:The present invention also provides a device for generating a forwarding path, which is applied to an SDN controller, and the device includes:
评估模块,用于当检测到目标业务切片网络中出现故障的目标路径时,确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径;An evaluation module, configured to determine whether a replacement forwarding path corresponding to the target path can be generated in the target service slicing network when a faulty target path is detected in the target service slicing network;
第一路径生成模块,用于当确定所述目标业务切片网络中不可生成所述替换转发路径时,在逃生切片网络中生成所述替换转发路径;A first path generating module, configured to generate the alternate forwarding path in the escape slice network when it is determined that the alternate forwarding path cannot be generated in the target service slice network;
路径下发模块,用于将所述逃生切片网络中生成的替换转发路径下发至所述目标路径对应的目标转发设备,以使所述目标转发设备利用接收到的替换转发路径更新所述目标路径,并利用更新后的目标路径进行业务数据传输。A path sending module, configured to send the replacement forwarding path generated in the escape slice network to the target forwarding device corresponding to the target path, so that the target forwarding device updates the target with the received replacement forwarding path path, and use the updated target path for business data transmission.
本发明还提供一种SDN控制器,包括:The present invention also provides an SDN controller, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上所述的转发路径生成方法。A processor, configured to implement the above-mentioned method for generating a forwarding path when executing the computer program.
本发明还提供一种切片网络系统,包括:SDN控制器及转发设备,其中,The present invention also provides a slicing network system, including: an SDN controller and a forwarding device, wherein,
所述SDN控制器,用于当检测到目标业务切片网络中出现故障的目标路径时,确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径;当确定所述目标业务切片网络中不可生成所述替换转发路径时,在逃生切片网络中生成所述替换转发路径;将所述逃生切片网络中生成的替换转发路径下发至所述目标路径对应的目标转发设备;The SDN controller is configured to determine whether a replacement forwarding path corresponding to the target path can be generated in the target service slicing network when detecting a faulty target path in the target service slicing network; When the replacement forwarding path cannot be generated in the slice network, generate the replacement forwarding path in the escape slice network; send the replace forward path generated in the escape slice network to the target forwarding device corresponding to the target path;
所述转发设备,用于利用接收到的替换转发路径更新所述目标路径,并利用更新后的目标路径进行业务数据传输。The forwarding device is configured to use the received replacement forwarding path to update the target path, and use the updated target path to transmit service data.
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现如上所述的转发路径生成方法。The present invention also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are loaded and executed by a processor, the method for generating a forwarding path as described above is realized .
本发明提供一种转发路径生成方法,应用于SDN控制器,所述方法包括:当检测到目标业务切片网络中出现故障的目标路径时,确定所述目标业务切片网络中是否可生成所述目标路径对应的替换转发路径;当确定所述目标业务切片网络中不可生成所述替换转发路径时,在逃生切片网络中生成所述替换转发路径;将所述逃生切片网络中生成的替换转发路径下发至所述目标路径对应的目标转发设备,以使所述目标转发设备利用接收到的替换转发路径更新所述目标路径,并利用更新后的目标路径进行业务数据传输。The present invention provides a method for generating a forwarding path, which is applied to an SDN controller. The method includes: when detecting a faulty target path in the target service slice network, determining whether the target service slice network can generate the target The replacement forwarding path corresponding to the path; when it is determined that the replacement forwarding path cannot be generated in the target service slice network, the replacement forwarding path is generated in the escape slice network; the replacement forwarding path generated in the escape slice network is sending to the target forwarding device corresponding to the target path, so that the target forwarding device updates the target path by using the received replacement forwarding path, and uses the updated target path to transmit service data.
可见,在本发明中,SDN控制器在确定目标业务切片网络中出现了故障的目标路径时,首先可确定目标业务切片网络中是否能够生成目标路径对应的替换转发路径,若确定目标业务切片网络中不可生成上述替换转发路径时,SDN控制器可进一步在逃生切片网络中生成上述替换转发路径,其中逃生切片网络专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量;当在逃生切片网络中完成了对上述替换转发路径的生成后,SDN控制器可将该替换转发路径下发至目标路径对应的目标转发设备,以使目标转发设备利用接收到的替换转发路径更新目标路径,并利用更新后的目标路径进行业务数据传输。即简单来讲,本发明可额外增加专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量的逃生切片网络,以避免故障路径的业务流量中断或是挤占其它业务切片网络带宽的情况,进而可有效保障业务正常运转。本发明还提供一种SDN控制器、切片网络系统及计算机可读存储介质,具有上述有益效果。It can be seen that in the present invention, when the SDN controller determines the target path that has a fault in the target service slice network, it can first determine whether an alternative forwarding path corresponding to the target path can be generated in the target service slice network. When the above replacement forwarding path cannot be generated in the SDN controller, the SDN controller can further generate the above replacement forwarding path in the escape slice network, wherein the escape slice network is dedicated to carrying the service traffic corresponding to the faulty and unrecoverable path in the service slice network; After the above replacement forwarding path is generated in the escape slice network, the SDN controller can deliver the replacement forwarding path to the target forwarding device corresponding to the target path, so that the target forwarding device can update the target path with the received replacement forwarding path , and use the updated target path for business data transmission. That is to say, the present invention can additionally add an escape slice network dedicated to carrying service traffic corresponding to a faulty and unrecoverable path in the service slice network, so as to avoid interruption of service traffic on the faulty path or crowding out the bandwidth of other service slice networks. In this way, it can effectively guarantee the normal operation of the business. The present invention also provides an SDN controller, a slicing network system and a computer-readable storage medium, which have the above beneficial effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例所提供的一种切片网络系统的结构示意图;FIG. 1 is a schematic structural diagram of a network slice system provided by an embodiment of the present invention;
图2为本发明实施例所提供的第一种转发路径生成方法的流程图;FIG. 2 is a flow chart of the first method for generating a forwarding path provided by an embodiment of the present invention;
图3为本发明实施例所提供的第二种转发路径生成方法的流程图;FIG. 3 is a flowchart of a second forwarding path generation method provided by an embodiment of the present invention;
图4为本发明实施例所提供的第三种转发路径生成方法的流程图;FIG. 4 is a flowchart of a third forwarding path generation method provided by an embodiment of the present invention;
图5为本发明实施例所提供的SDN控制器及转发设备的示意图;FIG. 5 is a schematic diagram of an SDN controller and a forwarding device provided by an embodiment of the present invention;
图6为本发明实施例所提供的另一种转发路径生成方法的流程图;FIG. 6 is a flow chart of another method for generating a forwarding path provided by an embodiment of the present invention;
图7为本发明实施例所提供的一种SDN控制器的结构框图;FIG. 7 is a structural block diagram of an SDN controller provided by an embodiment of the present invention;
图8为本发明实施例所提供的一种切片网络系统的结构框图。FIG. 8 is a structural block diagram of a network slice system provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
相关技术中,由于不同的网络切片之间是严格隔离的,当某一个切片网络的某些链路发生故障时,并且SDN控制器无法在发生故障的切片网络中为故障路径生成替换转发路径时,故障路径对应的业务流量就会中断。假若要强行利用其它业务网络切片中的路径传输上述故障路径的流量,则又会破会网络切片间的隔离态势,并挤占其它业务网络切片中的带宽资源。有鉴于此,本发明可提供一种转发路径生成方法,可额外增加专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量的逃生切片网络,以避免故障路径的业务流量中断或是挤占其它业务切片网络带宽的情况。In related technologies, due to the strict isolation between different network slices, when some links of a slice network fail, and the SDN controller cannot generate a replacement forwarding path for the faulty path in the failed slice network , the service traffic corresponding to the faulty path will be interrupted. If it is necessary to forcibly use the paths in other service network slices to transmit the traffic of the above-mentioned faulty paths, it will break the isolation situation between network slices and occupy bandwidth resources in other service network slices. In view of this, the present invention can provide a forwarding path generation method, which can additionally add an escape slice network dedicated to carrying business traffic corresponding to a faulty and unrecoverable path in the business slice network, so as to avoid interruption of business traffic of the faulty path or It is the case of crowding out the network bandwidth of other service slices.
为便于理解,请参考图1,图1为本发明实施例所提供的一种切片网络系统的结构示意图,其中PE1~PE6表示6台转发设备。SDN控制器可在这6台转发设备上部署切片网络,如图1中部署有三个切片网络,分别为切片1、切片2和逃生切片,其中切片1、切片2均为业务网络切片,而逃生切片网络为本发明实施例所特别增加的、专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量的切片网络。各切片网络中均设置有虚拟转发节点,如切片1部署有节点A2、A3、A4、A5、A6,切片2部署有节点B1、B3、B4、B5、B6,逃生切片部署有节点C1、C2、C3、C4、C5、C6。SDN控制器可将这些虚拟转发节点部署在对应的转发设备上,并在节点间设置链路,例如PE1部署有节点A2和节点C2,PE3部署有节点A3、B3、C3;节点A2与节点A3之间设置有链路,以及节点A3与A6之间设置有链路,以此类推。在部署过程中,转发设备需将网络拓扑上传给SDN控制器;而SDN控制器需依照接收到的网络拓扑生成业务切片、逃生网络切片等切片网络,并将切片信息下发至各个转发设备上,同时也需将传输业务数据所需使用的转发路径的路由信息下发至对应的转发设备上,以使转发设备利用转发路传输业务流量;此外,转发设备也需监测各链路的工作状态,并及时将链路工作状态变化情况上传至SDN控制器,以便SDN控制器及时调整切片网络中各转发路径的路由信息,并将更新后的路由信息下发至对应的转发设备。应当指出的是,路径有一条或多条链路组成,例如从A2经过A3到达A6可形成一条链路,又例如从B1经过B3到达B6可形成一条链路,以此类推。需要说明的是,本发明实施例并不限定转发设备的具体数量,图1仅用作示例,其具体数量可根据实际应用需求进行设定。For ease of understanding, please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of a network slice system provided by an embodiment of the present invention, where PE1 to PE6 represent six forwarding devices. The SDN controller can deploy network slices on these six forwarding devices. As shown in Figure 1, there are three network slices deployed, namely slice 1, slice 2, and escape slice. Slice 1 and slice 2 are business network slices, and escape The slicing network is a slicing network specially added by the embodiment of the present invention, which is dedicated to carrying service traffic corresponding to a faulty and unrecoverable path in the service slicing network. Each slice network is equipped with virtual forwarding nodes. For example, nodes A2, A3, A4, A5, and A6 are deployed in slice 1, nodes B1, B3, B4, B5, and B6 are deployed in slice 2, and nodes C1 and C2 are deployed in the escape slice. , C3, C4, C5, C6. The SDN controller can deploy these virtual forwarding nodes on the corresponding forwarding devices, and set up links between the nodes. For example, PE1 deploys node A2 and node C2, PE3 deploys nodes A3, B3, and C3; node A2 and node A3 There is a link between nodes A3 and A6, and so on. During the deployment process, the forwarding device needs to upload the network topology to the SDN controller; and the SDN controller needs to generate sliced networks such as service slices and escape network slices according to the received network topology, and deliver the slice information to each forwarding device , at the same time, it is also necessary to send the routing information of the forwarding path used to transmit business data to the corresponding forwarding device, so that the forwarding device uses the forwarding path to transmit business traffic; in addition, the forwarding device also needs to monitor the working status of each link , and upload the change of link working status to the SDN controller in time, so that the SDN controller can adjust the routing information of each forwarding path in the slice network in time, and send the updated routing information to the corresponding forwarding device. It should be noted that a path is composed of one or more links, for example, a link can be formed from A2 to A6 via A3, and a link can be formed from B1 to B6 via B3, and so on. It should be noted that the embodiment of the present invention does not limit the specific number of forwarding devices, and FIG. 1 is only used as an example, and the specific number can be set according to actual application requirements.
基于上述对切片网络系统的介绍,下面对本发明实施例所提供的转发路径生成方法进行详细介绍。请参考图2,图2为本发明实施例所提供的第一种转发路径生成方法的流程图,该方法应用于SDN控制器,可以包括:Based on the above introduction to the slicing network system, the method for generating a forwarding path provided by the embodiment of the present invention will be described in detail below. Please refer to FIG. 2. FIG. 2 is a flow chart of the first method for generating a forwarding path provided by an embodiment of the present invention. This method is applied to an SDN controller and may include:
S100、当检测到目标业务切片网络中出现故障的目标路径时,确定目标业务切片网络中是否可生成目标路径对应的替换转发路径。S100. When a faulty target path in the target service slice network is detected, determine whether a replacement forwarding path corresponding to the target path can be generated in the target service slice network.
在本发明实施例中,当目标路径中的任一条链路存在故障时,可判定该路径存在故障,例如对于图1中由A2、A3和A6组成的路径,若A3与A6间的链路发生故障,则可判定该路径存在故障。而SDN控制器需要为存在故障的目标路径生成对应的替换转发路径。可以理解的是,目标路径与替换转发路径设置有相同的入节点和出节点,例如对于故障路径A2、A3、A6,其对应的替换转发路径可以为A2、A4、A5、A6。In the embodiment of the present invention, when any link in the target path is faulty, it can be determined that the path is faulty. For example, for the path composed of A2, A3, and A6 in Figure 1, if the link between A3 and A6 If a fault occurs, it can be determined that the path is faulty. The SDN controller needs to generate a corresponding replacement forwarding path for the faulty target path. It can be understood that the target path and the replacement forwarding path have the same ingress node and egress node. For example, for faulty paths A2, A3, and A6, the corresponding alternative forwarding paths may be A2, A4, A5, and A6.
进一步,链路故障情况可由转发设备进行检测及上报,例如对于部署有虚拟转发节点A3的转发设备PE3在检测到A3与A6间的链路发生故障时,可将对应的故障链路信息上报至SDN控制器。进一步,在接收到链路故障信息时,SDN控制器将首先确定该链路故障信息是否对应的某个目标业务切片网络,若对应则将目标业务切片网络中经过该故障链路的所有目标路径标记为已故障;随后,SDN控制器可利用链路故障信息对该切片网络的拓扑信息进行更新,以确定该切片网络中可用的链路,并利用更新后的拓扑信息确定该切片中剩余可用的链路能否为已故障的目标路径生成替换转发路径。Further, the link failure can be detected and reported by the forwarding device. For example, when the forwarding device PE3 deployed with the virtual forwarding node A3 detects that the link between A3 and A6 fails, it can report the corresponding faulty link information to SDN controller. Further, when receiving link failure information, the SDN controller will first determine whether the link failure information corresponds to a certain target service slice network, and if so, all target paths passing through the faulty link in the target service slice network marked as failed; then, the SDN controller can use the link failure information to update the topology information of the sliced network to determine the available links in the sliced network, and use the updated topology information to determine the remaining available links in the sliced network. Can the link of the link generate an alternate forwarding path for the failed destination path.
基于此,在一种可能的情况中,在SDN控制器当检测到目标业务切片网络中出现故障的目标路径之前,还可以包括:Based on this, in a possible situation, before the SDN controller detects a faulty target path in the target service slicing network, it may further include:
S101:接收转发设备在检测到故障链路时发送的与故障链路对应的故障链路信息;S101: Receive the faulty link information corresponding to the faulty link sent by the forwarding device when the faulty link is detected;
S102:确定故障链路信息对应的目标业务切片网络,并将目标业务切片网络中经过故障链路的目标路径标记为已故障;S102: Determine the target service slice network corresponding to the faulty link information, and mark the target path passing through the faulty link in the target service slice network as failed;
相应的,确定目标业务切片网络中是否可生成目标路径对应的替换转发路径,可以包括:Correspondingly, determining whether an alternative forwarding path corresponding to the target path can be generated in the target service slicing network may include:
S103:利用故障链路信息更新目标业务切片网络的拓扑信息,并根据更新后的拓扑信息确定是否可生成替换转发路径。S103: Utilize the faulty link information to update the topology information of the target service slice network, and determine whether an alternative forwarding path can be generated according to the updated topology information.
为便于理解S101~S103与其他步骤间的关系,请参考图3,图3为本发明实施例所提供的第二种转发路径生成方法的流程图。In order to facilitate understanding of the relationship between S101-S103 and other steps, please refer to FIG. 3, which is a flowchart of a second forwarding path generation method provided by an embodiment of the present invention.
进一步,SDN控制器设备可通过BGP-LS协议(Border Gateway Protocol Link-state,携带扩展链路状态的边界网关协议)接受转发设备发送的故障链路信息。需要说明的是,本发明实施例并不限定故障链路信息的具体形式,也不限定各切片网络拓扑信息的具体形式,可参考切片网络的相关技术。Further, the SDN controller device can accept the faulty link information sent by the forwarding device through the BGP-LS protocol (Border Gateway Protocol Link-state, a border gateway protocol carrying an extended link state). It should be noted that the embodiment of the present invention does not limit the specific form of the faulty link information, nor does it limit the specific form of the topology information of each slice network, and reference may be made to related technologies of the slice network.
S200、当确定目标业务切片网络中不可生成替换转发路径时,在逃生切片网络中生成替换转发路径。S200. When it is determined that no alternative forwarding path can be generated in the target service slice network, generate an alternative forwarding path in the escape slice network.
当确定目标业务切片网络中剩余的可用链路无法为目标路径生成对应的替换转发路径时,本发明实施例中的SDN控制器可在逃生切片网络中生成上述替换转发路径。其中,逃生切片网络是专用于承载业务切片网络中存在故障且无法恢复的路径对应业务流量的切片网络,其并不会部署任何业务。也正因如此,SDN控制器在确定无法利用目标业务切片网络中剩余的可用链路对该切片网络中的故障路径进行恢复时,可将故障路径对应的业务流量转移至逃生切片网络中,这样便可有效避免业务流量中断或是挤占其它业务切片网络带宽的情况,进而可有效提升业务的稳定性。需要说明的是,作为冗余切片网络,逃生切片网络的部署、管理方式与其他业务切片网络完全相同。当然,为确保逃生切片网络可有效承载各业务切片网络的流量,可在每个转发设备中部署逃生切片网络的虚拟转发节点,并可确保逃生切片网络中各虚拟转发节点均可直接或间接地与其他虚拟转发节点通信。When it is determined that the remaining available links in the target service slice network cannot generate a corresponding alternative forwarding path for the target path, the SDN controller in the embodiment of the present invention may generate the foregoing alternative forwarding path in the escape slice network. Among them, the escape slice network is a slice network dedicated to carrying service traffic corresponding to a faulty and unrecoverable path in the service slice network, and does not deploy any services. Because of this, when the SDN controller determines that the faulty path in the slice network cannot be restored by using the remaining available links in the target service slice network, it can transfer the service traffic corresponding to the faulty path to the escape slice network, so that It can effectively avoid interruption of business traffic or crowding out the network bandwidth of other business slices, thereby effectively improving business stability. It should be noted that, as a redundant slice network, the deployment and management methods of the escape slice network are exactly the same as those of other service slice networks. Of course, in order to ensure that the escape slice network can effectively carry the traffic of each service slice network, a virtual forwarding node of the escape slice network can be deployed in each forwarding device, and ensure that each virtual forwarding node in the escape slice network can directly or indirectly Communicate with other virtual forwarding nodes.
进一步,可以理解的是,SDN控制器同样基于逃生切片网络的拓扑信息来生成上述替换转发路径。本发明实施例并不限定SDN控制器利用拓扑信息生成转发路径的具体方式,例如可采用多约束算法进行路径生成,可参考SDN控制器的相关技术。Further, it can be understood that the SDN controller also generates the above alternative forwarding path based on the topology information of the escape slice network. The embodiment of the present invention does not limit the specific manner in which the SDN controller uses topology information to generate a forwarding path. For example, a multi-constraint algorithm may be used for path generation, and reference may be made to related technologies of the SDN controller.
S300、将逃生切片网络中生成的替换转发路径下发至目标路径对应的目标转发设备,以使目标转发设备利用接收到的替换转发路径更新目标路径,并利用更新后的目标路径进行业务数据传输。S300. Send the replacement forwarding path generated in the escape slice network to the target forwarding device corresponding to the target path, so that the target forwarding device uses the received replacement forwarding path to update the target path, and uses the updated target path to transmit service data .
在完成替换转发路径生成之后,SDN控制器将替换转发路径下发至与故障的目标路径对应的目标转发设备,以使目标转发设备利用替换转发路径更新目标路径,并利用更新后的目标路径继续进行业务流量传输。具体的,目标转发设备可基于替换转发路径生成新的路由信息,并利用路由信息更新目标路径的路由信息,以根据更新后的路由信息进行业务流量传输,具体可参考切片网络的相关技术。After the replacement forwarding path is generated, the SDN controller sends the replacement forwarding path to the target forwarding device corresponding to the failed target path, so that the target forwarding device uses the replacement forwarding path to update the target path, and uses the updated target path to continue Carry out business traffic transmission. Specifically, the target forwarding device can generate new routing information based on the replacement forwarding path, and use the routing information to update the routing information of the target path, so as to transmit service traffic according to the updated routing information. For details, refer to related technologies of the slice network.
当然,若SDN控制器确定目标业务切片网络中剩余的可用链路也可生成与故障的目标路径对应的替换转发路径时,也可优先地将目标业务切片网络中生成的替换转发路径下发至对应的转发设备,以避免对逃生切片网络资源的挤占。Of course, if the SDN controller determines that the remaining available links in the target service slicing network can also generate a replacement forwarding path corresponding to the failed target path, it can also preferentially send the replacement forwarding path generated in the target service slicing network to Corresponding forwarding devices to avoid crowding the network resources of the escape slice.
基于此,在确定目标业务切片网络中是否可生成目标路径对应的替换转发路径之后,还可以包括:Based on this, after determining whether an alternative forwarding path corresponding to the target path can be generated in the target service slicing network, it may also include:
S400、当确定目标业务切片网络中可生成替换转发路径时,将目标业务切片网络中生成的替换转发路径下发至目标转发设备。S400. When it is determined that a replacement forwarding path can be generated in the target service slicing network, deliver the replacement forwarding path generated in the target service slicing network to the target forwarding device.
为便于理解S400与其他步骤间的关系,请参考图3,图3为本发明实施例所提供的第二种转发路径生成方法的流程图。To facilitate understanding of the relationship between S400 and other steps, please refer to FIG. 3 , which is a flowchart of a second forwarding path generation method provided by an embodiment of the present invention.
基于上述实施例,在本发明中,SDN控制器在确定目标业务切片网络中出现了故障的目标路径时,首先可确定目标业务切片网络中是否能够生成目标路径对应的替换转发路径,若确定目标业务切片网络中不可生成上述替换转发路径时,SDN控制器可进一步在逃生切片网络中生成上述替换转发路径,其中逃生切片网络专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量;当在逃生切片网络中完成了对上述替换转发路径的生成后,SDN控制器可将该替换转发路径下发至目标路径对应的目标转发设备,以使目标转发设备利用接收到的替换转发路径更新目标路径,并利用更新后的目标路径进行业务数据传输。即简单来讲,本发明可额外增加专用于承载业务切片网络中存在故障且无法恢复的路径对应的业务流量的逃生切片网络,以避免故障路径的业务流量中断或是挤占其它业务切片网络带宽的情况,进而可有效保障业务正常运转。Based on the above-mentioned embodiments, in the present invention, when the SDN controller determines a faulty target path in the target service slice network, it can first determine whether a replacement forwarding path corresponding to the target path can be generated in the target service slice network. When the above replacement forwarding path cannot be generated in the service slice network, the SDN controller can further generate the above replacement forwarding path in the escape slice network, where the escape slice network is dedicated to bear the business traffic corresponding to the faulty and unrecoverable path in the service slice network ; After the generation of the above-mentioned replacement forwarding path is completed in the escape slice network, the SDN controller can send the replacement forwarding path to the target forwarding device corresponding to the target path, so that the target forwarding device can use the received replacement forwarding path The target path is updated, and the updated target path is used for business data transmission. That is to say, the present invention can additionally add an escape slice network dedicated to carrying service traffic corresponding to a faulty and unrecoverable path in the service slice network, so as to avoid interruption of service traffic on the faulty path or crowding out the bandwidth of other service slice networks. In this way, it can effectively guarantee the normal operation of the business.
基于上述实施例,替换转发路径的生成对于保障业务流量不中断至关重要,然而SDN控制器可能失效,或无法向转发设备下发故障路径对应的替换转发路径,进而将导致故障路径的业务流量中断。因此为防止SDN控制器失效、无法下发替换转发路径导致流量中断的状况发生,在本发明实施例中,上述替换转发路径还可由转发设备自主生成。下面对转发设备自主生成替换转发路径的具体实施过程进行介绍。请参考图4,图4为本发明实施例所提供的第三种转发路径生成方法的流程图,在一种可能的情况中,本方法还可以包括:Based on the above-mentioned embodiments, the generation of alternative forwarding paths is crucial to ensure uninterrupted business traffic. However, the SDN controller may fail, or fail to deliver the alternate forwarding paths corresponding to the faulty path to the forwarding device, which in turn will result in the traffic of the faulty path. interruption. Therefore, in order to prevent the failure of the SDN controller and the inability to issue a replacement forwarding path, resulting in traffic interruption, in the embodiment of the present invention, the above-mentioned replacement forwarding path can also be independently generated by the forwarding device. The specific implementation process of autonomously generating a replacement forwarding path by the forwarding device is introduced below. Please refer to FIG. 4. FIG. 4 is a flowchart of a third forwarding path generation method provided by an embodiment of the present invention. In a possible situation, this method may also include:
S500、将各业务切片网络中的链路标记为第一链路,并为各第一链路设置第一代价值,以及将逃生切片网络中的链路标记为第二链路,并为各第二链路设置第二代价值;各第二代价值均小于各第一代价值。S500. Mark the links in each service slice network as first links, and set the first generation value for each first link, and mark the links in the escape slice network as second links, and set the first generation value for each Second-generation values are set for the second link; each second-generation value is smaller than each first-generation value.
S600、将第一链路的信息及对应的第一代价值、第二链路的信息及对应的第二代价值部署至各转发设备,以使各转发设备在检测到将其作为入节点的路径发生故障且确定SDN控制器无法下发路径对应的第一替换转发路径时,依照最小代价原则并根据第一代价值和第二代价值在第一链路和第二链路中确定路径对应的第二替换转发路径,并利用第二替换转发路径进行业务数据传输。S600. Deploy the information of the first link and the corresponding first-generation value, the information of the second link and the corresponding second-generation value to each forwarding device, so that each forwarding device detects that it is used as an ingress node When a path fails and it is determined that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path, determine the path correspondence between the first link and the second link according to the principle of minimum cost and according to the first generation value and the second generation value The second alternative forwarding path, and use the second alternative forwarding path for service data transmission.
在本发明实施例中,SDN控制器将分别为各业务切片网络中的链路及逃生切片网络中的链路设置第一代价值和第二代价值,并可将这些链路连同对应的代价值下发至各转发设备,以便转发设备基于最小代价(Cost)原则在各链路中确定故障路径对应的替换转发路径。为确保转发设备优先在逃生切片网络中生成替换转发路径,在设置代价值时,可确保逃生切片网络中各链路的第二代价值始终小于业务切片网络中各链路的第一代价值。应当说明的是,本发明实施例并不限定第一代价值、第二代价值的具体数值,可根据实际应用需求设定。进一步,为方便管理,SDN控制器将各业务切片网络中的链路标记为第一链路,以及将逃生切片网络中的链路标记为第二链路,具体标记方式可根据实际应用需求进行选择,例如可通过亲和力属性进行标记。In the embodiment of the present invention, the SDN controller will respectively set the first-generation value and the second-generation value for the links in each service slice network and the link in the escape slice network, and can set these links together with the corresponding generation The value is sent to each forwarding device, so that the forwarding device can determine the replacement forwarding path corresponding to the faulty path in each link based on the minimum cost (Cost) principle. In order to ensure that the forwarding device preferentially generates alternative forwarding paths in the escape slice network, when setting the cost value, it can be ensured that the second-generation value of each link in the escape slice network is always smaller than the first-generation value of each link in the service slice network. It should be noted that the embodiment of the present invention does not limit the specific values of the first generation value and the second generation value, which can be set according to actual application requirements. Further, for the convenience of management, the SDN controller marks the links in each service slice network as the first link, and marks the links in the escape slice network as the second link. The specific marking method can be determined according to actual application requirements. Selection, for example, can be marked by an affinity attribute.
为便于理解,下面将继续以图1为例进行介绍。SDN控制器在将切片网络部署至转发设备时,可为各切片网络设置两个属性:亲和力属性和链路代价cost属性,例如,业务切片网络1的所属链路的亲和力属性都设置为1,链路代价cost设置为100;业务切片网络2的所属链路的亲和力属性都设置为2,链路代价cost为100;逃生切片网络的所属链路的亲和力属性都设置为3,链路代价cost设置为10。当然,若存在部分未分配至切片网络中的链路,则SDN控制器也可为这些链路分配链路亲和力属性和链路代价,例如其他非切片网的链路亲和力属性都设置为0,链路代价cost设置为10。进而,假若业务切片网络1中的链路发生故障,SDN控制器在业务切片网络1、逃生切片网络都无法计算出替换转发路径,或者SDN控制器本身故障失效时,转发设备将接管路径生成功能,并利用物理转发网络已部署的链路及对应的链路亲和力属性和链路代价cost属性,利用cost最小等约束算法计算出替换转发路径。可以理解的是,由于逃生切片网络中的链路对应的代价值均小于业务切片网络中各链路的代价值,而转发设备又是基于最小代价原则在各链路中确定故障路径对应的替换转发路径,即生成的替换转发路径中各链路的代价值总和最小,因此转发设备将优先在逃生切片网络的链路中生成替换转发路径,可避免使用其他业务切片网络的链路,因此不会影响其他切片业务的流量,保证了切片功能的有效性。需要说明的是,本发明实施例并不限定转发路径生成替换转发路径的具体方式,例如可使用约束算法进行生成。本发明实施例也不限定具体的约束算法,例如可以为CSPF(Constrained Shortest Path First,约束式最短路径优先)算法。For ease of understanding, the following will continue to take FIG. 1 as an example for introduction. When the SDN controller deploys the slice network to the forwarding device, it can set two attributes for each slice network: the affinity attribute and the link cost attribute. For example, the affinity attribute of the link of the service slice network 1 is set to 1, The link cost cost is set to 100; the affinity attributes of the links belonging to the service slice network 2 are all set to 2, and the link cost is 100; the affinity attributes of the links belonging to the escape slice network are all set to 3, and the link cost Set to 10. Of course, if there are some links that are not allocated to the slice network, the SDN controller can also assign link affinity attributes and link costs to these links. For example, the link affinity attributes of other non-slice networks are all set to 0, The link cost is set to 10. Furthermore, if a link in the service slice network 1 fails, the SDN controller cannot calculate an alternative forwarding path in the service slice network 1 or the escape slice network, or when the SDN controller itself fails, the forwarding device will take over the path generation function , and use the deployed links in the physical forwarding network and the corresponding link affinity attributes and link cost attributes, and use the cost minimum constraint algorithm to calculate the replacement forwarding path. It can be understood that since the cost values corresponding to the links in the escape slice network are smaller than the cost values of each link in the service slice network, and the forwarding device determines the replacement path corresponding to the faulty path in each link based on the minimum cost principle. The forwarding path, that is, the sum of the cost values of the links in the generated replacement forwarding path is the smallest, so the forwarding device will preferentially generate a replacement forwarding path in the links of the escape slice network, which can avoid using links of other service slice networks, so it is not necessary to It will affect the traffic of other slicing services, which ensures the effectiveness of the slicing function. It should be noted that the embodiment of the present invention does not limit the specific manner of generating the forwarding path to replace the forwarding path, for example, a constrained algorithm may be used for generation. The embodiment of the present invention also does not limit a specific constrained algorithm, for example, it may be a CSPF (Constrained Shortest Path First, constrained shortest path first) algorithm.
进一步,应当指出的是,替换转发路径应当由作为路径入节点的转发设备生成。这一入节点转发设备同样可检测路径是否存在故障,具体可通过IGP协议(Interior GatewayProtocol,内部网关协议)进行检测。由于替换转发路径仍需要由SDN控制器优先生成,因此在检测到故障时,转发设备需确定SDN控制器能否下发对应的替换转发路径。Further, it should be noted that the alternative forwarding path should be generated by the forwarding device as the ingress node of the path. The ingress node forwarding device can also detect whether there is a fault in the path, specifically through an IGP protocol (Interior Gateway Protocol, interior gateway protocol). Since the replacement forwarding path still needs to be preferentially generated by the SDN controller, when a fault is detected, the forwarding device needs to determine whether the SDN controller can deliver the corresponding replacement forwarding path.
具体的,入节点转发设备可基于PCEP协议(Path Computation ElementCommunication Protocol,路径计算单元通信协议)确定SDN控制器是否失活,例如,入节点转发设备将根据PCEP协议确定SDN控制器是否处于活动状态(Keepalived),以此在确定其是否可依照PCEP协议返回替换转发路径。即,转发设备可在根据PCEP协议确定所述SDN控制器未处于活动状态时确定SDN控制器无法下发路径对应的第一替换转发路径。Specifically, the ingress node forwarding device can determine whether the SDN controller is inactivated based on the PCEP protocol (Path Computation Element Communication Protocol, Path Computation Element Communication Protocol), for example, the ingress node forwarding device will determine whether the SDN controller is active according to the PCEP protocol ( Keepalived) to determine whether it can return an alternative forwarding path according to the PCEP protocol. That is, the forwarding device may determine that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path when determining that the SDN controller is not in an active state according to the PCEP protocol.
基于上述实施例,本发明实施例还由转发设备自主生成存在故障的目标路径对应的替换转发路径,可有效防止SDN控制器失效、无法下发替换转发路径导致流量中断的状况发生,可进一步提升业务稳定性。Based on the above-mentioned embodiments, in the embodiment of the present invention, the forwarding device autonomously generates the replacement forwarding path corresponding to the faulty target path, which can effectively prevent the failure of the SDN controller and the inability to deliver the replacement forwarding path, resulting in traffic interruption, and can further improve business stability.
下面对SDN控制器和转发设备中设置的相关模块,以及SDN控制器和转发设备间为生成替换转发路径所执行的交互步骤进行详细介绍。请参考图5,图5为本发明实施例所提供的SDN控制器及转发设备的示意图。SDN控制器及转发设备中包含的模块有:The relevant modules set in the SDN controller and the forwarding device, as well as the interaction steps performed between the SDN controller and the forwarding device to generate a replacement forwarding path are introduced in detail below. Please refer to FIG. 5 , which is a schematic diagram of an SDN controller and a forwarding device provided by an embodiment of the present invention. The modules contained in the SDN controller and forwarding equipment are:
模块1:拓扑管理模块。SDN控制器对转发设备上报的拓扑数据进行存储和抽象,形成SDN控制器的拓扑数据库,响应转发设备上报的拓扑变化更新,为控制器转发路由计算模块提供数据支撑。Module 1: topology management module. The SDN controller stores and abstracts the topology data reported by the forwarding device to form a topology database of the SDN controller, responds to the topology change update reported by the forwarding device, and provides data support for the forwarding routing calculation module of the controller.
模块2:切片管理模块。SDN控制器根据用户需求把物理网络划分为多个业务切片网络和逃生切片网络,并且对切片网络进行管理和维护。Module 2: slice management module. The SDN controller divides the physical network into multiple service slice networks and escape slice networks according to user requirements, and manages and maintains the slice networks.
模块3:业务部署模块。SDN控制器根据用户的业务需求,把业务部署到业务切片网络中,相关配置从SDN控制器下发到转发设备上,在SDN控制器上对业务进行管理和维护。Module 3: Business deployment module. The SDN controller deploys services to the service slicing network according to the user's business requirements, and the relevant configuration is delivered from the SDN controller to the forwarding device, and the services are managed and maintained on the SDN controller.
模块4:控制器转发路由计算模块。SDN控制器根据多约束算法,计算业务可达的转发路由,响应链路故障或者节点故障,对业务路由进行逃生路径计算,保障业务转发路由可达,并且保证切片间路由隔离。Module 4: Controller forwarding route calculation module. The SDN controller calculates service-reachable forwarding routes based on the multi-constraint algorithm, responds to link failures or node failures, and calculates escape paths for service routes to ensure reachable service forwarding routes and route isolation between slices.
模块5:拓扑上报模块。转发设备把转发设备之间的互联关系以及相关的路由信息通过BGP-LS(Border Gateway Protocol Link-state,携带扩展链路状态的边界网关协议)上报到SDN控制器。可以把链路的各种状态数据一起上报给SDN控制器。Module 5: Topology reporting module. The forwarding device reports the interconnection relationship between forwarding devices and related routing information to the SDN controller through BGP-LS (Border Gateway Protocol Link-state, which carries the extended link state). Various status data of the link can be reported to the SDN controller together.
模块6:链路管理模块。转发设备识别和记录SDN控制器为切片链路下发的亲和属性和链路代价cost,以区分不同的切片链路,并为转发设备路由计算提供链路拓扑服务。Module 6: Link Management Module. The forwarding device identifies and records the affinity attribute and link cost issued by the SDN controller for the slice link, so as to distinguish different slice links and provide link topology services for the forwarding device route calculation.
模块7:转发设备路由计算模块。当SDN控制器无法计算出业务转发路径或者SDN控制器失效的情况下,转发设备接管路由计算功能,按照转发设备的算法,例如最小cost算法进行转发路由计算,保证切片间的转发路由隔离以及故障场景下的转发路由逃生路径等。Module 7: Forwarding device routing calculation module. When the SDN controller cannot calculate the service forwarding path or the SDN controller fails, the forwarding device takes over the route calculation function, and calculates the forwarding route according to the algorithm of the forwarding device, such as the minimum cost algorithm, to ensure forwarding route isolation between slices and faults Forwarding routing escape path in the scenario, etc.
模块8:路由转发模块,转发设备根据SDN控制器或者转发设备自己计算出来的转发路径,形成转发路由表现,业务报文按照转发路由表信息进行匹配路由转发。Module 8: Routing and forwarding module. The forwarding device forms a forwarding route performance according to the forwarding path calculated by the SDN controller or the forwarding device itself, and the service packets are routed and forwarded according to the information in the forwarding routing table.
请参考图6,图6为本发明实施例所提供的另一种转发路径生成方法的流程图。SDN控制器和转发设备间为生成替换转发路径所执行的交互步骤可以包括:Please refer to FIG. 6 , which is a flowchart of another method for generating a forwarding path provided by an embodiment of the present invention. The interactive steps performed between the SDN controller and the forwarding device to generate an alternate forwarding path may include:
步骤1,主要是网络的基础配置,转发设备的地址分配,接口配置,打通转发网元之间的协议通道,例如ISIS或者OSPF等相关协议配置使能;Step 1 is mainly the basic configuration of the network, the address allocation of the forwarding device, the interface configuration, and the opening of the protocol channel between the forwarding network elements, such as ISIS or OSPF and other related protocol configurations;
步骤2,打通转发设备与SDN控制器之间的控制协议通道,例如用于收集网络拓扑的BGP-LS协议,和用于配置用户业务、隧道、策略的NETCONF协议等。Step 2: Open up the control protocol channel between the forwarding device and the SDN controller, such as the BGP-LS protocol for collecting network topology, and the NETCONF protocol for configuring user services, tunnels, and policies.
步骤3,转发网元之间配置了ISIS或者OSPF后,相互之间洪泛IGP路由信息,然后通过BGP-LS把网络的三层拓扑信息上报给控制器,方0便SDN控制器链路网络拓扑,进行业务转发路径计算。Step 3: After ISIS or OSPF is configured between the forwarding network elements, IGP routing information is flooded between each other, and then the layer 3 topology information of the network is reported to the controller through BGP-LS, which is convenient for the SDN controller to link the network Topology, to calculate the service forwarding path.
步骤4:SDN控制器根据用户需求把物理网络划分为多个业务切片网络和逃生切片网络,并且对切片网络进行管理和维护。Step 4: The SDN controller divides the physical network into multiple service slice networks and escape slice networks according to user requirements, and manages and maintains the slice networks.
步骤5:SDN控制器根据用户的业务需求,把业务部署到业务切片网络中,相关配置从SDN控制器下发到转发设备上,在SDN控制器上对业务进行管理和维护。Step 5: The SDN controller deploys services to the service slicing network according to the user's service requirements, and the relevant configuration is delivered from the SDN controller to the forwarding device, and the services are managed and maintained on the SDN controller.
步骤6:转发设备上的某条或者某几条切片链路发生故障后,通过BGP-LS协议上报给SDN控制器。Step 6: After one or several slice links on the forwarding device fail, report to the SDN controller through the BGP-LS protocol.
步骤7:SDN控制器接收到切片链路故障后,更新拓扑信息,并且在该发生故障的切片网络内进行新的转发路径计算。Step 7: After receiving the link failure of the slice, the SDN controller updates the topology information, and calculates a new forwarding path in the failed slice network.
步骤8:SDN控制器计算出新的转发路径,下发到转发设备,设备的业务路由恢复,业务流量正常转发。Step 8: The SDN controller calculates a new forwarding path and delivers it to the forwarding device. The service route of the device is restored and the service traffic is forwarded normally.
步骤9:SDN控制器无法在发生故障的切片网络内计算出新的转发路径,SDN控制器会尝试在逃生切片网络中进行转发路径计算,如果计算出新的转发路径,进入步骤8流程,如果不能计算出新的转发路径,进入步骤10流程。Step 9: The SDN controller cannot calculate a new forwarding path in the faulty slice network. The SDN controller will try to calculate the forwarding path in the escape slice network. If a new forwarding path is calculated, go to step 8. If If a new forwarding path cannot be calculated, go to step 10.
步骤10:当SDN控制器无法计算出业务转发路径或者SDN控制器失效的情况下,转发设备接管路由计算功能,按照转发设备的算法,例如CSPF算法,在逃生切片内依据cost最小进行转发路由计算。Step 10: When the SDN controller cannot calculate the service forwarding path or the SDN controller fails, the forwarding device takes over the route calculation function, and performs forwarding route calculation based on the minimum cost in the escape slice according to the algorithm of the forwarding device, such as the CSPF algorithm .
步骤11:如果转发设备计算出新的转发路径,就会更新转发路由表项,业务路由转发恢复,业务报文正常转发。Step 11: If the forwarding device calculates a new forwarding path, it will update the forwarding routing table entry, service route forwarding is restored, and service packets are forwarded normally.
步骤12:如果转发设备无法计算出新的转发路径,说明网络中已经无可达的逃生路由,业务转发故障,业务流量中断,此时需要用户排查网络,人工进行故障恢复,保证业务路由正常转发。Step 12: If the forwarding device cannot calculate a new forwarding path, it means that there is no reachable escape route in the network, service forwarding failure, and service traffic interruption. At this time, users need to check the network and perform fault recovery manually to ensure the normal forwarding of service routes .
下面对本发明实施例提供的切片网络系统及计算机可读存储介质进行介绍,下文描述的切片网络系统及计算机可读存储介质与上文描述的转发路径生成方法可相互对应参照。The slicing network system and computer-readable storage medium provided by the embodiments of the present invention are introduced below. The slicing network system and computer-readable storage medium described below and the method for generating forwarding paths described above can be referred to in correspondence.
请参考图7,图7为本发明实施例所提供的一种转发路径生成装置的结构框图,该装置应用于SDN控制器,可以包括:Please refer to FIG. 7. FIG. 7 is a structural block diagram of a device for generating a forwarding path provided by an embodiment of the present invention. The device is applied to an SDN controller and may include:
评估模块701,用于当检测到目标业务切片网络中出现故障的目标路径时,确定目标业务切片网络中是否可生成目标路径对应的替换转发路径;An
第一路径生成模块702,用于当确定目标业务切片网络中不可生成替换转发路径时,在逃生切片网络中生成替换转发路径;The first
路径下发模块703,用于将逃生切片网络中生成的替换转发路径下发至目标路径对应的目标转发设备,以使目标转发设备利用接收到的替换转发路径更新目标路径,并利用更新后的目标路径进行业务数据传输。The
优选地,该装置还可以包括:Preferably, the device may also include:
第二路径生成模块,用于当确定目标业务切片网络中可生成替换转发路径时,将目标业务切片网络中生成的替换转发路径下发至目标转发设备。The second path generating module is configured to deliver the alternate forwarding path generated in the target service slice network to the target forwarding device when it is determined that an alternate forwarding path can be generated in the target service slice network.
优选地,该装置还可以包括:Preferably, the device may also include:
接收模块,用于接收转发设备在检测到故障链路时发送的与故障链路对应的故障链路信息;A receiving module, configured to receive faulty link information corresponding to the faulty link sent by the forwarding device when the faulty link is detected;
标记模块,用于确定故障链路信息对应的目标业务切片网络,并将目标业务切片网络中经过故障链路的目标路径标记为已故障;A marking module, configured to determine the target service slice network corresponding to the faulty link information, and mark the target path passing through the faulty link in the target service slice network as failed;
相应的,第一路径生成模块702,具体用于:Correspondingly, the first
利用故障链路信息更新目标业务切片网络的拓扑信息,并根据更新后的拓扑信息确定是否可生成替换转发路径。Utilize the faulty link information to update the topology information of the target service slice network, and determine whether an alternative forwarding path can be generated according to the updated topology information.
优选地,接收模块,具体用于:Preferably, the receiving module is specifically used for:
通过BGP-LS协议接收转发设备发送的故障链路信息。Receive the faulty link information sent by the forwarding device through the BGP-LS protocol.
优选地,该装置还可以包括:Preferably, the device may also include:
设置模块,用于将所有业务切片网络中的链路标记为第一链路,并为各第一链路设置第一代价值,以及将逃生切片网络中的链路标记为第二链路,并为各第二链路设置第二代价值;各第二代价值均小于各第一代价值;A setting module, configured to mark links in all service slice networks as first links, set first-generation values for each first link, and mark links in the escape slice network as second links, And set the second-generation value for each second link; each second-generation value is smaller than each first-generation value;
部署模块,用于将第一链路的信息及对应的第一代价值、第二链路的信息及对应的第二代价值部署至各转发设备,以使各转发设备在检测到将其作为入节点的路径发生故障且确定SDN控制器无法下发路径对应的第一替换转发路径时,依照最小代价原则并根据第一代价值和第二代价值在第一链路和第二链路中确定路径对应的第二替换转发路径,并利用第二替换转发路径进行业务数据传输。The deployment module is configured to deploy the information of the first link and the corresponding first-generation value, the information of the second link and the corresponding second-generation value to each forwarding device, so that each forwarding device detects that it is used as When the path of the ingress node fails and it is determined that the SDN controller cannot deliver the first alternative forwarding path corresponding to the path, the first link and the second link are selected according to the principle of minimum cost and the value of the first generation and the second generation. A second alternative forwarding path corresponding to the path is determined, and service data is transmitted using the second alternative forwarding path.
请参考图8,图8为本发明实施例所提供的一种切片网络系统的结构框图,该系统可以包括:SDN控制器801及转发设备802,其中,Please refer to FIG. 8. FIG. 8 is a structural block diagram of a network slice system provided by an embodiment of the present invention. The system may include: an
SDN控制器801,可以用于当检测到目标业务切片网络中出现故障的目标路径时,确定目标业务切片网络中是否可生成目标路径对应的替换转发路径;当确定目标业务切片网络中不可生成替换转发路径时,在逃生切片网络中生成替换转发路径;将逃生切片网络中生成的替换转发路径下发至目标路径对应的目标转发设备;The
转发设备802,可以用于利用接收到的替换转发路径更新目标路径,并利用更新后的目标路径进行业务数据传输。The
需要说明的是,本发明实施例并不限定转发设备802的具体数量,可根据实际应用需求进行设定。It should be noted that the embodiment of the present invention does not limit the specific number of
可选地,SDN控制器801,还可以用于:当确定目标业务切片网络中可生成替换转发路径时,将目标业务切片网络中生成的替换转发路径下发至目标转发设备。Optionally, the
可选地,转发设备802,还可以用于:在检测到故障链路时,将故障链路对应的故障链路信息发送至SDN控制器801;Optionally, the
SDN控制器801,还可以用于:确定故障链路信息对应的目标业务切片网络,并将目标业务切片网络中经过故障链路的目标路径标记为已故障;利用故障链路信息更新目标业务切片网络的拓扑信息,并根据更新后的拓扑信息确定是否可生成替换转发路径。The
可选地,转发设备802,还可以用于:通过BGP-LS协议将故障链路信息发送至SDN控制器801。Optionally, the
可选地,SDN控制器801,还可以用于:将各业务切片网络中的链路标记为第一链路,并为各第一链路设置第一代价值,以及将逃生切片网络中的链路标记为第二链路,并为各第二链路设置第二代价值;各第二代价值均小于各第一代价值;将第一链路的信息及对应的第一代价值、第二链路的信息及对应的第二代价值部署至各转发设备802;Optionally, the
转发设备802,还可以用于:在检测到将其作为入节点的路径发生故障且确定SDN控制器801无法下发所述路径对应的第一替换转发路径时,依照最小代价原则并根据所述第一代价值和所述第二代价值在所述第一链路和第二链路中确定所述路径对应的第二替换转发路径,并利用所述第二替换转发路径进行业务数据传输。The
可选地,转发设备802,还可以用于:通过IGP协议检测路径是否故障。Optionally, the
可选地,转发设备802,还可以用于:在根据PCEP协议确定SDN控制器801未处于活动状态时确定SDN控制器801无法下发所述路径对应的第一替换转发路径。Optionally, the
进一步的,本发明实施例还公开了一种计算机可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述实施例公开的转发路径生成方法。Further, the embodiment of the present invention also discloses a computer-readable storage medium for storing a computer program, wherein, when the computer program is executed by a processor, the method for generating the forwarding path disclosed in the foregoing embodiments is implemented.
关于上述转发路径生成方法的具体过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Regarding the specific process of the above method for generating a forwarding path, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible Interchangeability, in the above description, the components and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本发明所提供的一种转发路径生成方法、SDN控制器、切片网络系统及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。A method for generating a forwarding path, an SDN controller, a slicing network system, and a computer-readable storage medium provided by the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211684737.0A CN115987883B (en) | 2022-12-27 | 2022-12-27 | Forwarding path generation method, SDN controller, slice network system and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211684737.0A CN115987883B (en) | 2022-12-27 | 2022-12-27 | Forwarding path generation method, SDN controller, slice network system and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115987883A true CN115987883A (en) | 2023-04-18 |
| CN115987883B CN115987883B (en) | 2025-06-27 |
Family
ID=85971856
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211684737.0A Active CN115987883B (en) | 2022-12-27 | 2022-12-27 | Forwarding path generation method, SDN controller, slice network system and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115987883B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116489077A (en) * | 2023-06-21 | 2023-07-25 | 中国电信股份有限公司 | Path protection switching method, device and system, router equipment and storage medium |
| CN120234225A (en) * | 2025-05-30 | 2025-07-01 | 苏州元脑智能科技有限公司 | Controller processing method, device, electronic equipment and medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106851705A (en) * | 2017-02-22 | 2017-06-13 | 重庆邮电大学 | A kind of wireless network dicing method based on section flow table |
| CN107404441A (en) * | 2016-05-19 | 2017-11-28 | 华为技术有限公司 | The method and apparatus that data flow shunts in a kind of section network |
| CN115277548A (en) * | 2021-04-30 | 2022-11-01 | 中国移动通信有限公司研究院 | A transmission method, device and storage medium |
-
2022
- 2022-12-27 CN CN202211684737.0A patent/CN115987883B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107404441A (en) * | 2016-05-19 | 2017-11-28 | 华为技术有限公司 | The method and apparatus that data flow shunts in a kind of section network |
| CN106851705A (en) * | 2017-02-22 | 2017-06-13 | 重庆邮电大学 | A kind of wireless network dicing method based on section flow table |
| CN115277548A (en) * | 2021-04-30 | 2022-11-01 | 中国移动通信有限公司研究院 | A transmission method, device and storage medium |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116489077A (en) * | 2023-06-21 | 2023-07-25 | 中国电信股份有限公司 | Path protection switching method, device and system, router equipment and storage medium |
| CN116489077B (en) * | 2023-06-21 | 2023-10-03 | 中国电信股份有限公司 | Path protection switching method, device and system, router equipment and storage medium |
| CN120234225A (en) * | 2025-05-30 | 2025-07-01 | 苏州元脑智能科技有限公司 | Controller processing method, device, electronic equipment and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115987883B (en) | 2025-06-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR102397956B1 (en) | Minimize internal gateway protocol flooding | |
| EP2680510B1 (en) | Service plane triggered fast reroute protection | |
| Caesar et al. | Design and implementation of a routing control platform | |
| US7765283B2 (en) | Network provisioning in a distributed network management architecture | |
| KR102002189B1 (en) | Method and apparatus for resilient routing of control traffic in a split-architecture system | |
| EP1111860B1 (en) | Automatic protection switching using link-level redundancy supporting multi-protocol label switching | |
| CN111404822B (en) | Data transmission method, device, equipment and computer readable storage medium | |
| CN107347032B (en) | Message forwarding method and device | |
| CN115150321B (en) | Determine the shield backup path | |
| CN110708245A (en) | SDN data plane fault monitoring and recovery method under multi-controller architecture | |
| CN115987883A (en) | Forwarding path generation method, SDN controller, slicing network system and storage medium | |
| CN105553728B (en) | A kind of network disaster tolerance recovery system and method based on software defined network technology | |
| CN118827361A (en) | A high availability method and system for cloud dedicated line based on SDN | |
| CN102792636B (en) | Methods, devices and communication networks are provided for restoring survivability | |
| EP3099010B1 (en) | Network path computation method, apparatus and system | |
| Filsfils et al. | BGP prefix independent convergence (PIC) technical report | |
| US8724511B2 (en) | Method for provisioning circuits on multiple parallel links with a single setup message | |
| US20080212610A1 (en) | Communication techniques and generic layer 3 automatic switching protection | |
| CN106130895B (en) | Rerouting method and device for SDN network failure | |
| CN116260763A (en) | Routing information processing method, OSPF equipment and OSPF network | |
| Gossels | Joint Optimization for Robust Network Design and Operation | |
| CN101155133A (en) | Processing method of traffic engineering link information | |
| EP4221140A1 (en) | Node configuration method, controller, and node | |
| Milbrandt et al. | Risk assessment of end-to-end disconnection in IP networks due to network failures | |
| Williams | Tuning dynamically routed internet protocol networks to achieve controlled and predictable failover during link instability |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: No. 9 Mozhou East Road, Nanjing City, Jiangsu Province, 211111 Applicant after: Zijinshan Laboratory Address before: No. 9 Mozhou East Road, Jiangning Economic Development Zone, Jiangning District, Nanjing City, Jiangsu Province Applicant before: Purple Mountain Laboratories Country or region before: China |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |